mirror of
https://github.com/rileyrg/linux-init.git
synced 2024-09-29 05:37:29 +02:00
waybar power-draw
This commit is contained in:
parent
647999bd55
commit
9e7a618ee6
2 changed files with 22 additions and 10 deletions
|
@ -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",
|
||||
},
|
||||
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue