0

I want to remap "lock screen" button on my keyboard (it is special button, not Win+L combination) to "suspend" instead of "lock"

I tried to prevent screen lock all together in hope the "Settings/Keyboard/Add Custom Shortcut" would detect my "lock screen" button, but it still does not.

When I run xev and press the button, it displays:

KeymapNotify event, serial 38, synthetic NO, window 0x0,
keys:  4294967288 0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
       0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
0

Turns out, that if I override shortcut for lock from Super+L to something else and then create custom shortcut with command systemctl suspend and keybinding Super+L, then it somehow applies not only to Super+L but also to dedicated "lock button".

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.