[UPDATE][SCRIPT] Remove underscore in script name
This commit is contained in:
parent
db50d0a7d9
commit
13e2ea1b6a
2 changed files with 1 additions and 1 deletions
|
|
@ -1,13 +0,0 @@
|
|||
#! /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"
|
||||
notify-send -t 500 -u low "Toggled touchpad (disabled)"
|
||||
else
|
||||
xinput --enable "$device"
|
||||
notify-send -t 500 -u low "Toggled touchpad (enabled)"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue