Contextual gesture for amfora

This make gestures convenient enough to use the app only with gestures.

All the scroll direction are used :

Prev link       Scroll Up     Open in new tab

Back prev page                Open link

Close tab       Scroll Down   Next Link

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
master
Stacy Harper 4 years ago committed by Maarten van Gompel
parent c7e0e3b656
commit f28a81a10c
  1. 36
      scripts/core/sxmo_inputhandler.sh
  2. 4
      scripts/core/sxmo_lisgdstart.sh

@ -113,6 +113,42 @@ case "$WMCLASS" in
;; ;;
esac esac
;; ;;
*"amfora"*)
case "$ACTION" in
"downright")
key Tab
exit 0
;;
"upleft")
key Shift+Tab
exit 0
;;
"down")
key d
exit 0
;;
"up")
key u
exit 0
;;
"right")
key Return
exit 0
;;
"upright")
key Ctrl+t
exit 0
;;
"left")
key b
exit 0
;;
"downleft")
key Ctrl+w
exit 0
;;
esac
;;
esac esac
esac esac

@ -47,6 +47,10 @@ else
-g '1,LR,*,*,sxmo_inputhandler.sh right' \ -g '1,LR,*,*,sxmo_inputhandler.sh right' \
-g '1,DU,*,*,sxmo_inputhandler.sh up' \ -g '1,DU,*,*,sxmo_inputhandler.sh up' \
-g '1,UD,*,*,sxmo_inputhandler.sh down' \ -g '1,UD,*,*,sxmo_inputhandler.sh down' \
-g '1,DRUL,*,*,sxmo_inputhandler.sh upleft' \
-g '1,URDL,*,*,sxmo_inputhandler.sh downleft' \
-g '1,DLUR,*,*,sxmo_inputhandler.sh upright' \
-g '1,ULDR,*,*,sxmo_inputhandler.sh downright' \
-g '2,RL,*,*,sxmo_inputhandler.sh twoleft' \ -g '2,RL,*,*,sxmo_inputhandler.sh twoleft' \
-g '2,LR,*,*,sxmo_inputhandler.sh tworight' \ -g '2,LR,*,*,sxmo_inputhandler.sh tworight' \
-g '2,DU,*,*,sxmo_inputhandler.sh twoup' \ -g '2,DU,*,*,sxmo_inputhandler.sh twoup' \

Loading…
Cancel
Save