ws
This commit is contained in:
parent
304d163d74
commit
3d784b81c4
1 changed files with 7 additions and 10 deletions
|
@ -1,12 +1,9 @@
|
|||
ws() {
|
||||
local boolean="${1}"
|
||||
if [ "${boolean}" = "1" ]; then
|
||||
boolean="true"
|
||||
else
|
||||
boolean="false"
|
||||
fi
|
||||
gsettings set \
|
||||
"org.gnome.mutter" \
|
||||
"workspaces-only-on-primary" \
|
||||
"${boolean}"
|
||||
local bool
|
||||
local group="org.gnome.mutter"
|
||||
local var="workspaces-only-on-primary"
|
||||
bool="$(gsettings get "${group}" "${var}")"
|
||||
bool="$(not "${bool}")"
|
||||
gsettings set "${group}" "${var}" "${bool}"
|
||||
log_info "${group}/${var}: ${bool}"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue