~mil/sxmo-utils

ref: dbc3b1ab509aab5f1db72c5cece2ee2a6eb521e8 sxmo-utils/scripts/core/sxmo_hotcorner.sh -rwxr-xr-x 354 bytes
dbc3b1abStacy Harper Allow the sendnewtextmenu to be used with a number as arg 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/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