[vim] change cursor shape based on mode
[~bandali/configs] / sxhkd / .local / bin / toggle-mouse
1 #!/bin/bash
2
3 touchpad_off="$(synclient -l | grep TouchpadOff | cut -d'=' -f 2 | xargs)"
4
5 if [ "$touchpad_off" = "0" ]; then
6 synclient TouchpadOff=1
7 unclutter -idle 1 &
8 else
9 synclient TouchpadOff=0
10 killall unclutter
11 fi