mirror of
https://github.com/danielepintore/dotfiles.git
synced 2026-06-15 20:25:13 +02:00
remap: caps lock to ctrl
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>")
|
||||
|
||||
@@ -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"
|
||||
###########################################
|
||||
|
||||
Reference in New Issue
Block a user