You are not logged in.

#1 2013-08-31 11:07:35

NeanderMarcl
Member
Registered: 2013-06-04
Posts: 74

[Awesome] Multiple urxvt startup

Hi,

I would like to have urxvt with tmux attach-session in multiple virtual desktop.
To run an app I used in rc.lua

run_once("dwb")

To run this app in a particular desktop I use

    { rule = { class = "dwb" },
          properties = { tag = tags[1][5] } },

But I want to run urxvt in desktop 2 and 3 and if I replace in the tag field [2] [3] urxvt will only start in the desktop 3.
How can I launch urxvt in desktop 2 and 3 ?

Thanks.

Last edited by NeanderMarcl (2013-08-31 11:14:11)

Offline

#2 2013-08-31 13:38:27

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [Awesome] Multiple urxvt startup

AFAIK, the first number is the screen (monitor) number. You only need to change the second number for the desktop. Try this rule:

    { rule = { class = "dwb" },
          properties = { tag = tags[1][2], tag = tags[1][3] } },

If that doesn't work, you should be able to have two different instances of urxvt (give them different titles) and then create rules that match on both class and title.

Offline

#3 2013-08-31 17:51:47

NeanderMarcl
Member
Registered: 2013-06-04
Posts: 74

Re: [Awesome] Multiple urxvt startup

I would like to give them different titles, How can I give different titles ?

Last edited by NeanderMarcl (2013-08-31 18:33:34)

Offline

#4 2013-08-31 18:49:40

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [Awesome] Multiple urxvt startup

Use the -name somename parameter. Then in your rules just match the rule against the name that you gave to urxvt.

Offline

#5 2013-08-31 19:00:58

NeanderMarcl
Member
Registered: 2013-06-04
Posts: 74

Re: [Awesome] Multiple urxvt startup

Sorry, but can you give me an example ?

Offline

#6 2013-08-31 19:07:48

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [Awesome] Multiple urxvt startup

Example of what exactly?

Offline

#7 2013-08-31 20:37:36

NeanderMarcl
Member
Registered: 2013-06-04
Posts: 74

Re: [Awesome] Multiple urxvt startup

I use urxvt with tmux and I've two sessions
here's .tmux.conf

new  -n bash        
neww -n mutt mutt
neww -n ncmpcpp ncmpcpp

new -n ranger ranger

I would like to have the first on desktop 2 and the second on desktop 3 at awesome startup.

Offline

#8 2013-09-01 01:05:59

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [Awesome] Multiple urxvt startup

Unfortunately I cannot help with tmux. For just a single urxvt instance you would do something like:

urxvt -name music -e ncmpcpp

Then your awesome rules would match against instance = "music" instead of using class.

Last edited by anonymous_user (2013-09-01 01:06:57)

Offline

Board footer

Powered by FluxBB