diff --git a/bash/gsettings.sh b/bash/gsettings.sh index 1fd3b72..e7e6a9d 100644 --- a/bash/gsettings.sh +++ b/bash/gsettings.sh @@ -1,12 +1,12 @@ -function ws { -local boolean="${1}" - if [ "${boolean}" == '1' ] ; then - boolean='true' - else - boolean='false' - fi - gsettings 'set' \ - 'org.gnome.mutter' \ - 'workspaces-only-on-primary' \ - "${boolean}" +ws() { + local boolean="${1}" + if [ "${boolean}" = "1" ]; then + boolean="true" + else + boolean="false" + fi + gsettings set \ + "org.gnome.mutter" \ + "workspaces-only-on-primary" \ + "${boolean}" }