You are not logged in.
Hello,
suspend works very well but,I can not lock my screen any more unless i type the command "light-locker-command -l"
Is there any configuration i should do to adjust the lock screen button on xfce menu ?!
Last edited by medo tareq (2015-08-23 14:44:44)
Offline
Do you have xscreensaver installed?
I possess a device, in my pocket, that is capable of accessing the entirety of information known to man.
I use it to look at funny pictures of cats and to argue with strangers.
Offline
Do you have xscreensaver installed?
no , i did not but i created a keyboard shortcut for executing the command.
Offline
Hello,
suspend works very well but,I can not lock my screen any more unless i type the command "light-locker-command -l"
Is there any configuration i should do to adjust the lock screen button on xfce menu ?!
Which menu are you using?
If you are using the whisker-menu, then set the command in the "Commands" tab of its properties.
Otherwise, xflock4 hasn't been patched yet to include light-locker support by upstream. As a work-around, create a /usr/local/bin/xflock4 file with the following content:
#!/bin/sh
PATH=/bin:/usr/bin
export PATH
# Lock by light-locker, xscreensaver or gnome-screensaver, if a respective daemon is running
for lock_cmd in \
"light-locker-command -l" \
"xscreensaver-command -lock" \
"gnome-screensaver-command --lock"
do
if [ ! -z "$lock_cmd" ]; then
$lock_cmd >/dev/null 2>&1 && exit
fi
done
# else run another access locking utility, if installed
for lock_cmd in \
"xlock -mode blank" \
"slock"
do
set -- $lock_cmd
if command -v -- $1 >/dev/null 2>&1; then
$lock_cmd >/dev/null 2>&1 &
# turn off display backlight:
xset dpms force off
exit
fi
done
# else access locking failed
exit 1...and make the file executable.
Offline
Thanks alot toz ,it works very well.
Offline