summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-05-26 17:02:59 -0500
committerCraig Jennings <c@cjennings.net>2025-05-26 17:02:59 -0500
commit30096dedb2287b326e3872c04ab9aac267b70b0b (patch)
tree5238ed10025d5a5dec29e22cfa2ad305c7c21ea2
parentbe8324bd73b0fd6c47c4e3be648983e69cf430ad (diff)
adding keyd install and config
-rwxr-xr-xarchsetup23
1 files changed, 23 insertions, 0 deletions
diff --git a/archsetup b/archsetup
index 12cf33f..86944d0 100755
--- a/archsetup
+++ b/archsetup
@@ -583,6 +583,29 @@ desktop_environment() {
action="Keyboard Shortcut Manager" && display "subtitle" "$action"
pacman_install sxhkd
+ # Keyboard Shortcut Remapper
+
+ action="Keyboard Shortcut Remapper" && display "subtitle" "$action"
+ pacman_install keyd
+ sudo systemctl enable keyd --now >> "$logfile" 2>&1 || error "error" "$action" "$?"
+
+ action="configuring keyboard shortcut remapper" && display "task" "$action"
+ cat << EOF > /etc/keyd/default.conf
+[ids]
+
+*
+
+[main]
+
+# Maps capslock to escape when pressed and control when held.
+capslock = overload(control, esc)
+
+# Remaps the escape key to capslock
+esc = capslock
+EOF
+
+ sudo keyd reload >> "$logfile" 2>&1 || error "error" "$action" "$?"
+
# Notifications
action="Notification System" && display "subtitle" "$action"