From 60963cd20cf70f319c60a875ffc479e61b1a274d Mon Sep 17 00:00:00 2001 From: Miles Alan Date: Fri, 26 Jun 2020 19:56:15 -0500 Subject: [PATCH] Start lisgd via a script instead of directly so changing gestures is simpler --- scripts/core/sxmo_lisgdstart.sh | 15 +++++++++++++++ scripts/core/sxmo_rotate.sh | 4 ++-- scripts/core/sxmo_xinit.sh | 4 ++-- 3 files changed, 19 insertions(+), 4 deletions(-) create mode 100755 scripts/core/sxmo_lisgdstart.sh diff --git a/scripts/core/sxmo_lisgdstart.sh b/scripts/core/sxmo_lisgdstart.sh new file mode 100755 index 0000000..169745f --- /dev/null +++ b/scripts/core/sxmo_lisgdstart.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env sh +pkill -9 lisgd + +lisgd $@ \ + -g '1,LR,xdotool key --clearmodifiers Alt+Shift+e' \ + -g '1,RL,xdotool key --clearmodifiers Alt+Shift+r' \ + -g '1,DLUR,sxmo_vol.sh up' \ + -g '1,URDL,sxmo_vol.sh down' \ + -g '1,DRUL,sxmo_brightness.sh up' \ + -g '1,ULDR,sxmo_brightness.sh down' \ + -g '2,LR,xdotool key --clearmodifiers Alt+e' \ + -g '2,RL,xdotool key --clearmodifiers Alt+r' \ + -g '2,DU,pidof svkbd-sxmo || svkbd-sxmo &' \ + -g '2,UD,pkill -9 svkbd-sxmo' \ + & diff --git a/scripts/core/sxmo_rotate.sh b/scripts/core/sxmo_rotate.sh index 2eabfcd..9023b06 100755 --- a/scripts/core/sxmo_rotate.sh +++ b/scripts/core/sxmo_rotate.sh @@ -16,7 +16,7 @@ rotnormal() { xrandr -o normal applyptrmatrix 0 0 0 0 0 0 0 0 0 pkill lisgd - lisgd -o 0 & + sxmo_lisgdstart.sh -o 0 & exit 0 } @@ -24,7 +24,7 @@ rotright() { xrandr -o right applyptrmatrix 0 1 0 -1 0 1 0 0 1 pkill lisgd - lisgd -o 1 & + sxmo_lisgdstart.sh -o 1 & exit 0 } diff --git a/scripts/core/sxmo_xinit.sh b/scripts/core/sxmo_xinit.sh index cdae06d..0efa77f 100755 --- a/scripts/core/sxmo_xinit.sh +++ b/scripts/core/sxmo_xinit.sh @@ -16,7 +16,7 @@ xrdb /usr/share/sxmo/xresources_xcalc.xr synclient TapButton1=1 TapButton2=3 TapButton3=2 MinSpeed=0.25 # Kill old hanging daemons -pkill lisgd && pkill conky +pkill conky # Start daemons conky -c /usr/share/sxmo/conky.conf -d @@ -31,6 +31,6 @@ sxmo_statusbar.sh & # Startup dbus, dunst in dbus path, lisgd in dbus path, and finally dwm exec dbus-run-session sh -c " dunst -conf /usr/share/sxmo/dunst.conf & - lisgd & + sxmo_lisgdstart.sh & dwm 2> ~/.dwm.log "