20 lines
1.6 KiB
Bash
Raw Normal View History

2022-12-23 13:49:39 +03:00
#! /usr/bin/bash
2023-10-15 21:09:36 +03:00
gnome-extensions enable user-theme@gnome-shell-extensions.gcampax.github.com
2023-09-23 12:25:47 +03:00
if [[ $1 == Teal ]]
2023-03-24 19:25:56 +03:00
then
2023-10-15 21:09:36 +03:00
if dconf read /org/gnome/desktop/interface/color-scheme | grep dark
then
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/
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
2023-03-24 19:25:56 +03:00
else
2023-10-15 21:09:36 +03:00
if dconf read /org/gnome/desktop/interface/color-scheme | grep dark
then
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/
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-$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/
fi
2023-03-25 16:17:53 +03:00
fi