aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.config/waybar
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/.config/waybar')
-rw-r--r--dotfiles/.config/waybar/config10
-rw-r--r--dotfiles/.config/waybar/style.css2
2 files changed, 5 insertions, 7 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": ""
},
diff --git a/dotfiles/.config/waybar/style.css b/dotfiles/.config/waybar/style.css
index 17d083d..9c4aa78 100644
--- a/dotfiles/.config/waybar/style.css
+++ b/dotfiles/.config/waybar/style.css
@@ -8,9 +8,7 @@ window#waybar {
min-height: 0;
}
#tray,
-#battery,
#network,
-#backlight,
#custom-torrent-status,
#workspaces {
background: #151517;