Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3260

Graphical Environments & Desktops • howto start xscreensaver from commandline ?

$
0
0
Hello,
i was looking for a possibility to lock the screen and unlock it with a Yubico Key.I tried swaylock but give up because of swaylock startup error (Missing ext-session-lock-v1, wlr-layer-shell, wlr-input-inhibitor.

Then i switched from Wayland to X11 and installed xscreensaver, edited /etc/pam.d/xscreensaver and voila, screen locking and unlocking works better than expected. The only thing i am unable to figure out is how to start the screensver from a terminal. Executing xscreensver strats the xscreensaver settings and from there starts the process. I figured out it doesn't seem a "really" daemin but rather a background process.

So, i don't want to start the screensaver at startup, on demand. Ok, why ? Sometimes i am on the road and don't want to log off or shut down but instead have a short command to start the screensaver, i.e. probably in a shell script like :
#! /bin/sh
#load screensaver
"command to start the screensave......r"
#go to immediat lockscreen
xscreensaver-command -lock
Thank you in advance for any help

Statistics: Posted by oida — 2024-02-11 19:03 — Replies 4 — Views 100



Viewing all articles
Browse latest Browse all 3260

Trending Articles