Update: Added listeners, and more shortcuts to i3 config.

This commit is contained in:
Keyitdev
2025-07-24 20:41:55 +02:00
parent 7e2ab9aac4
commit 17c8a55bbb
6 changed files with 119 additions and 9 deletions
+1 -2
View File
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
touchad_id=$(xinput list | grep -i 'touchpad' | grep -oP 'id=\K\d+')
@@ -9,7 +9,6 @@ fi
state=$(xinput list-props "$touchad_id" | grep "Device Enabled" | grep -o "[01]$")
# Przełącz stan touchpada
if [ "$state" -eq 1 ]; then
xinput disable "$touchad_id"
dunstify -a "Touchpad" "Touchpad" "Touchpad is disabled" -r 100