HOME | DD

AnonymousLink — PekWM MPD Dynamic Menu Script by-nc-nd

Published: 2010-02-13 19:12:41 +0000 UTC; Views: 4919; Favourites: 11; Downloads: 222
Redirect to original
Description

[ anonymouslink@deviantART.com ]


$ cat /etc/description
Okay, so if you keep up with my screenshots, you'll know by now that I've officially been converted to using PekWM as my window manager for Arch Linux. Now, I just switched from OpenBox, and users of OB will note that one of it's coolest features is pipe menus. Well, since switching to PekWM, I've missed my custom pipe menus, so I decided to port some of my old ones to PekWM! This is one of those.

This particular python script will dynamically update a submenu in your PekWM root menu (or the one that comes up when you right click on the desktop) to show various things about MPD and let you control via the menu. The screenshot above pretty much covers everything it can do.

There are instructions on use inside the file, but why not put some here as well? To use, click the "Download" link and save the file as "mpd.py" in the folder ~/.pekwm/scripts/, which is a hidden folder in your /home/YOURUSERNAME/ directory and make it executable by doing "chmod +x ~/.pekwm/scripts/mpd.py" in a terminal. Then, open the file ~/.pekwm/menu and add the following somewhere under "Root Menu" where you want it to appear:

Submenu = "MPD" {
Entry { Actions = "Dynamic /home/YOURUSERNAME/.pekwm/scripts/mpd.py" }
}

Replacing YOURUSERNAME with your actual username in /home.

Have fun!
$ sh /usr/bin/disclaimer
Python © Python Software Foundation
Conky released under GPL


Related content
Comments: 16

iamprovidence [2013-08-10 11:33:11 +0000 UTC]

This is ingenious

Thank you!

👍: 0 ⏩: 0

guilherme-sir-loop [2013-06-20 19:11:46 +0000 UTC]

The Pekwm is really awesome,the theming,the configuration,the pipemenus.But i have doubt,if the pytyle works.Did you test,yet?

👍: 0 ⏩: 1

AnonymousLink In reply to guilherme-sir-loop [2013-07-11 07:31:58 +0000 UTC]

I've never used PyTyle with it before, but I can't see any reason why it wouldn't work!

👍: 0 ⏩: 1

guilherme-sir-loop In reply to AnonymousLink [2013-07-24 20:27:16 +0000 UTC]

Ok thanks,maybe i will test.

👍: 0 ⏩: 0

Rungaaz [2011-12-19 16:55:43 +0000 UTC]

Looks nice!
But i can't run the script
First of all it's not Python 3 conform, beacause you should use "print(...)" instead of "print ...".
Also there are some "unexpected indents" as my python says.

the "import mpdclient2" line gives me an error:
"ImportError: No module named mpdclient2"

but I have the following packages installed:
* extra/python-mpd 0.3.0-1
* community/python-mpdclient2 1.0-2

Has anyone a solution for this issue?

👍: 0 ⏩: 1

AnonymousLink In reply to Rungaaz [2012-01-11 09:48:36 +0000 UTC]

It's actually written in python2, so it's not supposed to be python3 conforming. I need to actually update my python scripts all over the webs at some point.

You may need python2 mpd libraries.

👍: 0 ⏩: 0

ptzero [2010-10-13 03:57:35 +0000 UTC]

Nice work! Need to check it out at once

👍: 0 ⏩: 1

ptzero In reply to ptzero [2010-11-01 13:09:12 +0000 UTC]

Did check it out a while ago. Found out it had some problems with loading playlists (spaces in names, maybe?). Basically re-wrote it in Perl a couple of days ago

Anyways, really nice work, I guess I need to thank you for giving me the push to do it. I've been using the crap out of it for the last couple of days...

👍: 0 ⏩: 0

angrybanana5000 [2010-08-15 22:10:29 +0000 UTC]

I'm having some troubles with the script. I can get the menu to appear fine but none of the options work except for the Kill MPD option. :/

👍: 0 ⏩: 0

Fl4t [2010-06-21 10:30:07 +0000 UTC]

Awesome

👍: 0 ⏩: 1

AnonymousLink In reply to Fl4t [2010-06-21 17:34:24 +0000 UTC]

Thanks!

👍: 0 ⏩: 0

richard0 [2010-02-21 20:44:18 +0000 UTC]

great to see some pekwm love

👍: 0 ⏩: 1

AnonymousLink In reply to richard0 [2010-02-21 22:16:05 +0000 UTC]

PekWM

👍: 0 ⏩: 0

Staerseus [2010-02-13 21:14:50 +0000 UTC]

Wov, so minimalist, synopatical and interesting in one Btw, what's that background, please.

👍: 0 ⏩: 1

AnonymousLink In reply to Staerseus [2010-02-14 00:18:02 +0000 UTC]

The "yosai symbol wide" wallpaper in the this pack: [link]

And thanks for the compliments. ^^

👍: 0 ⏩: 1

Staerseus In reply to AnonymousLink [2010-02-14 09:09:08 +0000 UTC]

I thank you, I would never find this wallpaper as I don't look for Japanese (and Chinese) non-traditional, modern art

👍: 0 ⏩: 0