You are not logged in.

#1 2007-09-30 14:40:07

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Openbox help required :-)

Its been around a year since I last used openbox, and i can really remember any of the configuration or where the files are situated.

I have searched the web and nearly every site is telling me different things, so i wanted to ask a few quick and easy (i hope) questions.

1) When i start openbox from my gdm, how can I point it to run my own startup script. E.g. like the fluxbox root command option. So i could add into the init file /home/crooksey/scripts/obstart, then that would run all of my startup options such as feh and conky.

2) How do i start xcompmgr with openbox to give me true transparent terminals, i have tried "xcompmgr -o 50" and such but cant get it working, if someone could post how they did it (and their .Xdefaults, so i can check its just not mine!) i would be gratefull.

Thanks.


Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

#2 2007-09-30 15:00:24

Hohoho
Member
Registered: 2007-06-23
Posts: 222

Re: Openbox help required :-)

Offline

#3 2007-09-30 16:10:02

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Re: Openbox help required :-)

Thanks, that solves question one smile


Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

#4 2007-09-30 16:44:05

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Openbox help required :-)

there shouldn't be any problem with xcompmgr - just put it in autostart.sh.

I use: "xcompmgr -cC -t-3 -l-5 -r5 -I0.3 -O0.03 -D2 -f &"
but something like "xcompmgr &" would be sufficient to have transparent terminals.

Offline

#5 2007-09-30 17:55:35

fallen
Member
Registered: 2005-08-03
Posts: 30

Re: Openbox help required :-)

i use openbox with slim
so i just need to put everything i need to start in the .xinitrc file....
somthing like that

#scim -d
xfdesktop&
xfce4-panel&
#eval `cat ~/.fehbg` &
#lxpanel&
#exec openbox

hope it helps


Openbox now

Offline

#6 2007-10-01 20:09:33

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Re: Openbox help required :-)

I only get transparency to my desktop, could you post your .Xdefaults so i can test if its my system or my .Xdefaults?


Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

#7 2007-10-01 20:39:10

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Openbox help required :-)

My .Xdefaults (well, the relevant part anyways):

xft.dpi::    96
xft.antialias::    true
xft.hinting::    true
xft.rgba::    rgb

Xcursor*theme::    neutral

!!Greenish theme
*color0::       #000000
*color8::       #666666
*color1::       #b45151
*color9::       #fe8686
*color2::       #8ba574
*color10::      #a5dca5
*color3::       Khaki3
*color11::      #efe58b
*color4::      #414171
*color12::      #86cdea
*color5::       #aa6eaf
*color13::      #b698b8
*color6::       #418179
*color14::      #71bebe
*color7::       #bebebe
*color15::      #ffffff

urxvt*termName::         rxvt
urxvt*tintColor::     #ffffff
urxvt*depth::            32
urxvt*background::       rgba:0000/0000/0000/bbbb
urxvt*foreground::       #eeeeee
urxvt*secondaryScroll::  true
urxvt*cursorColor::      #e6e6e5
urxvt*pointerColor::     #e6e6e5
urxvt*internalBorder::   0
urxvt*loginShell::       true
urxvt*font::         -*-terminus-medium-*-normal-*-12-*-*-*-*-*-*-*
urxvt*boldFont::     -*-terminus-medium-*-normal-*-12-*-*-*-*-*-*-*
urxvt*italicFont::     -*-terminus-medium-*-normal-*-12-*-*-*-*-*-*-*
urxvt*boldItalicFont::     -*-terminus-medium-*-normal-*-12-*-*-*-*-*-*-*
urxvt*title::            urxvt
urxvt*utf8::             0
urxvt*saveLines::        32767
urxvt*scrollBar::        false
urxvt*scrollTtyOutput::  false
urxvt*scrollTtyKeypress::        true
urxvt*cursorBlink::      true
urxvt*geometry::         110x35
urxvt*perl-lib::         /usr/lib/urxvt/perl/
urxvt*perl-ext-common::  default,matcher,searchable-scrollback
urxvt*urlLauncher::      /usr/bin/swiftweasel
urxvt*matcher.button::   1

My autostart.sh:

#!/bin/bash
#xsetroot -solid black
nitrogen --restore

# D-bus
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
eval `dbus-launch --sh-syntax --exit-with-session`
fi
                                                           
# Other apps

export OOO_FORCE_DESKTOP="gnome"
xcompmgr -cC -t-3 -l-5 -r5 -I0.3 -O0.03 -D2 -f &
xscreensaver&
trackerd&
thunar --daemon&
conky&
(sleep 2 && pypanel)&
(sleep 3 && xrdb ~/.Xdefaults)&

I hope this helps.

Offline

#8 2007-10-01 21:05:59

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Re: Openbox help required :-)

Could you post the whole .Xdefaults as that dosent load tongue


Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

#9 2007-10-01 21:16:59

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Openbox help required :-)

Crooksey wrote:

Could you post the whole .Xdefaults as that dosent load tongue

The problem is elsewhere, in that case, since I have just backed up my original .Xdefaults and copy and pasted what I posted here into a new .Xdefaults file and it loaded without problems.

