You are not logged in.

#1 2009-12-20 21:45:07

NeoXP
Member
From: MS Matrix
Registered: 2009-01-09
Posts: 206
Website

[solved] Starting urxvtc on desktop 1

I would like to start a urxvtc on a specified desktop via the OpenBox autostart file, but I don't know how to do this.

At the moment I have the following entries to get urxvtc started, after starting OpenBox, on desktop 1

autostart.sh:

...
urxvtc &
...

rc.xml:

...
    <application class="URxvt*">
      <decor>no</decor>
      <skip_taskbar>yes</skip_taskbar>
      <focus>yes</focus>
      <position>
        <x>10</x>
        <y>10</y>
      </position>
      <layer>below</layer>
      <desktop>1</desktop>
      <maximized>false</maximized>
    </application>
...

.Xdefaults:

...
urxvt.geometry:        202x65
...

When I start a second urxvtc, it opens on desktop 1 with the geometry 202x65. So I'm using Xterm to get a terminal on the desktop I'm working in at that moment.

It would be nice to know the command to start a urxvtc with a certain geometry on desktop 1 via autostart.sh. And to start an second urxvtc on the desktop I'm working on at that moment with the normal geometry whenever I need it.

Last edited by NeoXP (2009-12-29 11:45:36)


Arch x86_64 on HP 6820s and on HP nx9420. Registered Linux User 350155, since 24-03-2004
"Everyone said that it could not be done, until someone came along who didn't know that."

Offline

#2 2009-12-24 04:32:57

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [solved] Starting urxvtc on desktop 1

Remove the line "<desktop>1</desktop>" from rc.xml.  It's telling all instances of urxvt to open on Desktop 1.

In autostart.sh, start urxvt with the command:

urxvt -geometry 202x65 &

In .Xdefaults, delete the "urxvt.geometry: 202x65" line or set it to something more to your liking.  This will be the size of any other instances of urxvt, except the one opened by your autostart file.  Without a geometry line, urxvt opens with 80 columns and 24 rows for me.

Offline

#3 2009-12-29 11:45:13

NeoXP
Member
From: MS Matrix
Registered: 2009-01-09
Posts: 206
Website

Re: [solved] Starting urxvtc on desktop 1

Thxs, solved.


Arch x86_64 on HP 6820s and on HP nx9420. Registered Linux User 350155, since 24-03-2004
"Everyone said that it could not be done, until someone came along who didn't know that."

Offline

#4 2010-04-03 17:08:09

udzio
Member
Registered: 2010-04-03
Posts: 1

Re: [solved] Starting urxvtc on desktop 1

Let me say hello everyone, thats my first post here wink

I would like to do the same think with urxvt like NeoXP and i have some questions.

1) do i need urxvtd (daemon) and urxvtc (client) to do this? or can i do this with only urxvt?
2) what must i do if i want to run this automatic urxvt but not in desktop 1 but in 4 for example? I ask becouse i think that he run on 1 desktop default. Maby i'm wrong, but i can't understand where its specified that this is desktop 1 for example.

cheers wink - udzio

Offline

Board footer

Powered by FluxBB