Update: Added new modules to polybar, edited i3 config, added rofi-powermenu and touchpad_toggle scripts.

This commit is contained in:
Keyitdev
2025-07-24 11:45:13 +02:00
parent 7dcd9a13ad
commit 7e2ab9aac4
4 changed files with 113 additions and 28 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
touchad_id=$(xinput list | grep -i 'touchpad' | grep -oP 'id=\K\d+')
if [ -z "$touchad_id" ]; then
dunstify -a "Touchpad" "Touchpad" "Touchpad not found" -r 100
exit 1
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
else
xinput enable "$touchad_id"
dunstify -a "Touchpad" "Touchpad" "Touchpad is enabled" -r 100
fi