<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>X11 on despatches</title><link>https://icle.es/tags/x11/</link><description>Recent content in X11 on despatches</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 20 Jun 2025 09:25:00 +0100</lastBuildDate><atom:link href="https://icle.es/tags/x11/index.xml" rel="self" type="application/rss+xml"/><item><title>Saving your workspace window configuration in Linux [1102]</title><link>https://icle.es/2011/11/02/saving-your-workspace-window-configuration-in-linux-1102/</link><pubDate>Wed, 02 Nov 2011 23:57:22 +0000</pubDate><guid>https://icle.es/2011/11/02/saving-your-workspace-window-configuration-in-linux-1102/</guid><description>&lt;p>I am usually working on a good half a dozen things at any given time and this
means that I usually have a good ten or twenty windows open. My chromium
currently has a 134 tabs and this is after I  cleaned up and closed all the tabs
I no longer need.&lt;/p>
&lt;p>Luckily, working in Linux means that I can spread each stream of work into the
various workspaces.&lt;/p>
&lt;p>Now GNOME 3 makes things a little more complicated with the dynamic workspaces
but I&amp;rsquo;m learning to use it to my advantage&lt;/p>
&lt;p>However, with Ubuntu 11.10 Oneiric Ocelot and GNOME 3, I seem to be running into
an issue regularly&amp;hellip;If I leave my computer for a while, it doesn&amp;rsquo;t unlock
correctly. The screen remains black and I can&amp;rsquo;t move the mouse to my second
screen and the unlock screen doesn&amp;rsquo;t show up.&lt;/p></description><content:encoded><![CDATA[<p>I am usually working on a good half a dozen things at any given time and this
means that I usually have a good ten or twenty windows open. My chromium
currently has a 134 tabs and this is after I  cleaned up and closed all the tabs
I no longer need.</p>
<p>Luckily, working in Linux means that I can spread each stream of work into the
various workspaces.</p>
<p>Now GNOME 3 makes things a little more complicated with the dynamic workspaces
but I&rsquo;m learning to use it to my advantage</p>
<p>However, with Ubuntu 11.10 Oneiric Ocelot and GNOME 3, I seem to be running into
an issue regularly&hellip;If I leave my computer for a while, it doesn&rsquo;t unlock
correctly. The screen remains black and I can&rsquo;t move the mouse to my second
screen and the unlock screen doesn&rsquo;t show up.</p>
<p>Thinking about it, it seems like there might be two screen savers being started
but I shall investigate that tomorrow. I have the same issue at both work and
home so it is more likely to be related to Ubuntu + GNOME 3 or something about
the way I set things up.</p>
<p>I  usually resolve this by logging into the console and here a neat trick for
killing all our processes in one fell swoop.</p>
```bash
$ kill -9 -1
```
<p>Another thing I have been doing a bit more of recently is gaming which involves
rebooting in Windows.</p>
<p>Both of the above leaves me with a restarted workspace. Starting up the
applications pops them all into the same workspace. Chrome is especially a
nightmare. I might have 135 open tabs but they are in about 6 windows spread
across four workspaces.</p>
<p>It is annoying to have to distribute these things out each time.</p>
<p>After having done much research, I have not been able to find a clean automated
solution.</p>
<p>There are two half solution that I have found however.</p>
<p>The first one is <a href="http://live.gnome.org/DevilsPie" title="Devil&#39;s Pie">Devil&rsquo;s Pie</a>
and for a graphical interface
<a href="http://code.google.com/p/gdevilspie/" title="gdevilspie">gdevilspie</a>. According the
website for Devil&rsquo;s Pie, it is &ldquo;A totally crack-ridden program for freaks and
weirdos who want precise control over what windows do when they appear. If you
want all XChat windows to be on desktop 3, in the lower-left, at 40%
transparency, you can do it.&rdquo;</p>
<p>Unfortunately, that is exactly what it is. If you pre-determine where you want
your windows to be, you can use this very useful application. However, that is
not quite what I want. I want the current configuration to be remember. Exactly
like how Chromium remembers which tabs are in which order in which windows and
their position on the workspace, but for multiple workspaces.</p>
<p>Unfortunately, I couldn&rsquo;t find any way to save the current state.</p>
<p>There is however, another tool
<a href="http://thialfihar.org/projects/window_position_session/" title="Window Position Session">I found scouring the web.</a></p>
<p><a href="http://thialfihar.org/projects/window_position_session/" title="Window Position Session"></a>libwnck-3-dev
is what I installed on my Ubuntu box. There are two key commands here</p>
```bash
$ wnckprop --list
```
<p>This will list all the windows across all the workspaces. To get more
information on a specific Window,</p>
```bash
wnckprop --xid [XID]
```
<p>The XID is the number returned next to each window from the first command. The
post that I  mentioned above has a nifty tool attached that saves the window
positions and can also restore them using wnckprop.</p>
<p>However, it saves them based on the Window title. This of course doesn&rsquo;t work
for Chromium or such Windows that changes the title each time you change the
tab.</p>
<p>However, if the save is the last command you run and the restore is the first
command you run after opening up the windows, it can restore the windows into
the correct workspaces.</p>
<p>With the idea of the dynamic workspaces in GNOME 3, you might have to initialise
the workspaces first but it is better than spending five minutes after logging
in each time re-arranging windows&hellip;</p>]]></content:encoded></item><item><title>X11 Remote Applications Responsiveness</title><link>https://icle.es/2008/12/30/x11-remote-applications-responsiveness/</link><pubDate>Tue, 30 Dec 2008 15:01:43 +0000</pubDate><guid>https://icle.es/2008/12/30/x11-remote-applications-responsiveness/</guid><description>&lt;p>As a developer, I use eclipse a lot&amp;hellip; We have a powerful server that off which
eclipse is run which allows us to keep the desktops at a much lower spec. In
general, this works well for us.&lt;/p>
&lt;p>However, recently, I have been niggled by the amount of time it takes to switch
perspectives on eclipse. It takes a good 4 seconds to switch between
perspectives.There is also a noticeable lag when performing some operations.&lt;/p></description><content:encoded><![CDATA[<p>As a developer, I use eclipse a lot&hellip; We have a powerful server that off which
eclipse is run which allows us to keep the desktops at a much lower spec. In
general, this works well for us.</p>
<p>However, recently, I have been niggled by the amount of time it takes to switch
perspectives on eclipse. It takes a good 4 seconds to switch between
perspectives.There is also a noticeable lag when performing some operations.</p>
<p>To resolve this, I spent a lot of time looking at the linux real-time and
low-latency patches. I had expected that running X11 applications remotely would
not cause a bottleneck over a gigabit link. Turns out that I was wrong.</p>
<p>To test this, I ran a vnc server on the application server and found that
switching perspectives on there was super fast.</p>
<p>To be able to resolve this, the first thing to do was to remove any latency put
on the X-&gt;X communication by ssh.</p>
<p>We use gdm, so I had to enable to TCP on there first. Do this using the
following config line in <code>/etc/gdm/gdm.conf</code></p>
```
DisallowTCP=false
```
<p>Restart gdm</p>
<p>on the remote host, export DISPLAY</p>
```
export DISPLAY=<yourhost>:0
```
<p>and run your application.</p>
<p>I found the application to be a lot more responsive after this. I didn&rsquo;t have to
worry about X auth since we have nfs mounted home. If you don&rsquo;t, check
<a href="http://www.xs4all.nl/~zweije/xauth.html" title="Remote X Apps Mini HowTo">this mini howto</a></p>
]]></content:encoded></item></channel></rss>