Registered Member
|
Anyone know how to lock the screen from the command line in KDE? I can't find any information online that isn't out of date.
|
Registered Member
|
At here the:
seems to work. At here: Desktop: KDE Plasma 5.4.1 Distro: Arch Linux |
Registered Member
|
You might want to use a more generic solution by simply asking logind to lock a session.
Either via `loginctl` or through D-Bus on `org.freedesktop.login1`. |
Registered Member
|
That works great thanks for the responses!
Extension if you want to lock the screen and sleep the computer programmatically or from a shortcut:
|
KDE Developer
|
just do loginctl suspend - that will suspend the system and automatically lock the screen.
|
Registered Member
|
loginctl lock-session ( there is no loginctl suspend)
to suspend: systemctl suspend. |
KDE Developer
|
sorry, of course systemctl suspend. And yes that locks automatically (I implemented it, because suspend through GUI was broken for me
|
Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]