Set opencode colors too

This commit is contained in:
David Heinemeier Hansson
2026-01-01 14:12:58 -07:00
parent 8460be15c2
commit a7d925de51
3 changed files with 253 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ omarchy-theme-set-browser
omarchy-theme-set-vscode
omarchy-theme-set-cursor
omarchy-theme-set-obsidian
omarchy-theme-set-opencode
# Call hook on theme set
omarchy-hook theme-set "$THEME_NAME"

9
bin/omarchy-theme-set-opencode Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
OPENCODE_THEME="$HOME/.config/omarchy/current/theme/opencode.json"
OPENCODE_THEMES_DIR="$HOME/.config/opencode/themes"
if [[ -f "$OPENCODE_THEME" ]]; then
mkdir -p "$OPENCODE_THEMES_DIR"
cp "$OPENCODE_THEME" "$OPENCODE_THEMES_DIR/omarchy.json"
fi