Migrate dotfiles to Omarchy 4
Claude-Session: https://claude.ai/code/session_014ADhvRXuiTvrXSbConxUey
This commit is contained in:
@@ -3,10 +3,10 @@ THEME_NAME=$1
|
||||
echo "Theme changed to: $THEME_NAME"
|
||||
|
||||
# Generate AGS colors from Omarchy theme colors.toml
|
||||
awk -F '=' 'NF==2 { gsub(/"/,"",$2); gsub(/ /,"",$1); gsub(/ /,"",$2); print "@define-color " $1 " " $2 ";" }' ~/.config/omarchy/current/theme/colors.toml > ~/.config/ags/colors.css
|
||||
awk -F '=' 'NF==2 { gsub(/"/,"",$2); gsub(/ /,"",$1); gsub(/ /,"",$2); print "@define-color " $1 " " $2 ";" }' ~/.local/state/omarchy/current/theme/colors.toml > ~/.config/ags/colors.css
|
||||
|
||||
# Restart AGS to apply new theme colors
|
||||
if command -v ags &> /dev/null; then
|
||||
ags quit || true
|
||||
nohup ags run -d "$HOME/.config/ags" >/dev/null 2>&1 &
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user