You are not logged in.

#1 2015-08-22 07:48:57

medo tareq
Member
Registered: 2015-04-12
Posts: 26

[SOLVED] Xfce4 Light-Lock

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

#2 2015-08-22 08:07:32

dockland
Member
From: Sweden
Registered: 2015-06-06
Posts: 861

Re: [SOLVED] Xfce4 Light-Lock

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

#3 2015-08-22 10:20:36

medo tareq
Member
Registered: 2015-04-12
Posts: 26

Re: [SOLVED] Xfce4 Light-Lock

dockland wrote:

Do you have xscreensaver installed?


no , i did not but i created a keyboard shortcut for executing the command.

Offline

#4 2015-08-22 13:51:09

toz
Member
Registered: 2011-10-28
Posts: 513

Re: [SOLVED] Xfce4 Light-Lock

medo tareq wrote:

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

#5 2015-08-23 14:44:18

medo tareq
Member
Registered: 2015-04-12
Posts: 26

Re: [SOLVED] Xfce4 Light-Lock

Thanks alot toz ,it works very well.

Offline

Board footer

Powered by FluxBB