diff options
author | lassulus <lass@aidsballs.de> | 2016-06-28 17:39:03 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2016-06-28 17:41:15 +0200 |
commit | 885ded6ca93837c17631e983eaffcf8f4a9aee8b (patch) | |
tree | e419773ccc6c8f31d2b98ddef3f7d250e248e6ed /lass/3modules | |
parent | a15bd43f00c2513db918c9dd876325cedaa5a79f (diff) |
l 3 power-action: reverse status check
Diffstat (limited to 'lass/3modules')
-rw-r--r-- | lass/3modules/power-action.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lass/3modules/power-action.nix b/lass/3modules/power-action.nix index 06a316270..3116514a8 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 ''; |