lebauce / quodlibet

Automatically exported from code.google.com/p/quodlibet
1 stars 0 forks source link

Notification #212

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice if there was a command line parameter for activating the
notification area, e.g. quodlibet --notify.  I doubt that the plug-in
framework allows for the addition of command line options, so this is
probably not simple.

Also it would be nice if the notification was displayed above the tray icon
(when the tray icon is enabled), like most other applications.

Original issue reported on code.google.com by eric.pot...@gmail.com on 2 Jun 2009 at 12:42

GoogleCodeExporter commented 9 years ago
This isn't a rejection, this is honest advice: it probably wouldn't be 
considered
unless you could brainstorm some practical uses for plugin command line 
arguments
with other plugins.

Original comment by steven.strobe.cc@gmail.com on 13 Jun 2009 at 4:41

GoogleCodeExporter commented 9 years ago
You can use something like:

notify-send -i sound "`quodlibet --print-playing '<artist> - 
<tracknumber~title>'`"

if you are on the latest ubuntu.

Original comment by reiter.christoph@gmail.com on 13 Jun 2009 at 7:49

GoogleCodeExporter commented 9 years ago
Thanks! I missed the --print-playing option.  If anyone else is interested here 
is
what I ended up using to match my slightly modified notification plug-in.

notify-send -t 4000 -i /home/eric/.quodlibet/cover.png "Now Playing" "`quodlibet
--print-playing '<title> by <artist>' | sed -e 's/^//g' -e 's/ by 
/<\/b>\nby/g'`"

My only complaint is that the "quodlibet --print-playing" is quite slow--
considerably slower than "quodlibet"...

Original comment by eric.pot...@gmail.com on 15 Jun 2009 at 11:37

GoogleCodeExporter commented 9 years ago
You could use dbus, which may be faster. In any case, this idea seems to have 
limited
utility, although it would be reconsidered if a better use is found.

Original comment by steven.strobe.cc@gmail.com on 18 Jun 2009 at 5:24