From 003d02f226ea41eb845d86902cba5c6714e45265 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 21 Aug 2023 14:32:38 +0200 Subject: [PATCH] gsettings/ws --- bash/gsettings.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 bash/gsettings.sh diff --git a/bash/gsettings.sh b/bash/gsettings.sh new file mode 100644 index 0000000..1fd3b72 --- /dev/null +++ b/bash/gsettings.sh @@ -0,0 +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}" +}