WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Fluxbox.tce how to keep fluxbox style at reboot??  (Read 3269 times)

Offline linus72

  • Full Member
  • ***
  • Posts: 196
  • Damn it Jim!
Fluxbox.tce how to keep fluxbox style at reboot??
« on: July 05, 2009, 09:36:20 AM »
OK,
playing with Fluxbox but after I backup and then reboot the flux-style/theme I had backed-up is gone
and the default theme is in place again

So, I changed theme/style from default to "lemonspace", but at reboot I get default theme/style
please help
thanks

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: Fluxbox.tce how to keep fluxbox style at reboot??
« Reply #1 on: July 05, 2009, 01:03:51 PM »
Most likely ~/.fluxbox

Offline linus72

  • Full Member
  • ***
  • Posts: 196
  • Damn it Jim!
Re: Fluxbox.tce how to keep fluxbox style at reboot??
« Reply #2 on: July 05, 2009, 08:24:25 PM »
OK, I got it working with jwm and microcore 2.1
this way I have 2 different wallpapers for the 2 wm's
only way I could get it to work
any opinions?
here's my .xsession and filetool.lst

Code: [Select]
/usr/bin/Xvesa -br -screen 1024x768x24 -shadow -mouse /dev/psaux,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=$!
[ "$ICONS" == "wbar" ] && /usr/bin/wbar.sh
[ "$DESKTOP" == "fluxbox" ] && Esetroot -s /opt/.flux-backgrounds/12.jpg
[ "$DESKTOP" == "jwm" ] && Esetroot -s /opt/.backgrounds/2.jpg
[ -x ./.setbackground ] && ./.setbackground
[ -x ./.mouse_config ] && ./.mouse_config &
wait $WM_PID

and I added this to filetool.lst after making a .flux-backgrounds folder
Code: [Select]
opt/.flux-backgrounds
here's my .setbackground

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

And I changed the backgrounds symlink in home/tc/.fluxbox from
pointing to opt/.backgrounds to opt/.flux-backgrounds

Also, changing the fluxbox styles via menu wouldn't save at reboot
I had to manually edit home/tc/.fluxbox/init to achieve persistent bar setting, style etc

OH, anyway to get wbar to only show up for jwm and not fluxbox?
I want to use flux with no wbar, but when I edit it out of .xsession it doesn't show up for
jwm either.
any way to get wbar for jwm, but not for fluxbox?
thanks and any advice is welcome

Offline mikshaw

  • Sr. Member
  • ****
  • Posts: 368
Re: Fluxbox.tce how to keep fluxbox style at reboot??
« Reply #3 on: July 06, 2009, 07:53:08 AM »
I once had a similar setup for a while in another distro, although I used case instead of individual tests.
Also, since fluxbox sets the background itself, I don't think you need to specifically call Esetroot for that window manager.
Also also, you can save some bytes by  using a variable for your image filename and use just one command to set the background
Also also also, it looks like you're setting the background twice.  If you run Esetroot from .xsession, there should be no need to use .setbackground

Code: [Select]
case "$DESKTOP" in
fluxbox) BG=12.jpg ;;
jwm) BG=2.jpg; [ "$ICONS" == "wbar" ] && /usr/bin/wbar.sh  ;;
esac
Esetroot -s /opt/.backgrounds/$BG

An alternative, if you want to still use .setbackground (i think it might be used by the wallpaper tool?)...
Code: [Select]
case "$DESKTOP" in
fluxbox) BG=12.jpg ;;
jwm) BG=2.jpg; [ "$ICONS" == "wbar" ] && /usr/bin/wbar.sh ;;
esac
echo "Esetroot -s /opt/.backgrounds/$BG" > .setbackground
[ -x .setbackground ] && sh .setbackground

EDIT: I noticed an error with my script.  If you do echo "Esetroot -s /opt/.backgrounds/$BG" > .setbackground, it can't be run as an executable script because the "#!/bin/sh" is gone, so I changed it to sh .setbackground
« Last Edit: July 06, 2009, 10:22:28 PM by mikshaw »

Offline linus72

  • Full Member
  • ***
  • Posts: 196
  • Damn it Jim!
Re: Fluxbox.tce how to keep fluxbox style at reboot??
« Reply #4 on: July 06, 2009, 08:39:27 AM »
OK mikshaw, I'm gonna try that too:)

Now, check out first 2 screenshots here
1st is fluxbox/microcore and 2nd is openbox/tinycore
( http://multidistro.com/tinycore-shots/tc-scrnshots.html )

Quote
Also, since fluxbox sets the background itself, I don't think you need to specifically call Esetroot for that window manager.

I tried that and fluxbox won't set the background or keep styles at reboot unless I manually edit
.fluxbox/init

I'm tryng to get jwm to have a seperate wallpaper, so I'll either ditch jwm or maybe your advice will help, so I'm gonna try what you said:)

Offline linus72

  • Full Member
  • ***
  • Posts: 196
  • Damn it Jim!
Re: Fluxbox.tce how to keep fluxbox style at reboot??
« Reply #5 on: July 06, 2009, 07:18:33 PM »
Wow, now, this morning I attempted to use the fluxbox menu to open Opera and no dice for either Opera
Opera opens thru term and thru wbar; but not thru fluxbox menu???!

I then deleted the whole tce folder and original 2.1 tinycore kernel/initrd
and started over
Same result, Opera will not open thru fluxbox?
help:)