diff --git a/config/ghostty/config b/config/ghostty/config index d53f5c32..af2c995c 100644 --- a/config/ghostty/config +++ b/config/ghostty/config @@ -23,6 +23,8 @@ cursor-style-blink = false shell-integration-features = no-cursor,ssh-env # Keyboard bindings +keybind = ctrl+shift+page_up=unbind +keybind = ctrl+shift+page_down=unbind keybind = shift+insert=paste_from_clipboard keybind = control+insert=copy_to_clipboard keybind = super+control+shift+alt+arrow_down=resize_split:down,100 diff --git a/migrations/1770728860.sh b/migrations/1770728860.sh new file mode 100644 index 00000000..85f19f46 --- /dev/null +++ b/migrations/1770728860.sh @@ -0,0 +1,5 @@ +echo "Unbind ctrl+shift+page_up/page_down in Ghostty so it doesn't interfere with tmux keybindings" + +if [[ -f ~/.config/ghostty/config ]] && ! grep -q "keybind = ctrl+shift+page_up=" ~/.config/ghostty/config; then + sed -i '/# Keyboard bindings/a\keybind = ctrl+shift+page_up=unbind\nkeybind = ctrl+shift+page_down=unbind' ~/.config/ghostty/config +fi