WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Still having problems with Openbox/JWM in tc 2.1, help needed.  (Read 3806 times)

Offline linus72

  • Full Member
  • ***
  • Posts: 196
  • Damn it Jim!
OK, I still can't get tc to set a different wallpaper for each windowmanager
I have 1 wallpaper for JWM
and I have 1 wallpaper for Openbox + tint2(works OK)

Now, here's my .xsession and .setbackground

Code: [Select]
Xvesa -br -screen 1024x768x32 -shadow -mouse /dev/input/mice,5 -nolisten tcp -I 2>&1 > /dev/null &
waitforX
export ICONS=`cat /etc/sysconfig/icons`
export DESKTOP=`cat /etc/sysconfig/desktop`
"$DESKTOP" 2>/tmp/wm_errors &
export WM_PID=$!
[ -x ./.setbackground ] && ./.setbackground
[ "$ICONS" == "wbar" ] && /usr/bin/wbar.sh
[ -x ./.mouse_config ] && ./.mouse_config &
[ "$DESKTOP" == "openbox" ] && /usr/local/bin/tint2 -c /usr/local/etc/xdg/tint2/sxnsx-tint2rc
[ "$DESKTOP" == "jwm" ] && echo "Esetroot -s /opt/.backgrounds/apple-style-linux-wallpaper.jpg" > .setbackground
[ "$DESKTOP" == "openbox" ] && echo "Esetroot -s /opt/.backgrounds/tcl.jpg > .setbackground
wait $WM_PID

Code: [Select]
#!/bin/sh
Esetroot -s /opt/.backgrounds/tcl.jpg

so, what should I do?
thanks alot ;)

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: Still having problems with Openbox/JWM in tc 2.1, help needed.
« Reply #1 on: July 01, 2009, 06:06:47 PM »
your .xsession is executing .setbackground before you change it. The echo Esetroot lines need to be before the ./.setbackground line for those backgrounds to load automagically.
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline linus72

  • Full Member
  • ***
  • Posts: 196
  • Damn it Jim!
Re: Still having problems with Openbox/JWM in tc 2.1, help needed.
« Reply #2 on: July 01, 2009, 07:43:51 PM »
So, do you mean it should be like this?

Code: [Select]
Xvesa -br -screen 1024x768x32 -shadow -mouse /dev/input/mice,5 -nolisten tcp -I 2>&1 > /dev/null &
waitforX
export ICONS=`cat /etc/sysconfig/icons`
export DESKTOP=`cat /etc/sysconfig/desktop`
"$DESKTOP" 2>/tmp/wm_errors &
export WM_PID=$!
[ "$DESKTOP" == "openbox" ] && /usr/local/bin/tint2 -c /usr/local/etc/xdg/tint2/sxnsx-tint2rc
[ "$DESKTOP" == "jwm" ] && echo "Esetroot -s /opt/.backgrounds/vector_wallpaper_by_seppoftw.jpg" > .setbackground
[ "$DESKTOP" == "openbox" ] && echo "Esetroot -s /opt/.backgrounds/linux.jpg > .setbackground
[ -x ./.setbackground ] && ./.setbackground
[ "$ICONS" == "wbar" ] && /usr/bin/wbar.sh
[ -x ./.mouse_config ] && ./.mouse_config &
wait $WM_PID

Or what??
thanks

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: Still having problems with Openbox/JWM in tc 2.1, help needed.
« Reply #3 on: July 01, 2009, 08:01:00 PM »
yes, now your .setbackground is being changed before it is executed.
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline linus72

  • Full Member
  • ***
  • Posts: 196
  • Damn it Jim!
Re: Still having problems with Openbox/JWM in tc 2.1, help needed.
« Reply #4 on: July 01, 2009, 08:25:11 PM »
Sorry RobC it's not working, 3 reboots, deleting mydata.gz and starting over, etc none worked

tint2 says error but still is there, However, no wallappaer, just a Black screen
What's wrong??

How can I fix it?
does yours work?
can I see your .xsession?
thsanks

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Still having problems with Openbox/JWM in tc 2.1, help needed.
« Reply #5 on: July 02, 2009, 02:04:05 AM »
The commands you input to the file don't create an executable script: #!/bin/sh or the shebang is missing.

