Odd behavior after xscreensaver unlock in 24.04.1 latest
Ralf Mardorf
kde.lists at yahoo.com
Sun Sep 15 08:17:05 UTC 2024
On Sat, 2024-09-14 at 23:17 -0700, MR ZenWiz wrote:
> It has no way I can see for activation other than the screen timeout.
> Xscreensaver can be locked on demand, which I need.
Hi,
I don't have xfce4-screensaver installed, but seemingly
"xscreensaver-command -lock"
does the trick, https://docs.xfce.org/apps/xfce4-screensaver/faq .
Btw.
"[snip]
xflock4 is the reference Bash script which is used to lock an Xfce
session.
[snip]
To have xflock4 run [snip] any custom session locker [snip] one must
set LockCommand in the session's xfconf channel to the command line
to be used (the command inside the quotes in the following example
can be adapted accordingly for other screen lockers):
$ xfconf-query --create -c xfce4-session -p /general/LockCommand -t string -s "light-locker-command --lock"
[snip]" - https://wiki.archlinux.org/title/Xfce#Lock_the_screen
For a list of available screen lockers see
https://wiki.archlinux.org/title/List_of_applications/Security#Screen_lockers
and
https://wiki.archlinux.org/title/Session_lock#By_environment
and then check if a particular locker is available as an official Ubuntu package
https://packages.ubuntu.com/
An example from my machine, running
$ xflock4
from command line locks the screen using xlock
$ grep LockCommand ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
<property name="LockCommand" type="string" value="xlock -mode blank"/>
You can assign it to a shortcut or add a menu entry.
Regards,
Ralf
More information about the ubuntu-users
mailing list