summaryrefslogtreecommitdiffstats
path: root/lass/3modules
diff options
context:
space:
mode:
Diffstat (limited to 'lass/3modules')
-rw-r--r--lass/3modules/power-action.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/lass/3modules/power-action.nix b/lass/3modules/power-action.nix
index 06a31627..3116514a 100644
--- a/lass/3modules/power-action.nix
+++ b/lass/3modules/power-action.nix
@@ -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
'';