<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>urukrama's weblog</title>
	<atom:link href="http://urukrama.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://urukrama.wordpress.com</link>
	<description></description>
	<pubDate>Wed, 23 Jul 2008 22:03:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
			<item>
		<title>Tint2</title>
		<link>http://urukrama.wordpress.com/2008/07/23/tint2/</link>
		<comments>http://urukrama.wordpress.com/2008/07/23/tint2/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 22:03:05 +0000</pubDate>
		<dc:creator>urukrama</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[tint2]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://urukrama.wordpress.com/?p=104</guid>
		<description><![CDATA[Some of you may use, have used or know of tint task manager (ttm), a simple light weight task list with a pleasant and configurable aesthetic. The project showed very little progress, until someone else (?) decided to hack on the code and come up with an improved version of the task list: tint2.
The improved [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Some of you may use, have used or know of <a href="http://code.google.com/p/ttm/">tint task manager</a> (ttm), a simple light weight task list with a pleasant and configurable aesthetic. The project showed very little progress, until someone else (?) decided to hack on the code and come up with an improved version of the task list: <a href="http://code.google.com/p/tint2/">tint2</a>.</p>
<p>The improved version added extra configuration abilities as well as drag/drop support, but is clearly intended to be more than just a task list. The latest release, 0.6, added among other things a configurable clock, and launchers seem to be planned. Like some panels, Tint now also automatically sets a margin for it so that other windows cannot overlap it and the task list always remains visible (unfortunately, you can&#8217;t make this optional, as far as I can tell, so I cannot use 0.6 for my <a href="http://urukrama.wordpress.com/2008/07/21/a-tabbed-desktop/">tabbed desktop effect</a>&#8230;)</p>
<p>To install it on Ubuntu Hardy, you&#8217;ll need to install the following dependencies: libcairo2-dev libpango1.0-dev libglib2.0-dev libimlib2-dev libxinerama-dev</p>
<p>The configuration file is still fairly straightforward, but contains a lot of extra features over ttm. If you get lost in all the settings, you&#8217;ll be happy to know that <a href="http://tint2.googlecode.com/files/tint-0.6.pdf">a manual with pictures</a> (in pdf format) is available on the tint2&#8217;s website.</p>
<p>If you like minimalistic configurable panels this is a project to keep an eye on. If they add a system tray and launchers, I&#8217;m sure many users will replace <a href="http://pypanel.sourceforge.net/">pypanel</a> with tint2.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/urukrama.wordpress.com/104/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/urukrama.wordpress.com/104/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/urukrama.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/urukrama.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/urukrama.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/urukrama.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/urukrama.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/urukrama.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/urukrama.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/urukrama.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/urukrama.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/urukrama.wordpress.com/104/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=urukrama.wordpress.com&blog=1573851&post=104&subd=urukrama&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://urukrama.wordpress.com/2008/07/23/tint2/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/urukrama-128.jpg" medium="image">
			<media:title type="html">urukrama</media:title>
		</media:content>
	</item>
		<item>
		<title>My Openbox keybindings</title>
		<link>http://urukrama.wordpress.com/2008/07/22/my-openbox-keybindings/</link>
		<comments>http://urukrama.wordpress.com/2008/07/22/my-openbox-keybindings/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 21:03:05 +0000</pubDate>
		<dc:creator>urukrama</dc:creator>
		
		<category><![CDATA[openbox]]></category>

		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://urukrama.wordpress.com/?p=99</guid>
		<description><![CDATA[One of Openbox&#8217; great strengths is that you can control every aspect of the window manager with your keyboard, provided you spend some time configuring your keybindings. Since I use my computer extensively to process text, I have configured Openbox such that I only need to use the mouse when I really want to, and [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>One of Openbox&#8217; great strengths is that you can control <a href="http://icculus.org/openbox/index.php/Help:Actions">every aspect of the window manager</a> with your keyboard, provided you spend some time configuring your keybindings. Since I use my computer extensively to process text, I have configured Openbox such that I only need to use the mouse when I really want to, and don&#8217;t have to move away from the keyboard. It speeds things up considerably, once you are used to it!</p>
<p>Below I give all the keybindings I use in Openbox. Some of these keybindings I don&#8217;t use very regularly. The ones that I use extensively are those that launch applications (Win+F1-9 to launch applications, or Alt+F1-6 to launch menus or application launchers); those that control the volume (Ctrl-Up/Down) and mpc (Ctrl-Alt + other keys); those to switch windows (Alt-Tab and Win-Tab) or to switch workspace (Ctrl-Alt-Left/Right); those for basic window actions, such as close (Win-A-C), maximize (Win-A-M), iconify (Win-A-I), send to bottom (Win-A-B), etc; those to move windows in the current workspace (Win + some direction key); to move windows to the next workspace (Win-A-N) or previous workspace (Win-A-P); or to follow windows to the next (Win-A-Shift-N) or previous workspace (Win-A-Shift-P).</p>
<p>When I mention &#8220;(with osdsh)&#8221;, it means that the action that is performed is shown on screen with osdsh. Thus, when I reconfigure Openbox, the message &#8220;reconfiguring&#8221; on my screen, or when I turn the volume up it says &#8220;volume up&#8221;. (I know osdsh has a mixer display, but that uses a lot of CPU in Hardy!). When I mention &#8220;(with script)&#8221; in the launcher section, I launch a script to raise the application if it is already running or to open a new instance if it isn&#8217;t. The shutdown and logout keybindings (Win-O-S and Win-O-E) launch a gmessage script that gives me the option to reboot, shutdown, logout, or lock the screen.</p>
<p>As you will see below, I make extensive use of <a href="http://icculus.org/openbox/index.php/Help:Bindings#Key_chains">keychains</a>. Keychains are great! They enable me to keep most of my keybindings fairly simple and straightforward: Win-A starts the keychain for window actions (thus &#8216;Win-A + C&#8217; closes the focused window, and &#8216;Win-A + N moves it to the next workspace); Win-O governs all the Openbox related actions (Reconfiguring, editing the configuration files, etc.).</p>
<p>I have also posted <a href="http://dotfiles.org/~urukrama/rc.xml_07-2008">my current rc.xml file</a>, for those interested. I&#8217;m pretty sure there are some additional keybindings in that file (probably duplicate actions) that are not mentioned below; if that is the case they are keybindings I no longer use, but forgot to remove.</p>
<pre>		#########################
		## Launchers and Menus ##
		#########################
		Alt F1		root menu
		Alt F2		gmrun
		Alt F3		dmenu
		Alt F5		dmenu for configuration files
		Alt F6		client-combined-list

		Win F1		mousepad
		Win F2		notecase
		Win F3		xfce4-terminal (script)
		Win F4		thunar (script)
		Win F5		gmpc
		Win F6		epiphany
		Win F7		ooffice writer
		Win F8		opera (script)
		Win F9		stardict
		Win F10		gedit
		Win F11		gnome-alsamixer
		Win F12		Lock screen (xlock)

		Ctrl Alt Del	htop

		#########
		## MPD ##
		#########
		Ctrl Alt space	mpc toggle (with osdsh)
		Ctlr Alt Prior	mpc next (with osdsh)
		Ctlr Alt Next	mpc previous (with osdsh)

		####################
		## Volume control ##
		####################
		Ctrl Up		Volume up (PMC) (with osdsh)
		Ctrl Down	Volume down (PMC) (with osdsh)
		Ctrl Shift Up	Volume up (Master) (with osdsh)
		Ctrl Shift Down	Volume down (Master) (with osdsh)
		Ctrl Alt End	Volume mute (with osdsh)

		####################
		## Window actions ##
		####################
		Win a		Window actions
			m	Toggle maximize full
			v	Toggle maximize vertical
			h	Toggle maximize horizontal
			i	Iconify
			c	Close
			s	Toggle Shade
			t	Toggle always on top
			b	Send to bottom
			Shift b	Toggle always below
			Shift l	Send to normal layer
			Shift d	Toggle omnipresent
			d	Toggle decorations
			l	Lower, focus to bottom, unfocus
			p	Send to previous workspace
			n	Send to next workspace
			Shift p	Follow to previous workspace
			Shift n	Follow to next workspace

			g	GrowTo
				Left	GrowToEdgeWest
				Right	GrowToEdgeEast
				Down	GrowToEdgeSouth
				Up	GrowToEdgeNorth

		Win space	Show client-menu

		#############
		## Openbox ##
		#############
		Win o		Openbox actions
			r	Reconfigure (with osdsh)
			c	Edit rc.xml
			m	Edit menu.xml
			s	Shutdown (gmessage)
			e	Exit/logout (gmessage)
			l	Lock screen (xlock)

		###############
		## Worspaces ##
		###############
		Ctrl Alt Left	Go to the workspace on the left
		Ctrl Alt Right	Go to the workspace on the right
		Alt Shift Left	Send window to the workspace on the left
		Alt Shift Right	Send window to the workspace on the right

		Win Shift F1	Send window to workspace 1
		Win Shift F2	Send window to workspace 2
		Win Shift F3	Send window to workspace 3

		Win d		Show desktop

		######################
		## Window switching ##
		######################
		Alt Tab		Next window
		Alt Shift Tab	Previous window
		Win Tab		Next window (all desktops)
		Win Shift Tab	Previous window (all desktops)

		##################
		## Move Windows ##
		##################
		Win Left	Move window left
		Win Right	Move window right
		Win Down	Move window down
		Win Up		Move window up

		Win Prior	Move window to top right corner
		Win Next	Move window to bottom right corner
		Win Home	Move window to top left corner
		Win End		Move window to bottom left corner

		####################
		## Resize Windows ##
		####################
		Alt Left	Increase left edge
		Alt Right	Increase right edge
		Alt Up		Increase top edge
		Alt Down	Increase bottom edge

		Alt Shift Left	Decrease right edge
		Alt Shift Right	Decrease left edge
		Alt Shift  Up	Decrease bottom edge
		Alt Shift Down	Decrease top edge

		Alt F12		Toggle fullscreen

		Ctrl Alt d	Toggle autohide dock
		</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/urukrama.wordpress.com/99/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/urukrama.wordpress.com/99/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/urukrama.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/urukrama.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/urukrama.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/urukrama.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/urukrama.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/urukrama.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/urukrama.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/urukrama.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/urukrama.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/urukrama.wordpress.com/99/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=urukrama.wordpress.com&blog=1573851&post=99&subd=urukrama&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://urukrama.wordpress.com/2008/07/22/my-openbox-keybindings/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/urukrama-128.jpg" medium="image">
			<media:title type="html">urukrama</media:title>
		</media:content>
	</item>
		<item>
		<title>A &#8220;tabbed&#8221; desktop</title>
		<link>http://urukrama.wordpress.com/2008/07/21/a-tabbed-desktop/</link>
		<comments>http://urukrama.wordpress.com/2008/07/21/a-tabbed-desktop/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 10:13:54 +0000</pubDate>
		<dc:creator>urukrama</dc:creator>
		
		<category><![CDATA[openbox]]></category>

		<category><![CDATA[dzen]]></category>

		<category><![CDATA[dzen2]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[tint]]></category>

		<guid isPermaLink="false">http://urukrama.wordpress.com/?p=91</guid>
		<description><![CDATA[K.Mandla has already written about my &#8220;tabbed desktop&#8221;. Here is a little more information:
To create the effect of a &#8216;tabbed&#8217; desktop, I have been running tint2 at the top of my screen, covering the window decorations. With the right colour and size settings, you can easily create the appearance of a tabbed desktop.
			

Hayagriva and my [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://ubuntuforums.org/member.php?u=71172">K.Mandla</a> has <a href="http://kmandla.wordpress.com/2008/07/19/urukramas-tabbed-openbox-desktop/">already written</a> about my &#8220;tabbed desktop&#8221;. Here is a little more information:</p>
<p>To create the effect of a &#8216;tabbed&#8217; desktop, I have been running <a href="http://code.google.com/p/tint2/">tint2</a> at the top of my screen, covering the window decorations. With the right colour and size settings, you can easily create the appearance of a tabbed desktop.</p>
<div align="center"><a href="http://urukrama.files.wordpress.com/2008/07/tabbed_desktop01.png"><img src="http://urukrama.files.wordpress.com/2008/07/tabbed_desktop01.png?w=128&h=96" alt="" width="128" height="96" class="alignnone size-thumbnail wp-image-92" /></a>			<a href="http://urukrama.files.wordpress.com/2008/07/tabbed_desktop02.png"><img src="http://urukrama.files.wordpress.com/2008/07/tabbed_desktop02.png?w=128&h=96" alt="" width="128" height="96" class="alignnone size-thumbnail wp-image-93" /></a></div>
<div align="center">
<p><i>Hayagriva and my &#8220;tabbed&#8221; desktop</i></p>
</div>
<p>Two things make this method somewhat practical: First of all, I run most of my applications maximized; smaller, &#8216;floating&#8217; windows somewhat destroy the tabbed feel of the desktop. Secondly, since tint covers the window decorations and makes it thus unable to close, iconify or shade the window, make it sticky, or send it to another desktop, you should be able to perform these actions with the keyboard, through keybindings.</p>
<p>Since K.Mandla&#8217;s post, I&#8217;ve made a small adjustment to the desktop: I added a clock and remind to my top task bar, using <a href="http://dzen.geekmode.org/">dzen2</a> (I initially also had a volume bar in it, but dropped that). My dmenu scripts also load in that exact area, using the same colour settings and covering both tint and dzen.</p>
<p>If you&#8217;re interested, <a href="http://dotfiles.org/~urukrama/dzen_tint">this is my dzen2 script</a>, and <a href="http://dotfiles.org/~urukrama/tintrc">this is my tintrc</a>. The Openbox and Gtk theme I use is <a href="http://box-look.org/content/show.php/Bygone?content=83149">Bygone</a> (somewhat modified).</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/urukrama.wordpress.com/91/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/urukrama.wordpress.com/91/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/urukrama.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/urukrama.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/urukrama.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/urukrama.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/urukrama.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/urukrama.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/urukrama.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/urukrama.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/urukrama.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/urukrama.wordpress.com/91/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=urukrama.wordpress.com&blog=1573851&post=91&subd=urukrama&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://urukrama.wordpress.com/2008/07/21/a-tabbed-desktop/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/urukrama-128.jpg" medium="image">
			<media:title type="html">urukrama</media:title>
		</media:content>

		<media:content url="http://urukrama.files.wordpress.com/2008/07/tabbed_desktop01.png?w=128" medium="image" />

		<media:content url="http://urukrama.files.wordpress.com/2008/07/tabbed_desktop02.png?w=128" medium="image" />
	</item>
		<item>
		<title>Setting a custom Gtk theme for specific applications</title>
		<link>http://urukrama.wordpress.com/2008/07/13/setting-a-custom-gtk-theme-for-specific-applications/</link>
		<comments>http://urukrama.wordpress.com/2008/07/13/setting-a-custom-gtk-theme-for-specific-applications/#comments</comments>
		<pubDate>Sun, 13 Jul 2008 13:58:08 +0000</pubDate>
		<dc:creator>urukrama</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://urukrama.wordpress.com/?p=89</guid>
		<description><![CDATA[I&#8217;m not entirely sure why you&#8217;d want to use this, but it does get asked from time to time: How can you use a different Gtk theme, icon theme and/or fonts for specific Gtk applications?
If you just want to change the Gtk theme, you can launch your application with the following command:
	GTK2_RC_FILES=/path/to/your/theme/gtkrc application-command
Thus &#8220;GTK2_RC_FILES=/home/urukrama/.themes/royalty/gtkr-2.0/gtkrc thunar&#8221; [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;m not entirely sure why you&#8217;d want to use this, but it does get <a href="http://ubuntuforums.org/showthread.php?t=857335">asked</a> from time to time: How can you use a different Gtk theme, icon theme and/or fonts for specific Gtk applications?</p>
<p>If you just want to change the Gtk theme, you can launch your application with the following command:</p>
<pre>	GTK2_RC_FILES=/path/to/your/theme/gtkrc application-command</pre>
<p>Thus &#8220;GTK2_RC_FILES=/home/urukrama/.themes/royalty/gtkr-2.0/gtkrc thunar&#8221; will use the Royalty theme for Thunar. Note that this will use the default font and icon theme, not the icon theme or font you specified in your ~/.gtkrc-2.0 or ~/.gtkrc.mine file.</p>
<p>If you&#8217;d also like to set a custom icon theme and font for the application, create an empty file, wherever you find convenient (for example in /home/USERNAME/.themes) and call it whatever you want (for example, custom.gtkrc). Then add the following to that file:</p>
<pre>		#To set the Gtk theme
		include "/path/to/your/theme/gtkrc"

		#To set the icon theme
		gtk-icon-theme-name = "GnomeCorsair"

		#To set the font
		style "Sans"
		{
		font_name = "Sans 8"
		}
		widget_class "*" style "Sans"
		gtk-font-name = "Sans 8"</pre>
<p>Change &#8216;GnomeCorsair&#8217; to the icon theme you&#8217;d like to use, and &#8220;Sans&#8221; to the font you prefer. The /path/to/your/theme/gtkrc is what it says (for example /home/urukrama/.themes/royalty/gtkr-2.0/gtkrc). If you would only like to have a custom icon theme or font, only specify those and leave the rest out.</p>
<p>To launch Thunar with these settings, use the following command (If you saved the file elsewhere, adjust the path accordingly):</p>
<pre>	GTK2_RC_FILES=/home/USERNAME/.themes/custom.gtkrc thunar</pre>
<p>If you want to use this in a launcher such as Openbox&#8217; menu, rather than the terminal, try the following:</p>
<pre>	bash -c 'GTK2_RC_FILES=/path/to/your/gtkrc application-command'</pre>
<p>I haven&#8217;t managed to get this working with either the <i>gnome-settings-daemon</i> or the <i>xfce-mcs-manager</i> running. It seems they override this.</p>
<p>As proof that this works, here is a screenshot of two instances of Mousepad running, one using the default theme, the other launched with a custom gtkrc:</p>
<div align="center"><a href="http://urukrama.files.wordpress.com/2008/07/customgtkrc.png"><img src="http://urukrama.files.wordpress.com/2008/07/customgtkrc.png?w=128&h=83" alt="" width="128" height="83" class="alignnone size-thumbnail wp-image-90" /></a></div>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/urukrama.wordpress.com/89/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/urukrama.wordpress.com/89/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/urukrama.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/urukrama.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/urukrama.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/urukrama.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/urukrama.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/urukrama.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/urukrama.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/urukrama.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/urukrama.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/urukrama.wordpress.com/89/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=urukrama.wordpress.com&blog=1573851&post=89&subd=urukrama&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://urukrama.wordpress.com/2008/07/13/setting-a-custom-gtk-theme-for-specific-applications/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/urukrama-128.jpg" medium="image">
			<media:title type="html">urukrama</media:title>
		</media:content>

		<media:content url="http://urukrama.files.wordpress.com/2008/07/customgtkrc.png?w=128" medium="image" />
	</item>
		<item>
		<title>First steps with Awesome window manager</title>
		<link>http://urukrama.wordpress.com/2008/07/10/first-steps-with-awesome-window-manager/</link>
		<comments>http://urukrama.wordpress.com/2008/07/10/first-steps-with-awesome-window-manager/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 12:59:03 +0000</pubDate>
		<dc:creator>urukrama</dc:creator>
		
		<category><![CDATA[Other window managers]]></category>

		<category><![CDATA[awesome]]></category>

		<category><![CDATA[awesomewm]]></category>

		<category><![CDATA[dzen]]></category>

		<category><![CDATA[dzen2]]></category>

		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://urukrama.wordpress.com/?p=81</guid>
		<description><![CDATA[I finally decided to try out Awesome, the window manager all the cool kids are using. Awesome is a tiling window manager, like Wmii or Xmonad, and is very light and stable. In the past I have briefly experimented with Wmii and Xmonad, which I both liked but never found really practical for my needs. [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I finally decided to try out <a href="http://awesome.naquadah.org/">Awesome</a>, the window manager all the cool kids are using. Awesome is a tiling window manager, like Wmii or Xmonad, and is very light and stable. In the past I have briefly experimented with Wmii and Xmonad, which I both liked but never found really practical for my needs. So far I&#8217;m rather liking Awesome.</p>
<div align="center"><a href="http://urukrama.files.wordpress.com/2008/07/awesome-red01.png"><img src="http://urukrama.files.wordpress.com/2008/07/awesome-red01.png?w=128&h=96" alt="" width="128" height="96" class="alignnone size-thumbnail wp-image-84" /></a>	<a href="http://urukrama.files.wordpress.com/2008/07/awesome-red02.png"><img src="http://urukrama.files.wordpress.com/2008/07/awesome-red02.png?w=128&h=96" alt="" width="128" height="96" class="alignnone size-thumbnail wp-image-85" /></a></div>
<div align="center">
<p><i>My Awesome setup</i></p>
</div>
<p>There is plenty of good information available on Awesome. <a href="http://ubuntuforums.org/member.php?u=140944">Shearn89</a>&#8217;s <a href="http://ubuntuforums.org/showthread.php?t=675292">introduction to awesome</a> on the Ubuntuforums, the <a href="http://awesome.naquadah.org/wiki/index.php/Main_Page">Awesome Wiki</a>, <a href="http://www.calmar.ws/awesome/">Calmar</a>&#8217;s files, and the documentation that comes with Awesome have been particularly helpful for me. I don&#8217;t intend to replicate here all of the information that those sources contain. The following only mentions (a) a few things I wanted to figure out, but didn&#8217;t find any info on, or (b) some things <i>I</i> did with Awesome. What follows is not meant as a guide, but just as a document explaining how I made my first slow steps with Awesome, that might be useful to others new to this window manager. Don&#8217;t expect a complete overview of Awesome, nor any revolutionary insights <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>I installed <a href="http://awesome.naquadah.org/download/">Awesome 2.3.1</a>, building it from source. All of what follows works with this version. The syntax of the configuration file tends to change with every release, so some of this may not work with earlier (or later) versions of Awesome. Only <a href="http://packages.ubuntu.com/hardy/awesome">Awesome 2.0</a> is in the Hardy Ubuntu repositories; 2.3.1 is available in <a href="http://packages.ubuntu.com/intrepid/awesome">Intrepid</a>.</p>
<p>Though tiling is neat and sometimes handy, I find it rather inconvenient to work with most of the time. I have a small screen and mainly use applications that are best viewed full-screen (Opera, OpenOffice, Stardict, etc.). I mainly control my window manager from the keyboard, and the tiling window managers offer great keyboard control, but I also look to work with the mouse. This determined the way I configured Awesome: I limit the tiling layout as default to one of my five tags, added window decorations and a root menu, and used some more &#8216;traditional&#8217; keybindings for Awesome actions (Alt-Tab to switch windows, Ctrl+Alt+arrows to move between tags, etc.).</p>
<p><font size="+1">
<p>Awesomerc</p>
<p></font></p>
<p>The syntax of the ~/.awesomerc file is fairly straightforward, but can easily be intimidating for new users. If you are unsure of the options you can use, have a look at the <a href="http://awesome.naquadah.org/wiki/index.php/Awesomerc">commented default ~/.awesomerc</a> on the Wiki (or if you know French, see <a href="http://awesome.naquadah.org/wiki/index.php/Awesomerc_(français)">this helpful page</a>).</p>
<p>To give you an idea of what I did with it, I have uploaded my <a href="http://dotfiles.org/~urukrama/.awesomerc">~/.awesomerc file</a>. The keybindings are largely those I use in other window managers (Ctrl+Alt + left and right arrows to move workspaces/tags; Alt-Tab to switch between windows; Ctrl+Alt+r to restart the window manager; Alt+F2 for gmrun; Alt+F3 for awesome-menu/dmenu; Windows+F1-12 to launch applications; Ctrl + up and down arrows to change the volume levels; Ctrl+Alt+space to play/pause mpd, etc.)</p>
<p>The structure of the configuration file is relatively simple:</p>
<pre>		&lt;section&gt; [name]
		  {
		     &lt;option&gt; = &lt;value&gt;

		     &lt;section&gt; [name]
		       {
		         &lt;option&gt; = &lt;value&gt;
		          ...
		       }
		    ...
		  }</pre>
<p>Examples of a &lt;section&gt; are mouse, rules, keys, screen, etc. Most sections can have subsections: statusbar, for example, is a subsection of screen, tasklist is a subsection of statusbar, and in my configuration file tasklist has a mouse subsection. You can have more than one instance of some sections: if you use two screens, you can have two screen sections, if you want more than one statusbar you can add more statusbar sections, and if you use widgets, you&#8217;ll probably use more than one iconbox or textbox. If you can use more than one section of a kind, you&#8217;ll have to specify a name for the section: thus in the default configuration file, screen is called &#8220;0&#8243;, statusbar is called &#8220;mystatusbar&#8221;, etc. Some sections, like mouse, key, rules, or layout, can only have one of its kind and therefore do not need a name, though the mouse, key, and styles sections can also be added as subsections to other sections, to govern the style and the mouse and key behaviour of those sections (thus, if you&#8217;d want awesome to do xyz when you right click on the tasklist, you would add a mouse section to the tasklist, or if you want the taglist to have a blue background when unfocused, you would add a style section to the taglist section). Examples given below might clarify this more.</p>
<p>&lt;option&gt; and &lt;value&gt; configure the section they are in. They can be colour settings, mouse actions, key actions, position, etc, and are sometimes unique to the section they belong to. Have a look at the default configuration file for some idea of what these can be. All the options as well as all the (sub)sections must be placed within { }. Make sure you keep that structure intact or your configuration file won&#8217;t load.</p>
<p>It is easy to make a typo, accidentally delete a bracket, or misplace a particular option into the file. If your configuration file contains errors, Awesome will load the default configuration file when it restarts. You can check for errors in the file before you restart Awesome with the command <i>awesome -k</i>.</p>
<p>Most of the key and mouse bindings should be straightforward: you specify the modifier key(s) and the regular key or mouse button that trigger the actions. If you want to launch applications, use the command <i>spawn</i> with the argument <i>exec application_name</i>. If you want to use Awesome actions, you use whatever action you want to use as the command, possibly with an argument (e.g. <i>command = &#8220;tag_setlayout&#8221;	arg = &#8220;+1&#8243;</i>, to cycle forwards through the tags), as shown in the keys and mouse section further down in the configuration file). If you want to perform more than one action with a single key (or mouse) press, you&#8217;d use the following syntax (as I did with mpc and osdsh):</p>
<pre>	key { modkey = {"mod keyname"}	key = "keyname"	command = "spawn"	arg = "exec command_one|command_two" }</pre>
<p><font size="+1">
<p>Autostarting applications</p>
<p></font></p>
<p>Awesome doesn&#8217;t have a session manager. When you login, Awesome is launched and that is it. If you want to autostart applications, you could add them to your ~/.xinitrc, or (if you use a display manager like GDM and regularly switch between window managers) create an autostart script. I modified the Awesome.desktop file (in /usr/share/xsessions/) to load a script that is saved in my home directory, where I can easily add whatever applications I&#8217;d like to autostart.</p>
<p>Here is what my /usr/share/xsessions/Awesome.desktop looks like:</p>
<pre>		[Desktop Entry]
		Encoding=UTF-8
		Name=Awesome
		Comment=Awesome window manager
		Exec=/home/urukrama/.awesome/awesome_start.sh
		Icon=
		Type=Application</pre>
<p>The awesome_start.sh script is a simple bash script. Here is what it looks like:</p>
<pre>		#!/bin/bash
		export OOO_FORCE_DESKTOP=gnome
		nitrogen --restore &amp;
		/home/urukrama/.config/osdsh/osdsh_script_awesome &amp;
		#Status bar clock &amp; remind
		/home/urukrama/.awesome/awesome-clock.sh &amp;
		/home/urukrama/.awesome/awesome-remind.sh &amp;
		thunar --daemon &amp;
		unclutter -idle 8 -root &amp;
		exec /usr/local/bin/awesome</pre>
<p>If you decide to use a similar method, make sure both files are executable. There is more info on the awesome-clock and awesome-remind scripts below.</p>
<p><font size="+1">
<p>Statusbar and widgets</p>
<p></font></p>
<p>I love what you can do with Awesome&#8217;s statusbar. If you&#8217;ve visited desktop threads on the Ubuntu or Arch forums long enough you&#8217;ve probably seen plenty of screenshots of Awesome showing statistics for network traffic, battery status, cpu and memory usage, weather, disk usage, mpd, and whatnot. A lot of this is adequately documented on the <a href="http://awesome.naquadah.org/wiki/index.php/Main_Page">Awesome Wiki</a>, so there is no need to repeat that information here. (Besides, I don&#8217;t find all those stats either useful or aesthetically pleasing, but to each his own).</p>
<p>The statusbar is relatively easy to edit, once you&#8217;ve understood the ~/.awesomerc syntax. Awesome comes by default with a single statusbar, position at the top of the screen, but you can easily add more or move that to the bottom, left or right of the screen. If you want to create an additional statusbar, just create an additional statusbar section in the configuration file, and populate it with the widgets you&#8217;d like it to display. Make sure you name it differently than the current statusbar (the default is named <i>mystatusbar</i>)!</p>
<p>By default Awesome displays the following widgets on the statusbar: the taglist, layoutinfo, tasklist, and the awesome logo (an iconbox). You can move these around as you please (or remove them, or move them to a different statusbar). The widgets are displayed on the statusbar in the order that they appear in the ~/.awesomerc file.</p>
<p>The widgets will follow the colour and font settings of the main style (defined in the &#8220;style&#8221; section, at the beginning of the config file), unless you specify different settings for a widget. To do so, add a line like this to the widget&#8217;s section:</p>
<pre>	style { fg = "#B23308" font = "nu 8"}</pre>
<p>This will use the fg colour as well as the font specified here, and use the defaults for everything else. If you want to change the colours of a widget that can have both focused and normal colours (like the tasklist), add something like the following:</p>
<pre>       styles
          {
              normal { fg = "#ECDDA6"	bg = "#000000"	border = "#000000" }
              focus  { fg = "#B23308"	bg = "#000000"	border = "#000000" }
          }</pre>
<p>I wanted to add only two widgets to the statusbar: a clock and a widget that displays my reminders (using the application <a>remind</a>). Here is how I did it.</p>
<p><b>Clock and calendar</b></p>
<p>For the clock, I modified <a href="http://awesome.naquadah.org/wiki/index.php/Simple_Clock#A_Better_Method_for_sending_the_data">a script</a> found on the Wiki, which I saved as <a href="http://dotfiles.org/~urukrama/awesome-clock">~/.awesome/awesome-clock</a> (and made executable with <i>chmod +x</i>). Whatever script you use, and wherever you save it, make sure it is always called &#8220;awesome-<i>name_of_the_widget_in_awesomerc</i>&#8220;. I added the following lines to the very end of the statusbar section of my ~/.awesomerc (to have the clock display in the far right of the statusbar):</p>
<pre>      textbox clock
         {
		align = "right"
		style { fg = "#B23308" bg = "#000000" }
	 }</pre>
<p>With this in Awesome&#8217;s configuration file, whenever I load the script ~/.awesome/awesome-clock, the clock will load in the taskbar, at the position the above section occurs in the configuration file. To have it load whenever I log into awesome, I added the script to my Awesome autostart script (<i>~/.awesome/awesome-clock &amp;</i>).</p>
<p>But I wanted more than this. Wouldn&#8217;t it be neat to have a calendar built into this clock widget? Sure, and luckily there is <a>dzen2</a>, which I used to get a <a href="http://dotfiles.org/~urukrama/dzen_calendar_awesome">script to launch a calendar</a>. I added the following two lines to the clock widget in my ~/.awesomerc (make sure you keep the { } structure intact!):</p>
<pre>  textbox clock
	 {
		align = "right"
		style { fg = "#B23308" bg = "#000000" }

		mouse {
		    button = "1"
		    command = "spawn"
		    arg = "exec /home/urukrama/.scripts/dzen_calendar_awesome" }
		mouse {
			 button = "3"
			 command = "spawn"
			 arg = "exec osmo" }
	 }</pre>
<p>This launches a dzen calendar script when I left click on the clock, and <a href="http://clay.ll.pl/osmo/">Osmo</a> when I right click on it.</p>
<div align="center"><a href="http://urukrama.files.wordpress.com/2008/07/dzen_calendar_script.png"><img src="http://urukrama.files.wordpress.com/2008/07/dzen_calendar_script.png?w=101&h=96" alt="" width="101" height="96" class="alignnone size-thumbnail wp-image-83" /></a></div>
<div align="center"><i>
<p>My calendar script</p>
<p></i></div>
<p>You can add such lines (with or without a key modifier such as Shift, Mod4, etc.) to any of the widgets (you&#8217;ll see that the tasklist and the layoutinfo widgets already have some).</p>
<p><b>Remind</b></p>
<p>I use remind to show today&#8217;s events of my religious calendar, and I wanted to show those reminders in the statusbar, next to the clock. To do so, I modified the above script to display today&#8217;s reminder, saved it as <a href="http://dotfiles.org/~urukrama/awesome-remind">~/.awesome/awesome-remind</a>, made it executable, created a textbox widget called &#8220;remind&#8221; before my clock widget, and added the appropriate line to my autostart script.</p>
<p>I also wanted to see a list of upcoming reminders when I right click on today&#8217;s reminders, and created <a href="http://dzen.geekmode.org/dwiki/doku.php?id=dzen:remind">a script with dzen2</a> to accomplish this. This script shows the reminders for the coming four weeks, with today&#8217;s reminder in red (<a>this page</a> explaining how <a href="http://packages.ubuntu.com/hardy/sed">sed</a> works was extremely useful to get this done!). Only ten lines are shown, but you can scroll up and down in the list to view the other lines. Right clicking on the list makes it disappear.</p>
<div align="center"><a href="http://urukrama.files.wordpress.com/2008/07/dzen_remind_script.png"><img src="http://urukrama.files.wordpress.com/2008/07/dzen_remind_script.png?w=128&h=95" alt="" width="128" height="95" class="alignnone size-thumbnail wp-image-82" /></a></div>
<p>
<div align="center"><i>My reminders</i></div>
</p>
<p>This is what the appropriate section in my ~/.awesomerc looks like:</p>
<pre>	textbox remind {
		align = "right"
		style { fg = "#ECDDA6" bg = "#000000" }
		mouse
			{ button = "1"
			  command = "spawn"
			  arg = "exec /home/urukrama/.scripts/dzen_remind_awesome" }
	}</pre>
<p><font size="+1">
<p>Layouts and Tags</p>
<p></font></p>
<p>Awesome has a lot of different layouts: tiled, left tiled, top tiled, bottom tiled, spiral, floating, maximized and dwindle. I don&#8217;t have any use for many of these (I only use tiled, maximized, and float), and having them all can be rather annoying if you want to quickly switch between two layouts. If you don&#8217;t want to use a particular layout, you can remove them or comment them out from the &#8220;layout&#8221; section. Only the layouts that are specified in this section will be used by awesome. You can cycle through these layouts, either by clicking the layoutinfo widget in the statusbar or by pressing Mod4+space; the order in which you cycle through them is the order specified in this section of your ~/.awesomerc.</p>
<p>Tags are like virtual workspaces, but better. Each tag can be set with a default layout, in the &#8220;tag&#8221; section of your ~/.awesomerc, but their uses are greater than that. Within a tag all the windows that have that tag are shown. The great part of it is that you can assign more than one tag to an application or window, so that it shows up in both tags. If you want an application to appear in more than one tag, you have to set up a rule (in the rules section). This is what it would look like if you want to thunar to show on both tag &#8216;one&#8217; and &#8216;five&#8217;:</p>
<pre>	rule { name = "thunar"		tags = "one|five" }</pre>
<p>I&#8217;ve also configured Awesome such that if I middle click on a tag name, the currently selected window is moved to that tag. Here is the relevant portion of my ~/.awesomerc (in the taglist section of the statusbar section):</p>
<pre>	mouse { button = "3"	command = "tag_toggleview" } </pre>
<p>If you want to view the windows of all tags in a single tag, use the action <i>tag_view</i> (assigned to Mod4+Print in my configuration). The action <i>tag_toggleview</i> works similarly, but doesn&#8217;t show the applications that are on the current tag. You can undo both actions by clicking on a tag name and triggering the action you have configured to that mouse action (thus, in my setup, middle clicking will move the active window to that tag; left clicking will just move to that tag; etc.)</p>
<p>To have an open window appear on all tags, use either the <i>client_tag</i> action, or the <i>client_toggletag</i> action if you want to be able to easily undo it.</p>
<p>You can easily create new tags whenever you want, with the <i>tag_create</i> action. Thus the following action creates a new tag called &#8220;six&#8221;:</p>
<pre>	key { modkey = {"Mod4", "Control"}  key = "F6"  command = "tag_create"  arg = "six" }</pre>
<p><font size="+1">
<p>Root menu</p>
<p></font></p>
<p>I&#8217;ve been using Openbox for way too long to be comfortable now in any window manager without a root menu that pops up when I right click on the desktop. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>If you&#8217;d like a right-click root menu in Awesome, like you have in Openbox and Fluxbox, you can use <a href="http://packages.ubuntu.com/hardy/9menu">9menu</a>, a component of <a>9wm</a> that can be easily used with other window managers. To use it, you&#8217;ll need to create a menu file (<a href="http://dotfiles.org/~urukrama/.9menurc">here</a> is mine), and launch it with the following command:</p>
<pre>9menu -popup -bg "#000000" -fg "#F2EDD7" -font "-*-nu-*-*-*-*-*-*-*-*-*-*-*-*" -teleport -file /path/to/your/custom/9menurc</pre>
<p>Change the bg and fg colours as well as the font to whatever you prefer. For more options with 9menu, check its man page.</p>
<p>To make things easier, create <a href="http://dotfiles.org/~urukrama/9menu_script">a script</a> to launch this: create an empty file called 9menu_script (I keep it in ~/.awesome), add <i>#!/bin/bash</i> at the top of that file followed by the above command, save it, and make the script executable (<i>chmod +x /path/to/9menu_script</i>). (The advantage of using a script, rather than adding the command directly into your ~/.awesomerc, is that if you have multiple instances of it in your ~/.awesomerc, you will only have to change its settings once when you want to change its colours and/or font to match a different theme.)</p>
<p>To launch 9menu when you right click on the desktop, find the following in the mouse section of your ~/.awesomerc:</p>
<pre>root { button = "3"  command = "spawn"  arg = "exec xterm" }</pre>
<p>This launches an xterm when you right click on the desktop. Change that to this:</p>
<pre>root { button = "3"  command = "spawn"  arg = "exec /path/to/your/9menu_script" }</pre>
<p>
<div align="center"><a href="http://urukrama.files.wordpress.com/2008/07/9menu_awesome.png"><img src="http://urukrama.files.wordpress.com/2008/07/9menu_awesome.png?w=96&h=96" alt="" width="96" height="96" class="alignnone size-thumbnail wp-image-88" /></a></div>
</p>
<p>
<div align="center"><i>9menu</i></div>
</p>
<p>If you&#8217;d also like to have the menu bound to Alt+F1, as some window managers have it, add the following to the keys section:</p>
<pre>key { modkey = {"Mod1"}	key = "F1"  command = "spawn"  arg = "exec /path/to/your/9menu_script" }</pre>
<p>If you&#8217;d like the menu to launch from the Awesome icon on the statusbar, edit the &#8220;iconbox logo&#8221; section in the default configuration file as follows:</p>
<pre>iconbox logo
        {
            image = "/usr/local/share/awesome/icons/awesome16.png"
            mouse
            	{ button = "1"
            	  command = "spawn"
            	  arg = "exec /path/to/your/9menu_script" }
        }</pre>
<p>(The default launches Awesome&#8217;s man page: <i>xterm -e man awesome</i>).</p>
<p>You could also use <a href="http://dzen.geekmode.org/dwiki/doku.php">dzen2</a> to create a root or panel menu (see <a href="http://bbs.archlinux.org/viewtopic.php?pid=390680">here</a> and <a href="http://bbs.archlinux.org/viewtopic.php?id=45364">here</a>). It is a lot harder to accomplish this with dzen2 than it is with 9menu, but you can do a lot more with it: submenus, more colours, icons, etc. I tried it and had some success, but gave up as I didn&#8217;t think it worth the trouble.</p>
<p><font size="+1">
<p>Window decorations</p>
<p></font></p>
<p>By default, Awesome does not use window decorations, but you can easily add those. In the screen section, add something like the following:</p>
<pre>   titlebar
     {
         position = "top"
         text_align = "left"
         styles
          {
              normal { fg = "#ECDDA6"	bg = "#000000"	border = "#000000" }
              focus  { fg = "#B23308"	bg = "#000000"	border = "#000000" }
          }
         height = "13"
     }</pre>
<p>The position of the titlebar can be top, bottom, left or right.</p>
<p>If you want to disable the titlebar for some applications, or have some applications with the titlebar in a different position, you can specify that in the &#8220;rules&#8221; section: specify the application, and use the following option <i>titlebar { position = off }</i> (you can replace &#8220;off&#8221; with any position you&#8217;d like).</p>
<p>Awesome does not support buttons on the titlebar, like <a href="http://www.rootshell.be/~polachok/code/">echinus</a> does, but having the titlebar for some applications is handy when you are in floating mode, as it allows you to easily move windows around with the mouse. In the mouse section you can tell Awesome what to do when you press a particular mouse button on the titlebar. I make it close the window when I middle click on it, as well as toggle maximize fully, vertically and horizontally when I press Mod4 and left, middle or right click on it. Note that when you maximize a window with togglemax, it looses its window decorations until you unmaximize it again.</p>
<p><font size="+1">
<p>Awesome-menu</p>
<p></font></p>
<p>And finally, there is <a href="http://awesome.naquadah.org/wiki/index.php/Awesome-menu">Awesome&#8217;s menu</a>. It resembles dmenu, though it isn&#8217;t as refined: it doesn&#8217;t automatically select the first match of what you type, and doesn&#8217;t search for matches <i>within</i> a word (&#8217;unar&#8217; does not bring up &#8216;thunar&#8217; for example, as it does in dmenu). Nevertheless, it is handy, and the Wiki explains some of its potential.</p>
<p>I initially used it, but have now gone back to the much loved dmenu.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/urukrama.wordpress.com/81/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/urukrama.wordpress.com/81/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/urukrama.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/urukrama.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/urukrama.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/urukrama.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/urukrama.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/urukrama.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/urukrama.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/urukrama.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/urukrama.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/urukrama.wordpress.com/81/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=urukrama.wordpress.com&blog=1573851&post=81&subd=urukrama&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://urukrama.wordpress.com/2008/07/10/first-steps-with-awesome-window-manager/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/urukrama-128.jpg" medium="image">
			<media:title type="html">urukrama</media:title>
		</media:content>

		<media:content url="http://urukrama.files.wordpress.com/2008/07/awesome-red01.png?w=128" medium="image" />

		<media:content url="http://urukrama.files.wordpress.com/2008/07/awesome-red02.png?w=128" medium="image" />

		<media:content url="http://urukrama.files.wordpress.com/2008/07/dzen_calendar_script.png?w=101" medium="image" />

		<media:content url="http://urukrama.files.wordpress.com/2008/07/dzen_remind_script.png?w=128" medium="image" />

		<media:content url="http://urukrama.files.wordpress.com/2008/07/9menu_awesome.png?w=96" medium="image" />
	</item>
		<item>
		<title>Dmenu script for configuration files</title>
		<link>http://urukrama.wordpress.com/2008/07/09/dmenu-script-for-configuration-files/</link>
		<comments>http://urukrama.wordpress.com/2008/07/09/dmenu-script-for-configuration-files/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 23:18:27 +0000</pubDate>
		<dc:creator>urukrama</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[dmenu]]></category>

		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://urukrama.wordpress.com/?p=86</guid>
		<description><![CDATA[Inspired by this, I created a dmenu script that gives me easy access to my most used configuration files (Openbox&#8217; rc.xml and menu.xml, conkyrc, gtkrc-2.0, etc.). The script is entirely based on my source of inspiration; the only &#8217;substantial&#8217; thing I did (apart from creating all the necessary aliases) was to make it window manager [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Inspired by <a href="http://www.calmar.ws/tmp/awesome-menu.sh.txt">this</a>, I created a <a href="http://www.suckless.org/wiki/tools/xlib">dmenu</a> script that gives me easy access to my most used configuration files (Openbox&#8217; rc.xml and menu.xml, conkyrc, gtkrc-2.0, etc.). The script is entirely based on my source of inspiration; the only &#8217;substantial&#8217; thing I did (apart from creating all the necessary aliases) was to make it window manager independent and remove the Awesome components. The script is probably quite rough, and the same could perhaps have been accomplished in a simpler and more elegant way, but it works. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>If you want to give it a try, <a href="http://urukrama.pastebin.com/f74ca72ac">download the script</a>, saved it in a safe location (like <i>~/.scripts</i>), make it executable (<i>chmod +x ~/.scripts/config_dmenu_script</i>), and map it to a keybinding in your window manager (I use Alt+F5).</p>
<p>You will need to adjust the script to be able to use it. All the aliases direct dmenu to the location of these configuration files on my computer; they won&#8217;t be located in the same place on yours (unless you are also named urukrama <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> ). I use mousepad as my default text editor; replace it with whatever text editor you prefer. You can also adjust dmenu&#8217;s settings (colours, font, position, etc.) on line 45.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/urukrama.wordpress.com/86/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/urukrama.wordpress.com/86/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/urukrama.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/urukrama.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/urukrama.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/urukrama.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/urukrama.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/urukrama.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/urukrama.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/urukrama.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/urukrama.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/urukrama.wordpress.com/86/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=urukrama.wordpress.com&blog=1573851&post=86&subd=urukrama&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://urukrama.wordpress.com/2008/07/09/dmenu-script-for-configuration-files/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/urukrama-128.jpg" medium="image">
			<media:title type="html">urukrama</media:title>
		</media:content>
	</item>
		<item>
		<title>Some Pypanel tips</title>
		<link>http://urukrama.wordpress.com/2008/05/31/some-pypanel-tips/</link>
		<comments>http://urukrama.wordpress.com/2008/05/31/some-pypanel-tips/#comments</comments>
		<pubDate>Sat, 31 May 2008 19:01:58 +0000</pubDate>
		<dc:creator>urukrama</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[pypanel]]></category>

		<guid isPermaLink="false">http://urukrama.wordpress.com/?p=73</guid>
		<description><![CDATA[Judging from the screenshots that are posted on the Ubuntuforums and the Arch Linux forums, Pypanel is probably the most popular panels among Openbox users. Pypanel is no longer developed, and the latest version of Pypanel (2.4) is from 2005 (though a few patches have appeared recently; see here, here, and here). It doesn&#8217;t offer [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Judging from the screenshots that are posted on the <a href="http://ubuntuforums.org/index.php">Ubuntuforums</a> and the <a href="http://bbs.archlinux.org/">Arch Linux forums</a>, <a href="http://pypanel.sourceforge.net">Pypanel</a> is probably the most popular panels among Openbox users. Pypanel is no longer developed, and the latest version of Pypanel (2.4) is from 2005 (though a few patches have appeared recently; see <a href="http://pypanel.sourceforge.net/patches.html">here</a>, <a href="http://roddierod.homeunix.net/code_and_technology/2008/04/pypanel-patch.html">here</a>, and <a href="http://bbs.archlinux.org/viewtopic.php?pid=261501">here</a>). It doesn&#8217;t offer nearly as many features as some of the other panels, and doesn&#8217;t have any graphical tools to change its preferences. But its simple aesthetics and lightness have captured the attention of many (including me).</p>
<p>Configuring Pypanel is relatively easy: it all takes place in a single file, ~/.pypanelrc. Most of the settings in that configuration file should be fairly straightforward, and the default is well explained. You can specify the colours, fonts, looks, the size and position of the panel, set application launchers, modify the clock, etc. Restart Pypanel and the changes will be visible.</p>
<p>What many users don&#8217;t know, however, is that the clock and desktop sections of the panel can also be configured (beyond how they look). You can specify a number of actions that are performed when you perform a mouse action on it (left/right/middle click, scroll up and down). The default actions involve changing workspaces or iconifying all open windowns and showing the desktop. The type of actions Pypanel can perform, as well as the codes for the various mouse actions are specified towards the end of the pypanelrc file, under &#8220;Button Event Function Definitions&#8221;. But there is more to it than specified there.</p>
<p>The actions are of the following syntax: two letters, signifying the type of action that follows, followed by a dot, and the action name. <i>pp</i> stands for a Pypanel action; <i>os</i> (presumably) for an operating system action (e.g. <i>pp.showDesktop()</i>). The internal Pypanel actions are those specified in the default configuration file. They are actions like focusing a window, raising a window, minimizing it, changing the workspace, hiding the panel, and so on. Note that the <i>showDesktop()</i> action only works if your window manager supports minimizing all applications at once; the action will, for example, not work in Pekwm. The <i>os</i> actions can be used to launch applications. If you don&#8217;t want to specify an action you can use the command <i>pass</i>.</p>
<p>Here are a few examples. Below is the clock section of my current pypanelrc. Left-clicking on the clock launches a <a href="http://urukrama.pastebin.com/f7e98d0c7">dzen2 script</a> (modified from <a href="http://dzen.geekmode.org/dwiki/doku.php?id=dzen:calendar">this</a>) that displays a calendar; right-clicking on it launches <a href="http://clay.ll.pl/osmo/">Osmo</a>, a personal organizer.</p>
<pre>
#--------------------------------
def clockButtonEvent(pp, button):
#--------------------------------
    """ Button event handler for the panel's clock object """

    if button == 1:
        os.system("/home/urukrama/.scripts/dzen_calendar &amp;")
    elif button == 2:
        pass
    elif button == 3:
        os.system("osmo &amp;")
    elif button == 4:
        pp.showDesktop()
    elif button == 5:
        pp.showDesktop()</pre>
<p>Here is a screenshot of the dzen2 calendar (the pager on the right to Pypanel is netwmpager):</p>
<div align="center"><a href="http://urukrama.files.wordpress.com/2008/05/dzen_pypanel.png"><img src="http://urukrama.files.wordpress.com/2008/05/dzen_pypanel.png?w=287&h=342" alt="" width="287" height="342" class="aligncenter size-full wp-image-75" /></a></div>
<p>Similarly, the desktop area of the panel can also be used to trigger certain actions. You can, for example, use that area to launch an applications menu. If you&#8217;d like to use the menu of your window manager, you can use xte or xdotool to launch it. Alternatively, you could use something like <a href="http://www.rillion.net/tabble/index.html">Tabble</a> (without the window decorations), or <a>Apwal</a> for a drawer-like effect.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/urukrama.wordpress.com/73/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/urukrama.wordpress.com/73/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/urukrama.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/urukrama.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/urukrama.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/urukrama.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/urukrama.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/urukrama.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/urukrama.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/urukrama.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/urukrama.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/urukrama.wordpress.com/73/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=urukrama.wordpress.com&blog=1573851&post=73&subd=urukrama&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://urukrama.wordpress.com/2008/05/31/some-pypanel-tips/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/urukrama-128.jpg" medium="image">
			<media:title type="html">urukrama</media:title>
		</media:content>

		<media:content url="http://urukrama.files.wordpress.com/2008/05/dzen_pypanel.png" medium="image" />
	</item>
		<item>
		<title>Update!</title>
		<link>http://urukrama.wordpress.com/2008/05/26/update/</link>
		<comments>http://urukrama.wordpress.com/2008/05/26/update/#comments</comments>
		<pubDate>Mon, 26 May 2008 00:20:45 +0000</pubDate>
		<dc:creator>urukrama</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[openbox]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://urukrama.wordpress.com/?p=58</guid>
		<description><![CDATA[Over the last few weeks, I have slowly been updating the Openbox guide. Openbox 3.4.7 has been out for a little while now, and Ubuntu Hardy was also recently released. I needed to update a few sections of the guide (mainly those covering the installation of Openbox, Obconf and Obmenu, and the shutdown/reboot section). The [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Over the last few weeks, I have slowly been updating the <a href="http://urukrama.wordpress.com/openbox-guide/">Openbox guide</a>. Openbox 3.4.7 has been out for a little while now, and Ubuntu Hardy was also recently released. I needed to update a few sections of the guide (mainly those covering the installation of Openbox, Obconf and Obmenu, and the shutdown/reboot section). The <a href="http://urukrama.wordpress.com/openbox-faq/">Openbox FAQ</a> has been changed a little as well.</p>
<p>But this new version of the guide is more than just an update. I have thoroughly revised the entire guide, rewritten some parts of it, and added a lot of new material. So what has changed?</p>
<p>First of all, it has a table of contents now <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> , which should make navigation easier and give the reader a better grasp of what areas the guide covers.</p>
<p>I have added a lot of new material to it: I have enlarged the sections on panels, docks, system trays, pagers and clocks. The list of &#8216;useful applications&#8217; at the end of the guide is now much longer (it now contains eleven applications, whereas the old one contained three). I have tried to give KDE/Qt applications more attention, and included a section on how to deal with Qt themes in Openbox. The guide contains more information about font configuration and mouse cursor themes.</p>
<p>I have tried to clarify and explain the commands and applications more, hopefully making it more accessible and educational for persons relatively new to Linux and/or window managers. I have also added a lot more links to external sources of information, project websites and howtos/guides.</p>
<p>Here are some statistics:</p>
<p>The old guide contained 7275 words; the new version of the guide has 9343 words (2068 words more). The old version had 90 links to external sites, the new version has 159 links (69 links more).</p>
<p>The old guide was completed on 26 November 2007, and revised on 22 January 2008 (some minor changes were made in between and since then). Since it was posted, the Openbox guide has received 14,218 views (13,302 and 916 before it was moved to its own page). That is an rough average of 78 persons a day. Not the most frequented website in the world, but a lot more than I thought I would get when I wrote that guide. The entire blog has had 25,968 people over, so more than half of the views were for the guide. &#8216;(An) Openbox guide&#8217; is the second most common search term that lead people to my blog (297; the first place is occupied by &#8216;<a href="http://www.google.com/search?hl=en&amp;client=opera&amp;rls=en&amp;hs=C1P&amp;q=dmenu&amp;btnG=Search">dmenu</a>&#8216; with 304 hits &#8212; it seems there isn&#8217;t that much information about dmenu available on the internet&#8230;).</p>
<p>Here is a picture of the stats for this blog:</p>
<div align="center"><a href="http://urukrama.files.wordpress.com/2008/05/blog_stats.png"><img src="http://urukrama.files.wordpress.com/2008/05/blog_stats.png?w=300&h=117" alt="" width="300" height="117" class="alignnone size-medium wp-image-72" /></a></div>
<p>And here is one for the Openbox guide alone:</p>
<div align="center"><a href="http://urukrama.files.wordpress.com/2008/05/openbox_guide_statistics.png"><img src="http://urukrama.files.wordpress.com/2008/05/openbox_guide_statistics.png?w=300&h=138" alt="" width="300" height="138" class="alignnone size-medium wp-image-71" /></a></div>
<p>Writing and maintaining the Openbox guide sometimes forces me to venture into areas I would normally not go: I don&#8217;t like docks, for example, but have tried some of them out so I could write about them. I no longer use xcompmgr and transset, but need to know how to use it as my of the readers of the guide are interested in it. I need to download, compile and install a lot of applications. One of my computers is (not exclusively) used for that. It started with a slim command-line Ubuntu Hardy install, and has now well over a thousand packages installed! I do discover a lot of interesting applications this way, though &#8212; especially old(er) ones, many of which are no longer developed, but are still handy, interesting and/or fun.</p>
<p>So that&#8217;s it. Go and have a look at the new guide <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> I hope you find it useful. If you have any suggestions for improvements, or find some grave, less-grave or not-very-grave errors in the guide, please let me know. I love feedback.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/urukrama.wordpress.com/58/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/urukrama.wordpress.com/58/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/urukrama.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/urukrama.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/urukrama.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/urukrama.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/urukrama.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/urukrama.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/urukrama.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/urukrama.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/urukrama.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/urukrama.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=urukrama.wordpress.com&blog=1573851&post=58&subd=urukrama&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://urukrama.wordpress.com/2008/05/26/update/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/urukrama-128.jpg" medium="image">
			<media:title type="html">urukrama</media:title>
		</media:content>

		<media:content url="http://urukrama.files.wordpress.com/2008/05/blog_stats.png?w=300" medium="image" />

		<media:content url="http://urukrama.files.wordpress.com/2008/05/openbox_guide_statistics.png?w=300" medium="image" />
	</item>
		<item>
		<title>Artwiz fonts on Ubuntu Hardy</title>
		<link>http://urukrama.wordpress.com/2008/05/25/artwiz-fonts-on-ubuntu-hardy/</link>
		<comments>http://urukrama.wordpress.com/2008/05/25/artwiz-fonts-on-ubuntu-hardy/#comments</comments>
		<pubDate>Sun, 25 May 2008 13:04:39 +0000</pubDate>
		<dc:creator>urukrama</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[artwiz]]></category>

		<category><![CDATA[fonts]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://urukrama.wordpress.com/?p=60</guid>
		<description><![CDATA[The artwiz fonts, a set of bitmapped &#8216;futuristic&#8217; fonts, are no longer in Ubuntu&#8217;s (Hardy&#8217;s) repositories. But don&#8217;t despair! Though installing these fonts is no longer as easy as apt-getting it, installing them manually isn&#8217;t that hard.
Download the fonts from this Sourceforge page. These are the &#8216;improved artwiz fonts&#8217; that should work in Gtk2 and [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The <a>artwiz fonts</a>, a set of bitmapped &#8216;futuristic&#8217; fonts, are no longer in Ubuntu&#8217;s (Hardy&#8217;s) <a href="http://packages.ubuntu.com/search?suite=all&amp;section=all&amp;arch=any&amp;searchon=names&amp;keywords=xfonts-artwiz">repositories</a>. But don&#8217;t despair! Though installing these fonts is no longer as easy as apt-getting it, installing them manually isn&#8217;t that hard.</p>
<p>Download the fonts from this <a href="http://artwizaleczapka.sourceforge.net/">Sourceforge page</a>. These are the &#8216;improved artwiz fonts&#8217; that should work in Gtk2 and KDE3 applications. Once you reach the download page, you&#8217;ll see there are three versions available: German (de), English (en) and Swedish (se). These are basically the same fonts, but with different language encoding support (think ü, ö, etc.). You&#8217;ll only need one of them; pick the one you like.</p>
<p>If you want full ISO-8859-1 support, you can also use the <a href="http://artwiz-latin1.sourceforge.net/">artwiz latin1</a> fonts.</p>
<p>Extract the archive and move the extracted folder to /usr/share/fonts/X11/misc (the examples below use the English (en) font set)</p>
<pre>	tar xvjf artwiz-aleczapka-en-1.3.tar.bz2
	sudo mv artwiz-aleczapka-en-1.3 /usr/share/fonts/X11/misc</pre>
<p>Renew your font cache:</p>
<pre>	sudo fc-cache -f -v</pre>
<p>Reconfigure your fontconfig settings:</p>
<pre>	sudo dpkg-reconfigure fontconfig</pre>
<p>Enable the use of bitmapped fonts:</p>
<pre>	sudo dpkg-reconfigure fontconfig-config</pre>
<p>Answer the questions as follows. First select the font tuning method (I chose Native):</p>
<p><a href="http://urukrama.files.wordpress.com/2008/05/artwiz01.png"><img src="http://urukrama.files.wordpress.com/2008/05/artwiz01.png?w=460&h=305" alt="" width="460" height="305" class="aligncenter size-full wp-image-61" /></a></p>
<p>Set the subpixel rendering of the fonts to &#8216;Automatic&#8217;:</p>
<p><a href="http://urukrama.files.wordpress.com/2008/05/artwiz02.png"><img src="http://urukrama.files.wordpress.com/2008/05/artwiz02.png?w=460&h=305" alt="" width="460" height="305" class="aligncenter size-full wp-image-62" /></a></p>
<p>And finally, enable bitmapped fonts:</p>
<p><a href="http://urukrama.files.wordpress.com/2008/05/artwiz03.png"><img src="http://urukrama.files.wordpress.com/2008/05/artwiz03.png?w=460&h=305" alt="" width="460" height="305" class="aligncenter size-full wp-image-63" /></a></p>
<p>Once you have restarted X, you should be able to use the artwiz fonts in your Gtk, Qt and Openbox settings.</p>
<p>If you want to use the artwiz fonts in conky, you no longer have to disable xft. To display conky with the artwiz font snap, use the following settings:</p>
<pre>	use_xft yes
	font snap-7</pre>
<p>Finally, if you want the artwiz fonts to also show up in <a href="http://packages.ubuntu.com/hardy/x11-utils">xfontsel</a>, specify the path to your artwiz fonts in the &#8220;Files&#8221; section of your /etc/X11/xorg.conf. Here is what that section looks like on this computer:</p>
<pre>	Section "Files"
		        FontPath        "/usr/share/fonts/X11/75dpi"
		        FontPath        "/usr/share/fonts/X11/util"
		        FontPath        "/usr/share/fonts/X11/100dpi"
		        FontPath        "/usr/share/fonts/X11/100dpi/:unscaled"
		        FontPath        "/usr/share/fonts/X11/75dpi/:unscaled"
		        FontPath        "/usr/share/fonts/X11/Type1"
		        FontPath	  "/usr/share/fonts/X11/misc/artwiz-aleczapka-en-1.3/"
	EndSection</pre>
<p>Restart X, and you should be able to select them in xfontsel.</p>
<p>Thanks to <a href="http://www.ubuntugeek.com/howto-install-artwiz-fonts-in-ubuntu.html">Ubuntugeek</a> and the <a href="https://wiki.ubuntu.com/Fonts">Ubuntu Wiki</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/urukrama.wordpress.com/60/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/urukrama.wordpress.com/60/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/urukrama.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/urukrama.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/urukrama.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/urukrama.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/urukrama.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/urukrama.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/urukrama.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/urukrama.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/urukrama.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/urukrama.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=urukrama.wordpress.com&blog=1573851&post=60&subd=urukrama&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://urukrama.wordpress.com/2008/05/25/artwiz-fonts-on-ubuntu-hardy/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/urukrama-128.jpg" medium="image">
			<media:title type="html">urukrama</media:title>
		</media:content>

		<media:content url="http://urukrama.files.wordpress.com/2008/05/artwiz01.png" medium="image" />

		<media:content url="http://urukrama.files.wordpress.com/2008/05/artwiz02.png" medium="image" />

		<media:content url="http://urukrama.files.wordpress.com/2008/05/artwiz03.png" medium="image" />
	</item>
		<item>
		<title>Exposé-type behaviour in Openbox</title>
		<link>http://urukrama.wordpress.com/2008/05/23/expose-type-behaviour-in-openbox/</link>
		<comments>http://urukrama.wordpress.com/2008/05/23/expose-type-behaviour-in-openbox/#comments</comments>
		<pubDate>Fri, 23 May 2008 10:33:58 +0000</pubDate>
		<dc:creator>urukrama</dc:creator>
		
		<category><![CDATA[openbox]]></category>

		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://urukrama.wordpress.com/?p=56</guid>
		<description><![CDATA[I&#8217;ve figured it out! You may remember I was trying to get a Exposé-type behaviour with Skippy in Openbox: move the mouse in a screen corner and Skippy launches to show you all non-iconified windows on that workspace. Well, I&#8217;ve found a solution using Xautolock.
As the name suggests, Xautolock is meant to launch a screen [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve figured it out! You may remember <a href="http://urukrama.wordpress.com/2008/01/29/using-pekwms-screen-edges/">I was trying</a> to get a <a href="http://en.wikipedia.org/wiki/Exposé_(Mac_OS_X)">Exposé</a>-type behaviour with <a href="http://thegraveyard.org/skippy.php">Skippy</a> in Openbox: move the mouse in a screen corner and Skippy launches to show you all non-iconified windows on that workspace. Well, I&#8217;ve found a solution using <a href="http://packages.ubuntu.com/hardy/xautolock">Xautolock</a>.</p>
<p>As the name suggests, Xautolock is meant to launch a screen locker, such as xlock, automatically when the mouse cursor is inactive in one or more of the screen corners. It can, however, easily be used to launch any type of application.</p>
<p>Here is how you can use it with Skippy. Add the following line to your Openbox autostart file:</p>
<pre>xautolock -locker  "xte 'key Scroll_Lock'" -corners 0+00  -cornerdelay 1 &amp;</pre>
<p>This will launch xte (<i>-locker  &#8220;xte &#8216;key Scroll_Lock&#8217;&#8221;</i>) when the mouse cursor has been in the upper right corner (<i>-corners 0+00</i>) for a full second (<i>-cornerdelay 1</i>). You can specify many more options; have a look at the very detailed man page for more info. Xautolock runs very light (80 kb on this computer), so it shouldn&#8217;t slow things down.</p>
<p>Xte comes with <a href="http://packages.ubuntu.com/hardy/xautomation">xautomation</a>. It simulates a key press, in this example of the Scroll_Lock key, which is the key I use to launch Skippy. If you launch Skippy with a different key (the default is F11), make sure to change the above xte command appropriately. You obviously need to have Skippy running for this to work. Unfortunately Skippy is not in the Hardy repositories (though it was in the repos from <a href="http://packages.ubuntu.com/search?suite=all&amp;section=all&amp;arch=any&amp;searchon=names&amp;keywords=skippy">Dapper to Gutsy</a>), so you&#8217;ll have to build it from source.</p>
<p>And that&#8217;s it! Whenever you move the mouse cursor into the upper right corner Skippy will show you all non-iconified windows. Here is a picture:</p>
<div align="center"><a href="http://urukrama.files.wordpress.com/2008/05/skippy_xautolock.jpg"><img src="http://urukrama.files.wordpress.com/2008/05/skippy_xautolock.jpg?w=128&h=96" width="128" height="96" class="aligncenter size-thumbnail wp-image-57" /></a></div>
<p>This should also work in Fluxbox or other window managers. Pekwm still has <a href="http://lists.pekwm.org/pipermail/pekwm-users/2008-January/000135.html">issues with Skippy</a>, unfortunately, so this won&#8217;t work as elegantly in that window manager.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/urukrama.wordpress.com/56/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/urukrama.wordpress.com/56/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/urukrama.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/urukrama.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/urukrama.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/urukrama.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/urukrama.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/urukrama.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/urukrama.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/urukrama.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/urukrama.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/urukrama.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=urukrama.wordpress.com&blog=1573851&post=56&subd=urukrama&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://urukrama.wordpress.com/2008/05/23/expose-type-behaviour-in-openbox/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/urukrama-128.jpg" medium="image">
			<media:title type="html">urukrama</media:title>
		</media:content>

		<media:content url="http://urukrama.files.wordpress.com/2008/05/skippy_xautolock.jpg?w=128" medium="image" />
	</item>
	</channel>
</rss>