add button actions. Use with my dwm patch

fixed to pass shellcheck

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
master
Sam Bowlby 4 years ago committed by Maarten van Gompel
parent a3e4dc0fa4
commit a7e8b39165
  1. 34
      scripts/core/sxmo_gesturehandler.sh

@ -125,6 +125,40 @@ if [ "$HANDLE" -ne 0 ]; then
"back") "back")
xdotool key BackSpace xdotool key BackSpace
;; ;;
"powerbutton_one")
if echo "$WMCLASS" | grep -i "megapixels"; then
xdotool key --clearmodifiers "space"
else
sxmo_keyboard.sh toggle
fi
;;
"powerbutton_two")
sxmo_blinkled.sh blue && $TERMCMD -e "$SHELL"
;;
"powerbutton_three")
sxmo_blinkled.sh blue && $BROWSER
;;
"volup_one")
sxmo_appmenu.sh
;;
"volup_two")
sxmo_appmenu.sh sys
;;
"volup_three")
sxmo_lock.sh
;;
"voldown_one")
xdotool key --clearmodifiers Alt+space
;;
"voldown_two")
xdotool key --clearmodifiers Alt+Return
;;
"voldown_three")
sxmo_blinkled.sh red && xdotool windowkill "$(xdotool getactivewindow)"
;;
"voldown_four")
sxmo_blinkled.sh red & xdotool windowclose "$(xdotool getactivewindow)"
;;
*) *)
#fallback, just execute the command #fallback, just execute the command
"$@" "$@"

Loading…
Cancel
Save