sflock icon indicating copy to clipboard operation
sflock copied to clipboard

Ctrl-Alt-Backspace bypasses sflock

Open firecat53 opened this issue 12 years ago • 4 comments

Hey...love the program...any chance of modifying it to temporarily disable the Ctrl-Alt-Backspace combo while the screen is locked? I didn't notice that until today :/ I'd prefer not to completely disable that key-combo (the Xorg 'DontZap' option)...just while the screen is locked.

Thanks! Scott

firecat53 avatar Dec 16 '12 19:12 firecat53

I'm afraid this seems to be impossible :-(

http://www.jwz.org/xscreensaver/faq.html#no-ctl-alt-bs

benruijl avatar Dec 16 '12 19:12 benruijl

What about this: http://bkhome.org/blog/?viewDetailed=01653 ? Just disabling the 'Ctrl' key while the screen is locked with xmodmap? Hmm...guess I could just do that from my lock screen script....but would it make more sense to wrap sflock in a wrapper so it does that by default?

Edit: someone posted this: https://bbs.archlinux.org/viewtopic.php?pid=936454#p936454 as a hack-y way to run code after sflock terminates. I tried the xmodmap trick: xmodmap -e 'keycode 37=' sflock xmodmap -e 'keycode 37=Control_L' but the final xmodmap command was executed immediately after sflock (it forks, I'd guess), so I couldn't reset the xmodmap values after unlocking.

firecat53 avatar Dec 16 '12 20:12 firecat53

Interesting. Maybe I could change the keymapping from the source itself, with XChangeKeyboardMapping or a related command.

benruijl avatar Dec 16 '12 20:12 benruijl

I would like to have this feature in slock too. http://lists.suckless.org/dev/1509/27340.html

And what is Alt-SysRq-F and Ctrl-Alt-KP_Multiply?

pickfire avatar Sep 28 '15 13:09 pickfire