You are not logged in.

#1 2019-02-20 11:57:58

bedtime
Member
Registered: 2019-02-12
Posts: 68

[SOLVED] Return to tty after X closes?

I manually start Awesome via .profile:

[ "$(tty)" = "/dev/tty1" ] && sleep .01 && setterm --clear all -foreground cyan -background black --ulcolor cyan hbcolor bright cyan --store && echo "Starting Xorg..." && exec startx >/dev/null 2>/dev/null

# Below code doesn't work:
sh

I would like to be dumped into tty after exiting Awesome and without logging out. I find that inserting an 'sh' command after the startx command doesn't work, even if I cleanly use the 'quit' option in Awesome; sh is skipped and the user is relogged in again. I don't want to have to log in again.

Is this possible?

Last edited by bedtime (2019-02-20 13:02:09)

Offline

#2 2019-02-20 12:47:39

seth
Member
Registered: 2012-09-03
Posts: 51,198

Re: [SOLVED] Return to tty after X closes?

For a start: drop the "exec"

Offline

#3 2019-02-20 13:01:47

bedtime
Member
Registered: 2019-02-12
Posts: 68

Re: [SOLVED] Return to tty after X closes?

seth wrote:

For a start: drop the "exec"

Yes, that worked—didn't even need to have the 'sh' command so was able to drop it. It now does exactly what I wanted.

Thanks. smile

Offline

Board footer

Powered by FluxBB