Mpd-notify... on song change mpd tell you!!! [New version]

(sorry for my english, but is not my native language)
When i install Arch, i was want that all aplications in my system will be lightweight... then for the musica i use mpd and ncmpc, but mpd or ncmpc doesn't have a method to notify when something change for example the new change on play.
Well... mpd-notify do this...
mpd-notify i a C program implemented with libmpdclient and libnotify (with the notify-send script).
[VERSION 0.2.2]
Fix some little bugs
Download source
[VERSION 0.2.1]
Revised and rewrite the mpd-notify script
Now if the user only execut mpd-notify (without any argument) all plugins will be exec
You can get the new version from here (Rapidshare)
[VERSION 0.2]
* Now mpd-notify implement a pseudo plugin system
* add icon to notification
* add two "plugins" song-change to notify when mpd change the current song
and vol-change to notify when mpd change the current volume
To use:
    mpd-notify <plugin-name> [options]
   to song-change plugin:
                   mpd-notify song-change [time icon]
                   the time option set the time to show the notification for default 2000ms
                  the icon option set the icon to use in notification
  to vol-change
      mpd-notify vol-change
To install the new mpd-notify get the source from here http://rapidshare.com/files/145929201/m … 0.2.tar.gz
unpack, cd to the new folder and run the install.sh script
For more information see www.msdarkici.wordpress.com/mpd-notify (Spanish)
[VERSION 0.1beta]
To install it download the .tar.gz package from: http://rapidshare.com/files/145590017/m … ar.gz.html
extract, cd mpd-notify and run the install.sh script.
This script compile the program, and create 2 files in /usr/local/bin mpd-notify (the binary) and mpd-notify-daemon (a script)
To run mpd-notify you must run mpd-notify-daemon start in your start aplications (in openbox in autostart.sh file) or like me with a alias in my .bashrc file
alias musica='ncmpc && mpd-notify-daemon start'
The mpd-notify shows you when a change the song in mpd with a little libnotify event.
This is a very beta version, any question, suggestion or anything post here please.
Thank You for reading...
Last edited by msdark (2008-09-18 23:52:54)

Very nice work! I would LOVE to see this with a plugin-based system. Here's a pseudocode example:
when song_changes
for executable_file in plugin_directory; do
run executable_file with_parameters song_name song_artist (etc)
Just check if a file in plugin_directory has +x permission, and if so, run it. You could make the "default" plugin use your libnotify action, and anyone who wanted to extend it with their own could do so.
I look forward to future developments.