Try something like:
Quote
Xvesa -br -screen 1024x768x32 -shadow -mouse /dev/input/mice,5 -nolisten tcp -I 2>&1 > /dev/null &
waitforX
export ICONS=`cat /etc/sysconfig/icons`
export DESKTOP=`cat /etc/sysconfig/desktop`
"$DESKTOP" 2>/tmp/wm_errors &
export WM_PID=$!
[ -x ./.setbackground ] && ./.setbackground
[ "$DESKTOP" == "openbox" ] && /usr/local/bin/tint2 -c /usr/local/etc/xdg/tint2/sxnsx-tint2rc
[ "$DESKTOP" == "jwm" ] && Esetroot -s /opt/.backgrounds/vector_wallpaper_by_seppoftw.jpg
[ "$DESKTOP" == "openbox" ] && Esetroot -s /opt/.backgrounds/linux.jpg
[ "$ICONS" == "wbar" ] && /usr/bin/wbar.sh
[ -x ./.mouse_config ] && ./.mouse_config &
wait $WM_PID
Here, instead of modifying the file, you just set the wallpaper to something other than the default for jwm and openbox.
The only barriers that can stop you are the ones you create yourself.

Offline linus72

  • Full Member
  • ***
  • Posts: 196
  • Damn it Jim!
Re: Still having problems with Openbox/JWM in tc 2.1, help needed.
« Reply #6 on: July 02, 2009, 06:38:53 AM »
OK, thanks Curaga, I'm gonna try it ;D

I hope it works.

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: Still having problems with Openbox/JWM in tc 2.1, help needed.
« Reply #7 on: July 02, 2009, 12:59:19 PM »
I understand your frustration with the .xsession file  :)
I spent a few days to get this simple .xsession to work properly:
Code: [Select]
Xvesa -br -screen 1024x768x32 -shadow -mouse /dev/input/mice,5 -nolisten tcp -I 2>&1 > /dev/null &
waitforX
xset s off &
xsetroot -solid "#4F5F82" -cursor /usr/share/misc/emptycursor /usr/share/misc/emptycursor &
xhost local:root &
tinywm
The problem I had was if I didn't background one of my commands then one of the others wouldn't work  ??? >:(
This was on TC 2.0 so I had to borrow the waitforX binary from TC 2.1

Quote
The commands you input to the file don't create an executable script: #!/bin/sh or the shebang is missing.
I was wondering about that too, but I tried running .setbackground without it from the CLI and it still worked. If you still want to modify the .setbackground file then you can do something like this:
Code: [Select]
[ "$DESKTOP" == "openbox" ] && echo '#!/bin/sh
Esetroot -s /opt/.backgrounds/linux.jpg' > .setbackground

Also your end quote for the echo command is missing for the openbox line.
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline linus72

  • Full Member
  • ***
  • Posts: 196
  • Damn it Jim!
Re: Still having problems with Openbox/JWM in tc 2.1, help needed.
« Reply #8 on: July 03, 2009, 07:06:41 PM »
Well, guys, it's still not working :'(

I have tried everything I know to get Openbox and JWM tto live together
and have different wallpapers and I guess that's not possiible??

I tried all suggesstions above and what I got right now is openbox loads up with the jwm wallpaper and NO wbar at all??!

so, I guess the solution must be to delete one and only use either jwm or openbox

So, can you guys post that in the openbox apps browser, that it doesn't/can't work together with JWM.
Or any suggesstions?


Offline linus72

  • Full Member
  • ***
  • Posts: 196
  • Damn it Jim!
Re: Still having problems with Openbox/JWM in tc 2.1, help needed.
« Reply #9 on: July 03, 2009, 07:44:16 PM »
OK, I got Openbox working OK, wbar loads and tint2 loads fine
here's .xsession

Code: [Select]
Xvesa -br -screen 1024x768x32 -shadow -mouse /dev/input/mice,5 -nolisten tcp -I 2>&1 > /dev/null &
waitforX
export ICONS=`cat /etc/sysconfig/icons`
export DESKTOP=`cat /etc/sysconfig/desktop`
"$DESKTOP" 2>/tmp/wm_errors &
export WM_PID=$!
[ -x ./.setbackground ] && ./.setbackground
[ "$ICONS" == "wbar" ] && /usr/bin/wbar.sh
[ "$DESKTOP" == "openbox" ] && /usr/local/bin/tint2 -c /usr/local/etc/xdg/tint2/sxnsx-tint2rc
[ "$DESKTOP" == "openbox" ] && Esetroot -s /opt/.backgrounds/linux1.jpg
[ -x ./.mouse_config ] && ./.mouse_config &
wait $WM_PID

However, I haven't tried to use JWM yet....should I uninstall jwm or try again to get seperate
backgrounds for both?
thanks