lock command in Exit Options  [Solved]

Help for MX Fluxbox
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
Jerry3904
Administrator
Posts: 23041
Joined: Wed Jul 19, 2006 6:13 am

lock command in Exit Options

#1 Post by Jerry3904 »

Trying to see what that is in order to answer a question in the FB group, TIA
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
Eadwine Rose
Administrator
Posts: 14424
Joined: Wed Jul 12, 2006 2:10 am

Re: lock command in Exit Options

#2 Post by Eadwine Rose »

Isn't that so folks have to enter their password again to access the desktop?

Basically used in offices so folks who have no business on the thing cannot use it while the operator is AFK for a bit.
MX-23.6_x64 July 31 2023 * 6.1.0-34amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.216.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

Nokkaelaein
Posts: 222
Joined: Fri Jul 17, 2020 10:32 am

Re: lock command in Exit Options  [Solved]

#3 Post by Nokkaelaein »

The lock command is

Code: Select all

dm-tool switch-to-greeter
and it brings the user back to the LightDM greeter, while still being logged in, and able to return to the desktop by entering the password again. Used for situations where you might want to keep a session going, but need to go away from the computer :) as said above.

User avatar
Jerry3904
Administrator
Posts: 23041
Joined: Wed Jul 19, 2006 6:13 am

Re: lock command in Exit Options

#4 Post by Jerry3904 »

Thanks, will give it a try. I'm on the Fluxbox forum btw so talking about that app.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

Nokkaelaein
Posts: 222
Joined: Fri Jul 17, 2020 10:32 am

Re: lock command in Exit Options

#5 Post by Nokkaelaein »

Jerry3904 wrote: Thu Jan 16, 2025 1:06 pm Thanks, will give it a try. I'm on the Fluxbox forum btw so talking about that app.
Yeah I figured, that is the command the exit-options app calls when clicking on the lock action icon 👍

User avatar
Melber
Developer
Posts: 1193
Joined: Tue Mar 23, 2021 4:19 pm

Re: lock command in Exit Options

#6 Post by Melber »

@Jerry3904
Just gave it a try in mxfb, works as described - click lock button and login screen appears, enter password and you're back to the mxfb "desktop".

User avatar
Jerry3904
Administrator
Posts: 23041
Joined: Wed Jul 19, 2006 6:13 am

Re: lock command in Exit Options

#7 Post by Jerry3904 »

Yeah, worked for me too. Will definitely add it to the MX FB 25 development list--which, BTW, I want to start pretty soon.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
siamhie
Global Moderator
Posts: 3214
Joined: Fri Aug 20, 2021 5:45 pm

Re: lock command in Exit Options

#8 Post by siamhie »

Nokkaelaein wrote: Thu Jan 16, 2025 11:42 am The lock command is

Code: Select all

dm-tool switch-to-greeter
and it brings the user back to the LightDM greeter, while still being logged in, and able to return to the desktop by entering the password again. Used for situations where you might want to keep a session going, but need to go away from the computer :) as said above.
+1
Just tested it in fluxbox and it worked like a charm.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

User avatar
i_ri
Posts: 1070
Joined: Tue Jun 30, 2015 12:26 am

Re: lock command in Exit Options

#9 Post by i_ri »

Hello Jerry3904
mxfb. menu-mx:
[exec] (password) {slock}
repository package:
<suckless-tools>
website:
tools.suckless.org/slock/
(?)

<i3lock> package maybe ceeslans has tried with using nakedquit. (?) try <i3lock -n>
<xtrlock> package try command <xtrlock -b>
Last edited by i_ri on Sat Jan 18, 2025 1:49 am, edited 1 time in total.

User avatar
i_ri
Posts: 1070
Joined: Tue Jun 30, 2015 12:26 am

Re: lock command in Exit Options

#10 Post by i_ri »

requiring lightdm:
<dm-tool lock>
differs a bit
<dm-tool switch-to-greeter>

which do you prefer for lock?
in terms of mxfb etiquette

Post Reply

Return to “MX Fluxbox Official Release”