mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Add opencode (#4071)
This commit is contained in:
committed by
GitHub
parent
6dfa5f0807
commit
de2757466b
16
migrations/1767478687.sh
Normal file
16
migrations/1767478687.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
echo "Add opencode with dynamic themeing and Super + Shift + Ctrl + A binding"
|
||||
|
||||
omarchy-pkg-add opencode
|
||||
|
||||
# Add config using omarchy theme by default
|
||||
if [[ ! -f ~/.config/opencode/opencode.json ]]; then
|
||||
cp $OMARCHY_PATH/config/opencode/opencode.json ~/.config/opencode/opencode.json
|
||||
fi
|
||||
|
||||
# Add binding if the key is available
|
||||
BINDINGS_PATH="$HOME/.config/hypr/bindings.conf"
|
||||
if ! grep -q "SUPER SHIFT CTRL, A" $BINDINGS_PATH; then
|
||||
sed -i '/SUPER SHIFT ALT, A/a bindd = SUPER SHIFT CTRL, A, opencode, exec, omarchy-launch-opencode' "$BINDINGS_PATH"
|
||||
else
|
||||
echo "Add your own binding for opencode using omarchy-launch-opencode in $BINDINGS_PATH"
|
||||
fi
|
||||
Reference in New Issue
Block a user