You could also leave DontVTSwitch on all the time and set a keyboard shortcut to run chvt (man 1 chvt) with appropriate permissions and parameters instead. Keyboard shortcuts shouldn't get processed if the screen is locked. LMP On Thu, 2019-07-11 at 21:01 +-0000, artur.tamm.85+AEA-gmail.com wrote: +AD4 I tried to google if it is possible to change xorg serverflags in +AD4 runtime, +AD4 but was unable to find anything. I think that would be a cleaner +AD4 solution +AD4 (changing the DontVTSwitch option before locking and then restoring +AD4 later). +AD4 +AD4 Artur +AD4 +AD4 Ian Zimmerman writes: +AD4 +AD4 +AD4 On 2019-07-11 09:57, Ian Zimmerman wrote: +AD4 +AD4 +AD4 +AD4 +AD4 +AD4 setxkbmap -option srvrkeys:none +AD4 +AD4 +AD4 +AD4 i3lock -c 003355 -n +AD4 +AD4 +AD4 +AD4 setxkbmap -option '' +AD4 +AD4 +AD4 +AD4 +AD4 +AD4 Thanks for the idea+ACE It won't work as is for me because I +AD4 +AD4 +AD4 already use +AD4 +AD4 +AD4 some non-default xkb options. But it is closer than anything +AD4 +AD4 +AD4 that has +AD4 +AD4 +AD4 come up yet. I'll get there. +AD4 +AD4 +AD4 +AD4 Okay, I got it to work in a brute force way: I just added another +AD4 +AD4 setxkbmap command to set my normal options, the same ones as in my +AD4 +AD4 xorg.conf. +AD4 +AD4 +AD4 +AD4 But something weird happens when I try the fancy way: saving the +AD4 +AD4 options +AD4 +AD4 with +ACI-setxkbmap -print +AD4-FILE+ACI and then restoring them with +ACI-xkbcomp +AD4 +AD4 FILE+ACI. It seems that the change I make with +ACI-setxkbmap -option +AD4 +AD4 FOO+ACI is +AD4 +AD4 never reflected in the output of +ACI-setxkbmap -print+ACI. +AD4 +AD4 +AD4 +AD4 Looks like another place with multiple +ACI-levels+ACI of configuration +AD4 +AD4 stepping over each other. +AD4 +AD4 +AD4 +AD4 -- +AD4 +AD4 Please don't Cc: me privately on mailing lists and Usenet, +AD4 +AD4 if you also post the followup to the list or newsgroup. +AD4 +AD4 To reply privately +AF8-only+AF8 on Usenet and on broken lists +AD4 +AD4 which rewrite From, fetch the TXT record for no-use.mooo.com. +AD4 +AD4