1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-12-21 16:53:33 +01:00
dotfiles/bin/mouse_handedness

11 lines
282 B
Bash
Executable file

#!/bin/bash
gsettings_key=org.cinnamon.settings-daemon.peripherals.mouse
current_setting=$(gsettings get $gsettings_key left-handed)
if [[ "$current_setting" == "true" ]]; then
new_setting=false
else
new_setting=true
fi
gsettings set $gsettings_key left-handed "$new_setting"