From f91fbdba5e03babc38790d79b9de6bbebc15e4ba Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Fri, 23 Jun 2023 20:43:44 -0500 Subject: [PATCH] switched away from profile mode based on feedback from wife --- content/posts/capsToCtrl.adoc | 7 +++---- hugo.toml | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/content/posts/capsToCtrl.adoc b/content/posts/capsToCtrl.adoc index d274590..1e62926 100644 --- a/content/posts/capsToCtrl.adoc +++ b/content/posts/capsToCtrl.adoc @@ -6,7 +6,7 @@ draft: false :toc: :toclevels: 4 -= Caps to Ctrl in tty +== Caps to Ctrl in tty In the past 2 years or so, I have been using my caps lock key as a seperate ctrl key on my desktop keyboard. This is very easy to do in X11 with a setxkmap command. @@ -59,7 +59,7 @@ Well, it should! However, there seems to be a bug in 'loadkeys', as the above only works when defining a complete keymap, not when overriding parts of default.map. This means, that in order to correctly modify the keymap, we either have to define all columns manually, or we have to copy the default keymap, edit it, and load it as a complete keymap. -== Keymap patch +=== Keymap patch To continue overriding the default keymap, you can simply manually repeat the control command. Now, technically, there are 256 columns in the keymap file, but, at least for latin keyboards, only the first 16 are used. @@ -72,7 +72,7 @@ keycode 58 = Control Control Control Control Control Control Control Control Con Now just put it in in '/usr/share/kbd/keymaps/', and set it as your keymap with 'sudo localectl set-keymap [filename without .map extention]'. -== Full keymap +=== Full keymap In order to create a new full keymap, copy the keymap you want to edit from '/usr/share/kbd/keymaps/i386/[couple more folders here]' to somewhere in 'usr/share/kbd/keymaps/' and unzip it with 'sudo gzip -d [filename]'. Edit it with sudoedit and replace @@ -99,4 +99,3 @@ setxkbmap -option ctrl:nocaps {{}} in your .xinitrc. - diff --git a/hugo.toml b/hugo.toml index bedee20..f8ae59e 100644 --- a/hugo.toml +++ b/hugo.toml @@ -72,7 +72,7 @@ url = "search" weight = 3 [params.profileMode] -enabled = true +enabled = false title = "Gabe Venberg" imageUrl = "#" imageTitle = "Gabe Venberg"