The native menu $mod+d+e to either lock, hibrnate,logout,reboot,shutdown does not do the lock, hibernate, sleep
so i tried
@EndevourOS ~]$ gnome-session-quit
** (gnome-session-quit:20366): WARNING **: 14:32:55.176: Failed to call logout: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
with no success
how do i lock, sleep, hibernate from terminal???
if you run gnome + i3wm you might think about ( as post in Desktop Environments i3wm )
Warning: if you install EndeavourOS-i3 aside with a full DE (XFCE4, GNOME, Plasma e.t.c.)
you need to comment out dex starter from ~/.config/i3/config file !!!
#exec --no-startup-id dex -a -s /etc/xdg/autostart/:~/.config/autostart/
Here’s what I did:
Searched a lot but found no specific command that locks my PC and sends it to sleep.
However, i3lock locks my PC, and systemctl suspend suspends the system.
So I just created a keybinding with the following line: bindsym Control+$mod+l exec "i3lock && systemctl suspend"