fix: make gesture script do touch fix only when touchscreen is used
This commit is contained in:
parent
7f4bf28974
commit
8eabd0d05a
4 changed files with 11 additions and 6 deletions
|
@ -5,8 +5,9 @@
|
||||||
|
|
||||||
function gestures {
|
function gestures {
|
||||||
lisgd -d /dev/input/by-path/platform-AMDI0010\:00-event -o 0 -t 125 -r 25 -m 3200 \
|
lisgd -d /dev/input/by-path/platform-AMDI0010\:00-event -o 0 -t 125 -r 25 -m 3200 \
|
||||||
-g "3,RL,N,S,R,$HOME/.config/sway/scripts/gestures.sh next" \
|
-g "3,RL,N,*,R,$HOME/.config/sway/scripts/gestures.sh next touch" \
|
||||||
-g "3,LR,N,S,R,$HOME/.config/sway/scripts/gestures.sh prev"
|
-g "3,LR,N,*,R,$HOME/.config/sway/scripts/gestures.sh prev touch" \
|
||||||
|
-g "1,DU,B,*,R,$HOME/.config/sway/scripts/tablet/osk-toggle.sh"
|
||||||
}
|
}
|
||||||
|
|
||||||
if pgrep lisgd ; then
|
if pgrep lisgd ; then
|
||||||
|
|
|
@ -42,7 +42,7 @@ bar {
|
||||||
# execs
|
# execs
|
||||||
exec bash -c "sleep 3; nm-tray"
|
exec bash -c "sleep 3; nm-tray"
|
||||||
exec eww daemon
|
exec eww daemon
|
||||||
exec $HOME/.config/lisgd/config
|
exec_always $HOME/.config/lisgd/config
|
||||||
exec sudo input-emulator start touch --x-max 1920 --y-max 1200 --slots 4
|
exec sudo input-emulator start touch --x-max 1920 --y-max 1200 --slots 4
|
||||||
|
|
||||||
exec dbus-update-activation-environment --all
|
exec dbus-update-activation-environment --all
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
SIDE="$1"
|
SIDE="$1"
|
||||||
|
TOUCH="$2"
|
||||||
workspaces=($(swaymsg -t get_workspaces | jq '.[] | .num'))
|
workspaces=($(swaymsg -t get_workspaces | jq '.[] | .num'))
|
||||||
list_focused=($(swaymsg -t get_workspaces | jq '.[] | .focused'))
|
list_focused=($(swaymsg -t get_workspaces | jq '.[] | .focused'))
|
||||||
|
|
||||||
|
@ -32,5 +33,8 @@ elif [[ $SIDE == "prev" ]]; then
|
||||||
elif [[ $SIDE == "next" ]]; then
|
elif [[ $SIDE == "next" ]]; then
|
||||||
swaymsg workspace $[$current_workspace + 1]
|
swaymsg workspace $[$current_workspace + 1]
|
||||||
fi
|
fi
|
||||||
sleep 0.2
|
|
||||||
sudo input-emulator touch tap 1280 720
|
if [[ $TOUCH == "touch" ]]
|
||||||
|
sleep 0.2
|
||||||
|
sudo input-emulator touch tap 1280 720
|
||||||
|
fi
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
* {
|
* {
|
||||||
border: none;
|
border: none;
|
||||||
/*font-family: 'SF Mono', Consolas, 'Font Awesome 5 Free Solid', Roboto;*/
|
/*font-family: 'SF Mono', Consolas, 'Font Awesome 5 Free Solid', Roboto;*/
|
||||||
font-family: UbuntuMono;
|
font-family: Product Sans;
|
||||||
font-size: 18px
|
font-size: 18px
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue