On Tue, Feb 22, 2011 at 07:03:37PM -0700, Clint Pachl wrote: > >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.
But there is bo complex command sequence here! I do actually want to do 4 simple things: 1. Run uxterm with some custom options as the default terminal emulator in cwm; 2. Still have a possibility to run uxterm with default settings when run from "exec" dialog; 3. Have uxterm started with tmux already running if no other task is bound to it by cwm. 4. Do 1-3 the right way. -- Dmitrij D. Czarkoff