summaryrefslogtreecommitdiffstats
path: root/sxhkd/.local/bin/toggle-mouse
blob: 906fdbb09f0bd782c9b11439ea36984f68876d53 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

touchpad_off="$(synclient -l | grep TouchpadOff | cut -d'=' -f 2 | xargs)"

if [ "$touchpad_off" = "0" ]; then
    synclient TouchpadOff=1
    unclutter -idle 1 &
else
    synclient TouchpadOff=0
    killall unclutter
fi