From 304d163d74daaceb2305a929a894460bf3666c25 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 12 Nov 2024 06:43:20 +0100 Subject: [PATCH] ws --- bash/gsettings.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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}" }