Move all omarchy runtime state (themes, backgrounds, current theme) from ~/.config/omarchy/current to ~/.local/state/omarchy/current to keep the config dir free of generated files. Add mise task for recreating symlinks and update credential helpers for tea.
21 lines
758 B
Bash
Executable File
21 lines
758 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Apply the current theme to GNOME color mode and icon settings
|
|
# omarchy:hidden=true
|
|
|
|
if [[ -f ~/.local/state/omarchy/current/theme/light.mode ]]; then
|
|
gsettings set org.gnome.desktop.interface color-scheme "prefer-light"
|
|
gsettings set org.gnome.desktop.interface gtk-theme "Adwaita"
|
|
else
|
|
gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
|
|
gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark"
|
|
fi
|
|
|
|
# Change gnome icon theme color
|
|
GNOME_ICONS_THEME=~/.local/state/omarchy/current/theme/icons.theme
|
|
if [[ -f $GNOME_ICONS_THEME ]]; then
|
|
gsettings set org.gnome.desktop.interface icon-theme "$(<$GNOME_ICONS_THEME)"
|
|
else
|
|
gsettings set org.gnome.desktop.interface icon-theme "Yaru-blue"
|
|
fi
|