From 3dcd700fe77f0c13c3dec595104d83a64d5fcaf1 Mon Sep 17 00:00:00 2001 From: wholteza Date: Sun, 15 Mar 2026 17:57:36 +0100 Subject: [PATCH 1/5] Keyboard layout command --- .bashrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.bashrc b/.bashrc index a3aa1af..bc0532a 100644 --- a/.bashrc +++ b/.bashrc @@ -214,3 +214,6 @@ export PATH="$HOME/.local/bin:$PATH" export PATH=/home/$USER/.fnm:$PATH eval "$(fnm env --use-on-cd --version-file-strategy=recursive)" + +alias qwerty='swaymsg input "*" xkb_layout "se"' +alias colemak='swaymsg input "*" xkb_layout "colemak-se"' From 781b26a4d66d0ee812af7260101cd744df949ad6 Mon Sep 17 00:00:00 2001 From: wholteza Date: Sun, 15 Mar 2026 18:10:55 +0100 Subject: [PATCH 2/5] Add comments --- .config/nvim/init.lua | 59 ++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 31 deletions(-) diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index f27bae9..2d31cc8 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -1,23 +1,23 @@ -- SECTION: Options -vim.o.number = true -- Show line numbers -vim.o.wrap = true -- Soft-wrap lines -vim.o.tabstop = 2 -- 2 space tab width -vim.o.shiftwidth = 2 -- 2 space tab width -vim.o.swapfile = false -- Disable swap files (annoying) -vim.o.undofile = true -- Enable undo between sessions -vim.o.mouse = 'a' -- Enable mouse support -vim.o.showmode = false -- Don't show mode in status bar -vim.o.inccommand = 'split' -- Preview replace commands inline -vim.o.scrolloff = 20 -- Scroll if cursor is X lines to edge -vim.o.confirm = true -- Add confirmation on some destructive actions -vim.o.ignorecase = true -- Case insensitive search -vim.o.smartcase = true -- Case sensitive when caps is used -vim.o.cursorline = true -- Highlight current line -vim.o.winborder = "single" -- Borders around popups like when you press leader for keybinds +vim.o.number = true -- Show line numbers +vim.o.wrap = true -- Soft-wrap lines +vim.o.tabstop = 2 -- 2 space tab width +vim.o.shiftwidth = 2 -- 2 space tab width +vim.o.swapfile = false -- Disable swap files (annoying) +vim.o.undofile = true -- Enable undo between sessions +vim.o.mouse = 'a' -- Enable mouse support +vim.o.showmode = false -- Don't show mode in status bar +vim.o.inccommand = 'split' -- Preview replace commands inline +vim.o.scrolloff = 20 -- Scroll if cursor is X lines to edge +vim.o.confirm = true -- Add confirmation on some destructive actions +vim.o.ignorecase = true -- Case insensitive search +vim.o.smartcase = true -- Case sensitive when caps is used +vim.o.cursorline = true -- Highlight current line +vim.o.winborder = "single" -- Borders around popups like when you press leader for keybinds vim.opt.signcolumn = -'yes' -- TEST: Prohibit layout shifting by always showing the sign column (left of line numbers), you should see an icon there on this row. -vim.o.updatetime = 250 -vim.o.timeoutlen = 300 +'yes' -- TEST: Prohibit layout shifting by always showing the sign column (left of line numbers), you should see an icon there on this row. +vim.o.updatetime = 250 -- Speed up the CursorHold autocmd event +vim.o.timeoutlen = 300 -- Speed up completion of key event -- SECTION: Globals vim.g.mapleader = ' ' -- Mapping leader to space. vim.g.maplocalleader = ' ' -- Mapping leader to space. @@ -59,17 +59,16 @@ vim.keymap.set('n', '\\', ":Oil --float", { desc = "File explorer" }) -- SECTION: Install packages vim.pack.add({ - 'https://github.com/catppuccin/nvim', -- color scheme - 'https://github.com/nvim-mini/mini.pick', -- File picker, grep - 'https://github.com/nvim-mini/mini.pairs', -- Auto create {}, (), [] - pairs etc. - 'https://github.com/nvim-mini/mini.notify', -- Popup notifications - 'https://github.com/nvim-mini/mini.completion', -- Autocomplete, needs snippets and icons - 'https://github.com/nvim-mini/mini.snippets', -- Snippets - 'https://github.com/nvim-mini/mini.icons', -- Icons - 'https://github.com/nvim-mini/mini.cursorword', - 'https://github.com/nvim-mini/mini.hipatterns', - 'https://github.com/nvim-mini/mini.statusline', - 'https://github.com/nvim-mini/mini.tabline', + 'https://github.com/catppuccin/nvim', -- color scheme + 'https://github.com/nvim-mini/mini.pick', -- File picker, grep + 'https://github.com/nvim-mini/mini.pairs', -- Auto create {}, (), [] - pairs etc. + 'https://github.com/nvim-mini/mini.notify', -- Popup notifications + 'https://github.com/nvim-mini/mini.completion', -- Autocomplete, needs snippets and icons + 'https://github.com/nvim-mini/mini.snippets', -- Snippets + 'https://github.com/nvim-mini/mini.icons', -- Icons + 'https://github.com/nvim-mini/mini.cursorword', -- Highlight word under cursor + 'https://github.com/nvim-mini/mini.hipatterns', -- Highlight todos and rgb colors + 'https://github.com/nvim-mini/mini.statusline', -- Statusline at the bottom 'https://github.com/neovim/nvim-lspconfig', -- Language servers 'https://github.com/mason-org/mason.nvim', -- LSP deps installer 'https://github.com/mason-org/mason-lspconfig.nvim', -- Lets you install mason tooling using lsp names @@ -77,7 +76,6 @@ vim.pack.add({ 'https://github.com/folke/lazydev.nvim', -- Automatically resolve vim api paths. 'https://github.com/folke/which-key.nvim', -- Shortcut hints (bar at the bottom when pressing space) 'https://github.com/nvim-lua/plenary.nvim', -- Helper lua functions, dep of todo-comments. - -- 'https://github.com/folke/todo-comments.nvim', -- Helper lua functions, dep of todo-comments. 'https://github.com/nvim-treesitter/nvim-treesitter', -- Syntax highlighting 'https://github.com/stevearc/oil.nvim', -- File explorer }) @@ -130,7 +128,6 @@ require('mini.hipatterns').setup({ } }) require('mini.statusline').setup() -require('mini.tabline').setup() require('oil').setup() require('nvim-treesitter').setup({ From 222874d2858cf24c8af8191a5655d3bdd7a7b4cd Mon Sep 17 00:00:00 2001 From: wholteza Date: Sun, 15 Mar 2026 18:11:56 +0100 Subject: [PATCH 3/5] Set vim as default editor --- .gitconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitconfig b/.gitconfig index e334f9d..c7453bf 100644 --- a/.gitconfig +++ b/.gitconfig @@ -19,3 +19,5 @@ s = status [pull] rebase = false +[core] + editor = vim From 936681678ea407647d80c08c9a923e242dd883de Mon Sep 17 00:00:00 2001 From: wholteza Date: Sun, 15 Mar 2026 20:01:31 +0100 Subject: [PATCH 4/5] Formatting --- .config/nvim/init.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 2d31cc8..914024f 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -138,7 +138,12 @@ require('nvim-treesitter').setup({ require("mason").setup() require("mason-lspconfig").setup({ -- Install lsp deps here - ensure_installed = { 'lua_ls', 'ts_ls', 'ansiblels', 'eslint' }, + ensure_installed = { + 'lua_ls', + 'ts_ls', + 'ansiblels', + 'eslint' + }, automatic_enable = true }) require("mason-tool-installer").setup({ From 4f293bd5e3b969d7f65d8906acfa56c6b2503d27 Mon Sep 17 00:00:00 2001 From: wholteza Date: Wed, 25 Mar 2026 07:25:58 +0100 Subject: [PATCH 5/5] Changing kb layout on printer pc --- .config/sway/input | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/sway/input b/.config/sway/input index 3d053f1..c71a376 100644 --- a/.config/sway/input +++ b/.config/sway/input @@ -8,7 +8,7 @@ input "*" xkb_options caps:backspace ## Set colemak layout on surface laptop input 1118:2478:Microsoft_Surface_045E:09AE_Keyboard xkb_layout colemak-se ## Set colemak layout on printer desktop -#input 9494:26:CM_Storm_Keyboard_--_QuickFire_XT xkb_layout colemak-se +input 9494:26:CM_Storm_Keyboard_--_QuickFire_XT xkb_layout colemak-se ## Remove pointer acceleration input "type:pointer" { accel_profile "flat"