From f3a1dab4d4d792f6c78708837928088e08d47721 Mon Sep 17 00:00:00 2001 From: Tommy Date: Fri, 19 Jan 2024 23:36:53 -0700 Subject: [PATCH] Adjust button layout Signed-off-by: Tommy --- Fedora-Workstation-39.sh | 7 +++---- Ubuntu-22.04-Desktop.sh | 7 +++---- etc/dconf/db/local.d/button-layout | 2 ++ 3 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 etc/dconf/db/local.d/button-layout diff --git a/Fedora-Workstation-39.sh b/Fedora-Workstation-39.sh index 2c1b691..08d1fe4 100644 --- a/Fedora-Workstation-39.sh +++ b/Fedora-Workstation-39.sh @@ -83,6 +83,8 @@ sudo systemctl restart NetworkManager unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/dconf/db/local.d/automount-disable | sudo tee /etc/dconf/db/local.d/automount-disable unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/dconf/db/local.d/locks/automount-disable | sudo tee /etc/dconf/db/local.d/locks/automount-disable unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/dconf/db/local.d/prefer-dark | sudo tee /etc/dconf/db/local.d/prefer-dark +unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/dconf/db/local.d/button-layout | sudo tee /etc/dconf/db/local.d/button-layout +sudo chmod 644 /etc/dconf/db/local.d/* sudo dconf update # Setup ZRAM @@ -208,7 +210,4 @@ if [ "$virt_type" = '' ] || [ "${MACHINE_TYPE}" == 'x86_64' ]; then fi fi -output 'The script is done. You can also remove gnome-terminal since gnome-console will replace it.' - -#Enable Titlebar buttons -gsettings set org.gnome.desktop.wm.preferences button-layout 'appmenu:minimize,maximize,close' \ No newline at end of file +output 'The script is done. You can also remove gnome-terminal since gnome-console will replace it.' \ No newline at end of file diff --git a/Ubuntu-22.04-Desktop.sh b/Ubuntu-22.04-Desktop.sh index ad14bc6..ef32db9 100644 --- a/Ubuntu-22.04-Desktop.sh +++ b/Ubuntu-22.04-Desktop.sh @@ -92,6 +92,8 @@ unpriv curl https://gitlab.com/divested/brace/-/raw/master/brace/usr/lib/systemd unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Script/main/etc/dconf/db/local.d/automount-disable | sudo tee /etc/dconf/db/local.d/automount-disable unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Script/main/etc/dconf/db/local.d/locks/automount-disable | sudo tee /etc/dconf/db/local.d/locks/automount-disable unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/dconf/db/local.d/prefer-dark | sudo tee /etc/dconf/db/local.d/prefer-dark +unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/dconf/db/local.d/button-layout | sudo tee /etc/dconf/db/local.d/button-layout +sudo chmod 644 /etc/dconf/db/local.d/* sudo dconf update # Disable crash reports @@ -136,7 +138,4 @@ sudo hostnamectl --transient hostname '' # Enable fstrim.timer sudo apt install tuned -y -sudo systemctl enable --now fstrim.timer - -#Enable Titlebar buttons -gsettings set org.gnome.desktop.wm.preferences button-layout 'appmenu:minimize,maximize,close' \ No newline at end of file +sudo systemctl enable --now fstrim.timer \ No newline at end of file diff --git a/etc/dconf/db/local.d/button-layout b/etc/dconf/db/local.d/button-layout new file mode 100644 index 0000000..15afe7c --- /dev/null +++ b/etc/dconf/db/local.d/button-layout @@ -0,0 +1,2 @@ +[org/gnome/desktop/wm/preferences] +color-scheme='appmenu:minimize,maximize,close' \ No newline at end of file