diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2025-09-12 22:18:45 -0500 | 
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2025-09-12 22:19:20 -0500 | 
| commit | 3d33f2b691195fcb002ea9f052d1827b65e3f183 (patch) | |
| tree | 47b19a9ef35d3386e79224cef685c7a21f66a652 | |
| parent | a03830a441e6c902ef69f835d0c97bf828d73365 (diff) | |
| download | dotconfig-3d33f2b691195fcb002ea9f052d1827b65e3f183.tar.xz dotconfig-3d33f2b691195fcb002ea9f052d1827b65e3f183.zip  | |
add xkeyconf script here instead of scripts repo
| -rwxr-xr-x | x11/xkeyconf | 5 | ||||
| -rwxr-xr-x | x11/xprofile | 3 | 
2 files changed, 6 insertions, 2 deletions
diff --git a/x11/xkeyconf b/x11/xkeyconf new file mode 100755 index 0000000..0eaf809 --- /dev/null +++ b/x11/xkeyconf @@ -0,0 +1,5 @@ +#!/bin/sh +xset r rate 250 50  # Faster repeated keys and less delay before repeating +setxkbmap -option caps:super  # Remap caps to super when held +killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape'  # Remap caps to escape when pressed +xset -q | grep "Caps Lock:\s*on" && xdotool key Caps_Lock  # Turn off caps lock, just in case it was on prior diff --git a/x11/xprofile b/x11/xprofile index c0e445a..ea51fbb 100755 --- a/x11/xprofile +++ b/x11/xprofile @@ -4,6 +4,5 @@ XRESOURCES=${XRESOURCES:-$X11CONFIG/Xresources.$(hostname)}  xrdb -merge $XRESOURCES 2>/dev/null & xrdbpid=$!  redshift &  unclutter -noevents & -xkeyconf & -xvsync & +$X11CONFIG/xkeyconf &  wait $xrdbpid # Wait for xrdb to ensure the WM starts using the correct DPI settings  | 
