Dmitrij D. Czarkoff wrote:
Hello!

I'm running OpenBSD 4.9-beta (GENERIC.MP) #754: Thu Jan 20 17:49:26 MST 2011.

I want my cwm to open xterm window with tmux on CM-Return, so I write in my
~/.cwmrc:

command term    "uxterm +sb -bg #000 -fg #aaa -e tmux"

That does the trick with tmux, but ssh-to dialog fails to open. When I remove
"-e tmux" from the command, ssh-to works fine, but I have to manualy start
tmux of new xterm windows, which isn't a desired behaviour.

Sure, I can have in ~/.cwmrc:

bind CM-Return  "uxterm +sb -bg #000 -fg #aaa -e tmux"
command term    "uxterm +sb -bg #000 -fg #aaa"

But as I understand, the term command was supposed to avoid setting that
twice.

Therefor, the question is, what would be the right way to do what I want it to
do? Does there exist some syntax for nested commands? Or is there some way of
commands concatination? Or anything else I may be missing?


Whenever I have a complex command sequence like this in cwmrc (I usually run into problems too), I just break it out into a separate script in ~/bin/ then bind a key sequence to that script.

Reply via email to