aboutsummaryrefslogtreecommitdiffstats
path: root/modules/terminal
diff options
context:
space:
mode:
Diffstat (limited to 'modules/terminal')
-rw-r--r--modules/terminal/kitty/default.nix11
-rw-r--r--modules/terminal/zsh/default.nix4
2 files changed, 15 insertions, 0 deletions
diff --git a/modules/terminal/kitty/default.nix b/modules/terminal/kitty/default.nix
index 2d5faf0..5df4bca 100644
--- a/modules/terminal/kitty/default.nix
+++ b/modules/terminal/kitty/default.nix
@@ -19,6 +19,17 @@
programs.kitty = {
enable = true;
package = config.terminal.kitty.package;
+ extraConfig = ''
+ # Keep normal clicks for selection and prompt placement; Ctrl+click opens links.
+ mouse_map left click ungrabbed mouse_handle_click selection prompt
+ mouse_map ctrl+left click grabbed,ungrabbed mouse_handle_click link
+
+ # Vim-style navigation between Kitty windows in the current tab.
+ map ctrl+shift+h neighboring_window left
+ map ctrl+shift+j neighboring_window bottom
+ map ctrl+shift+k neighboring_window top
+ map ctrl+shift+l neighboring_window right
+ '';
settings = with config.scheme.withHashtag; {
window_padding_width = 10;
font_size = config.fonts.size;
diff --git a/modules/terminal/zsh/default.nix b/modules/terminal/zsh/default.nix
index 95a44ec..bd0fee6 100644
--- a/modules/terminal/zsh/default.nix
+++ b/modules/terminal/zsh/default.nix
@@ -25,6 +25,10 @@
initContent = ''
setopt PROMPT_SUBST
+ # Vi insert/command modes for command-line editing. Escape enters normal mode.
+ bindkey -v
+ KEYTIMEOUT=1
+
autoload -U colors && colors
export GPG_TTY="$(tty)"