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

script to switch Mouse Handedness

This commit is contained in:
Eric Teunis de Boone 2016-11-14 20:54:01 +01:00
parent 9e50f1e41a
commit 53664cee57
2 changed files with 12 additions and 0 deletions

11
bin/mouse_handedness Executable file
View file

@ -0,0 +1,11 @@
#!/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"

1
bin/mousehand Symbolic link
View file

@ -0,0 +1 @@
mouse_handedness