From c0d5db43cb762a6925847d1c2cbe36bfdb61e5df Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 2 Sep 2023 00:17:32 +0200 Subject: [PATCH 1/4] add nightthemeswitcher --- arch.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch.sh b/arch.sh index 3b27e43..c9e9946 100644 --- a/arch.sh +++ b/arch.sh @@ -56,7 +56,8 @@ main() { gnome-shell-extension-tiling-assistant \ gnome-shell-extension-quick-settings-tweaks-git \ epson-inkjet-printer-stylus-photo-px810fw-series \ - topgrade-bin ufw-docker texlive-latexindent-meta + topgrade-bin ufw-docker texlive-latexindent-meta \ + gnome-shell-extension-nightthemeswitcher # === Disable wayland == sed -i "s/#Wayland/Wayland/g" /etc/gdm/custom.conf From 5a7bb462f4c3b40170d52882df6ed7f27aff7e4a Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 2 Sep 2023 00:27:47 +0200 Subject: [PATCH 2/4] add location/enable dark theme switch and add extension after some gsettings definition --- arch.sh | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/arch.sh b/arch.sh index c9e9946..47e34a6 100644 --- a/arch.sh +++ b/arch.sh @@ -201,21 +201,6 @@ main() { fi # === Gnome configuration == - # Extensions - killall -HUP gnome-shell # restart gnome - gsettings set org.gnome.shell disable-user-extensions false # enable extensions globally - gsettings set org.gnome.shell disable-extension-version-validation true # legacy extension support - gnome-extensions enable dash-to-dock@micxgx.gmail.com - gnome-extensions enable ding@rastersoft.com - gnome-extensions enable x11gestures@joseexposito.github.io - gnome-extensions enable appindicatorsupport@rgcjonas.gmail.com - gnome-extensions enable no-overview@fthx - gnome-extensions enable gsconnect@andyholmes.github.io - gnome-extensions enable rounded-window-corners@yilozt - gnome-extensions enable AlphabeticalAppGrid@stuarthayhurst - gnome-extensions enable tiling-assistant@leleat-on-github - gnome-extensions enable quick-settings-tweaks@qwreey - # Nautilus keybinding custom_keybindings_list=$(gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings) if [[ $custom_keybindings_list == "@as []" ]] # creating new list if not exists @@ -247,6 +232,7 @@ main() { gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled true # mode "nuit" (lumière bleue) gsettings set org.gnome.desktop.peripherals.touchpad click-method areas # right click on laptop gsettings set org.gnome.desktop.peripherals.mouse speed -0.6 # mouse speed + gsettings set org.gnome.system.location enabled true # location # Default app Nautilus sed -i "s/inode\/directory=nautilus.desktop/inode\/directory=org.gnome.Nautilus.desktop/g" "$HOME"/.config/mimeapps.list @@ -257,6 +243,22 @@ main() { gsettings set org.gnome.desktop.wm.preferences theme Dracula gsettings set org.gnome.desktop.interface icon-theme "Dracula" + # Extensions + killall -HUP gnome-shell # restart gnome + gsettings set org.gnome.shell disable-user-extensions false # enable extensions globally + gsettings set org.gnome.shell disable-extension-version-validation true # legacy extension support + gnome-extensions enable dash-to-dock@micxgx.gmail.com + gnome-extensions enable ding@rastersoft.com + gnome-extensions enable x11gestures@joseexposito.github.io + gnome-extensions enable appindicatorsupport@rgcjonas.gmail.com + gnome-extensions enable no-overview@fthx + gnome-extensions enable gsconnect@andyholmes.github.io + gnome-extensions enable rounded-window-corners@yilozt + gnome-extensions enable AlphabeticalAppGrid@stuarthayhurst + gnome-extensions enable tiling-assistant@leleat-on-github + gnome-extensions enable quick-settings-tweaks@qwreey + gnome-extensions enable nightthemeswitcher@romainvigier.fr + # Configuration TextEditor gsettings set org.gnome.TextEditor style-scheme 'kate-dark' gsettings set org.gnome.TextEditor indent-style 'space' From fc45e511715db60545cfa8f1cada2d4dfb0506bd Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 2 Sep 2023 00:44:53 +0200 Subject: [PATCH 3/4] fix --- arch.sh | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/arch.sh b/arch.sh index 47e34a6..578dc7a 100644 --- a/arch.sh +++ b/arch.sh @@ -201,6 +201,24 @@ main() { fi # === Gnome configuration == + gsettings set org.gnome.system.location enabled true # location + + # Extensions + killall -HUP gnome-shell # restart gnome + gsettings set org.gnome.shell disable-user-extensions false # enable extensions globally + gsettings set org.gnome.shell disable-extension-version-validation true # legacy extension support + gnome-extensions enable dash-to-dock@micxgx.gmail.com + gnome-extensions enable ding@rastersoft.com + gnome-extensions enable x11gestures@joseexposito.github.io + gnome-extensions enable appindicatorsupport@rgcjonas.gmail.com + gnome-extensions enable no-overview@fthx + gnome-extensions enable gsconnect@andyholmes.github.io + gnome-extensions enable rounded-window-corners@yilozt + gnome-extensions enable AlphabeticalAppGrid@stuarthayhurst + gnome-extensions enable tiling-assistant@leleat-on-github + gnome-extensions enable quick-settings-tweaks@qwreey + gnome-extensions enable nightthemeswitcher@romainvigier.fr + # Nautilus keybinding custom_keybindings_list=$(gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings) if [[ $custom_keybindings_list == "@as []" ]] # creating new list if not exists @@ -232,7 +250,6 @@ main() { gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled true # mode "nuit" (lumière bleue) gsettings set org.gnome.desktop.peripherals.touchpad click-method areas # right click on laptop gsettings set org.gnome.desktop.peripherals.mouse speed -0.6 # mouse speed - gsettings set org.gnome.system.location enabled true # location # Default app Nautilus sed -i "s/inode\/directory=nautilus.desktop/inode\/directory=org.gnome.Nautilus.desktop/g" "$HOME"/.config/mimeapps.list @@ -243,22 +260,6 @@ main() { gsettings set org.gnome.desktop.wm.preferences theme Dracula gsettings set org.gnome.desktop.interface icon-theme "Dracula" - # Extensions - killall -HUP gnome-shell # restart gnome - gsettings set org.gnome.shell disable-user-extensions false # enable extensions globally - gsettings set org.gnome.shell disable-extension-version-validation true # legacy extension support - gnome-extensions enable dash-to-dock@micxgx.gmail.com - gnome-extensions enable ding@rastersoft.com - gnome-extensions enable x11gestures@joseexposito.github.io - gnome-extensions enable appindicatorsupport@rgcjonas.gmail.com - gnome-extensions enable no-overview@fthx - gnome-extensions enable gsconnect@andyholmes.github.io - gnome-extensions enable rounded-window-corners@yilozt - gnome-extensions enable AlphabeticalAppGrid@stuarthayhurst - gnome-extensions enable tiling-assistant@leleat-on-github - gnome-extensions enable quick-settings-tweaks@qwreey - gnome-extensions enable nightthemeswitcher@romainvigier.fr - # Configuration TextEditor gsettings set org.gnome.TextEditor style-scheme 'kate-dark' gsettings set org.gnome.TextEditor indent-style 'space' From 34d4384b1ddcb1f9dab5bdc07618ccd840736190 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 2 Sep 2023 00:56:28 +0200 Subject: [PATCH 4/4] add nightthemeswitcher prefs --- arch.sh | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/arch.sh b/arch.sh index 578dc7a..81a3206 100644 --- a/arch.sh +++ b/arch.sh @@ -201,7 +201,14 @@ main() { fi # === Gnome configuration == - gsettings set org.gnome.system.location enabled true # location + # Enable location + gsettings set org.gnome.system.location enabled true + + # Theme + gsettings set org.gnome.desktop.interface color-scheme prefer-dark + gsettings set org.gnome.desktop.interface gtk-theme Dracula + gsettings set org.gnome.desktop.wm.preferences theme Dracula + gsettings set org.gnome.desktop.interface icon-theme "Dracula" # Extensions killall -HUP gnome-shell # restart gnome @@ -232,6 +239,7 @@ main() { gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/nautilus-shortcut/ command "nautilus -w" # set command gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/nautilus-shortcut/ binding "E" # set shortcut + # Some Gnome configuration gsettings set org.gnome.shell.extensions.dash-to-dock click-action minimize # add minimized window on dock click gsettings set org.gnome.shell.extensions.dash-to-dock show-trash false # add Dash to Dock gsettings set org.gnome.shell.extensions.dash-to-dock show-apps-at-top true # apps button at left @@ -250,16 +258,14 @@ main() { gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled true # mode "nuit" (lumière bleue) gsettings set org.gnome.desktop.peripherals.touchpad click-method areas # right click on laptop gsettings set org.gnome.desktop.peripherals.mouse speed -0.6 # mouse speed + gsettings --schemadir /usr/share/gnome-shell/extensions/nightthemeswitcher@romainvigier.fr/schemas/ set org.gnome.shell.extensions.nightthemeswitcher.gtk-variants enabled true # enable GTK theme to change + gsettings --schemadir /usr/share/gnome-shell/extensions/nightthemeswitcher@romainvigier.fr/schemas/ set org.gnome.shell.extensions.nightthemeswitcher.commands sunset "set org.gnome.desktop.wm.preferences theme Dracula" # change gtk theme to dark at sunset + # gsettings --schemadir /usr/share/gnome-shell/extensions/nightthemeswitcher@romainvigier.fr/schemas/ set org.gnome.shell.extensions.nightthemeswitcher.shell-variants enabled true # change shell theme to dark at sunset + # gsettings --schemadir /usr/share/gnome-shell/extensions/nightthemeswitcher@romainvigier.fr/schemas/ set org.gnome.shell.extensions.nightthemeswitcher.shell-variants day "TODO" # change shell theme at sunrise # Default app Nautilus sed -i "s/inode\/directory=nautilus.desktop/inode\/directory=org.gnome.Nautilus.desktop/g" "$HOME"/.config/mimeapps.list - # Theme - gsettings set org.gnome.desktop.interface color-scheme prefer-dark - gsettings set org.gnome.desktop.interface gtk-theme Dracula - gsettings set org.gnome.desktop.wm.preferences theme Dracula - gsettings set org.gnome.desktop.interface icon-theme "Dracula" - # Configuration TextEditor gsettings set org.gnome.TextEditor style-scheme 'kate-dark' gsettings set org.gnome.TextEditor indent-style 'space'