Skip to content

CAPS LOCK by default

MarekBykowski edited this page Jun 19, 2026 · 4 revisions

1. Check what X thinks is latched

xset q | grep -iE "caps|num|scroll"

2 Install xdotool

sudo apt install -y xdotool

3. Clear it (inject straight into X, bypasses the physical key)

xdotool key Caps_Lock        # toggle Caps off
xdotool keyup shift          # if Shift is the stuck one instead

4. Nuclear reset of all modifiers/options

setxkbmap -option

5. Verify

xset q | grep -i caps        # want: Caps Lock: off

Clone this wiki locally