Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: linus72 on June 25, 2009, 08:14:14 AM

Title: Can TC have different wallpapers for FLWM and JWM?
Post by: linus72 on June 25, 2009, 08:14:14 AM
I ahve both desktops and was wondering how to get different wallpapers for each?

I tried setting both desktops with different pictures and it doesn't work, whichever pic I choose
comes up when I choose a different wallpaper.

meaning I got the same wallpaper for both wm's and if I change it for JWM, it also changes it for FLWM.

Is there a way to fix this?
thamks
Title: Re: Can TC have different wallpapers for FLWM and JWM?
Post by: junan on June 26, 2009, 02:21:28 AM
no automatic way , only manual. the background wallpaper is set wm agnostic.
add to .xsession  at your /home/$USER (usually /home/tc) before it call ./.setbackground

[ "$DESKTOP" == "flwm" ] && echo "Esetroot -s /opt/.backgrounds/namefile.jpg" > .setbackground
[ "$DESKTOP" == "jwm" ] && echo "Esetroot -s /opt/.backgrounds/otherfile.jpg > .setbackground

Title: Re: Can TC have different wallpapers for FLWM and JWM?
Post by: mikshaw on June 26, 2009, 06:36:07 AM
alternative code that does essentially the same thing...
Code: [Select]
case $DESKTOP in
    flwm) BG=namefile.jpg ;;
    jwm) BG=otherfile.jpg ;;
    *) BG=fallback.jpg ;;   # used for any WM not specified above
esac
echo "Esetroot -s /opt/.backgrounds/$BG" >.setbackground
One benefit to this method is that adding window managers takes less code, and you can easily add other commands that are dependent on what window manager you pick.