<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Avi :) &#187; vinagre</title>
	<atom:link href="http://blog.avi.co/wp/tag/vinagre/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.avi.co</link>
	<description>Open Source Software Hippy and all-round pedant</description>
	<lastBuildDate>Mon, 07 Jun 2010 14:34:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Generating Fluxbox menus for VNC (Vinagre) connections</title>
		<link>http://blog.avi.co/wp/generating-fluxbox-menus-for-vnc-connection/</link>
		<comments>http://blog.avi.co/wp/generating-fluxbox-menus-for-vnc-connection/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 10:05:23 +0000</pubDate>
		<dc:creator>Avi</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[fluxbox]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[vinagre]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://aviswebsite.co.uk/?p=505</guid>
		<description><![CDATA[One of the lovely things about Fluxbox is the text-driven menu. One of the nice things about Vinagre (Gnome's VNC client) is the xml-based bookmarks file. Here's a handy script to create a Fluxbox submenu out of your Vinagre bookmarks:
&#160;
#! /usr/bin/perl
&#160;
use strict;
use warnings;
use XML::Simple;
my $HOME = $ENV&#123; HOME &#125;;
&#160;
my $bookmarks_file = &#34;$HOME/.local/share/vinagre/vinagre-bookmarks.xml&#34;;
my $menu_file = &#34;$HOME/.fluxbox/vnc_menu&#34;;
&#160;
my [...]]]></description>
			<content:encoded><![CDATA[<p>One of the lovely things about <a href="http://www.fluxbox.org/">Fluxbox</a> is the text-driven menu. One of the nice things about <a href="http://projects.gnome.org/vinagre/">Vinagre</a> (Gnome's VNC client) is the xml-based bookmarks file. Here's a handy script to create a Fluxbox submenu out of your Vinagre bookmarks:</p>
<pre class="perl">&nbsp;
<span style="color: #808080; font-style: italic;">#! /usr/bin/perl</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">use</span> strict;
<span style="color: #000000; font-weight: bold;">use</span> warnings;
<span style="color: #000000; font-weight: bold;">use</span> XML::<span style="color: #006600;">Simple</span>;
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$HOME</span> = <span style="color: #0000ff;">$ENV</span><span style="color: #66cc66;">&#123;</span> HOME <span style="color: #66cc66;">&#125;</span>;
&nbsp;
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$bookmarks_file</span> = <span style="color: #ff0000;">&quot;$HOME/.local/share/vinagre/vinagre-bookmarks.xml&quot;</span>;
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$menu_file</span> = <span style="color: #ff0000;">&quot;$HOME/.fluxbox/vnc_menu&quot;</span>;
&nbsp;
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$xml</span> = <span style="color: #000000; font-weight: bold;">new</span> XML::<span style="color: #006600;">Simple</span> <span style="color: #66cc66;">&#40;</span>KeyAttr=&gt;<span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$data</span> = <span style="color: #0000ff;">$xml</span>-&gt;<span style="color: #006600;">XMLin</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;$bookmarks_file&quot;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<a href="http://perldoc.perl.org/functions/open.html"><span style="color: #000066;">open</span></a><span style="color: #66cc66;">&#40;</span>MENU, <span style="color: #ff0000;">&quot;&gt;$menu_file&quot;</span><span style="color: #66cc66;">&#41;</span> || <a href="http://perldoc.perl.org/functions/die.html"><span style="color: #000066;">die</span></a> <span style="color: #ff0000;">&quot;Error opening <span style="color: #000099; font-weight: bold;">\$</span>menu_file: $menu_file $0&quot;</span>;
&nbsp;
<a href="http://perldoc.perl.org/functions/print.html"><span style="color: #000066;">print</span></a> MENU <span style="color: #ff0000;">&quot;[begin]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
&nbsp;
<span style="color: #b1b100;">foreach</span> <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$b</span><span style="color: #66cc66;">&#40;</span>@<span style="color: #66cc66;">&#123;</span><span style="color: #0000ff;">$data</span>-&gt;<span style="color: #66cc66;">&#123;</span><span style="color: #ff0000;">&quot;item&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
	<a href="http://perldoc.perl.org/functions/print.html"><span style="color: #000066;">print</span></a> MENU <span style="color: #ff0000;">&quot;[exec] ($b-&gt;{name}) {vinagre $b-&gt;{host}:$b-&gt;{port}}<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
<span style="color: #66cc66;">&#125;</span>
<a href="http://perldoc.perl.org/functions/print.html"><span style="color: #000066;">print</span></a> MENU <span style="color: #ff0000;">&quot;[end]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
<a href="http://perldoc.perl.org/functions/close.html"><span style="color: #000066;">close</span></a> MENU;
&nbsp;</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.avi.co/wp/generating-fluxbox-menus-for-vnc-connection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
