~mil/sxmo-devel

sxmo-utils: add button actions. Use with my dwm patch v3 APPLIED

Sam Bowlby: 1
  add button actions. Use with my dwm patch

 1 files changed, 34 insertions(+), 0 deletions(-)
#479947 .build.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~mil/sxmo-devel/patches/21878/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH sxmo-utils v3] add button actions. Use with my dwm patch Export this patch

fixed to pass shellcheck

---
 scripts/core/sxmo_gesturehandler.sh | 34 +++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/scripts/core/sxmo_gesturehandler.sh b/scripts/core/sxmo_gesturehandler.sh
index 0a80c91..d263dfe 100755
--- a/scripts/core/sxmo_gesturehandler.sh
+++ b/scripts/core/sxmo_gesturehandler.sh
@@ -125,6 +125,40 @@ if [ "$HANDLE" -ne 0 ]; then
		"back")
			xdotool key BackSpace
			;;
		"powerbutton_one")
			if echo "$WMCLASS" | grep -i "megapixels"; then
				xdotool key --clearmodifiers "space"
			else
				sxmo_keyboard.sh toggle
			fi
			;;
		"powerbutton_two")
			sxmo_blinkled.sh blue && $TERMCMD -e "$SHELL"
			;;
		"powerbutton_three")
			sxmo_blinkled.sh blue && $BROWSER
			;;
		"volup_one")
			sxmo_appmenu.sh
			;;
		"volup_two")
			sxmo_appmenu.sh sys
			;;
		"volup_three")
			sxmo_lock.sh
			;;
		"voldown_one")
			xdotool key --clearmodifiers Alt+space
			;;
		"voldown_two")
			xdotool key --clearmodifiers Alt+Return	
			;;
		"voldown_three")
			sxmo_blinkled.sh red && xdotool windowkill "$(xdotool getactivewindow)"
			;;
		"voldown_four")
			sxmo_blinkled.sh red & xdotool windowclose "$(xdotool getactivewindow)"
			;;
		*)
			#fallback, just execute the command
			"$@"
-- 
2.31.1
builds.sr.ht
sxmo-utils/patches/.build.yml: SUCCESS in 22s

[ add button actions. Use with my dwm patch][0] v3 from [Sam Bowlby][1]

[0]: https://lists.sr.ht/~mil/sxmo-devel/patches/21878
[1]: mailto:sam@chven.us

✓ #479947 SUCCESS sxmo-utils/patches/.build.yml https://builds.sr.ht/~mil/job/479947