init
This commit is contained in:
12
scripts/touchpad_toggle
Executable file
12
scripts/touchpad_toggle
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
touchpad_config=$(swaymsg -t get_inputs | jq -c '.[] | select(.type == "touchpad")')
|
||||
dwt_status=$(echo "$touchpad_config" | jq -r '.libinput.dwt')
|
||||
|
||||
if [ "$dwt_status" == "enabled" ]; then
|
||||
swaymsg input type:touchpad dwt disabled
|
||||
swaymsg input type:touchpad events disabled
|
||||
else
|
||||
swaymsg input type:touchpad dwt enabled
|
||||
swaymsg input type:touchpad events enabled
|
||||
fi
|
Reference in New Issue
Block a user