remap: caps lock to ctrl

This commit is contained in:
2025-07-12 14:59:37 +02:00
parent 6bccd98b89
commit 5b6dee1d64
3 changed files with 5 additions and 1 deletions

View File

@@ -49,7 +49,7 @@ input {
kb_layout = us
kb_variant = altgr-intl
kb_model =
kb_options = altwin:swap_lalt_lwin # swap left alt and meta keys
kb_options = altwin:swap_lalt_lwin,ctrl:nocaps # swap left alt and meta keys, set caps lock to ctrl
kb_rules =
follow_mouse = 1

View File

@@ -21,6 +21,7 @@ vim.keymap.set({"n", "v"}, "<leader>d", [["_d]])
-- This is going to get me cancelled
vim.keymap.set("i", "<C-c>", "<Esc>")
vim.keymap.set("i", "<C-;>", "<Esc>")
vim.keymap.set("n", "Q", "<nop>")
vim.keymap.set("n", "<C-n>", "<cmd>silent !tmux neww tmux-sessionizer<CR>")

View File

@@ -28,6 +28,9 @@ set -g mouse on
# set up vim movement for tmux
set-window-option -g mode-keys vi
# send special sequences to app that support them (ex: ctrl+; to vim)
set -g extended-keys on
# problem with gnome terminal that doesn't support coping via xterm (ensure xclip is installed)
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "xclip -selection clipboard -i"
###########################################