WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Can TC have different wallpapers for FLWM and JWM?  (Read 1907 times)

Offline linus72

  • Full Member
  • ***
  • Posts: 196
  • Damn it Jim!
Can TC have different wallpapers for FLWM and JWM?
« 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

Offline junan

  • Jr. Member
  • **
  • Posts: 88
Re: Can TC have different wallpapers for FLWM and JWM?
« Reply #1 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

fun and fearless ...

Offline mikshaw

  • Sr. Member
  • ****
  • Posts: 368
Re: Can TC have different wallpapers for FLWM and JWM?
« Reply #2 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.