how to switch to chromium window via script
I did $ chromium & $ chromium and it does what I want: opens another tab in the running chromium. Alas it doesn't raise the chromium window, and I have to manually switch to in via ALT TAB or clicking, here in icewm. What shell command can I put in a wrapper to cause the switch? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/87ob0sz1fc@jidanni.org
Re: how to switch to chromium window via script
On Thu, Mar 27, 2014 at 12:54:31PM +0800, jida...@jidanni.org wrote: > I did > $ chromium & > $ chromium > and it does what I want: opens another tab in the running chromium. > Alas it doesn't raise the chromium window, and I have to manually switch > to in via ALT TAB or clicking, here in icewm. > > What shell command can I put in a wrapper to cause the switch? Not tried it myself, but "wmctrl -a Chromium" should work (where "Chromium" is a string that is searched for in the titles of windows. See the man page for more details. > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org > Archive: https://lists.debian.org/87ob0sz1fc@jidanni.org > signature.asc Description: Digital signature
Re: how to switch to chromium window via script
wmctrl works perfectly. Thanks! -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/87ppl5ran6@jidanni.org