#!/bin/bash # touchpad_toggle SETTING='org.cinnamon.settings-daemon.peripherals.touchpad touchpad-enabled' ENABLED=$(gsettings get ${SETTING}) if [[ 'true' = ${ENABLED} ]]; then gsettings set ${SETTING} false elif [[ 'false' = ${ENABLED} ]]; then gsettings set ${SETTING} true fi