From 5b6dee1d6404e280d5a82dfb48c0d42e0dba5c66 Mon Sep 17 00:00:00 2001 From: Daniele Pintore Date: Sat, 12 Jul 2025 14:59:37 +0200 Subject: [PATCH] remap: caps lock to ctrl --- .config/hypr/hyprland.conf | 2 +- .config/nvim/lua/configs/remap.lua | 1 + .config/tmux/tmux.conf | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index ae786d7..0f76f15 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -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 diff --git a/.config/nvim/lua/configs/remap.lua b/.config/nvim/lua/configs/remap.lua index 4ec72fd..0001639 100644 --- a/.config/nvim/lua/configs/remap.lua +++ b/.config/nvim/lua/configs/remap.lua @@ -21,6 +21,7 @@ vim.keymap.set({"n", "v"}, "d", [["_d]]) -- This is going to get me cancelled vim.keymap.set("i", "", "") +vim.keymap.set("i", "", "") vim.keymap.set("n", "Q", "") vim.keymap.set("n", "", "silent !tmux neww tmux-sessionizer") diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index a578e8d..02014d6 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -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" ###########################################