Skip to content

Commit a6103f4

Browse files
committed
style: adjust styling - co-author: claude
1 parent 9465ff2 commit a6103f4

File tree

2 files changed

+379
-208
lines changed

2 files changed

+379
-208
lines changed

.config/waybar/config.jsonc

Lines changed: 33 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
"battery",
2727
"network",
2828
"pulseaudio",
29+
"bluetooth",
30+
"backlight",
2931
"clock#date",
3032
"clock#clock",
3133
"custom/power"
@@ -50,8 +52,9 @@
5052
"on-click": "playerctl previous"
5153
},
5254
"custom/player#play": {
53-
"exec": "while true; do playerctl status; sleep 0.2; done",
54-
"on-click": "playerctl play-pause"
55+
"exec": "while true; do playerctl status 2>/dev/null || echo 'Stopped'; sleep 0.2; done",
56+
"on-click": "playerctl play-pause",
57+
"format": "{}"
5558
},
5659
"custom/player#next": {
5760
"format": "",
@@ -136,39 +139,40 @@
136139
// "interval": 1
137140
// },
138141
"cpu": {
139-
"format": " {usage: >3}%",
140-
"on-click": "alacritty -e htop"
142+
"format": "{usage: >3}%",
143+
"on-click": "alacritty -e btop",
144+
"tooltip-format": "CPU Usage: {usage}%\\nLoad: {load}\\nClick to open btop"
141145
},
142146
"memory": {
143-
"format": " {: >3}%",
144-
"on-click": "alacritty -e htop"
147+
"format": "{: >3}%",
148+
"on-click": "alacritty -e btop",
149+
"tooltip-format": "Memory Usage: {percentage}%\\nUsed: {used}GiB / {total}GiB\\nAvailable: {avail}GiB\\nClick to open btop"
145150
},
146151
"temperature": {
147152
// "thermal-zone": 2,
148153
"hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input",
149154
"critical-threshold": 80,
155+
"on-click": "alacritty -e btop",
150156
// "format-critical": "{temperatureC}°C ",
151-
"format": " {temperatureC}°C"
157+
"format": " {temperatureC}°C"
152158
},
153159
"backlight": {
154160
// "device": "acpi_video1",
155161
"format": "{icon} {percent: >3}%",
156162
"format-icons": [
157-
"",
158-
""
163+
"",
159164
],
160-
// "on-scroll-down": "brightnessctl -c backlight set 5%-",
161-
// "on-scroll-down": "light -A 5 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob",
162-
// "on-scroll-up": "brightnessctl -c backlight set +5%"
163-
// "on-scroll-up": "light -U 5 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob"
165+
"on-scroll-up": "brightnessctl set +2%",
166+
"on-scroll-down": "brightnessctl set 2%-",
167+
"tooltip-format": "Brightness: {percent}%\\nScroll to adjust"
164168
},
165169
"battery": {
166170
"states": {
167171
// "good": 95,
168172
"warning": 30,
169173
"critical": 15
170174
},
171-
"format": "{icon} {capacity: >3}%",
175+
"format": "{icon} {capacity: >3}%",
172176
// "format-good": "", // An empty format will hide the module
173177
// "format-full": "",
174178
"format-icons": [
@@ -180,10 +184,23 @@
180184
]
181185
//"format-icons": ["", "", "", "", "", "", "", "", "", ""]
182186
},
187+
"bluetooth": {
188+
"format": " {status}",
189+
"format-disabled": "",
190+
"format-off": "",
191+
"format-on": "",
192+
"format-connected": " {device_alias}",
193+
"format-connected-battery": " {device_alias} ({device_battery_percentage}%)",
194+
"tooltip-format": "Bluetooth: {status}\\nConnected devices: {num_connections}",
195+
"tooltip-format-connected": "Bluetooth: {status}\\nConnected: {device_enumerate}",
196+
"tooltip-format-enumerate-connected": "{device_alias}",
197+
"tooltip-format-enumerate-connected-battery": "{device_alias} ({device_battery_percentage}%)",
198+
"on-click": "blueman-manager"
199+
},
183200
"network": {
184201
// "interface": "wlp2s0", // (Optional) To force the use of this interface
185-
"format": " Disabled",
186-
"format-wifi": " {essid}",
202+
"format": "⚠ Disabled",
203+
"format-wifi": " {essid}",
187204
// "format-ethernet": " {ifname}: {ipaddr}/{cidr}",
188205
"format-ethernet": " Wired",
189206
"format-disconnected": "⚠ Disconnected",
@@ -211,14 +228,6 @@
211228
// "on-scroll-up": "pamixer -ui 2 && pamixer --get-volume > $SWAYSOCK.wob",
212229
// "on-scroll-down": "pamixer -ud 2 && pamixer --get-volume > $SWAYSOCK.wob"
213230
},
214-
"custom/pacman": {
215-
"format": " {}",
216-
"interval": 7200, // every two hours
217-
"exec": "i=$(checkupdates); echo \"$i\" |wc -l; echo \"$i\" |column -t |tr '\n' '\r'", // # of updates and tooltip details
218-
"exec-if": "exit 0", // always run; consider advanced run conditions
219-
"on-click": "alacritty -e sudo pacman -Syu", // update system
220-
"signal": 8
221-
},
222231
"custom/power": {
223232
"format": "",
224233
"on-click": "nwgbar",

0 commit comments

Comments
 (0)