dotfiles/.scripts/trackpad.sh
Sravan Balaji 3846f5f516 Rofi Menu Back and Quit Options & Startup Script in Control Center
- Add startup processes script to control center
- Add a "back" and "quit" rofi menu option where back exits
  current menu, leaving the option to return to previous
  menu that called it. Quit kills all rofi processes.
2021-08-19 17:34:23 -04:00

12 lines
285 B
Bash
Executable File

#!/bin/bash
trackpad_id=13
if xinput list-props $trackpad_id | grep "Device Enabled (.*):.*1" >/dev/null
then
xinput disable $trackpad_id
notify-send -u low -i mouse "Trackpad disabled"
else
xinput enable $trackpad_id
notify-send -u low -i mouse "Trackpad enabled"
fi