Renamed sxmo_gesturehandler.sh to sxmo_inputhandler.sh (after Sam Bowly's patches), renamed gesture hook to inputhandler hook. Removed hotcorner script and powerbutton scripts and their hooks (now all handled by inputhandler and its hook).
parent
a7e8b39165
commit
21379b7914
4 changed files with 42 additions and 70 deletions
@ -1,25 +0,0 @@ |
|||||||
#!/usr/bin/env sh |
|
||||||
if [ -z "$1" ]; then |
|
||||||
exit 1 |
|
||||||
else |
|
||||||
CORNER="$1" |
|
||||||
fi |
|
||||||
|
|
||||||
if [ -x "$XDG_CONFIG_HOME/sxmo/hooks/hotcorner_$CORNER" ]; then |
|
||||||
"$XDG_CONFIG_HOME/sxmo/hooks/hotcorner_$CORNER" |
|
||||||
exit $? |
|
||||||
fi |
|
||||||
|
|
||||||
case "$CORNER" in |
|
||||||
"topleft") |
|
||||||
sxmo_appmenu.sh sys & |
|
||||||
;; |
|
||||||
"topright") |
|
||||||
;; |
|
||||||
"bottomleft") |
|
||||||
sxmo_lock.sh & |
|
||||||
;; |
|
||||||
"bottomright") |
|
||||||
sxmo_rotate.sh & |
|
||||||
;; |
|
||||||
esac |
|
@ -1,17 +0,0 @@ |
|||||||
#!/usr/bin/env sh |
|
||||||
|
|
||||||
# include common definitions |
|
||||||
# shellcheck source=scripts/core/sxmo_common.sh |
|
||||||
. "$(dirname "$0")/sxmo_common.sh" |
|
||||||
|
|
||||||
if [ -x "$XDG_CONFIG_HOME/sxmo/hooks/powerbutton" ]; then |
|
||||||
"$XDG_CONFIG_HOME/sxmo/hooks/powerbutton" |
|
||||||
else |
|
||||||
XPROPOUT="$(xprop -id "$(xdotool getactivewindow)")" |
|
||||||
WMCLASS="${1:-$(echo "$XPROPOUT" | grep WM_CLASS | cut -d ' ' -f3-)}" |
|
||||||
if echo "$WMCLASS" | grep -i "megapixels"; then |
|
||||||
xdotool key --clearmodifiers "space" |
|
||||||
else |
|
||||||
sxmo_keyboard.sh toggle |
|
||||||
fi |
|
||||||
fi |
|
Loading…
Reference in new issue