View previous topic :: View next topic |
Author |
Message |
vladimir1986 n00b
Joined: 09 Dec 2010 Posts: 74
|
Posted: Thu Jul 23, 2015 1:12 pm Post subject: [SOLVED] Different X sessions in different TTY in openrc |
|
|
I am writting to know if there is a workaround to recover a functionality I had during my ARCH days and I miss a lot:
When I started my system, let's say I will be prompt to TTY1 and started the shell. There I will just do a startx and X will init on TTY1, letting all the other ones (including TTY7) as text only shells. If I went to TTY3 for example, I will have two X sessions: On TTY1 and TTY3.
Now, Gentoo (at least with OpenRC) defaults with the common setup of starting X on TTY7 regardless of where you summon startx, and "kidnapping" such console. Is in there any way of mimicing the default ARCH behaviour without switching to systemd?
Thank you in advance
Last edited by vladimir1986 on Thu Jul 30, 2015 2:38 pm; edited 1 time in total |
|
Back to top |
|
|
cboldt Veteran
Joined: 24 Aug 2005 Posts: 1046
|
Posted: Thu Jul 23, 2015 5:22 pm Post subject: |
|
|
startx -- vt1
You can get the TTY No. using the `tty` command, and extracting only the numerical part of that. The below command is probably not the best, but it works ...
startx -- vt`tty | grep -o [0-9]` |
|
Back to top |
|
|
vladimir1986 n00b
Joined: 09 Dec 2010 Posts: 74
|
Posted: Wed Jul 29, 2015 8:26 pm Post subject: |
|
|
cboldt wrote: | startx -- vt1
You can get the TTY No. using the `tty` command, and extracting only the numerical part of that. The below command is probably not the best, but it works ...
startx -- vt`tty | grep -o [0-9]` |
That did it! Thank you very much! . PS: At first I didn't notice you MUST put a space between the "--" and the vt. wonders of standarization |
|
Back to top |
|
|
|