You are not logged in.

#1 2011-02-28 02:49:44

vincekd
Member
From: USA
Registered: 2011-02-27
Posts: 15

A new dmenu-ish app-- pilaunch

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

#2 2011-02-28 04:23:04

Berticus
Member
Registered: 2008-06-11
Posts: 731

Re: A new dmenu-ish app-- pilaunch

you should make a PKGBUILD and submit it into AUR.

Offline

#3 2011-02-28 18:44:41

vincekd
Member
From: USA
Registered: 2011-02-27
Posts: 15

Re: A new dmenu-ish app-- pilaunch

Yeah, I'll get around to it.  But in terms of "installation" it's just one python script, unless you want mpd control.

Offline

#4 2011-02-28 21:14:31

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: A new dmenu-ish app-- pilaunch

I created a PKGBUILD, use it if you want to. http://pastebin.com/neJKGvrn (PKGBUILD) and http://pastebin.com/bm1Us4zg (pilaunch-git.install)

Offline

#5 2011-02-28 22:26:56

vincekd
Member
From: USA
Registered: 2011-02-27
Posts: 15

Re: A new dmenu-ish app-- pilaunch

Offline

#6 2011-03-01 15:14:16

pablokal
Member
From: Nijmegen, Holland
Registered: 2010-03-07
Posts: 96
Website

Re: A new dmenu-ish app-- pilaunch

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

#7 2011-03-01 16:40:33

vincekd
Member
From: USA
Registered: 2011-02-27
Posts: 15

Re: A new dmenu-ish app-- pilaunch

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

#8 2011-03-01 17:48:09

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: A new dmenu-ish app-- pilaunch

vincekd wrote:

You're welcome!

Offline

#9 2011-03-01 21:03:55

pablokal
Member
From: Nijmegen, Holland
Registered: 2010-03-07
Posts: 96
Website

Re: A new dmenu-ish app-- pilaunch

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

#10 2011-03-01 23:33:19

vincekd
Member
From: USA
Registered: 2011-02-27
Posts: 15

Re: A new dmenu-ish app-- pilaunch

pablokal wrote:

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

#11 2011-03-02 13:51:16

pablokal
Member
From: Nijmegen, Holland
Registered: 2010-03-07
Posts: 96
Website

Re: A new dmenu-ish app-- pilaunch

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

#12 2011-03-02 15:11:12

vincekd
Member
From: USA
Registered: 2011-02-27
Posts: 15

Re: A new dmenu-ish app-- pilaunch

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

#13 2011-03-02 17:48:36

oliver
Member
Registered: 2007-12-12
Posts: 448

Re: A new dmenu-ish app-- pilaunch

just wanted to say how much I like this app

Offline

#14 2011-03-02 23:21:32

vincekd
Member
From: USA
Registered: 2011-02-27
Posts: 15

Re: A new dmenu-ish app-- pilaunch

oliver wrote:

just wanted to say how much I like this app


Thanks, I'm glad you like it.

Offline

Board footer

Powered by FluxBB