use 2-finger swipe down to close window, 3 to kill window

master
Maarten van Gompel 4 years ago
parent db1c075973
commit 1145abb014
  1. 3
      scripts/core/sxmo_gesturehandler.sh
  2. 6
      scripts/core/sxmo_killwindow.sh
  3. 3
      scripts/core/sxmo_lisgdstart.sh

@ -89,6 +89,9 @@ if [ "$HANDLE" -ne 0 ]; then
"hidemenu") "hidemenu")
pkill -9 dmenu pkill -9 dmenu
;; ;;
"closewindow")
sxmo_killwindow.sh close
;;
"killwindow") "killwindow")
sxmo_killwindow.sh sxmo_killwindow.sh
;; ;;

@ -4,4 +4,8 @@
# shellcheck source=scripts/core/sxmo_common.sh # shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh" . "$(dirname "$0")/sxmo_common.sh"
xdotool windowkill "$(xdotool getactivewindow)" if [ "$1" = "close" ]; then
xdotool windowclose "$(xdotool getactivewindow)"
else
xdotool windowkill "$(xdotool getactivewindow)"
fi

@ -32,7 +32,8 @@ else
-g "1,UD,T,*,sxmo_gesturehandler.sh showmenu" \ -g "1,UD,T,*,sxmo_gesturehandler.sh showmenu" \
-g "1,DU,T,*,sxmo_gesturehandler.sh hidemenu" \ -g "1,DU,T,*,sxmo_gesturehandler.sh hidemenu" \
-g "2,UD,T,*,sxmo_gesturehandler.sh showsysmenu" \ -g "2,UD,T,*,sxmo_gesturehandler.sh showsysmenu" \
-g "2,UD,B,*,sxmo_gesturehandler.sh killwindow" \ -g "2,UD,B,*,sxmo_gesturehandler.sh closewindow" \
-g "3,UD,B,*,sxmo_gesturehandler.sh killwindow" \
-g '2,RL,*,*,sxmo_gesturehandler.sh moveprevdesktop' \ -g '2,RL,*,*,sxmo_gesturehandler.sh moveprevdesktop' \
-g '2,LR,*,*,sxmo_gesturehandler.sh movenextdesktop' \ -g '2,LR,*,*,sxmo_gesturehandler.sh movenextdesktop' \
-g '1,DU,R,L,sxmo_gesturehandler.sh scrollup_long' \ -g '1,DU,R,L,sxmo_gesturehandler.sh scrollup_long' \

Loading…
Cancel
Save