You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 5 години
12345678910111213141516171819202122
  1. #!/usr/bin/env sh
  2. #
  3. # pbrisbin 2014 - called directly from /etc/acpi/handler.sh
  4. #
  5. ###
  6. bin="$(dirname "$0")"
  7. case "$1" in
  8. battery) "$bin"/runx "$bin"/osb ;;
  9. button/screenlock) "$bin"/runx slock ;;
  10. video/brightnessdown) "$bin"/bl d ;;
  11. video/brightnessup) "$bin"/bl u ;;
  12. # Mic mute
  13. button/f20) amixer sset Capture toggle ;;
  14. # Ignored events
  15. ac_adapter|*/volume*|*/mute) : ;;
  16. ibm/hotkey|thermal_zone) : ;;
  17. *) "$bin"/runx notify-send -i 'emblem-important' 'ACPI action' "$*" ;;
  18. esac