From 245049d134096d6040db121c49c8327f9baa9f3d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 12 Apr 2009 23:31:34 +0200 Subject: Renamed check_nobat to check_ac, shortened check --- etc/functions/check_ac | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 etc/functions/check_ac (limited to 'etc/functions/check_ac') diff --git a/etc/functions/check_ac b/etc/functions/check_ac new file mode 100644 index 0000000..6ea4bb1 --- /dev/null +++ b/etc/functions/check_ac @@ -0,0 +1,3 @@ +## vim:ft=zsh +## check_ac - returns true if machine is running on AC +[[ $(cat /sys/class/power_supply/AC/online) == 1 ]] -- cgit v1.2.3