instead of the sleep 1 loop (which may drain battery a bit from all the polling), maybe use:
while read file event do case "$file" in */volume) # take volume actions here ;; */brightness) # take brightness actions here ;; esac done < inotifywait -qm -e modify /proc/acpi/ibm/volume /proc/acpi/ibm/brightness it'll need inotify-tools installed... -- No notification when sliding audio volume, muting volume, sliding LCD brightness on X31, X32, T60, R50e, T42, R52 https://bugs.launchpad.net/bugs/357673 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs