From f8d09c5cfd6d1d9595b64547dc9d29c63e40c5f2 Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Thu, 5 Dec 2024 13:49:22 -0500 Subject: Moved .local/bin to scripts --- scripts/keys | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 scripts/keys (limited to 'scripts/keys') diff --git a/scripts/keys b/scripts/keys new file mode 100755 index 0000000..c525982 --- /dev/null +++ b/scripts/keys @@ -0,0 +1,10 @@ +#!/bin/sh +# This script is called on startup to remap keys. +# Decrease key repeat delay to 300ms and increase key repeat rate to 50 per second. +xset r rate 300 50 +# Map the caps lock key to super, and map the menu key to right super. +setxkbmap -option caps:super,altwin:menu_win +# When caps lock is pressed only once, treat it as escape. +killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape' +# Turn off caps lock if on since there is no longer a key for it. +xset -q | grep -q "Caps Lock:\s*on" && xdotool key Caps_Lock -- cgit v1.2.3