summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlake Romero <blake@developercraft.com>2026-03-20 23:52:15 +0000
committerBlake Romero <blake@developercraft.com>2026-03-20 23:52:15 +0000
commit27e1c8fab37a2ff085fb5955773d71b4a970437d (patch)
tree087c8665ae9a327eaab7bd71a9be0a8c4d6b7fb4
parentd036ce33665e9a19f27aafc3a92b81cef513130f (diff)
Set capslock to ctrl in tty
-rwxr-xr-xpost-setup.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/post-setup.sh b/post-setup.sh
index 7f63ec9..4917bb2 100755
--- a/post-setup.sh
+++ b/post-setup.sh
@@ -27,3 +27,14 @@ rc-service iwd start
rc-update del networking boot
rc-update del wpa_supplicant boot
rc-update add iwd boot
+
+# Set Caps key to CTRL
+apk add kbd
+keymap=caps-ctrl.bmap
+
+(dumpkeys | grep keymaps; echo keycode 58 = Control) | loadkeys
+dumpkmap > $keymap && gzip $keymap
+
+mv $keymap.gz /etc/keymap \
+ && sed "s/gb.bmap.gz/$keymap.gz/" -i /etc/conf.d/loadkmap
+