What message do you get when it doesn't load?

Offline

#10 2007-10-01 21:25:10

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Re: Openbox help required :-)

crooksey >> 10:24 PM ~ $ urxvt
urxvt: perl extension ':  default' not found in perl library search path
urxvt: unable to parse color ':       #eeeeee', using pink instead.
urxvt: unable to parse color ':       rgba:0000/0000/0000/bbbb', using pink instead.
urxvt: unable to parse color ':       #000000', using pink instead.
urxvt: unable to parse color ':       #b45151', using pink instead.
urxvt: unable to parse color ':       #8ba574', using pink instead.
urxvt: unable to parse color ':       Khaki3', using pink instead.
urxvt: unable to parse color ':      #414171', using pink instead.
urxvt: unable to parse color ':       #aa6eaf', using pink instead.
urxvt: unable to parse color ':       #418179', using pink instead.
urxvt: unable to parse color ':       #bebebe', using pink instead.
urxvt: unable to parse color ':       #666666', using pink instead.
urxvt: unable to parse color ':       #fe8686', using pink instead.
urxvt: unable to parse color ':      #a5dca5', using pink instead.
urxvt: unable to parse color ':      #efe58b', using pink instead.
urxvt: unable to parse color ':      #86cdea', using pink instead.
urxvt: unable to parse color ':      #b698b8', using pink instead.
urxvt: unable to parse color ':      #71bebe', using pink instead.
urxvt: unable to parse color ':      #ffffff', using pink instead.
urxvt: unable to parse color ':      #e6e6e5', using pink instead.
urxvt: unable to parse color ':     #e6e6e5', using pink instead.
urxvt: unable to parse color ':       rgba:0000/0000/0000/bbbb', using pink instead.
urxvt: unable to parse color ':     #ffffff', using pink instead.
urxvt: unable to load base fontset, please specify a valid one using -fn, aborting.


Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

#11 2007-10-01 22:10:18

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: Openbox help required :-)

Crooksey, all you need in the .Xdefaults for transparency in urxvt are the following two lines:

urxvt*depth:            32
urxvt*background:       rgba:0000/0000/0000/bbbb

Note the single colons after each Xresource.  I've had parse errors in the past when I used double colons.


thayer williams ~ cinderwick.ca

Offline

#12 2007-10-01 22:14:01

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Openbox help required :-)

Yep, it's the double colons... I need them for some reason, but some users don't it seems.

Offline

#13 2007-10-01 22:21:07

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Re: Openbox help required :-)

Now its giving a font error, even though I have terminus installed and use it on other apps.

crooksey >> 11:18 PM ~ $ urxvt
urxvt: unable to load base fontset, please specify a valid one using -fn, aborting.

Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

#14 2007-10-01 22:25:09

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Openbox help required :-)

make sure that the font that's defined in urxvt*font (and variants) is a font that exists in your system.  Or just use something like

urxvt*font:             xft:Monospace:pixelsize=10

and delete the other font references (boldFont, italicFont, and boldItalicFont).

Offline

#15 2007-10-01 22:30:44

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Re: Openbox help required :-)

Thanks, really appreciated big_smile


Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

#16 2007-10-01 22:51:12

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Openbox help required :-)

no problem...
btw, if you search these forums you'll find *lots* of urxvt/Xdefaults configs, some likely better than mine wink

Offline

#17 2007-10-02 13:20:39

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Re: Openbox help required :-)

Yea, I just wanted to test because mine wasnt working, its been re written now!

One more quick question, in my openbox menu I am trying to have single applications before my submenus of apps start, so something like:

Openbox
-----------
urxvt
firefox
-----------
applications >
media >
office>
-----------
obconf
exit

I just cant seem to add in the applications without them being in a sub menu, my menu.xml looks like:

<?xml version="1.0" encoding="UTF-8"?>
  
<openbox_menu xmlns="http://openbox.org/3.4/menu">
  
  <item label="rxvt-unicode">
    <action name="Execute"><command>urxvt</command></action>
  </item>
  <separator />

<menu id="apps-menu" label="Internet">
........................

I cant get that app to show in my menu, any ideas?


Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

#18 2007-10-02 14:08:54

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: Openbox help required :-)

Hrmm, here's a snippet of mine... the only real difference I see is that mine has a root menu at the top (that closes at the very bottom of the document):

<?xml version="1.0" encoding="UTF-8"?>
<openbox_menu>
    <menu id="root-menu" label="OpenBox 3">
    <separator label="Openbox" />
        <item label="gvim"> <action name="Execute"> <execute>gvim</execute> </action> </item>
        <item label="Shell"> <action name="Execute"> <execute>urxvt</execute> </action> </item>
        <item label="Nautilus"> <action name="Execute"> <execute>nautilus</execute> </action> </item>
        <separator />
        <menu id="2" label="Editors">
        ...
        ...
        </menu>
    </menu>
</openbox_menu>

thayer williams ~ cinderwick.ca

Offline

#19 2007-10-02 14:23:52

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Re: Openbox help required :-)

Thanks, my root menu was at the bottom of my menu file. just moved my entires.


Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

Board footer

Powered by FluxBB