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

12 lines
282 B
Text
Raw Normal View History

2016-11-14 20:54:01 +01:00
#!/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"