Similar Messages

  • ERP Upgrade: Changes in Reporting in new version ECC6.0

    Hi Gurus,
    We are just in upgrade process from 4.7c to ECC 6.0. During the test we ascertained that there are certain changes happened in the reporting functions und the reports are not showing some necessary fields in new version. For instance the reports RFDOPO00 and RFKOPO00 are replaced by RFDEPL00 and RFKEPL00 in ECC 6.0, which do not show some important fields of old report. SAP says they are standard reports in ECC 5.0 /6.0.
    How can we maintain old reports (in general, not specifically these above mentioned reports) from 4.7c in our new upgraded system ahead instead of new reporting standard of ECC6.0.
    Please tell me the steps to solve this problem.
    Regards
    SIM

    No, there is slightly difference in reporting between both versions ERP 4.7C and ECC 6.0. For instance in old version 4.7c we can produce reports (RFDOPO00 and RFKOPO00) with Subtotal and Total by currency by making check mark on both these items. In new version this items has been removed. There are also some more items which are not offered by SAP in new version.
    As we have decided to keep some old reports in new system, Can you therefore please tell me how we can keep the old reports in new version?

  • Why does firefox keep changing things up with new versions?

    It really bothers me that Firefox keeps changing things, namely the user interface with new versions. They move buttons around like the back / forward, and refresh button. If I don't have the latest version I get prompted to download it each time I open my web browser. Now with this latest update I got a good inch and a half at the top of my screen that should be gray but is transparent and shows my desktop background. Also, I like to right click and 'open link in new' tab a lot, I thought it used to be 'open link in new window' first than 'open link in new tab' second. They switched them around now I'm opening new windows instead of tabs from clicking the second option by habit. Its not that big of a deal but why keep changing it up when I'm comfortable with what I know.

    You can use Themes or Personas to change the display of Firefox browser.
    * https://addons.mozilla.org/en-US/firefox/themes/
    * https://addons.mozilla.org/en-US/firefox/personas/
    You can Middle-click a link using Mouse or use '''CTRL + Left-click''' shortkeys to open a link in a New Tab. See these articles:
    * [[Mouse shortcuts]]
    * [[Keyboard shortcuts]]
    Check and tell if its working.
    Not related to your problem but some of your Firefox Plugins are out-dated, so you need to Update them.
    -> Update All your Firefox Plugins by visiting the following link:
    * http://www.mozilla.com/en-US/plugincheck/
    * '''When Downloading Plugins setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, etc.)'''

  • The setup not auto detect to force close or notify user close current process when install new version

    I created an Project 2010 add-in and create two setup project for it the one for Project 2010 32-bit and another for 64-bit. The Add-in is loaded work fine on both project bit version. just i got an problem on 64-bit version setup.
    My IDE is Visual Studio 2008.
    The setups project has some settings:
    DetectNewInstalledVersion: true
    RemovePreviousVersions:true
    My problems is:
    - I create old version of Add-in setup version and install it (Version:1.0.0).
    - I open Microsoft project 2010 (add-in is loaded and ready to work).
    - I build a new version of add-in (Version:1.0.1, Product-Code is changed,  Upgrade-Code is same as old version)  and install it. Setup is complete and not notify the Project is current running and must be closed to install. the old files (myaddin.dll)
    not be written by new files.
    - I close Project and open again. My add-in is not changed.
    The problem is not occur on 32bit version of add-in.
    Please help me resolve this problem. how i can force the setup detect my component  is current using by another process and must be close that process to install.

    Hi phide,
    The forum supports VS setup and installation. I think your issue is not about the forum. Please give me more information about your project. I will help you move your issue to the related forum.
    Please your project type and programming language.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I have a 2nd generation ipod, can i changed it with a newer version?

    i have a 2nd gernation ipod, can i change it with a newer verison?

    alejandrafrombound brook wrote:
    i have a 2nd gernation ipod, can i change it with a newer verison?
    You can buy whatever you like.

  • Keep changes from abs for new versions of packages?

    I use the arch build system (abs) to enable netbeans support in vim by editing the PKGBUILD. I currently have to do this every time I do a full system upgrade through pacman. Is there any way I can have my PKGBUILD prioritzed unless there's a new version? Or maybe have it enable the feature that I want in every update?

    I simply keep PKGBUILDs that I customize in a separate directory and when an updated version of app x arrives, I simply rebuild it. Other than that, you can rename your vim's package so that it doesn't interfere with the version from the official repository and append lines "provides=" / "conflicts=" so the system understands its new identity You can also use customizepkg.
    Last edited by bohoomil (2013-03-05 19:04:59)

  • TS1717 Error message appearsn 'This copy of iTunes is corrupted or is not installed correctly. Please reinstall iTunes'. It tells me new version installed and then does nothing?

    If I delete the current iTunes to reinstall latest version what happens to the music I have downloaded from my own cd collection, do I lose it as I haven't been able to back up my music?

    Let's try a repair install of iTunes first.
    Restart the PC. If you're using Vista or 7, now head into your Uninstall a program control panel, select "iTunes" and then click "Repair". If you're using XP, head into your Add or Remove Programs control panel, select "iTunes", click "Change" and then click "Repair".
    Can you launch your iTunes now?

  • Help From You: New Version of fcsh

    I am looking for some help from you. I want to use something
    like fcsh but which can be automated/scripted. fsch is not possible
    to be scripted because it is an interactive shell script. Adobe
    does not provide the open source for fcsh at this time as far as I
    have seen. I do not want to use the Flex apache module but I wish
    there was a version of fcsh which behaved similarly. I do not wish
    to use the Apache module because any compile errors remain in the
    browser with no opportunity to pass them back with lines to my text
    editor. The Flex module is attached to Apache and Apache can be
    started/stopped via a shell command. I would like to be able to
    operate fcsh similarly - in that fcsh is always running and
    instructions are passed to fcsh via secondary commands. I am
    looking for some help from you. Thanks to you.

    Slowly finding more promising leads:
    http://blog.vixiom.com/2007/03/27/set-up-eclipse-to-compile-mxml-as3-quasi-flex-builder-fo r-os-x/#comment-21637
    http://www.vim.org/scripts/script.php?script_id=1793
    See the download links at the bottom.

  • I have an old IPOD Touch and just bought a new Nano.  If I download the latest version of Itunes for my Nano, will I lose all of my songs stored in my old version of Itunes and can I still use my Touch with the new version?

    I have an old IPID touch and just bought a anew Nano.  If I downoload the latest version of Itunes for my Nano, will I lose all of my osns stored in my old version of Itunes and can I still use my Touch (with my current songs on it) with the new version of Itunes?  In the past when I downloaded a new version, I lost my songs on my Touch.  Thank you for any help any one might offer.

    i am no shure but go on Itunes store in shortcuts and try to find 'purchasse'
    good luck

  • ITunes skips a song. It tells me, "This computer is not authorized to play this song. Would you like to authorize it?" So I enter my password. Then it tells me, "This computer is already authorized." But when I try to play it, it's still "not authorized".

    iTunes skips a song. It tells me, "This computer is not authorized to play this song. Would you like to authorize it?" So I enter my password. Then it tells me, "This computer is already authorized." But when I try to play it, it's still "not authorized".

    JayneWilson wrote:
    I tried that with one song and it charged me for it.  I've got hundreds of songs my new iMac won't play! Help!
    If you purchased the song from the iTunes Store go to your purchase history and re-download it from there. You will not be charged again.
    http://support.apple.com/kb/HT2519?viewlocale=en_US&locale=en_US

  • Firefox 25.0 disabled kaspersky virtual keyboard and safe money ect how do i change back to the previous version as fire fox tells you to late in the update

    firefox 25.0 disabled kaspersky virtual keyboard and safe money ect how do i change back to the previous version as fire fox tells you to late in the update to back track

    Hello Bretus,
    Thank you for contacting Mozilla Support and I'm sorry this update isn't compatible with the extensions you're using.
    The Kaspersky support forums mention that those extensions will be updated soon, so that they are compatible with FF25. In the meantime, we do not recommend that you downgrade your version of Firefox, but you can find instructions and download locations for previous versions here:
    [[Install an older version of Firefox|Install an older version of Firefox]]
    Please let us know if this solves your issue.
    Cheers, Patrick

  • Disappearing Songs on iPod - Thank you Apple!

    4000 songs gone, about 1 months of work ripping my CD Lib lost. Thank you Apple Engineers!
    Background:
    When I Rip a CD, I store temporaly the files on my PC HD, then I update the iTune Music List, then I synchronize the iPod. Afterward, I delete the file from my PC but keep the song names in the iTune libray list. They are flagged with an error "cannot locate the original file", but it has never been a problem, and so it is specified in the help on line.
    iTune 5.0.1 Upgrade:
    When I upgraded to 5.0.1, all the files on the Ipod with a file name in iTune Library that cannot be located on the PC HD, disappeared from the iPOD. I still have a 4000 songs list in iTune but no more files in the iPod. That is marvelous!
    ------

    I concur that you have identified a serious design flaw in the iPod / iTunes interface.
    I encountered a similar disaster when I moved to a new machine (windows). I installed iTunes, connected my fully loaded ipod with all my songs, ratings, playlists, etc. and proceeded to connect to the iPod. I didn't notice the small print in the connection dialog box that comes up to tell you that the libary in iTunes did not match that in the iPod, clicked yes and the system overwrote all of my iPod information with 'nothing'. Several months of organizing and rating songs were lost.
    Now, several months later, I have yet another disaster in the making. I have two profiles on my Windows machine (thanks to my local IT system afministrator), with 'My iTunes' library files created in both. For god knows what reason, both these files have been corrupted (e.g. lost my playlists, ratings, links to song folders and neither matches the configuration on my iPod!!!
    The system has no ability to upload the config and song information from my iPod to iTunes, and all iTunes does is threaten to over-write the iPod. This will once again wipe out all of my information.
    It seems to me that the Engineers at Apple need to change the linkage between iPod and iTunes giving the end-user more control to upload or download info from an iPod and to Merge the songs, lists, etc.

  • ITunes is updated and works fine and I am able to log onto my account. When I go to purchase a song, I get the error message "Your Apple ID has been disabled". I've tried different methods: changing passwords, making a new account with another email addre

    iTunes is updated and works fine and I am able to log onto my account. When I go to purchase a song, I get the error message "Your Apple ID has been disabled". I've tried different methods: changing passwords, making a new account with another email address, and emailing itunes tech support. I am curious as to how many others have been experiencing the same issue. When I googled the error, it seemed like it was happening extremely often with many people.
    We all love their products, but they always come with a lot of issues and horrible customer support.
    My apple Id is [email protected]

    My Iphone 4 is telling me the same thing and I believe I figured out what the problem is.  I had some fraudulent charges on my itunes account, so I call my bank and disputed the charges.  Right after I did that, I started getting the message "Your apple ID has been disabled."  I just realized today that the charges are not fraudulent, they are "in app purchases."  One of my daughters downloaded the game Top Girl which is FREE, but in the game Top Girl you use money in the game to purchase things.  It just so happens that the money you use to purchase things is real money MY Money!!!.  My daughter thought she was using play money in the game and had no idea she was using real money.  She spent $106.00 buying stuff.  Now I have to call the bank and tell them to release the hold and pay Itunes.  I'm hoping this solves the problem.  Here is the link to learn how to disable "in app purchase" on your iphone or ipad.
    http://www.ikidapps.com/2010/12/parents-avoid-accidental-app-purchases-how-to-tu rn-off-in-app-purchasing.html

  • How can I get songs to copy to my iPod when my computer is already authorized I get a message that states I cannot copy those songs because it tells me I need to authorize my computer?

    I get the following message when I sync my iPod Touch to my macbook in an attempt to copy songs to the iPod:
    Some of the items in the iTunes library, including “----------”, were not copied to the iPod “------------------- iPod” because you are not authorized for then on this computer. To authorize this computer for items purchased  from the iTunes Store, choose Store > Authorize This Computer
    Then when I go to the iTunes Store and authorize my computer, it tells me that it is already authorized. I sure would like to get those 45 songs onto my iPod.

    Hello jutrzopx,
    Welcome to Apple Support Communities.
    Can you play those tracks, the tracks that you’re unable to sync to the iPod, in iTunes? Make sure that you’ve authorized the computer to play purchases from each Apple ID that you've used with the iTunes Store, as shown in the article linked below.
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    Authorize using the correct account name
    The items you're trying to play might have been purchased using a different iTunes Store account. To determine which account was used to purchase an item, follow these steps:
    Select a purchased song in your library and choose File > Get Info.
    Click the Summary tab. Note the Account Name that appears in the list. This is the account name (Apple ID) you'll need to use when authorizing your computer to play this purchase.
    Note: The account name that appears is the one you used when purchasing the item and does not change if the account name (Apple ID) changes.
    If you've authorized the Apple ID that is shown in the Summary tab, you can check the purchase history for that Apple ID from Store > View My Account. If your purchase history does not reflect the purchase of the items in your iTunes library, consider any other Apple ID you may have created, and authorize the computer for your additional Apple ID.
    If you forgot the password to one of your accounts, you can recover it using Apple's password-recovery website.
    The article provides additional troubleshooting suggestions that may resolve the issue, If that doesn’t take care of it.
    -Jason

  • Album art changing with song changes

    Hi,
    I have a question that seems like there should be and easy fix for. When Im playing iTunes, the album artowrk never changes, from song to song, it only displays the album artwork for the song I first chose when I started playing iTunes. Is there a setting I have set wrong?
    Thanks

    It doesn't change even when iTunes moves on to a new album? If you're talking about the artwork in the artwork pane in the lower left corner, make sure it's set to "Now Playing" and not "Selected Item". If it's in Coverflow, I'm not sure what to tell you.

Maybe you are looking for

  • Upgrade to 11.2 / 11.1 with ASM from 9.2.0.5

    Hi, What are the options available to upgrade the database from 9.2.0.5 to either 11.1 / 11.2 with ASM. I know that we can upgade the following. But, how to do with ASM 9.2.0.5 -> 11.1 9.2.0.5 -> 9.2.0.8 -> 11.2 Thanks in Advance, -KarthicK

  • Data type of preprend array size in Flatten To String block

    Hi  The data type of the preprend array size in Flatten To String block is given as I32. Is it somehow possible to reduce the data type to I8, since the width and height of my array won't exceed 255 ?. I also need to do the same in Unflatten To Strin

  • Status profilremanagement Urgent plz

    hiall, we have a requirement in campaign the user should not set the status of a campign once it is rejected we made settings its working fine but the problem is after rejected status there are some more status having the value higher than rejected s

  • TDMS System Role Problem

    Dear experts, We are configuartion TDMS poilt setup for ERP systems. We plan to use the Solution manager as the TDMS server. (1) A lot of documents are kindof mixing these the controll system role and central system role together.My question is shall

  • Burn to Disc Grayed Out

    History: I burned one disc about a month ago and have not burned any since. In that time, I did contract some spyware that kept shutting iTunes down before it fully initialized. Throught the forum, I was able to locate the offending agent and elimina