1 |
I guess you are using xorg. man xorg says that there is an option in |
2 |
serverflags section which disables this functionality. |
3 |
Option "DontVTSwitch" "boolean" |
4 |
So you could add a section into xorg.conf or xorg.conf.d/ |
5 |
|
6 |
Artur |
7 |
|
8 |
Ian Zimmerman writes: |
9 |
|
10 |
> On 2019-07-10 20:44, François-Xavier CARTON wrote: |
11 |
> |
12 |
> > On 7/10/19 7:03 PM, Ian Zimmerman wrote: |
13 |
> > > Here is my next "low information" question, haha. |
14 |
> > > |
15 |
> > > I use i3lock which is like Xscreensaver but much much simpler; it plays |
16 |
> > > no movies or games, just blanks the screen with a configured color or |
17 |
> > > image. To unlock it you have to type your password. |
18 |
> > > |
19 |
> > > It bothers me that even when i3lock has locked the X session, I can |
20 |
> > > still switch to other Linux virtual consoles with Alt-Control-F<n> , |
21 |
> > > without typing the password. It so happens that on one of the other |
22 |
> > > virtual consoles there is often an interactive root shell :-P |
23 |
> > > |
24 |
> > > So, is it possible to prevent virtual console switching while the X |
25 |
> > > screen is locked, but still allow it at other times? Looks like |
26 |
> > > something the locker program would have to do, not the X server; but |
27 |
> > > again I don't know much about this stuff. |
28 |
> > > |
29 |
> > |
30 |
> > Not a direct answer to your question, but as a workaround you can use |
31 |
> > tmux sessions, and simply detach them and logout when you lock your |
32 |
> > computer. |
33 |
> |
34 |
> I could also just log out directly :-) It's not like I have some |
35 |
> context in the shell that I want to keep. It is just there when I want |
36 |
> to be root. |
37 |
> |
38 |
> > Also, if this is just a shell to start the X server, you can launch it |
39 |
> > as "startx & bg; disown" and then logout. |
40 |
> |
41 |
> No, it's my way to run things as root, in general. I distrust su, sudo |
42 |
> and friends. |
43 |
> |
44 |
> -- |
45 |
> Please don't Cc: me privately on mailing lists and Usenet, |
46 |
> if you also post the followup to the list or newsgroup. |
47 |
> To reply privately _only_ on Usenet and on broken lists |
48 |
> which rewrite From, fetch the TXT record for no-use.mooo.com. |
49 |
> |