Hi, On 6 December 2012 13:07, Hermann Laner <[email protected]> wrote: > Hi! > i can execute commands already. > https://wiki.archlinux.org/index.php/Extra_Keyboard_Keys_in_Console > > my problem is, when im using emacs, the media-key inserts "mpc next\n" > so what i need to do is to switch to another window with a terminal inside > then execute the command and switch back again > tmux must somehow read "C-b-:" then i could just run my command ... > maybe there is another solution using tmux?
You shouldn't need to do this. By default, if you issue from the command line: % tmux previous-window Without specifying a client or session, tmux will use the most recently used session to run commands in. But your example is an odd one because you could just run "sh -c '....'" directly since calling mpc via tmux makes no sense at all. -- Thomas Adam ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ tmux-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tmux-users
