[sxhkd] shortcut for [dis/en]abling the touchpad
[~bandali/configs] / sxhkd / .local / bin / toggle-mouse
... / ...
CommitLineData
1#!/bin/bash
2
3touchpad_off="$(synclient -l | grep TouchpadOff | cut -d'=' -f 2 | xargs)"
4
5if [ "$touchpad_off" = "0" ]; then
6 synclient TouchpadOff=1
7 unclutter -idle 1 &
8else
9 synclient TouchpadOff=0
10 killall unclutter
11fi