Wednesday, January 7, 2009

transparent conky background in fvwm-crystal+rox-filer


As you can see from the screenshot that I have finally managed to get a transparent conky background. Here is the script in my ~/bin directory
=====filename:conky_background.sh========
x=`sed 's/.*">\(.*\)<.*/\1/' /home/alind/.config/rox.sourceforge.net/ROX-Filer/pb_Default |grep '[.jpg|.png|.bmp]$'`
echo $x
sleep 20
feh --bg-scale $x
=============
And add the following line to .fvwm-crsytal start up file

+ I Test (x /home/alind/bin/conky_background.sh) Exec pidof /home/alind/bin/conky_background.sh || exec /home/alind/bin/conky_background.sh


Only problem is that if u change background during a current session then u have to run once conky_background.sh from command line. Else it will automatically load the new wallpaper during next startup of fvwm. I will try to automate this also. The reasons for non-transparent background of conky was some fighting b/w conky, rox-filer to draw on root-window. This makes them both draw the same pic and what u get is the illusion of transparency.
cheers!

Tuesday, January 6, 2009

enable sudo with root password

# apt-get install sudo (for debian users)
# visudo -f /etc/sudoers (open the file for modifiation)
add the following to the file
Defaults env_reset, rootpw
yourusername ALL=(ALL) ALL

Now you have a working sudo which will ask for root password instead of user password at the time of running sudo.Gives a feel-good feeling of entering super user password before running super user commands.