Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Different X sessions in different TTY in openrc
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
vladimir1986
n00b
n00b


Joined: 09 Dec 2010
Posts: 74

PostPosted: Thu Jul 23, 2015 1:12 pm    Post subject: [SOLVED] Different X sessions in different TTY in openrc Reply with quote

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
View user's profile Send private message
cboldt
Veteran
Veteran


Joined: 24 Aug 2005
Posts: 1046

PostPosted: Thu Jul 23, 2015 5:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
vladimir1986
n00b
n00b


Joined: 09 Dec 2010
Posts: 74

PostPosted: Wed Jul 29, 2015 8:26 pm    Post subject: Reply with quote

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! :D. PS: At first I didn't notice you MUST put a space between the "--" and the vt. wonders of standarization
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum