<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>xwindows &amp;mdash; alan</title>
    <link>https://www.franzoni.eu/alan/tag:xwindows</link>
    <description>Alan&#39;s musings</description>
    <language>en</language>
    <pubDate>Tue, 17 Nov 2026 00:52:51 +0000</pubDate>
    <item>
      <title>Wmctrl: gather and focus your chosen window by hotkey</title>
      <link>https://www.franzoni.eu/alan/wmctrl-gather-and-focus-your-chosen-window-by-hotkey</link>
      <description>&lt;![CDATA[I find it extremely handy to be able to recall my windows by just using the keyboard.&#xA;&#xA;It&#39;s pretty easy to do in Linux, just use:&#xA;&#xA;wmctrl -x -R WMCLASS&#xA;&#xA;you can find the WM\CLASS of any window using this command:&#xA;&#xA;xprop | grep WM_CLASS&#xA;&#xA;then clicking on the desired Window. There may be more than one match, just choose one.&#xA;&#xA;Example:&#xA;&#xA;wmctrl -x -R &#34;Gnome-terminal&#34;&#xA;&#xA;When you execute such command, the windows matching such class will be gathered on the&#xA;current workspace and focused; you can assign global hotkeys in Gnome with System -\  Preferences -\  Keyboard -\  Shortcuts. The Windows key (Super) is usually a great candidate for such global hotkeys.&#xA;&#xA;#MostlyUnixish #xwindows #productivity&#xA;]]&gt;</description>
      <content:encoded><![CDATA[<p>I find it extremely handy to be able to recall my windows by just using the keyboard.</p>

<p>It&#39;s pretty easy to do in Linux, just use:</p>

<p><code>wmctrl -x -R &lt;WM_CLASS&gt;</code></p>

<p>you can find the WM_CLASS of any window using this command:</p>

<p><code>xprop | grep WM_CLASS</code></p>

<p>then clicking on the desired Window. There may be more than one match, just choose one.</p>

<p>Example:</p>

<p><code>wmctrl -x -R &#34;Gnome-terminal&#34;</code></p>

<p>When you execute such command, the windows matching such class will be gathered on the
current workspace and focused; you can assign global hotkeys in Gnome with System -&gt; Preferences -&gt; Keyboard -&gt; Shortcuts. The Windows key (Super) is usually a great candidate for such global hotkeys.</p>

<p><a href="/alan/tag:MostlyUnixish" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">MostlyUnixish</span></a> <a href="/alan/tag:xwindows" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">xwindows</span></a> <a href="/alan/tag:productivity" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">productivity</span></a></p>
]]></content:encoded>
      <guid>https://www.franzoni.eu/alan/wmctrl-gather-and-focus-your-chosen-window-by-hotkey</guid>
      <pubDate>Tue, 29 Jan 2013 21:43:00 +0000</pubDate>
    </item>
  </channel>
</rss>