Change k to q for killing/closing/quitting in sway, neovim, and tmux.

Reason for this is because cmd+q on mac os. I want my setup to be
universal between mac and lin, or as close as it possibly can be.
This commit is contained in:
Martin Larsson 2024-08-15 13:13:46 +02:00
parent 802721becc
commit bcf5f8a405
3 changed files with 5 additions and 5 deletions

View file

@ -33,7 +33,7 @@ require("utils").add_keymaps({
},
-- Window
["<C-k>"] = {
["<C-q>"] = {
cmd = "<C-w>q",
},
@ -115,7 +115,7 @@ require("utils").add_keymaps({
},
},
t = {
["<C-k>"] = {
["<C-q>"] = {
cmd = "<C-\\><C-N>",
},
},

View file

@ -1,4 +1,4 @@
# For some reason, fzf is missing from path when running shell scripts through tmux keybindings
#git clone --depth 1 --recurse-submodules --shallow-submodules git@github.int.midasplayer.com:FarmStudio/FarmHeroesSaga.git For some reason, fzf is missing from path when running shell scripts through tmux keybindings
set-environment -g PATH "~/dev/git/fzf/bin:$PATH"
# Keybindings for navigating between panes
@ -28,7 +28,7 @@ bind-key -n M-d run-shell "~/.config/tmux/tmux-fuzzy-find-session.sh"
# Split window, change keybindings to match vim concept of splits
bind-key -n M-v split-window -h
bind-key -n M-h split-window -v
bind-key -n M-k kill-pane
bind-key -n M-q kill-pane
bind-key -n M-f resize-pane -Z
bind-key -n M-s command-prompt -p "New session: " "run-shell '~/.config/tmux/tmux-create-session.sh '%%''"
bind-key -n M-w new-window

View file

@ -26,7 +26,7 @@ exec_always --no-startup-id ~/.config/sway/dim_inactive.windows.py
bindsym $mod+Return exec $term
# Kill focused window
bindsym $mod+k kill
bindsym $mod+q kill
# Start your launcher
bindsym $mod+d exec $menu