Jump to content



Photo

Openbox Questions

openbox

  • Please log in to reply
7 replies to this topic

#1 Mindovermaster

Mindovermaster

    Neowinian Senior

  • Tech Issues Solved: 10
  • Joined: 25-January 07
  • Location: /USA/Wisconsin/
  • OS: Mint Debian LMDE
  • Phone: HTC ONE V

Posted 19 August 2013 - 21:05

I'm messing around with Openbox atm. Just seeing what I can do with it.

 

Wallpaper, I tried many managers, xsetroot , esetroot, hsetroot and nitrogen. None seem to work. Unless any of you know the autostart works with any of these managers. I did add the program to autostart, but it didn't seem to do anything. This is my autostart:

#XFCE Panel
xfce4-panel

#Wallpaper
feh --bg-fill ~/matrix.jpg

I tried to mess with the feh code, but nothing seems to work. Anybody know about feh? I tried looking it up on google, arch, openbox, etc. But I can't see a solution where you can put it into autostart.

 

I got XFCE4-panel up. So, I'm happy I got that up :)

 

Might add more later...




#2 guitmz

guitmz

    Neowinian

  • Joined: 10-June 11
  • Location: Brazil
  • OS: Windows 8, Arch Linux, OSX 10.9
  • Phone: Nexus 5

Posted 19 August 2013 - 21:08

You can grab the autostart of CrunchBang distro :) I don't have it here @ work so I can't send you, sorry.. #! uses nitrogen



#3 guitmz

guitmz

    Neowinian

  • Joined: 10-June 11
  • Location: Brazil
  • OS: Windows 8, Arch Linux, OSX 10.9
  • Phone: Nexus 5

Posted 19 August 2013 - 21:10

Example: http://crunchbanglin...g/pastebin/1054

 

Description: http://crunchbanglin...ostart_programs



#4 OP Mindovermaster

Mindovermaster

    Neowinian Senior

  • Tech Issues Solved: 10
  • Joined: 25-January 07
  • Location: /USA/Wisconsin/
  • OS: Mint Debian LMDE
  • Phone: HTC ONE V

Posted 19 August 2013 - 21:22

Thanks, Guitmz. Looking at the code an applying it to my autostart, I don't get any wallpaper on my desktop unless I type nitrogen --restore in the terminal.

 

Here's my autostart again:

#XFCE Panel
xfce4-panel

#Wallpaper
nitrogen --restore &

:huh:  That should work? :angry:



#5 guitmz

guitmz

    Neowinian

  • Joined: 10-June 11
  • Location: Brazil
  • OS: Windows 8, Arch Linux, OSX 10.9
  • Phone: Nexus 5

Posted 19 August 2013 - 21:29

Hmmm that seems correct!

 

You'll need the & after XFCE as well (as far as I remember)

 

i bet (i hope im right) that you'll need a sleep in there... make something like this and try again: 

#Wallpaper

(sleep 2s && nitrogen --restore) &

#XFCE

(sleep 2s && xfce4-panel) &


#6 OP Mindovermaster

Mindovermaster

    Neowinian Senior

  • Tech Issues Solved: 10
  • Joined: 25-January 07
  • Location: /USA/Wisconsin/
  • OS: Mint Debian LMDE
  • Phone: HTC ONE V

Posted 19 August 2013 - 21:32

:D :D :D :D :D :D :D :D :D :D :D

 

OK, what exactly did you do there? I see you added a sleep, but exactly what does that do?



#7 guitmz

guitmz

    Neowinian

  • Joined: 10-June 11
  • Location: Brazil
  • OS: Windows 8, Arch Linux, OSX 10.9
  • Phone: Nexus 5

Posted 20 August 2013 - 03:03

 

:D :D :D :D :D :D :D :D :D :D :D

 

OK, what exactly did you do there? I see you added a sleep, but exactly what does that do?

 

It worked?

The sleep prevents one process to interrupt or cause issues in another. In other words, makes only a single process run per time and gives it plenty (few secs is enough) time to load everything it needs. I recommend adding the xfce as the last one or something like that because that way, the other critical process will be there already and wont need to wait for xfce (apparently the most resource hunger one) to load



#8 sean.ferguson

sean.ferguson

    Anonymous

  • Joined: 25-June 05
  • Location: Scotland
  • OS: GNU/Linux

Posted 25 August 2013 - 08:23

add your commands to the beginning of ~/.xinit

I have never had any issues with adding commands to .xinit in this way :)

xfce4-panel
feh --bg-scale ~/wallpaper.jpg