fix: change location of the current theme directory
This commit is contained in:
+10
-10
@@ -29,7 +29,7 @@ fi
|
||||
ln -nsf "$THEME_PATH" "$CURRENT_THEME_DIR"
|
||||
|
||||
# Change gnome modes
|
||||
if [[ -f ~/.config/omarchy/current/theme/light.mode ]]; then
|
||||
if [[ -f "$CURRENT_THEME_DIR/light.mode" ]]; then
|
||||
gsettings set org.gnome.desktop.interface color-scheme "prefer-light"
|
||||
gsettings set org.gnome.desktop.interface gtk-theme "Adwaita"
|
||||
else
|
||||
@@ -38,34 +38,34 @@ else
|
||||
fi
|
||||
|
||||
# Change gnome icon theme color
|
||||
if [[ -f ~/.config/omarchy/current/theme/icons.theme ]]; then
|
||||
gsettings set org.gnome.desktop.interface icon-theme "$(<~/.config/omarchy/current/theme/icons.theme)"
|
||||
if [[ -f "$CURRENT_THEME_DIR/icons.theme" ]]; then
|
||||
gsettings set org.gnome.desktop.interface icon-theme "$(<$CURRENT_THEME_DIR/icons.theme)"
|
||||
else
|
||||
gsettings set org.gnome.desktop.interface icon-theme "Yaru-blue"
|
||||
fi
|
||||
|
||||
# Change Chromium colors
|
||||
if command -v chromium &>/dev/null; then
|
||||
if [[ -f ~/.config/omarchy/current/theme/light.mode ]]; then
|
||||
if [[ -f "$CURRENT_THEME_DIR/light.mode" ]]; then
|
||||
chromium --no-startup-window --set-color-scheme="light"
|
||||
else
|
||||
chromium --no-startup-window --set-color-scheme="dark"
|
||||
fi
|
||||
|
||||
if [[ -f ~/.config/omarchy/current/theme/chromium.theme ]]; then
|
||||
chromium --no-startup-window --set-theme-color="$(<~/.config/omarchy/current/theme/chromium.theme)"
|
||||
if [[ -f "$CURRENT_THEME_DIR/chromium.theme" ]]; then
|
||||
chromium --no-startup-window --set-theme-color="$(<$CURRENT_THEME_DIR/chromium.theme)"
|
||||
else
|
||||
# Use a default, neutral grey if theme doesn't have a color
|
||||
chromium --no-startup-window --set-theme-color="28,32,39"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ! -f "${CURRENT_THEME_DIR}/ghostty" ]]; then
|
||||
touch ${CURRENT_THEME_DIR}/ghostty
|
||||
if [[ ! -f "$CURRENT_THEME_DIR/ghostty" ]]; then
|
||||
touch "$CURRENT_THEME_DIR/ghostty"
|
||||
fi
|
||||
|
||||
if [[ ! -f "${CURRENT_THEME_DIR}/tmux" ]]; then
|
||||
touch ${CURRENT_THEME_DIR}/tmux
|
||||
if [[ ! -f "$CURRENT_THEME_DIR/tmux" ]]; then
|
||||
touch "$CURRENT_THEME_DIR/tmux"
|
||||
fi
|
||||
|
||||
omarchy-theme-bg-next
|
||||
|
||||
Reference in New Issue
Block a user