aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.config/waybar/config
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-04-24 15:16:29 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-04-24 15:16:29 +0300
commit7b779ba9e4fd460655eed62a8538c44227f5c6f5 (patch)
tree6e263f20fec5088d5bbbdf9d53d466697cfba6d2 /dotfiles/.config/waybar/config
parenta7fc2b6feb704aead1727c0155bb0e6c4c0a02eb (diff)
downloadswayrice-7b779ba9e4fd460655eed62a8538c44227f5c6f5.tar.gz
swayrice-7b779ba9e4fd460655eed62a8538c44227f5c6f5.zip
waybar: better battery energy status
Diffstat (limited to 'dotfiles/.config/waybar/config')
-rw-r--r--dotfiles/.config/waybar/config10
1 files changed, 5 insertions, 5 deletions
diff --git a/dotfiles/.config/waybar/config b/dotfiles/.config/waybar/config
index 35f7c4d..94839e5 100644
--- a/dotfiles/.config/waybar/config
+++ b/dotfiles/.config/waybar/config
@@ -19,13 +19,13 @@
"custom/mail-status",
"custom/pac-status",
"custom/news-status",
- "custom/batwatt",
"memory",
- "custom/torrent-status",
- "network",
"backlight",
"battery#bat0",
"battery#bat1",
+ "custom/batwatt",
+ "custom/torrent-status",
+ "network",
"tray"
],
"sway/mode": {
@@ -219,10 +219,10 @@
"exec": "bards4battery"
},
"custom/batwatt": {
- "format": "<span color=\"#5b8277\"></span> {}",
+ "return-type": "json",
"interval": 10,
"exec-if": "test -e /sys/class/power_supply/BAT0",
- "exec": "echo print\\(\\'{}W\\'.format\\($(grep 'POWER_SUPPLY_POWER_NOW' /sys/class/power_supply/BAT0/uevent | awk -F '=' '{print $2}')/1000000\\)\\) | python",
+ "exec": "barbatwatt",
"exec-on-event": true,
"on-click": ""
},