commit 2e090bd0a7d54e12d0aebf75ca5a6a1f6e8adfd2
parent f25f0b19bce75ed89344d53f3602620808d5a9a2
Author: clamiax <smoppy@gmail.com>
Date: Wed, 17 Sep 2014 08:52:27 +0200
Find AC0/online automatically
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/acpi b/acpi
@@ -3,7 +3,7 @@
STATE=mem
BATTCRITIC=3
BATTWARNING=8
-ACPLUGGED="$(cat /sys/devices/pci0000:00/ACPI0003:00/power_supply/AC0/online)"
+ACPLUGGED="$(cat $(du -a /sys/devices |grep 'AC0/online' |awk '{print $2}'))"
LIDSTATE="$(cat /proc/acpi/button/lid/LID/state |awk '{print $2}')"
warning() {