This commit is contained in:
2025-03-25 01:47:41 +03:00
commit 6662c5f58c
17 changed files with 420 additions and 0 deletions

12
scripts/touchpad_toggle Executable file
View 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