Wido wrote:
HI p! thanks, it does works.......well, sort of. I understand your
script and it's cool and when i launch it in the command line it
works, desktop got locked (no matter what terminal i use). but, when
launch thru lid.sh script it doesn't work. I put some prints and
echoes, so i know that thigs are done the right way (variables and
stuff) but still doesn't works :(
Hi Wido,
I am attaching the file /etc/acpi/actions/Fn_buttons.sh which is
called by my /etc/acpi/actions/lid file. I am also attaching a script
(x_lock) which calls enlightenment_remote in order to lock the display.
Perhaps you will get some idea how to fix it in your system.
Another thing I should mention is that those scripts call /bin/bash as
the interpreter and may need trivial modifications to work with some
other shell.
regards,
ppurka.
#!/bin/bash
# Script used to lock the screen irrespective of the DE #
# Supports e17, kde at present #
if [[ -z $DISPLAY ]]; then
exit;
fi
if pgrep -u $USER enlightenment >& /dev/null; then
WM=enlightenment
elif pgrep -u $USER kwin >& /dev/null; then
WM=kwin
elif pgrep -u $USER dwm >& /dev/null; then
WM=dwm
fi
case $WM in
enlightenment) /usr/bin/enlightenment_remote -display :0.0 -lock-desktop ;;
#kwin) /usr/kde/3.5/bin/kdesktop_lock --forcelock &;;
*) echo "$WM: No desktop lock available for $USER on this WM";;
esac
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users