|
26 | 26 | "battery", |
27 | 27 | "network", |
28 | 28 | "pulseaudio", |
| 29 | + "bluetooth", |
| 30 | + "backlight", |
29 | 31 | "clock#date", |
30 | 32 | "clock#clock", |
31 | 33 | "custom/power" |
|
50 | 52 | "on-click": "playerctl previous" |
51 | 53 | }, |
52 | 54 | "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": "{}" |
55 | 58 | }, |
56 | 59 | "custom/player#next": { |
57 | 60 | "format": "", |
|
136 | 139 | // "interval": 1 |
137 | 140 | // }, |
138 | 141 | "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" |
141 | 145 | }, |
142 | 146 | "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" |
145 | 150 | }, |
146 | 151 | "temperature": { |
147 | 152 | // "thermal-zone": 2, |
148 | 153 | "hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input", |
149 | 154 | "critical-threshold": 80, |
| 155 | + "on-click": "alacritty -e btop", |
150 | 156 | // "format-critical": "{temperatureC}°C ", |
151 | | - "format": " {temperatureC}°C" |
| 157 | + "format": " {temperatureC}°C" |
152 | 158 | }, |
153 | 159 | "backlight": { |
154 | 160 | // "device": "acpi_video1", |
155 | 161 | "format": "{icon} {percent: >3}%", |
156 | 162 | "format-icons": [ |
157 | | - "", |
158 | | - "" |
| 163 | + "", |
159 | 164 | ], |
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" |
164 | 168 | }, |
165 | 169 | "battery": { |
166 | 170 | "states": { |
167 | 171 | // "good": 95, |
168 | 172 | "warning": 30, |
169 | 173 | "critical": 15 |
170 | 174 | }, |
171 | | - "format": "{icon} {capacity: >3}%", |
| 175 | + "format": "{icon} {capacity: >3}%", |
172 | 176 | // "format-good": "", // An empty format will hide the module |
173 | 177 | // "format-full": "", |
174 | 178 | "format-icons": [ |
|
180 | 184 | ] |
181 | 185 | //"format-icons": ["", "", "", "", "", "", "", "", "", ""] |
182 | 186 | }, |
| 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 | + }, |
183 | 200 | "network": { |
184 | 201 | // "interface": "wlp2s0", // (Optional) To force the use of this interface |
185 | | - "format": "⚠ Disabled", |
186 | | - "format-wifi": " {essid}", |
| 202 | + "format": "⚠ Disabled", |
| 203 | + "format-wifi": " {essid}", |
187 | 204 | // "format-ethernet": " {ifname}: {ipaddr}/{cidr}", |
188 | 205 | "format-ethernet": " Wired", |
189 | 206 | "format-disconnected": "⚠ Disconnected", |
|
211 | 228 | // "on-scroll-up": "pamixer -ui 2 && pamixer --get-volume > $SWAYSOCK.wob", |
212 | 229 | // "on-scroll-down": "pamixer -ud 2 && pamixer --get-volume > $SWAYSOCK.wob" |
213 | 230 | }, |
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 | | - }, |
222 | 231 | "custom/power": { |
223 | 232 | "format": "⏻", |
224 | 233 | "on-click": "nwgbar", |
|
0 commit comments