mirror of
https://github.com/kastdeur/dotfiles.git
synced 2024-12-22 01:03:35 +01:00
script to switch Mouse Handedness
This commit is contained in:
parent
9e50f1e41a
commit
53664cee57
2 changed files with 12 additions and 0 deletions
11
bin/mouse_handedness
Executable file
11
bin/mouse_handedness
Executable 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
1
bin/mousehand
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
mouse_handedness
|
Loading…
Reference in a new issue