mirror of
https://github.com/FAUSheppy/config
synced 2025-12-11 09:08:32 +01:00
changed battery to also show remaining time and charing state
This commit is contained in:
@@ -120,8 +120,8 @@ hc pad $monitor $panel_height
|
|||||||
|
|
||||||
#powersupply
|
#powersupply
|
||||||
pwr="STATIC POWERSUPPLY"
|
pwr="STATIC POWERSUPPLY"
|
||||||
if [ $HOSTNAME ~= laptop ] || [$HOSTNAME ~= medion ] ; then
|
if [ $HOSTNAME == atlantislaptop ] || [$HOSTNAME == atlantismedion ] ; then
|
||||||
pwr="Power $(acpi -b) | sed -r 's/.* ([0-9]*%).*/\1/')"
|
pwr="$(acpi -b | sed -r 's/Battery [0-9]+: //')"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
right="^fg(#ff0000) $pwr $separator^bg() $date $separator"
|
right="^fg(#ff0000) $pwr $separator^bg() $date $separator"
|
||||||
|
|||||||
Reference in New Issue
Block a user