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" ''
|
state = pkgs.writeDash "state" ''
|
||||||
if [ "$(cat /sys/class/power_supply/BAT0/status)" = "Charging" ]
|
if [ "$(cat /sys/class/power_supply/BAT0/status)" = "Discharging" ]
|
||||||
then echo "true"
|
then echo "false"
|
||||||
else echo "false"
|
else echo "true"
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user