~mil/sxmo-utils

d8e19504f68029b258d827fda36dd1cd951bc7ff — Nguyễn Gia Phong 1 year, 2 days ago 200ecfa
Use Super as dwm modifier key

Signed-off-by: Stacy Harper <contact@stacyharper.net>
M scripts/core/sxmo_appmenu.sh => scripts/core/sxmo_appmenu.sh +1 -1
@@ 133,7 133,7 @@ programchoicesinit() {
				printf %b "Off → On" ||  printf %b "On → Off";
				printf %b "^ 1 ^ sxmo_flashtoggle.sh"
			)
			$icon_cfg Bar Toggle                 ^ 1 ^ key Alt+b
			$icon_cfg Bar Toggle                 ^ 1 ^ key Super+b
			$icon_cfg Invert Colors              ^ 1 ^ xcalib -a -invert
			$icon_clk Change Timezone            ^ 1 ^ sxmo_timezonechange.sh
			$icon_ror Autorotate $(

M scripts/core/sxmo_gpsutil.sh => scripts/core/sxmo_gpsutil.sh +2 -2
@@ 65,8 65,8 @@ killexistingfoxtrotgps() {
	WMCLASS="$(xprop -id "$ACTIVEWIN" | grep WM_CLASS | cut -d ' ' -f3-)"
	if echo "$WMCLASS" | grep -i foxtrot; then
		# E.g. by focusing back and refocuing forward we preserve ordering in stack
		xdotool key Alt+k
		xdotool key Alt+j
		xdotool key Super+k
		xdotool key Super+j
		xdotool windowkill "$ACTIVEWIN" && return 0
		return 1
	else

M scripts/core/sxmo_inputhandler.sh => scripts/core/sxmo_inputhandler.sh +6 -6
@@ 53,16 53,16 @@ if [ "$HANDLE" -ne 0 ]; then
	#standard handling
	case "$ACTION" in
		"prevdesktop")
			xdotool key --clearmodifiers Alt+Shift+e
			xdotool key --clearmodifiers Super+Shift+e
			;;
		"nextdesktop")
			xdotool key --clearmodifiers Alt+Shift+r
			xdotool key --clearmodifiers Super+Shift+r
			;;
		"moveprevdesktop")
			xdotool key --clearmodifiers Alt+e
			xdotool key --clearmodifiers Super+e
			;;
		"movenextdesktop")
			xdotool key --clearmodifiers Alt+r
			xdotool key --clearmodifiers Super+r
			;;
		"unmute")
			sxmo_vol.sh unmute &


@@ 156,10 156,10 @@ if [ "$HANDLE" -ne 0 ]; then
			sxmo_lock.sh
			;;
		"voldown_one")
			xdotool key --clearmodifiers Alt+space
			xdotool key --clearmodifiers Super+space
			;;
		"voldown_two")
			xdotool key --clearmodifiers Alt+Return
			xdotool key --clearmodifiers Super+Return
			;;
		"voldown_three")
			sxmo_blinkled.sh red && xdotool windowkill "$(xdotool getactivewindow)"