mirror of
https://github.com/kastdeur/dotfiles.git
synced 2024-11-18 09:23:31 +01:00
12 lines
282 B
Text
12 lines
282 B
Text
|
#!/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"
|