Update battery module for polybar
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
e02b89e0eb
commit
6708822de7
2 changed files with 2 additions and 4 deletions
|
@ -143,7 +143,7 @@ click-left = xdg-open https://mail.google.com
|
|||
[module/battery]
|
||||
type = internal/battery
|
||||
full-at = 99
|
||||
battery = ${env:POLYBAR_BATTERY}
|
||||
battery = BAT0
|
||||
adapter = AC
|
||||
time-format = %H:%M
|
||||
|
||||
|
@ -173,7 +173,7 @@ interval = 5
|
|||
poll-interval = 5
|
||||
|
||||
[module/battery2]
|
||||
battery = BAT0
|
||||
battery = BAT1
|
||||
inherit = module/battery
|
||||
|
||||
|
||||
|
|
|
@ -19,11 +19,9 @@ killall -q polybar
|
|||
while pgrep -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
if [ "${IS_WORK}" = "1" ]; then
|
||||
export POLYBAR_BATTERY="BAT1"
|
||||
export POLYBAR_WLAN="wlp4s0"
|
||||
export POLYBAR_NETWORK="enp0s20f0u1u1i5"
|
||||
else
|
||||
export POLYBAR_BATTERY="BAT0"
|
||||
export POLYBAR_WLAN="wlp3s0"
|
||||
export POLYBAR_NETWORK="enp0s31f6"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue