Start lisgd via a script instead of directly so changing gestures is simpler

master
Miles Alan 4 years ago
parent 061d253838
commit 60963cd20c
  1. 15
      scripts/core/sxmo_lisgdstart.sh
  2. 4
      scripts/core/sxmo_rotate.sh
  3. 4
      scripts/core/sxmo_xinit.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' \
&

@ -16,7 +16,7 @@ rotnormal() {
xrandr -o normal xrandr -o normal
applyptrmatrix 0 0 0 0 0 0 0 0 0 applyptrmatrix 0 0 0 0 0 0 0 0 0
pkill lisgd pkill lisgd
lisgd -o 0 & sxmo_lisgdstart.sh -o 0 &
exit 0 exit 0
} }
@ -24,7 +24,7 @@ rotright() {
xrandr -o right xrandr -o right
applyptrmatrix 0 1 0 -1 0 1 0 0 1 applyptrmatrix 0 1 0 -1 0 1 0 0 1
pkill lisgd pkill lisgd
lisgd -o 1 & sxmo_lisgdstart.sh -o 1 &
exit 0 exit 0
} }

@ -16,7 +16,7 @@ xrdb /usr/share/sxmo/xresources_xcalc.xr
synclient TapButton1=1 TapButton2=3 TapButton3=2 MinSpeed=0.25 synclient TapButton1=1 TapButton2=3 TapButton3=2 MinSpeed=0.25
# Kill old hanging daemons # Kill old hanging daemons
pkill lisgd && pkill conky pkill conky
# Start daemons # Start daemons
conky -c /usr/share/sxmo/conky.conf -d 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 # Startup dbus, dunst in dbus path, lisgd in dbus path, and finally dwm
exec dbus-run-session sh -c " exec dbus-run-session sh -c "
dunst -conf /usr/share/sxmo/dunst.conf & dunst -conf /usr/share/sxmo/dunst.conf &
lisgd & sxmo_lisgdstart.sh &
dwm 2> ~/.dwm.log dwm 2> ~/.dwm.log
" "

Loading…
Cancel
Save