scripts

shell scripts
git clone git://git.bitsmanent.org/scripts
Log | Files | Refs | README

commit 1a7bacddea272151c1c8153508d8fb87d6d16035
parent 009597ebc56f9b9eb278a2e1c0d5f45ad7be3511
Author: clamiax <smoppy@gmail.com>
Date:   Sun, 11 Jan 2015 12:31:45 +0100

Have a default button for xmessage

Diffstat:
Macpi | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/acpi b/acpi @@ -7,7 +7,8 @@ ACPLUGGED="$(cat $(du -a /sys/devices |grep 'AC0/online' |awk '{print $2}'))" LIDSTATE="$(cat /proc/acpi/button/lid/LID/state |awk '{print $2}')" warning() { - xmessage -center "WARNING: battery level is ${t}%" + L=" OK " + xmessage -center -buttons "$L" -default "$L" "WARNING: battery level is ${t}%" } suspend() {