2022-12-23 11:49:39 +01:00
|
|
|
#! /usr/bin/bash
|
2023-10-15 20:06:50 +02:00
|
|
|
gnome-extensions enable user-theme@gnome-shell-extensions.gcampax.github.com
|
2023-09-23 11:25:47 +02:00
|
|
|
if [[ $1 == Teal ]]
|
2023-03-24 17:25:56 +01:00
|
|
|
then
|
2023-10-15 20:06:50 +02: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 17:25:56 +01:00
|
|
|
else
|
2023-10-15 20:06:50 +02: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 14:17:53 +01:00
|
|
|
fi
|