-
-
Save ivoarch/88e1d8636e468c6af295 to your computer and use it in GitHub Desktop.
Toggle touchpad activation with gsettings.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# touchpad-toggle: Toggle touchpad activation with gsettings. | |
# Copyright (C) 2015 Guillaume Kulakowski <[email protected]> | |
# Version 1.0 | |
# | |
SCHEMA="org.gnome.desktop.peripherals.touchpad" | |
KEY="send-events" | |
STATUS=$(gsettings get ${SCHEMA} ${KEY}) | |
if [ "${STATUS}" == "'enabled'" ]; then | |
gsettings set ${SCHEMA} ${KEY} 'disabled' | |
else | |
gsettings set ${SCHEMA} ${KEY} 'enabled' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment