From 30096dedb2287b326e3872c04ab9aac267b70b0b Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 26 May 2025 17:02:59 -0500 Subject: adding keyd install and config --- archsetup | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'archsetup') 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" -- cgit v1.2.3