You are not logged in.
Pages: 1
Hi all,
Been practicing my python and developed a new gtk dmenu-ish app. It has a few nice features like a built in calculator, mpd control, web search and url launching capabilities. It's a lot like dmenu with added features and less ugly (in my humble opinion). I wasn't sure if I should call it a launcher or a menu or what... but anyway, this is my first attempt at development so I thought I'd throw it up and see if anyone likes my creation.
Dependencies: pygtk and python-mpd (if you plan on using the built in mpd client).
Configuration should be pretty simple, just change out any variables in piconfig.py, and be sure to read the README for file placement.
Let me know if you have any suggestions or thoughts, or find any bugs.
Enjoy.
https://github.com/vincekd/Pilaunch
EDIT:
Now up in AUR
http://aur.archlinux.org/packages.php?ID=47003
EDIT:
Keys for music:
"delete" key removes all from playlist
"end" key removes selected song from playlist
"tab" key switches between "playlist", "option", and "artists"
Left arrow and right arrow move between playlist, selected artist, selected album, and individual tracks.
e.g. if "lady gaga" is highlighted, hitting right will reveal her albums, hitting right again will show highlighted album's tracks. Left in reverse.
"enter" key adds selected to end of playlist, or if in playlist, plays song.
Last edited by vincekd (2011-03-09 06:52:28)
Offline
you should make a PKGBUILD and submit it into AUR.
Offline
Yeah, I'll get around to it. But in terms of "installation" it's just one python script, unless you want mpd control.
Offline
I created a PKGBUILD, use it if you want to. http://pastebin.com/neJKGvrn (PKGBUILD) and http://pastebin.com/bm1Us4zg (pilaunch-git.install)
Offline
Thanks, it's in AUR.
Offline
pilaunch error:
Traceback (most recent call last):
File "/usr/bin/pilaunch", line 12, in <module>
import piconfig
ImportError: No module named piconfig
GNu/Linux: Nu nog schoner: http://linuxnogschoner.blogspot.com/
Offline
Needed to put the config file in the ~/.config/pilaunch/ directory, but I added some error handling so update and it should work out of the box now.
Thanks.
Offline
Thanks, it's in AUR.
You're welcome!
Offline
Works ok. Only have trouble to use mpd.
Probably because I have set up mpd in root and etc/mpd.conf to have access to a ntfs partition.
How should I put #whether or not to use connect to mpd
mpd = False
mpdcon = {'host':"/home/$USER/.mpd/socket", 'port':"6600"}
when etc/mpd.conf is
music_directory "/media/Recover_/Downloads"
playlist_directory "/var/lib/mpd/playlists"
db_file "/var/lib/mpd/mpd.db"
log_file "/var/log/mpd/mpd.log"
pid_file "/var/run/mpd/mpd.pid"
state_file "/var/lib/mpd/mpdstate"
user "root"
GNu/Linux: Nu nog schoner: http://linuxnogschoner.blogspot.com/
Offline
Works ok. Only have trouble to use mpd.
Probably because I have set up mpd in root and etc/mpd.conf to have access to a ntfs partition.How should I put #whether or not to use connect to mpd
mpd = False
mpdcon = {'host':"/home/$USER/.mpd/socket", 'port':"6600"}when etc/mpd.conf is
music_directory "/media/Recover_/Downloads"
playlist_directory "/var/lib/mpd/playlists"
db_file "/var/lib/mpd/mpd.db"
log_file "/var/log/mpd/mpd.log"
pid_file "/var/run/mpd/mpd.pid"
state_file "/var/lib/mpd/mpdstate"
user "root"
Look under "bind_to_address" in your mpd.conf and see what that's set to. Depending on your configuration, "localhost" or the directory of your unix socket might work.
Example:
mpdcon = {'host':"localhost", 'port':"6600"}
OR
mpdcon = {'host':"/path/to/socket", 'port':"6600"} (port doesn't matter here)
I would try "localhost" first.
Also, you must change: mpd = False to mpd = True
Hope that helps. Let me know!
Last edited by vincekd (2011-03-01 23:34:10)
Offline
Yes I edited /usr/share/pilaunch/piconfig.py
with mpd = False to mpd = True
and changed mpdcon = {'host':"/home/$USER/.mpd/socket", 'port':"6600"} to
mpdcon = {'host':"localhost", 'port':"6600"}
And now doing m artist give a selection possibility.
Thanks for the help!!
Edit: what is strange though that only the playlist is searched and not the dadtabase.
Last edited by pablokal (2011-03-02 14:02:51)
GNu/Linux: Nu nog schoner: http://linuxnogschoner.blogspot.com/
Offline
Keys for music:
"delete" key removes all from playlist
"end" key removes selected song from playlist
"tab" key switches between "playlist", "option", and "artists"
Left arrow and right arrow move between playlist, selected artist, selected album, and individual tracks.
e.g. if "lady gaga" is highlighted, hitting right will reveal her albums, hitting right again will show highlighted album's tracks. Left in reverse.
"enter" key adds selected to end of playlist, or if in playlist, plays song.
Offline
just wanted to say how much I like this app
Offline
just wanted to say how much I like this app
Thanks, I'm glad you like it.
Offline
Pages: 1