4

Execute a script after certain acpi events

view full story
linux-howto

https://bbs.archlinux.org – One can do this also with "acpi"create a script like this#!/bin/bash GetBatteryState=`/usr/bin/acpi -a |/bin/grep -c "off-line"` if [ $GetBatteryState -eq 1 ] then # do battery stuff here else # adapter stuff here ficall that script from /etc/rc.local bart_b https://bbs.archlinux.org/profile.php?id=61082 2012-07-25T23:15:50Z (HowTos)