Update dconf-accent.sh

This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2023-10-15 21:06:50 +03:00 committed by GitHub
parent b51bb875c2
commit 2734608b4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,29 +1,19 @@
#! /usr/bin/bash #! /usr/bin/bash
gnome-extensions enable pika-darkmode@pika.com gnome-extensions enable user-theme@gnome-shell-extensions.gcampax.github.com
dconf write /org/gnome/shell/extensions/nightthemeswitcher/time/manual-time-source true
dconf write /org/gnome/shell/extensions/nightthemeswitcher/time/ondemand-button-placement "'none'"
dconf write /org/gnome/shell/extensions/nightthemeswitcher/time/time-source "'ondemand'"
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/enabled true
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/enabled true
dconf write /org/pika/layouts/pika-theme 1
dconf write /org/gnome/shell/extensions/nightthemeswitcher/commands/enabled true
dconf write /org/gnome/shell/extensions/nightthemeswitcher/commands/sunrise "'pika-gnome-theme'"
dconf write /org/gnome/shell/extensions/nightthemeswitcher/commands/sunset "'pika-gnome-theme dark'"
if [[ $1 == Teal ]] if [[ $1 == Teal ]]
then then
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/day "'Jasper-Light'" if dconf read /org/gnome/desktop/interface/color-scheme | grep dark
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/night "'Jasper-Dark'" then
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/day "'Jasper-Light'" gdbus call --session --dest 'org.gnome.Shell' --object-path '/org/gnome/Shell' --method 'org.gnome.Shell.ScreenTransition' & gsettings set org.gnome.shell.extensions.user-theme name "Jasper-Dark" && gsettings set org.gnome.desktop.interface gtk-theme "Jasper-Dark" && cp -rfv "/usr/share/themes/Jasper-Dark"/gtk-4.0 "$HOME"/.config/
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/night "'Jasper-Dark'"
else
gdbus call --session --dest 'org.gnome.Shell' --object-path '/org/gnome/Shell' --method 'org.gnome.Shell.ScreenTransition' & gsettings set org.gnome.shell.extensions.user-theme name "Jasper-Light" && gsettings set org.gnome.desktop.interface gtk-theme "Jasper-Light" && cp -rfv "/usr/share/themes/Jasper-Light"/gtk-4.0 "$HOME"/.config/
fi
else else
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/day "'Jasper-$1-Light'" if dconf read /org/gnome/desktop/interface/color-scheme | grep dark
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/night "'Jasper-$1-Dark'" then
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/day "'Jasper-$1-Light'" gdbus call --session --dest 'org.gnome.Shell' --object-path '/org/gnome/Shell' --method 'org.gnome.Shell.ScreenTransition' & gsettings set org.gnome.shell.extensions.user-theme name "Jasper-$1-Dark" && gsettings set org.gnome.desktop.interface gtk-theme "Jasper-$1-Dark" && cp -rfv "/usr/share/themes/Jasper-$1-Dark"/gtk-4.0 "$HOME"/.config/
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/night "'Jasper-$1-Dark'" else
fi gdbus call --session --dest 'org.gnome.Shell' --object-path '/org/gnome/Shell' --method 'org.gnome.Shell.ScreenTransition' & gsettings set org.gnome.shell.extensions.user-theme name "Jasper-$1-Light" && gsettings set org.gnome.desktop.interface gtk-theme "Jasper-$1-Light" && cp -rfv "/usr/share/themes/Jasper-$1-Light"/gtk-4.0 "$HOME"/.config/
if dconf read /org/gnome/desktop/interface/color-scheme | grep dark fi
then
pika-gnome-theme dark
else
pika-gnome-theme
fi fi