[ADD][I3] Touchpad toggle & display settings keys
This commit is contained in:
parent
b158a8a06e
commit
b03a14ba63
2 changed files with 15 additions and 0 deletions
11
scripts/toggle_touchpad
Executable file
11
scripts/toggle_touchpad
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#! /bin/sh
|
||||
|
||||
# Device id according to xinput list
|
||||
device=11
|
||||
state=$(xinput list-props "$device" | grep "Device Enabled" | grep -o "[01]$")
|
||||
|
||||
if [ "$state" == "1" ];then
|
||||
xinput --disable "$device"
|
||||
else
|
||||
xinput --enable "$device"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue