You are not logged in.
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
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
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
Use the -name somename parameter. Then in your rules just match the rule against the name that you gave to urxvt.
Offline
Sorry, but can you give me an example ?
Offline
Example of what exactly?
Offline
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 rangerI would like to have the first on desktop 2 and the second on desktop 3 at awesome startup.
Offline
Unfortunately I cannot help with tmux. For just a single urxvt instance you would do something like:
urxvt -name music -e ncmpcppThen your awesome rules would match against instance = "music" instead of using class.
Last edited by anonymous_user (2013-09-01 01:06:57)
Offline