Auto-adapts sway workspace routing to however many monitors are connected (laptop vs. desktop) instead of hardcoding output names.
17 lines
518 B
Bash
17 lines
518 B
Bash
bindkey -e
|
|
bindkey '^[[H' beginning-of-line
|
|
bindkey '^[[F' end-of-line
|
|
bindkey '^[[3~' delete-char
|
|
bindkey '^R' history-incremental-search-backward
|
|
|
|
# Word-wise editing. The CSI bindings are emitted by Kitty (and many other
|
|
# terminals); the Meta bindings keep the same actions working elsewhere.
|
|
bindkey '^[b' backward-word
|
|
bindkey '^[f' forward-word
|
|
bindkey '^[[1;5D' backward-word
|
|
bindkey '^[[1;5C' forward-word
|
|
|
|
bindkey '^[^?' backward-kill-word
|
|
bindkey '^[[127;5u' backward-kill-word
|
|
bindkey '^[[3;5~' kill-word
|