waybar power-draw

This commit is contained in:
rileyrg 2021-05-25 11:45:58 +02:00
parent 647999bd55
commit 9e7a618ee6
2 changed files with 22 additions and 10 deletions

View file

@ -14,15 +14,16 @@
"modules-center": [
"clock",
"idle_inhibitor",
"pulseaudio",
"custom/weather",
],
"modules-right": [
"custom/weather",
"idle_inhibitor",
"pulseaudio",
"custom/bluetooth",
"backlight",
"battery",
"custom/power-draw",
"network",
],
@ -154,11 +155,16 @@
"custom/bluetooth": {
"format": "<span color='blue'>{}</span>",
"interval": 18000,
"interval": 30,
"exec": "my-i3b-bluetooth",
"exec-if": "ping openweathermap.org -c1",
"tooltip": "false",
"on-click": "sway-bluetooth",
},
"custom/power-draw": {
"format": "⚡<span color='gold'>{}</span>🔋",
"interval": 5,
"exec": "awk '{print $1*10^-6 \" W\"}' /sys/class/power_supply/BAT0/power_now",
"tooltip": "false",
},
}

View file

@ -1613,15 +1613,16 @@ https://github.com/Alexays/Waybar/wiki/Configuration
"modules-center": [
"clock",
"idle_inhibitor",
"pulseaudio",
"custom/weather",
],
"modules-right": [
"custom/weather",
"idle_inhibitor",
"pulseaudio",
"custom/bluetooth",
"backlight",
"battery",
"custom/power-draw",
"network",
],
@ -1753,12 +1754,17 @@ https://github.com/Alexays/Waybar/wiki/Configuration
"custom/bluetooth": {
"format": "<span color='blue'>{}</span>",
"interval": 18000,
"interval": 30,
"exec": "my-i3b-bluetooth",
"exec-if": "ping openweathermap.org -c1",
"tooltip": "false",
"on-click": "sway-bluetooth",
},
"custom/power-draw": {
"format": "⚡<span color='gold'>{}</span>🔋",
"interval": 5,
"exec": "awk '{print $1*10^-6 \" W\"}' /sys/class/power_supply/BAT0/power_now",
"tooltip": "false",
},
}
#+end_src