mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Allow custom editor, like we do custom terminal (#1697)
This commit is contained in:
committed by
GitHub
parent
7e1c88b932
commit
bf0c2cc9a5
@@ -1,10 +1,16 @@
|
||||
echo "Ensure $TERMINAL is set in uwsm env so entire system can rely on it"
|
||||
echo "Set \$TERMINAL and \$EDITOR in ~/.config/uwsm/default so entire system can rely on it"
|
||||
|
||||
if ! grep -q "export TERMINAL" ~/.config/uwsm/env; then
|
||||
omarchy-refresh-config uwsm/env
|
||||
omarchy-state set relaunch-required
|
||||
fi
|
||||
# Set terminal and editor default in uwsm
|
||||
omarchy-refresh-config uwsm/default
|
||||
omarchy-refresh-config uwsm/env
|
||||
omarchy-state set relaunch-required
|
||||
|
||||
# Ensure scrolltouchpad setting applies to all terminals
|
||||
if grep -q "scrolltouchpad 1.5, class:Alacritty" ~/.config/hypr/input.conf; then
|
||||
sed -i 's/windowrule = scrolltouchpad 1\.5, class:Alacritty/windowrule = scrolltouchpad 1.5, tag:terminal/' ~/.config/hypr/input.conf
|
||||
fi
|
||||
|
||||
# Use default editor for keybinding
|
||||
if grep -q "bindd = SUPER, N, Neovim" ~/.config/hypr/bindings.conf; then
|
||||
sed -i '/SUPER, N, Neovim, exec/ c\bindd = SUPER, N, Editor, exec, omarchy-launch-editor' ~/.config/hypr/bindings.conf
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user