Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see:
viewtopic.php?t=158230
New to Debian (Or Linux in general)? Ask your questions here!
chr0miam
Posts: 4 Joined: 2022-10-16 09:05
Has thanked: 4 times
#1
Post
by chr0miam » 2022-10-16 09:14
I did a minimal install of Debian and I am using dwm. I am using rofi to create a power menu. But some of the commands do not work.
Code: Select all
actions[lockscreen]="loginctl lock-session ${XDG_SESSION_ID-}"
#actions[switchuser]="???"
actions[logout]="loginctl terminate-session ${XDG_SESSION_ID-}"
actions[suspend]="systemctl suspend"
actions[hibernate]="systemctl hibernate"
actions[reboot]="systemctl reboot"
actions[shutdown]="systemctl poweroff"
* Reboot commands works.
* Shutdown works.
* Logout does not work.
* Lock screen does not work.
What are the correct commands to logout and lock screen and switch user?
chr0miam
Posts: 4 Joined: 2022-10-16 09:05
Has thanked: 4 times
#3
Post
by chr0miam » 2023-09-12 04:43
The logout command worked but not the lock screen one. Guess it depends on the login manager being used. And coming to that...
I didn't include a crucial bit of information. I am using
lightdm .
Running this on the terminal would be very helpful:
For "locking the screen":
The screen will turn black
You have to press a key to get to login screen
For "switching the user":
Hope this is helpful to anyone coming across this.