i3 init
This commit is contained in:
11
.config/polybar/touchpad-indicator.sh
Executable file
11
.config/polybar/touchpad-indicator.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
touchpad_status=$(synclient | grep Touchpad | tail -c 2 | head -c 1 2> /dev/null)
|
||||
|
||||
if [ "$touchpad_status" = "1" ]; then
|
||||
echo "%{A1:synclient TouchpadOff=0:}%{F#404040}ﳶ%{F-} %{A}"
|
||||
elif [ "$touchpad_status" = "0" ]; then
|
||||
echo "%{A1:synclient TouchpadOff=1:}ﳶ %{A}"
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
Reference in New Issue
Block a user