aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.config/waybar/config
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/.config/waybar/config')
-rw-r--r--dotfiles/.config/waybar/config11
1 files changed, 10 insertions, 1 deletions
diff --git a/dotfiles/.config/waybar/config b/dotfiles/.config/waybar/config
index c807ba4..35f7c4d 100644
--- a/dotfiles/.config/waybar/config
+++ b/dotfiles/.config/waybar/config
@@ -19,6 +19,7 @@
"custom/mail-status",
"custom/pac-status",
"custom/news-status",
+ "custom/batwatt",
"memory",
"custom/torrent-status",
"network",
@@ -217,9 +218,17 @@
"interval": 180,
"exec": "bards4battery"
},
+ "custom/batwatt": {
+ "format": "<span color=\"#5b8277\"></span> {}",
+ "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-on-event": true,
+ "on-click": ""
+ },
"custom/swaykbd": {
"format": "{}",
"exec": "swaykbd",
"tooltip": false
- },
+ }
}