You are not logged in.

#1 2017-02-12 23:59:23

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

[Solved using a better solution]How to set up user switching in i3

My wife now wants to use my main machine because her laptop is now old and slow and gets too hot. whatever.

I set her up with XFCE with user switching and all the good stuff. However, if I am logged in to i3, how would I switch to her user to allow her to use the machine? The only thing i can do now is to Exit i3 - which is equivalent to logout. However I was hoping to do something similar to XFCE user switching.

I installed LightDM in order to achieve user switching in XFCE.

Last edited by Inxsible (2017-02-14 16:31:27)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#2 2017-02-13 00:03:10

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved using a better solution]How to set up user switching in i3

I just have my wife login to TTY 4 where Openbox starts. I have TTY 1-3 for myself. No DM or logging out required. smile


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-02-13 04:51:03

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: [Solved using a better solution]How to set up user switching in i3

Hey Inxsible, how have you been?  Miss seeing you in the taco lounge.

I definitely agree with Jason's tack.  I often run multiple X sessions on the same machine at the same time by switching consoles.  That way I can run i3, Xorg, or even Windows full screen in VirtualBox  and switch between them with Ctrl-Alt-Fx.  If you really feel the need, you can run a DM on one of those consoles -- but I would rather stick needles in my eyes.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2017-02-13 07:42:32

Awebb
Member
Registered: 2010-05-06
Posts: 6,285

Re: [Solved using a better solution]How to set up user switching in i3

If you want to have some sort of button or shortcut other than C-A-F#, try chvt.

Offline

#5 2017-02-13 09:01:18

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [Solved using a better solution]How to set up user switching in i3

If you also log in to i3 through LightDM (at least I think this is a requirement), you can try dm-tool's switch-to-* commands.

Offline

#6 2017-02-13 10:03:00

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [Solved using a better solution]How to set up user switching in i3

Raynman wrote:

If you also log in to i3 through LightDM (at least I think this is a requirement), you can try dm-tool's switch-to-* commands.

LightDM is *not* a requirement for i3.

Offline

#7 2017-02-13 10:47:56

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [Solved using a better solution]How to set up user switching in i3

Yeah, I think we all know that. It was supposed to be read as "if you meet this required condition (hmm, is it actually required?), then you can do this". Rephrasing: you can try dm-tool, but for that to work, it's probably necessary that you log in to i3 through lightdm (have your i3 session "managed" by lightdm), but you never know if dm-tool will autospawn lightdm or something like that.

Last edited by Raynman (2017-02-13 11:23:19)

Offline

#8 2017-02-13 14:55:08

Awebb
Member
Registered: 2010-05-06
Posts: 6,285

Re: [Solved using a better solution]How to set up user switching in i3

Raynman wrote:

Yeah, I think we all know that.

I didn't understand your post before your clarification either, but yes, dm-tool is part of the lightdm package and AFAIK written to manage lightdm.

EDIT:

If you want $DISPLAYMANAGER to do what you need, your search term is "fast user switch $DISPLAYMANAGER" or "... switching ...". If you have a dbus enabled DM, then some "/org/freedesktop/DisplayManager org.freedesktop.DisplayManager.Seat.SwitchToGreeter" (you'll have to look up the exact call" should do the trick. I'm no dbus magician.

Last edited by Awebb (2017-02-13 15:01:38)

Offline

#9 2017-02-14 15:35:07

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [Solved using a better solution]How to set up user switching in i3

jasonwryan wrote:

I just have my wife login to TTY 4 where Openbox starts. I have TTY 1-3 for myself. No DM or logging out required. smile

so you run dwm and openbox all the time .... hmm I could probably do the same....my machine stays on all the time...so maybe we both won't have to logout at all...

But then the issue of keyboard layout -- I use dvorak, my wife uses qwerty -- so if I set up "setxkbmap us" in her xinitrc, will that stick between moves to different ttys?

Last edited by Inxsible (2017-02-14 15:38:35)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#10 2017-02-14 15:36:31

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [Solved using a better solution]How to set up user switching in i3

ewaller wrote:

Hey Inxsible, how have you been?  Miss seeing you in the taco lounge.

I definitely agree with Jason's tack.  I often run multiple X sessions on the same machine at the same time by switching consoles.  That way I can run i3, Xorg, or even Windows full screen in VirtualBox  and switch between them with Ctrl-Alt-Fx.  If you really feel the need, you can run a DM on one of those consoles -- but I would rather stick needles in my eyes.

Been good and busy. I miss being here too, but RL matters more. My 10 month old doesn't leave me enough time to do anything. The minute I open my laptop or sit at my desktop.... she wants to come and start banging her hands on my keyboard.
The only reason I added a DM was to achieve user switching.... my wife doesn't have a problem logging in at tty, so DM is just fluff for me.

Last edited by Inxsible (2017-02-14 15:41:03)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#11 2017-02-14 16:30:08

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [Solved using a better solution]How to set up user switching in i3

Ok...Tried it out. This was easier than setting up the DM and all the gdmflexiserver for user switching. I should have thought of it before.

Thanks Jason for the pointer. I tried it out and the keyboard layout sticks between the 2 X-sessions. So my wife can be happy with her qwerty and I with my dvorak.

Thanks everyone for your help as well.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#12 2017-02-14 17:12:34

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved using a better solution]How to set up user switching in i3

Inxsible wrote:

My 10 month old doesn't leave me enough time to do anything. The minute I open my laptop or sit at my desktop.... she wants to come and start banging her hands on my keyboard.


Give her a TTY to login to as well. 3 Archers in the family big_smile


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#13 2017-02-18 05:06:57

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [Solved using a better solution]How to set up user switching in i3

jasonwryan wrote:
Inxsible wrote:

My 10 month old doesn't leave me enough time to do anything. The minute I open my laptop or sit at my desktop.... she wants to come and start banging her hands on my keyboard.


Give her a TTY to login to as well. 3 Archers in the family big_smile

Soon .....

Last edited by Inxsible (2017-02-18 05:07:23)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB