View Full Version : [SOLVED] Start lxpanel at upper left corner?

1st October 2011, 02:39 PM

In ~/.config/autostart i have a lxpanel.desktop:

[Desktop Entry]
Comment=Use the command line
Exec=lxterminal --geometry=100x45+1+1 --title="sea Console"
And it opens on login, so far so good.

However, i assumed that +1+1 would place it in upper left corner, 1 line and 1 collum distance from screen border.
Thats not the case.
Even +0+0 doesnt have an effect.

Any idea how i can place it in upper left corner?
Thank you.

1st October 2011, 03:10 PM
lxterminal doesn't conform to the standard X-server geometry format. You can only dictate it's size, not it's screen location.


I just installed lxterminal to check it out and test it. You could use another terminal, such as xterm or urxvt, which will allow you to use the --geometry=XxY+x+y format.

1st October 2011, 03:12 PM
I'd like to have that yummy transparent effect, which i dont have with xterm :(
Going to try urxvt.
Fedora hasnt that in repos, right?

Ty :(

1st October 2011, 03:40 PM
Yes, install urxvt from Fedora repo using: yum install rxvt-unicode
urxvt allows for true transparent background if you are using a compositing manager that supports that. I use xcompmgr with Openbox (no LXDE) which does true transparency. True, xterm will not do transparent backgrounds.

---------- Post added at 10:40 AM ---------- Previous post was at 10:20 AM ----------

You can configure uxrvt from either command line options or, easier, from ~/.Xresources file. Here's my ~/.Xresources entries for urxvt:

BASH:~/-> cat .Xresources | grep URxvt
URxvt*title: urxvt
URxvt*depth: 32
URxvt*saveLines: 12000
URxvt*loginShell: true
URxvt*internalBorder: 3
URxvt*cursorColor: orange
URxvt*pointerColor: yellow
URxvt*foreground: WhiteSmoke
URxvt*background: rgba:0000/0000/0000/2222
URxvt*geometry: 140x50+110+60
URxvt*font: xft:Bitstream Vera Sans Mono:pixelsize=13
!URxvt*font: -*-courier-medium-r-normal-*-*-140-*-*-*-*-iso8859-1
!URxvt*boldFont: -*-courier-bold-r-normal-*-*-140-*-*-*-*-iso8859-1
URxvt*scrollBar: false
URxvt*scrollBar_right: false
URxvt*scrollstyle: rxvt
The line in bold sets the background color and transparency level.

1st October 2011, 03:53 PM
I've copy pasted your settings to ~/.Xresources as it didnt exists on my LXDE system.
I have just the same white backround as in xterm :(

Or would these changes only match if my system wasnt LXDE?

---------- Post added at 02:53 PM ---------- Previous post was at 02:49 PM ----------

urxvt -background rgba:0000/0000/0000/2222

Shows up with a black background, but no desktop-background shown.

1st October 2011, 04:12 PM
What does LXDE use as it's compositing manager? Or does it even have one? Did you log out and back in of your session after creating the ~/.Xresources file?

---------- Post added at 11:00 AM ---------- Previous post was at 10:55 AM ----------

The settings for urxvt in the .Xresources file are valid for any DE you might be using. However, the transparency setting will only work if you are using a compositing manager that supports true transparency, not pseudo-transparency.

---------- Post added at 11:12 AM ---------- Previous post was at 11:00 AM ----------

Anytime you create/modify/edit your ~/.Xresources or ~/.Xdefaults file, you either have to log out and back in to your session to make the changes active, or, easier, just give the command:

xrdb -merge ~/.Xresources

And with URxvt*background: rgba:0000/0000/0000/2222
the background should be black, even if transparency isn't working.

1st October 2011, 04:16 PM
Dont know what compositing manager (if any) LXDE uses, all i know is that it uses openbox.
Ok after relog, it applied changes, however, transparency isnt one of them, just simple black.

I'd rather move the shell around, than miss the transperncy :(

1st October 2011, 04:18 PM
LXDE uses openbox. You'll have to specify the x and y coordinates. (Sea, I mention it on the article I linked earlier.)

So something like, in the applications section of $HOME/.config/openbox/lxde-rc.xml

application name="gbuffy">

That's cut and pasted from an entry in my rc.xml--that layer and desktop thing just makes it appear on all desktops and always be on top. Decor just means no top frame. All those are probably unnecessary for your needs. You probably just want the name, getting that is also covered on that page I mentioned in the other thread.

1st October 2011, 04:26 PM
I was just looking the same, though i havent found any examples using <position> in lxde-rc.xml.
Yes roadrunner, but that was about a keybinding, not position of shell, allthough it seems to be thhe same file.. ;)

Well i did found soemthing with position, but that was inside the <dock> section.

---------- Post added at 03:26 PM ---------- Previous post was at 03:21 PM ----------

Yup, that was the proper place to look.
Thank you very much, both of you :)

<application title="sea Console">

1st October 2011, 04:31 PM
Then it would appear LXDE doesn't give you a compositing manager along with OpenBox. You could:

yum install xcompmgr
Then add to your ~/.config/openbox/autostart.sh file, the line:

(sleep 2 && xcompmgr -cCfF -r7 -o.65 -l-10 -t-8 -D4) &

Then restart your LXDE session and urxvt should show background transparency, unless something about LXDE itself interferes with xcompmgr.