pkill X without killing tmux?
Hallo list, [newbie question ahead] after discovering the nice possibility of having a console session and a X session runnung at the same time with tmux, and using C-M-F1 and C-M-F7 to switch between the X applications and the console window in the X session, I still need a way to get out of the X session without killing tmux. When I do 'pkill x' in an xterm, I find myself in a bash console, and there is no tmux running anymore. Maybe I still have to learn more about this whole session concept, but for now, while knowing how to start a nice working environment with a console and a X session, I need a way to shut everything down gracefully in a controlled and intelligent way. Any tips or links to related docs would be appreciated. cheers Thorsten PS Killing tmux by accident with pkill X does leave some orphan sessions on my machine? -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: pkill X without killing tmux?
Nadav Samet writes: > Killing tmux by accident with pkill X does leave some orphan > sessions on > my machine? > > > Yes, you should see them with by typing: `tmux ls`, you can attach to > any of them using `tmux attach` actually, I only see the two session running right now when typing 'tmux ls', although I shut down tmux 'the brutal way' several times now. -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: pkill X without killing tmux?
Thorsten writes: > Nadav Samet writes: > >> Killing tmux by accident with pkill X does leave some orphan >> sessions on >> my machine? >> >> >> Yes, you should see them with by typing: `tmux ls`, you can attach to >> any of them using `tmux attach` > > > actually, I only see the two session running right now when typing 'tmux > ls', although I shut down tmux 'the brutal way' several times now. A directly related question: how do I copy and paste output from tmux commands? I did C-o : ls and it showed me the output (2 sessions), I could mark the output using emacs keybindings, but trying to copy it using emacs keys did nothing. -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: pkill X without killing tmux?
Nicholas Marriott writes: Hi > You mean "pkill X", right? "pkill x" will kill tmux as well. Ah, I see. I started out with "pkill X" like in the ArchLinux wiki, then found out that "pkill x" does the same thing and is easier to type. A tad too naive, apparently ... > If so, you probably want to press C-F1 or whatever to get back to your > running tmux session or do "tmux attach" to attach it to the current > terminal. Yesterday I tried 'd' "tmux detach" when shutting down my machine, but still "tmux ls" does not show me any old sessions to attach to. I'm still not sure how to shutdown and preserve my session for the next boot to attach to them again. > If you DO want to kill tmux as well, pkill tmux or tmux kill-server > are fine. If I don't kill tmux explicitly - just shutting down from a bash window in a tmux session - it would be there running after the next boot? Probably very newbie questions, sorry for that, and it might be documented somewhere, but I find a lot of details everywhere but still don't get the big picture. thanks for your answer. > On Tue, Feb 14, 2012 at 06:48:59PM +0100, Thorsten wrote: >> Hallo list, [newbie question ahead] after discovering the nice >> possibility of having a console session and a X session runnung at >> the same time with tmux, and using C-M-F1 and C-M-F7 to switch >> between the X applications and the console window in the X session, I >> still need a way to get out of the X session without killing tmux. >> When I do 'pkill x' in an xterm, I find myself in a bash console, and >> there is no tmux running anymore. >> >> Maybe I still have to learn more about this whole session concept, >> but for now, while knowing how to start a nice working environment >> with a console and a X session, I need a way to shut everything down >> gracefully in a controlled and intelligent way. >> >> Any tips or links to related docs would be appreciated. >> >> cheers Thorsten >> >> PS Killing tmux by accident with pkill X does leave some orphan >> sessions on my machine? >> >> >> -- >> Keep Your Developer Skills Current with LearnDevNow! The most >> comprehensive online learning library for Microsoft developers is >> just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> ___ tmux-users mailing >> list tmux-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/tmux-users > > -- > Virtualization & Cloud Management Using Capacity Planning Cloud > computing makes use of virtualization - but cloud computing also > focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: pkill X without killing tmux?
Nicholas Marriott writes: > C-w then exit copy mode and do C-b ]. You probably want to look at the > tmux man page. Thanks, and yes, I need to study the man page more ... > On Tue, Feb 14, 2012 at 07:25:23PM +0100, Thorsten wrote: >> Thorsten writes: >> >> > Nadav Samet writes: >> > >> >> Killing tmux by accident with pkill X does leave some orphan >> >> sessions on >> >> my machine? >> >> >> >> >> >> Yes, you should see them with by typing: `tmux ls`, you can attach to >> >> any of them using `tmux attach` >> > >> > >> > actually, I only see the two session running right now when typing >> > tmux >> > ls', although I shut down tmux 'the brutal way' several times now. >> >> A directly related question: how do I copy and paste output from tmux >> commands? I did C-o : ls and it showed me the output (2 sessions), I >> could mark the output using emacs keybindings, but trying to copy it >> using emacs keys did nothing. >> >> >> -- >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> ___ >> tmux-users mailing list >> tmux-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/tmux-users > > -- > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: pkill X without killing tmux?
Nicholas Marriott writes: > You can't make tmux sessions last across reboot unless you configure > what windows to create and programs to run explicitly in .tmux.conf. I begin to understand, so all this detach and attach stuff is really more for admins that never shut their machines down. The normal user who shuts down his machine at night must start again in the morning - either by hand or by configuration script. thanks for the info. > On Wed, Feb 15, 2012 at 08:24:36AM +0100, Thorsten wrote: >> Nicholas Marriott writes: >> >> Hi >> >> > You mean "pkill X", right? "pkill x" will kill tmux as well. >> >> Ah, I see. I started out with "pkill X" like in the ArchLinux wiki, then >> found out that "pkill x" does the same thing and is easier to type. A >> tad too naive, apparently ... >> >> > If so, you probably want to press C-F1 or whatever to get back to your >> > running tmux session or do "tmux attach" to attach it to the current >> > terminal. >> >> Yesterday I tried 'd' "tmux detach" when shutting down my machine, but >> still "tmux ls" does not show me any old sessions to attach to. I'm >> still not sure how to shutdown and preserve my session for the next boot >> to attach to them again. >> >> > If you DO want to kill tmux as well, pkill tmux or tmux kill-server >> > are fine. >> >> If I don't kill tmux explicitly - just shutting down from a bash window >> in a tmux session - it would be there running after the next boot? >> >> Probably very newbie questions, sorry for that, and it might be >> documented somewhere, but I find a lot of details everywhere but still >> don't get the big picture. >> >> thanks for your answer. >> >> > On Tue, Feb 14, 2012 at 06:48:59PM +0100, Thorsten wrote: >> >> Hallo list, [newbie question ahead] after discovering the nice >> >> possibility of having a console session and a X session runnung at >> >> the same time with tmux, and using C-M-F1 and C-M-F7 to switch >> >> between the X applications and the console window in the X session, I >> >> still need a way to get out of the X session without killing tmux. >> >> When I do 'pkill x' in an xterm, I find myself in a bash console, and >> >> there is no tmux running anymore. >> >> >> >> Maybe I still have to learn more about this whole session concept, >> >> but for now, while knowing how to start a nice working environment >> >> with a console and a X session, I need a way to shut everything down >> >> gracefully in a controlled and intelligent way. >> >> >> >> Any tips or links to related docs would be appreciated. >> >> >> >> cheers Thorsten >> >> >> >> PS Killing tmux by accident with pkill X does leave some orphan >> >> sessions on my machine? >> >> >> >> >> >> -- >> >> Keep Your Developer Skills Current with LearnDevNow! The most >> >> comprehensive online learning library for Microsoft developers is >> >> just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> >> Metro Style Apps, more. Free future releases when you subscribe now! >> >> http://p.sf.net/sfu/learndevnow-d2d >> >> ___ tmux-users mailing >> >> list tmux-users@lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/tmux-users >> > >> > -- >> > Virtualization & Cloud Management Using Capacity Planning Cloud >> > computing makes use of virtualization - but cloud computing also >> > focuses on allowing computing to be delivered as a service. >> > http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> >> >> -- >> Virtualization & Cloud Management Using Capacity Planning >> Cloud computing makes use of virtualization - but cloud computing >> also focuses on allowing computing to be delivered as a service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> ___ >> tmux-users mailing list >> tmux-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/tmux-users > > -- > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: pkill X without killing tmux?
Vladimir Lomov writes: Hello, > ** Thorsten [2012-02-15 09:11:58 +0100]: > >> Nicholas Marriott writes: > >>> You can't make tmux sessions last across reboot unless you configure >>> what windows to create and programs to run explicitly in .tmux.conf. > >> I begin to understand, so all this detach and attach stuff is really >> more for admins that never shut their machines down. The normal user who >> shuts down his machine at night must start again in the morning - either >> by hand or by configuration script. > > I'm not an admin, I use Archlinux x86_64 on several hosts that rebooted > from time to time (e.g. notebooks). To "automatically" set up tmux > sessions after boot I made several scripts (can be found here: > https://github.com/vp1981/scripts/tmux/, note that I use a bit "weird" > way to enable tmux). somehow I could not access your page with w3m, must try later with conkeror. > P.S. May be you share your ideas about what you want to "save" between > reboots? I was just looking for the convenience to start in the morning with emacs on the console an conkeror on X in the same state where I left them in the evening. for emacs, there are even ways to achieve this, but its not really essential - just a convenience. And I'm trying to learn tmux and its underlying concepts - seems very promising, especially when you want to get away from bloated X desktop apps. > --- > WBR, Vladimir Lomov -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: pkill X without killing tmux?
Vladimir Lomov writes: > Well, may be I was to naive about the URL, > https://github.com/vp1981/scripts/tree/master/tmux now the links works - interesting stuff. thanks. __ Thorsten -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Select pane by number
Hi List, I like the way tmux shows pane numbers (in my case C-o q), but I could not find a way how to select panes by number (like select window C-o 1). Did I miss something? TIA -- cheers, Thorsten -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: Select pane by number
Björn Oelke writes: > Am 07.03.2012 um 10:06 schrieb Thorsten: >> Hi List, >> I like the way tmux shows pane numbers (in my case C-o q), but I could >> not find a way how to select panes by number (like select window C-o 1). >> Did I miss something? >> >> TIA > > As long as the numbers are displayed you can type the number of the > pane you want to select. > E.g. 'C-o q 2' > Nice feature btw, I didn't know about that. :) I see, thats really nice. Unfortunately, it has most likely been programmed by a young hacker with really fast reactions ... I would need a bit more time to select the number ;) Is there a way to configure how long the pane numbers are shown/selectable? -- cheers, Thorsten -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: Select pane by number
SamLT writes: > On Wed, Mar 07, 2012 at 10:06:23AM +0100, Thorsten wrote: >> >> >> Hi List, >> I like the way tmux shows pane numbers (in my case C-o q), but I could >> not find a way how to select panes by number (like select window C-o 1). >> Did I miss something? > > > You can use select-pane for that: > > | select-pane -t :.0 > | select-pane -t :.1 > | select-pane -t :.2 > | ... I've seen that in the help menu (C-o ?), but I thought moving between panes should rather be a quick keystroke only. > For now, you can't really bind them directly, but you can with the > command-prompt: > > | bind-key -n C-o command-prompt -p "pane number: " "select-pane -t :.%%" > Hmm ... I don't really understand where to put the key in that line. Say I want C-o p for select pane by number - where goes the p? But anyway, C-o q does the job, like I just learned, its only a bit fast ... Thanks > > By the way, there is an item in the TODO list: > | - bind commands to key sequences? -- make it so ALL keys go through > | a table, > | first an implicit table in which C-b is the only default binding to a > | command that says "next key from $othertable" and so on. means -n can > | go away as well > > > you could then do something like this: > > | bind-key o nexttable mypanebindings > | bind-key --table mypanebindings 0 select-pane -t :.0 > | bind-key --table mypanebindings 1 select-pane -t :.1 > | bind-key --table mypanebindings 2 select-pane -t :.2 > | bind-key --table mypanebindings 3 select-pane -t :.3 > | bind-key --table mypanebindings 4 select-pane -t :.4 > | bind-key --table mypanebindings 5 select-pane -t :.5 > | bind-key --table mypanebindings 6 select-pane -t :.6 > | bind-key --table mypanebindings 7 select-pane -t :.7 > | bind-key --table mypanebindings 8 select-pane -t :.8 > | bind-key --table mypanebindings 9 select-pane -t :.9 > > then (assuming ^B as the default prefix key): > > ^B o 3 would select the third pane in the current window > > > If you've used gnuscreen, the concept is similar to what you could do with > 'command -c myclass'. > > > This would really be something great, I'm still trying to understand tmux's > code, but if any of you have some advice on where to start to add such a > feature, I would be glad to try. > > > hum... Sorry for the [OT]. > > > > > > > > >> >> TIA >> >> -- >> cheers, >> Thorsten >> >> >> >> -- >> Virtualization & Cloud Management Using Capacity Planning >> Cloud computing makes use of virtualization - but cloud computing >> also focuses on allowing computing to be delivered as a service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> ___ >> tmux-users mailing list >> tmux-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/tmux-users > > -- > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ -- cheers, Thorsten -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: Select pane by number
Nicholas Marriott writes: > You can increase display-panes-time if you want it to stick around for > longer, it'll disappear on the first key press. OK, thanks! > On Wed, Mar 07, 2012 at 11:05:59AM +0100, Thorsten wrote: >> Bj??rn Oelke writes: >> >> > Am 07.03.2012 um 10:06 schrieb Thorsten: >> >> Hi List, >> >> I like the way tmux shows pane numbers (in my case C-o q), but I could >> >> not find a way how to select panes by number (like select window >> >> C-o 1). >> >> Did I miss something? >> >> >> >> TIA >> > >> > As long as the numbers are displayed you can type the number of the >> > pane you want to select. >> > E.g. 'C-o q 2' >> > Nice feature btw, I didn't know about that. :) >> >> I see, thats really nice. Unfortunately, it has most likely been >> programmed by a young hacker with really fast reactions ... I would need >> a bit more time to select the number ;) >> >> Is there a way to configure how long the pane numbers are >> shown/selectable? >> >> -- >> cheers, >> Thorsten >> >> >> -- >> Virtualization & Cloud Management Using Capacity Planning >> Cloud computing makes use of virtualization - but cloud computing >> also focuses on allowing computing to be delivered as a service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> ___ >> tmux-users mailing list >> tmux-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/tmux-users > > -- > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ -- cheers, Thorsten -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: Merging panes
Ben Boeckel writes: Hi List, > On Thu, Mar 15, 2012 at 07:18:04 GMT, Nicholas Marriott wrote: >> tmux selectl >> 9d50,126x23,0,0[126x11,0,0{63x11,0,0[63x5,0,0,63x5,0,6],62x11,64,0},126x11,0,12{63x11,0,12,62x11,64,12}]' >> >> Or you can usually get whatever you want by selecting one of the >> predefined layouts with ctrl-space and swapping or moving stuff arounf. > > Hmm...would it be possible to save custom layouts given the above string > under a name? Probably using percentages instead of hard coded numbers. > This would also likely make the current built-in layouts much simpler. > > Also, is there documentation on how to create a string like above > without making one and then printing it out? if its possible to retreive such a string for the actual layout, wouldn't it be easy to implement something like winner-mode (winner.el) for emacs in tmux, i.e. a mode that stores these strings for the last 80 layouts or so and has 2 commands - undo and redo. thereby one could freely 'destroy' a complicated custom layout for a different one - and then go back with one command. just an idea of a rather newbie user, who might even be unaware of similar functionality existing already in tmux. -- cheers, Thorsten -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
starting emacs-daemon and emacs-clients in tmux
Hi List, I'm trying to script customized tmux environments (using tmuxinator) an have the following problem: In my script, in window 1, I start the emacs-daemon (=server), what takes quite some time, since it involves loading my .emacs files and some more action. In window 2 I want to start an emacsclient that connects to the emacs-daemon. But the client fails, since the server did not finish the startup/loading process when the client already starts. Is there a way to tell tmux in a (tmuxinator) script: "when opening several windows with several panes each in a session, do it sequentially and wait until the command in the last pane/window is executed before opening the next pane/window and running the command associated with it"? -- cheers, Thorsten -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: starting emacs-daemon and emacs-clients in tmux
Nicholas Marriott writes: > tmux can't know when the program in a window has finished. > > Best bet is to start "sleep 5; emacsclient" Ok, thanks, thats simple enough. -- cheers, Thorsten -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Sessions in tmuxinator
Hi List, another question with regards to tmuxinatior: All the examples I find only start one session in a .yml file, i.e. one tabs keyword and many '-' tabs (=tmux windows). What about starting several session at once? Is that done in one .yml file, or does one define an alias or a little script that calls several .yml files - one for each session? -- cheers, Thorsten -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users