Prefix one finger gesture with "one"

This make input handling matching more consistent.

Take this example :

You want to bind one finger left gesture to something with all the
distance (short, medium and long) so you now can match *"oneleft" to
match "longoneleft", "mediumoneleft", "oneleft".
Without the "one" you would use *"left" which also match "twoleft" and
this override the "move to another workspace gesture.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
master
Stacy Harper 3 years ago committed by Maarten van Gompel
parent 1d9821c2a4
commit 99d226929b
  1. 16
      configs/default_hooks/lisgdstart
  2. 12
      scripts/core/sxmo_inputhandler.sh

@ -39,10 +39,18 @@ lisgd "$@" -t "$LISGD_THRESHOLD" -T "$LISGD_THRESHOLD_PRESSED" \
-g '1,UD,R,*,P,sxmo_inputhandler.sh downrightcorner' \ -g '1,UD,R,*,P,sxmo_inputhandler.sh downrightcorner' \
-g '1,LR,R,S,sxmo_inputhandler.sh rightrightcorner_short' \ -g '1,LR,R,S,sxmo_inputhandler.sh rightrightcorner_short' \
-g '1,RL,L,S,sxmo_inputhandler.sh leftrightcorner_short' \ -g '1,RL,L,S,sxmo_inputhandler.sh leftrightcorner_short' \
-g '1,RL,*,*,sxmo_inputhandler.sh left' \ -g '1,RL,*,L,sxmo_inputhandler.sh longoneleft' \
-g '1,LR,*,*,sxmo_inputhandler.sh right' \ -g '1,LR,*,L,sxmo_inputhandler.sh longoneright' \
-g '1,DU,*,*,sxmo_inputhandler.sh up' \ -g '1,DU,*,L,sxmo_inputhandler.sh longoneup' \
-g '1,UD,*,*,sxmo_inputhandler.sh down' \ -g '1,UD,*,L,sxmo_inputhandler.sh longonedown' \
-g '1,RL,*,M,sxmo_inputhandler.sh mediumoneleft' \
-g '1,LR,*,M,sxmo_inputhandler.sh mediumoneright' \
-g '1,DU,*,M,sxmo_inputhandler.sh mediumoneup' \
-g '1,UD,*,M,sxmo_inputhandler.sh mediumonedown' \
-g '1,RL,*,*,sxmo_inputhandler.sh oneleft' \
-g '1,LR,*,*,sxmo_inputhandler.sh oneright' \
-g '1,DU,*,*,sxmo_inputhandler.sh oneup' \
-g '1,UD,*,*,sxmo_inputhandler.sh onedown' \
-g '1,DRUL,*,*,sxmo_inputhandler.sh upleft' \ -g '1,DRUL,*,*,sxmo_inputhandler.sh upleft' \
-g '1,URDL,*,*,sxmo_inputhandler.sh downleft' \ -g '1,URDL,*,*,sxmo_inputhandler.sh downleft' \
-g '1,DLUR,*,*,sxmo_inputhandler.sh upright' \ -g '1,DLUR,*,*,sxmo_inputhandler.sh upright' \

@ -95,11 +95,11 @@ case "$WMCLASS" in
type d type d
exit 0 exit 0
;; ;;
"left") *"oneleft")
typeenter ":n" typeenter ":n"
exit 0 exit 0
;; ;;
"right") *"oneright")
typeenter ":p" typeenter ":p"
exit 0 exit 0
;; ;;
@ -115,15 +115,15 @@ case "$WMCLASS" in
key Shift+Tab key Shift+Tab
exit 0 exit 0
;; ;;
"down") *"onedown")
key d key d
exit 0 exit 0
;; ;;
"up") *"oneup")
key u key u
exit 0 exit 0
;; ;;
"right") *"oneright")
key Return key Return
exit 0 exit 0
;; ;;
@ -131,7 +131,7 @@ case "$WMCLASS" in
key Ctrl+t key Ctrl+t
exit 0 exit 0
;; ;;
"left") *"oneleft")
key b key b
exit 0 exit 0
;; ;;

Loading…
Cancel
Save