l 3 power-action: reverse status check
This commit is contained in:
parent
a15bd43f00
commit
885ded6ca9
@ -84,9 +84,9 @@ let
|
||||
'';
|
||||
|
||||
state = pkgs.writeDash "state" ''
|
||||
if [ "$(cat /sys/class/power_supply/BAT0/status)" = "Charging" ]
|
||||
then echo "true"
|
||||
else echo "false"
|
||||
if [ "$(cat /sys/class/power_supply/BAT0/status)" = "Discharging" ]
|
||||
then echo "false"
|
||||
else echo "true"
|
||||
fi
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user