<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[CrunchBang Linux Forums]]></title>
	<link rel="self" href="http://www.crunchbanglinux.org/forums/feed/atom/forum/9/"/>
	<updated>2012-02-09T20:30:32Z</updated>
	<generator>PunBB</generator>
	<id>http://crunchbanglinux.org/forums/</id>
		<entry>
			<title type="html"><![CDATA[debian lifespan]]></title>
			<link rel="alternate" href="http://crunchbanglinux.org/forums/topic/17758/debian-lifespan/new/posts/"/>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 178 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<summary type="html"><![CDATA[<p>I have a headless mini-itx server in a closet as a file server, apache server, ftp server, and printing with an older laser printer. My wife and I use this machine extensively as we travel and work in various places. (She&#039;s currently in the Amazon basin.) I was annoyed to find that the Opensuse installation (11.2) had a short &quot;lifespan&quot;. There isn&#039;t much support for getting a simple IRC-server installed. I&#039;d like to put debian on it, but there&#039;s a lot of configuration and reloading of databases, etc.. I don&#039;t want to have to do this every couple of years.<br />What is the lifespan of a typical debian release? In other words, how long could you expect to use it? There&#039;s probably a better term for it than &quot;lifespan&quot;. ;-)</p>]]></summary>
			<author>
				<name><![CDATA[ivanovnegro]]></name>
				<uri>http://crunchbanglinux.org/forums/user/9956/</uri>
			</author>
			<updated>2012-02-09T20:30:32Z</updated>
			<id>http://crunchbanglinux.org/forums/topic/17758/debian-lifespan/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Getting Started with Scrotwm?]]></title>
			<link rel="alternate" href="http://crunchbanglinux.org/forums/topic/11199/getting-started-with-scrotwm/new/posts/"/>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 178 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<summary type="html"><![CDATA[<p>Hi all,</p><p>My Openbox config has been getting more and more minimalist every month. I love it, but it&#039;s got to the point where im using keys for pretty much everything, i have no panel, and forgot to plug my mouse in last week and didn&#039;t notice until i started a game up and got shot while shouting in a confused voice.</p><p>It seems like it&#039;d be a lot more efficient to give a tiling WM manager a try, at least for a bit of a change. I&#039;ve installed a version of ScrotWM alongside OB and was wondering if anybody had any good advice/links to help me get started? Reading the man pages at the moment to get a handle on the config options, but i always find this stuff is three times as easy to understand coming from a person, haha.</p><p>So yeah, any advice/links/tips/config examples you guys have would be awesome. Can&#039;t wait to give this a try :)</p><p>-Gaz</p>]]></summary>
			<author>
				<name><![CDATA[0x14D]]></name>
				<uri>http://crunchbanglinux.org/forums/user/6744/</uri>
			</author>
			<updated>2012-02-09T12:53:05Z</updated>
			<id>http://crunchbanglinux.org/forums/topic/11199/getting-started-with-scrotwm/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[twmn]]></title>
			<link rel="alternate" href="http://crunchbanglinux.org/forums/topic/15684/twmn/new/posts/"/>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 178 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<summary type="html"><![CDATA[<p>TWMN - Tiling Window Manager Notification</p><p>Found here: <a href="https://bbs.archlinux.org/viewtopic.php?id=124647">https://bbs.archlinux.org/viewtopic.php?id=124647</a></p><p>I put it here as it is to do with tiling wm&#039;s. Not sure if any of you guys use this but it looks awesome.</p>]]></summary>
			<author>
				<name><![CDATA[rhowaldt]]></name>
				<uri>http://crunchbanglinux.org/forums/user/8274/</uri>
			</author>
			<updated>2012-02-09T09:44:00Z</updated>
			<id>http://crunchbanglinux.org/forums/topic/15684/twmn/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Dipping into dwm, wish me luck!]]></title>
			<link rel="alternate" href="http://crunchbanglinux.org/forums/topic/17629/dipping-into-dwm-wish-me-luck/new/posts/"/>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 178 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<summary type="html"><![CDATA[<p>I&#039;ll be doing a debian netinstall on a small partition on my netbook, and I&#039;m going to try to set up dwm on it. It&#039;s the same guy that made the very popular dmenu (we &lt;3 dmenu here at #! D:&lt;) and surf. I figure I should be able to put together a well running, very small OS that I can eventually move off to my (heck, might just do it from there in the first place) and keep with me.</p><p>I&#039;ll post more in this thread as I move ahead with this small project in the near future. TBH, doing a netinstall for real is new for me. :D My first steps are going to be like this:</p><p>deb netinstall (no X, nothing extra)<br />set up eth0 (/etc/network/interfaces)<br />install unzip stuff<br />wget smxi.org/smxi.zip &amp;&amp; unzip smxi.zip &amp;&amp; smxi/smxi (or whatever the command is)</p><p>get some stuff installed with that and then it&#039;ll be</p><p>lynx to get dwm source, edit what I need to and compile it, test it out! &lt;3</p>]]></summary>
			<author>
				<name><![CDATA[thevdude]]></name>
				<uri>http://crunchbanglinux.org/forums/user/11843/</uri>
			</author>
			<updated>2012-02-06T18:03:31Z</updated>
			<id>http://crunchbanglinux.org/forums/topic/17629/dipping-into-dwm-wish-me-luck/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Auto update menu?]]></title>
			<link rel="alternate" href="http://crunchbanglinux.org/forums/topic/19/auto-update-menu/new/posts/"/>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 178 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<summary type="html"><![CDATA[<p>How do I go about getting an auto updated menu in openbox?</p>]]></summary>
			<author>
				<name><![CDATA[joypunk]]></name>
				<uri>http://crunchbanglinux.org/forums/user/24/</uri>
			</author>
			<updated>2012-02-05T18:51:27Z</updated>
			<id>http://crunchbanglinux.org/forums/topic/19/auto-update-menu/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Alan menu updater]]></title>
			<link rel="alternate" href="http://crunchbanglinux.org/forums/topic/16304/alan-menu-updater/new/posts/"/>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 178 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<summary type="html"><![CDATA[<p>Anyone tried this Alan thing? <a href="https://launchpad.net/alan">https://launchpad.net/alan</a></p><p>I saw it in the the description of another openbox distro that just got added to Distrowatch&#039;s listings called Semplice. <a href="http://distrowatch.com/table.php?distribution=semplice">http://distrowatch.com/table.php?distribution=semplice</a></p><p>Curious, might give it a whirl.&nbsp; Sounds like it&#039;s just some python magic.</p>]]></summary>
			<author>
				<name><![CDATA[joypunk]]></name>
				<uri>http://crunchbanglinux.org/forums/user/9690/</uri>
			</author>
			<updated>2012-02-05T18:38:57Z</updated>
			<id>http://crunchbanglinux.org/forums/topic/16304/alan-menu-updater/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Control how Applications Open]]></title>
			<link rel="alternate" href="http://crunchbanglinux.org/forums/topic/17569/control-how-applications-open/new/posts/"/>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 178 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<summary type="html"><![CDATA[<p>I was wanting to know how to do three things. Is it possible to have application launch from the menu with the window opened to a certain size? It would be really helpful to have my terminal open to a bigger size but not&nbsp; all the way maximized. Also is it possible to limit how large the maximized window is? The reason I&#039;m asking is because when I maximize applications it covers up conky on the right hand of my screen. It would be nice to have windows maximized but all the while leaving that little bit on the right hand side of the screen uncovered. Last, similar to the first question, is it possible to have windows open maximized right from the menu? Thank you in advance for any help.</p>]]></summary>
			<author>
				<name><![CDATA[rhowaldt]]></name>
				<uri>http://crunchbanglinux.org/forums/user/5264/</uri>
			</author>
			<updated>2012-02-01T14:47:35Z</updated>
			<id>http://crunchbanglinux.org/forums/topic/17569/control-how-applications-open/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Echinus problem]]></title>
			<link rel="alternate" href="http://crunchbanglinux.org/forums/topic/17572/echinus-problem/new/posts/"/>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 178 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<summary type="html"><![CDATA[<p>I know this is a help and support question but its to do with a window manager so I thought I would post it here. I have configured echinus to how I like it (hover to raise etc) but copt status prompts like copying files in thunar stay at the bottom behind thunar and are not raised. This is more of an annoying issue as I usually use ranger in my terminal but its something that I would like fixed if it is possible.</p><p>Thanks in advance guys =]</p>]]></summary>
			<author>
				<name><![CDATA[xeNULL]]></name>
				<uri>http://crunchbanglinux.org/forums/user/8274/</uri>
			</author>
			<updated>2012-02-01T04:14:38Z</updated>
			<id>http://crunchbanglinux.org/forums/topic/17572/echinus-problem/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[openbox based distros?]]></title>
			<link rel="alternate" href="http://crunchbanglinux.org/forums/topic/6770/openbox-based-distros/new/posts/"/>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 178 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<summary type="html"><![CDATA[<p>Besides Crunchbang, are there any other openbox based distros?&nbsp; I would install openbox on top of Ubuntu, but I&#039;m new to linux and getting Crunchbang to work took me to my absolute limit and every day was filled with constant confusion.&nbsp; I&#039;m not sure I could install openbox on top of Ubuntu and make it work right.</p><p>Here&#039;s what I&#039;ve found, and why I don&#039;t use them:</p><p>LXDE, which uses openbox but it was difficult to configure the menu (which wasn&#039;t the openbox menu) and LXDE didn&#039;t use the autostart.sh file which made it really difficult to get programs to start at boot (the desktop file I made only worked half the time, some of them wouldn&#039;t work at all).</p><p>Crunchbang was great, but I recently bought a new computer and Crunchbang doesn&#039;t work on it (at least, the lan and sound don&#039;t).&nbsp; I couldn&#039;t compile the drivers that came with the mobo because Crunchbang doesn&#039;t include a compiler.&nbsp; I thought about using a 9.10 Ubuntu cd and installing Crunchbang with the 9.04 script (since Ubuntu 9.10 recognizes my lan and sound), but that&#039;s a little over my head at this time and I need something stable.</p><p>I found WattOS, which seems a lot like Crunchbang, but brighter, uses Perlpanel or Lxpanel or something but is only available in 32 bit (I need 64) and I couldn&#039;t get the live cd to boot on the new computer or old one, so could never try it.</p><p>So besides those, are there any linux distributions that use openbox and openbox&#039;s menu, autostart.sh, etc and are as easy to modify as Crunchbang was?</p><p>Thanks.</p>]]></summary>
			<author>
				<name><![CDATA[CBizgreat!]]></name>
				<uri>http://crunchbanglinux.org/forums/user/4981/</uri>
			</author>
			<updated>2012-01-30T17:07:25Z</updated>
			<id>http://crunchbanglinux.org/forums/topic/6770/openbox-based-distros/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to start GNUStep?]]></title>
			<link rel="alternate" href="http://crunchbanglinux.org/forums/topic/17491/how-to-start-gnustep/new/posts/"/>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 178 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<summary type="html"><![CDATA[<p>Hio,</p><p>I just installed #! in a VM to see how recent development is going. (Also, I wanted to see if everything works in a VM - not really obvious.) For various reasons I decided to give the also installable GNUStep a try, too. Now I installed the whole gnustep-* packages and stuff, but how can I run it? There is no session chooser in #!&#039;s login screen...</p><p>I might also be completely mistaken in how GNUStep works at all, but according to various sources, it has some &quot;desktop&quot; built-in (gworkspace.app), so there should be a way...?</p><p>Edit:</p><div class="quotebox"><blockquote><p>(aiBo`) openapp GWorkspace.app</p></blockquote></div><p>Perfectly did the trick!</p>]]></summary>
			<author>
				<name><![CDATA[hashbanger]]></name>
				<uri>http://crunchbanglinux.org/forums/user/13053/</uri>
			</author>
			<updated>2012-01-29T00:34:56Z</updated>
			<id>http://crunchbanglinux.org/forums/topic/17491/how-to-start-gnustep/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to delete Openbox and Install Xfce]]></title>
			<link rel="alternate" href="http://crunchbanglinux.org/forums/topic/17456/how-to-delete-openbox-and-install-xfce/new/posts/"/>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 178 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<summary type="html"><![CDATA[<p>hey guys am newbie to Crunchbang...and i completely moved from Windows to Linux</p><p>well i have rcently installed cruchbang on my PC ...but i really dont like the look..of open box...i need XFCE to be installed</p><p>can any body guide me how to install Xfce step by step and remove Open box so that Xfce will be my default desktop enviornment.....kindly guide me plzzz</p><p>and tell me how do i installa theme in my new Xfce</p><p>any help would be highly appreciated</p><br /><p>-Sandy</p>]]></summary>
			<author>
				<name><![CDATA[kowloonboy]]></name>
				<uri>http://crunchbanglinux.org/forums/user/14231/</uri>
			</author>
			<updated>2012-01-28T16:20:44Z</updated>
			<id>http://crunchbanglinux.org/forums/topic/17456/how-to-delete-openbox-and-install-xfce/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Razor-qt: New Qt based lightweight desktop environment (minus WM)]]></title>
			<link rel="alternate" href="http://crunchbanglinux.org/forums/topic/16717/razorqt-new-qt-based-lightweight-desktop-environment-minus-wm/new/posts/"/>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 178 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<summary type="html"><![CDATA[<p>Just saw an article on <a href="http://www.phoronix.com/scan.php?page=news_item&amp;px=MTAyOTg">Phoronix</a> about a new lightweight Qt based desktop enviroment that is being developed that aims to be &quot;an advanced, easy-to-use, and fast desktop environment based on Qt technologies. It has been tailored for users who value simplicity, speed, and intuitive interface. Unlike desktop environments, Razor-qt also works fine with weak machines.&quot; (i.e. the Qt equivalent of Xfce?)</p><p>I don&#039;t currently have the time to try it out/play around with it, but it looks like an interesting project that my fellow #!ers might be interested in knowing about.&nbsp; Curious what people here think.</p><p>Oh, and there is no WM included, but the developers <a href="https://github.com/Razor-qt/razor-qt/wiki/Window-Managers">recommend</a> Openbox as the &quot;Official WM of Razor-qt&quot; (so we know automatically they&#039;re smart devs ;) )</p><p>Oh and the official website is at <a href="http://razor-qt.org/">http://razor-qt.org/</a></p>]]></summary>
			<author>
				<name><![CDATA[jmad2011]]></name>
				<uri>http://crunchbanglinux.org/forums/user/10086/</uri>
			</author>
			<updated>2012-01-24T02:00:46Z</updated>
			<id>http://crunchbanglinux.org/forums/topic/16717/razorqt-new-qt-based-lightweight-desktop-environment-minus-wm/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[the ultimate pipe menu thread]]></title>
			<link rel="alternate" href="http://crunchbanglinux.org/forums/topic/4647/the-ultimate-pipe-menu-thread/new/posts/"/>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 178 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<summary type="html"><![CDATA[<p>ok ive just discovered the joys of pipe menus<br />and as there doesnt seem to be a crunchbang forum thread so i thought i would start one.</p><p> ok heres mine, used for controlling MPD</p><br /><div class="codebox"><pre><code>#!/usr/bin/env python
#
# Author: Ben Holroyd &lt;holroyd.ben@gmail.com&gt;
# License: GPL 3.0+
#
# This script requires python-mpd
#
# Usage:
# Put an entry in ~/.config/openbox/menu.xml:
# &lt;menu id=&quot;mpd&quot; label=&quot;MPD&quot; execute=&quot;~/.config/openbox/scripts/ompb.py&quot; /&gt;
#
import mpd, os, sys, socket
mpdport = 6600
musicfolder =&#039;/home/ben/music/&#039;
filelist = True  #potentially slow and unwieldy with a large collection of music
playlist = True #same for this
program = sys.argv[0]

client = mpd.MPDClient()  
try:
    client.connect(&quot;localhost&quot;, mpdport)    
except socket.error:
    print &quot;&lt;?xml version=\&quot;1.0\&quot; encoding=\&quot;UTF-8\&quot;?&gt;&quot;
    print &quot;&lt;openbox_pipe_menu&gt;&quot;
    print &quot;  &lt;item label=\&quot;MPD not running, click to start\&quot;&gt;&quot;
    print &quot;    &lt;action name=\&quot;Execute\&quot;&gt;&lt;execute&gt;mpd&lt;/execute&gt;&lt;/action&gt;&quot;
    print &quot;  &lt;/item&gt;&quot;
    print &quot;&lt;/openbox_pipe_menu&gt;&quot;
    sys.exit(0)    

song = client.currentsong()                      
stats = client.stats()
status = client.status() 

def play():
    if status[&#039;state&#039;] == &quot;stop&quot; or status[&#039;state&#039;] == &quot;pause&quot;:
        client.play()
    elif status[&#039;state&#039;] == &quot;play&quot;:
        client.pause()
    
def volume(vol):
    if vol == &quot;up&quot;:
        client.setvol(int(status[&#039;volume&#039;])+10)
    elif vol == &quot;down&quot;:
        client.setvol(int(status[&#039;volume&#039;])-10)
           
try:
    if (sys.argv[1] == &quot;play&quot;):       play()
    elif (sys.argv[1] == &quot;stop&quot;):     client.stop()
    elif (sys.argv[1] == &quot;prev&quot;):     client.previous()
    elif (sys.argv[1] == &quot;next&quot;):     client.next()
    elif (sys.argv[1] == &quot;add&quot;):      client.add(sys.argv[2]); client.play()
    elif (sys.argv[1] == &quot;clear&quot;):    client.clear()
    elif (sys.argv[1] == &quot;volume&quot;):   volume(sys.argv[2])
    elif (sys.argv[1] == &quot;playlist&quot;): 
        client.delete(client.playlist().index(sys.argv[2]))
    elif sys.argv[1] == &quot;random&quot;:
        client.random(int(not int(client.status()[&#039;random&#039;])and True or False))
    elif sys.argv[1] == &quot;repeat&quot;:
        client.repeat(int(not int(client.status()[&#039;repeat&#039;])and True or False))
except IndexError:
    pass

def item_entry(indent, label, option = &#039;&#039;, song = &#039;&#039;):
    &quot;&quot;&quot;label = label on menu, option = play/pause/stop etc, song = path to song  &quot;&quot;&quot;
    print &quot;%s&lt;item label=\&quot;%s\&quot;&gt;&quot;%(indent, label)
    print &quot;%s  &lt;action name=\&quot;Execute\&quot;&gt;&lt;execute&gt;%s %s &#039;%s&#039;&lt;/execute&gt;&lt;/action&gt;&quot; % (indent, program, option, song)
    print &quot;%s&lt;/item&gt;&quot; % (indent)
    
def file_walk(dir,indent):
    &quot;&quot;&quot; walks through music directory building a menu to view albums&quot;&quot;&quot;
    files = os.listdir(dir)
    files.sort()
    for file in files:
        path = os.path.join(dir,file)
        if os.path.isdir(path):
            print &quot;%s&lt;menu id=\&quot;%s\&quot; label=\&quot;%s\&quot;&gt;&quot;%(indent, file, file)
            item_entry(indent+&#039;  &#039;,&#039;Add all to playlist&#039;,&#039;add&#039; ,path.replace(musicfolder,&#039;&#039;))
            print &quot;%s  &lt;separator /&gt;&quot; % indent
            file_walk(path,indent+&#039;  &#039;)
            print &quot;%s&lt;/menu&gt;&quot; % indent
        else:
            item_entry(indent,file,&#039;add&#039;,path.replace(musicfolder,&#039;&#039;))          
    indent = indent[2:]

def track_info(label):
    print &quot;  &lt;menu id=\&quot;%s\&quot; label=\&quot;%s\&quot;&gt;&quot;%(label,label)
    print &quot;    &lt;item label=\&quot;Artist: %s\&quot;/&gt;&quot; % song[&#039;artist&#039;]
    print &quot;    &lt;item label=\&quot;Album: %s\&quot;/&gt;&quot; % song[&#039;album&#039;]
    print &quot;    &lt;item label=\&quot;Tracklength: %.2f\&quot;/&gt;&quot; % ((int(song[&#039;time&#039;])/60)+(int(song[&#039;time&#039;])%60.0/100))  
    print &quot;    &lt;item label=\&quot;Track: %s\&quot;/&gt;&quot; % song[&#039;track&#039;]
    print &quot;    &lt;item label=\&quot;filetype: %s\&quot;/&gt;&quot; % song[&#039;file&#039;][song[&#039;file&#039;].rfind(&#039;.&#039;)+1:]
    #print &quot;    &lt;item label=\&quot;Genre: %s\&quot;/&gt;&quot; % song[&#039;genre&#039;]
    print &quot;  &lt;/menu&gt;&quot;


print &quot;&lt;?xml version=\&quot;1.0\&quot; encoding=\&quot;UTF-8\&quot;?&gt;&quot;
print &quot;&lt;openbox_pipe_menu&gt;&quot;
if status[&#039;state&#039;] != &quot;stop&quot;:
    track_info(&quot;Playing: %s - &quot; % song[&#039;artist&#039;])
    track_info(song[&#039;title&#039;])
    print &quot;  &lt;separator /&gt;&quot;
print &quot;  &lt;item label=\&quot;Status: %s\&quot;/&gt;&quot; % {&#039;play&#039;:&#039;Playing&#039;,&#039;pause&#039;:&#039;Paused&#039;,&#039;stop&#039;:&#039;Stopped&#039;}[status[&#039;state&#039;]]    
print &quot;  &lt;separator /&gt;&quot;
item_entry(&#039;  &#039;, &#039;Play/Pause&#039;, &#039;play&#039;)    
item_entry(&#039;  &#039;, &#039;Stop&#039;, &#039;stop&#039;)
item_entry(&#039;  &#039;, &#039;Prev&#039;, &#039;prev&#039;)
item_entry(&#039;  &#039;, &#039;Next&#039;, &#039;next&#039;)
print &quot;  &lt;separator /&gt;&quot;
if filelist == True:
    print &quot;  &lt;menu id=\&quot;Albums\&quot; label=\&quot;Albums\&quot;&gt;&quot;
    file_walk(musicfolder,&#039;  &#039;)
    print &quot;  &lt;/menu&gt;&quot;
    print &quot;  &lt;separator /&gt;&quot;
if playlist == True:
    print &quot;  &lt;menu id=\&quot;Playlist\&quot; label=\&quot;Playlist\&quot;&gt;&quot;
    print &quot;    &lt;item label=\&quot;Click to remove from playlist\&quot;/&gt;&quot;
    print &quot;    &lt;separator /&gt;&quot;
    for entries in client.playlist():
        item_entry(&#039;    &#039;, entries, &#039;playlist&#039;, entries)
    print &quot;  &lt;/menu&gt;&quot;
    print &quot;  &lt;separator /&gt;&quot;
item_entry(&#039;  &#039;, &#039;Clear Playlist&#039;, &#039;clear&#039;)
item_entry(&#039;  &#039;, &#039;Random %s&#039; % (int(status[&#039;random&#039;]) and &#039;[On]&#039; or &#039;[Off]&#039;), &#039;random&#039;)    
item_entry(&#039;  &#039;, &#039;Repeat %s&#039; % (int(status[&#039;repeat&#039;]) and &#039;[On]&#039; or &#039;[Off]&#039;), &#039;repeat&#039;)    
print &quot;  &lt;menu id=\&quot;volume\&quot; label=\&quot;Volume [%s]\&quot;&gt;&quot; % (int(status[&#039;volume&#039;]) &gt; 0 and status[&#039;volume&#039;]+&#039;%&#039; or &#039;mute&#039;) 
item_entry(&#039;    &#039;, &#039;Volume + 10\% &#039;, &#039;volume up&#039;)
item_entry(&#039;    &#039;, &#039;Volume - 10\%&#039;, &#039;volume down&#039;)
print &quot;  &lt;/menu&gt;&quot;
print &quot;  &lt;separator /&gt;&quot;
print &quot;  &lt;menu id=\&quot;stats\&quot; label=\&quot;Database Stats\&quot;&gt;&quot;
print &quot;    &lt;item label=\&quot;Artists in database: %s\&quot;/&gt;&quot; % stats[&#039;artists&#039;]
print &quot;    &lt;item label=\&quot;Albums in database: %s\&quot;/&gt;&quot; % stats[&#039;albums&#039;]
print &quot;    &lt;item label=\&quot;Songs in database: %s\&quot;/&gt;&quot; % stats[&#039;songs&#039;]
print &quot;  &lt;/menu&gt;&quot;
print &quot;&lt;/openbox_pipe_menu&gt;&quot;</code></pre></div><p>to use you need to add an entry to ~/.config/openbox/menu.xml<br />(also accessible through the menu preferences--&gt;openbox config --&gt; edit menu.xml)<br />something like <br /></p><div class="codebox"><pre><code>&lt;menu id=&quot;mpd&quot; label=&quot;MPD&quot; execute=&quot;path/to/ompb.py&quot;/&gt;</code></pre></div>]]></summary>
			<author>
				<name><![CDATA[jmad2011]]></name>
				<uri>http://crunchbanglinux.org/forums/user/3129/</uri>
			</author>
			<updated>2012-01-23T19:20:15Z</updated>
			<id>http://crunchbanglinux.org/forums/topic/4647/the-ultimate-pipe-menu-thread/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[JWM an option ?]]></title>
			<link rel="alternate" href="http://crunchbanglinux.org/forums/topic/17131/jwm-an-option/new/posts/"/>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 178 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<summary type="html"><![CDATA[<p>well, don&#039;t get me wrong here, openbox is really a great WM !<br />but as has already been discussed briefly in the WM/DE section of this forum, the footprint of JWM is a lot smaller by far.<br />so to be truly minimalistic, maybe JWM is a better choice for the owners of older/low-end systems.<br />the default JWM theme looks really ugly IMHO, but there are some nice themes out there.<br />and not to forget, everything (even the keybindings) is configured via a single XML file.<br />so let me know what you think about it !<br />(this is not to start a flame war about WMs, i am just curious about other opinions on the subject.)</p>]]></summary>
			<author>
				<name><![CDATA[ElderV.LaCoste]]></name>
				<uri>http://crunchbanglinux.org/forums/user/13946/</uri>
			</author>
			<updated>2012-01-23T12:08:34Z</updated>
			<id>http://crunchbanglinux.org/forums/topic/17131/jwm-an-option/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Focused windows in awesome not differentiated]]></title>
			<link rel="alternate" href="http://crunchbanglinux.org/forums/topic/17354/focused-windows-in-awesome-not-differentiated/new/posts/"/>
<br />
<b>Warning</b>:  Missing argument 2 for parse_message(), called in /home/corenominal/www/crunchbanglinux.org/forums/extern.php on line 178 and defined in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>784</b><br />
<br />
<b>Notice</b>:  Undefined variable: hide_smilies in <b>/home/corenominal/www/crunchbanglinux.org/forums/include/parser.php</b> on line <b>820</b><br />
			<summary type="html"><![CDATA[<p>When I used awesome in ubuntu, focused windows would look darker, or be differentiated somewhat, but when I&#039;m using it now in crunchbang, they look the same, making it difficult for me to track which window is active, visually.&nbsp; I copied the exact rc.lua over, could I have missed something?</p><p>thanks</p>]]></summary>
			<author>
				<name><![CDATA[jshou]]></name>
				<uri>http://crunchbanglinux.org/forums/user/14144/</uri>
			</author>
			<updated>2012-01-23T05:36:45Z</updated>
			<id>http://crunchbanglinux.org/forums/topic/17354/focused-windows-in-awesome-not-differentiated/new/posts/</id>
		</entry>
</feed>

