pmusic -> tray icon
I'll change it:
pmusic -> icon wrapper -> tray icon
A bash wrapper is the easiest way to check whether the GUI is running or not, by using ps and grep on "pmusic -b" or whatever it was, don't remember.
I tried PNG, it didn't work ... I'll change that- Why do you use xpm-icon, when png is supported. I have linked the xpm-file to pmusic20.png
As I said, a wrapper which checks whether pmusic runs in the background or not and tells the tray icon what to do. I can make the tray icon run with a parameter, if it's "0" it starts with showing, otherwise it starts with hiding as the action performed when you first click on it.- pmusic -b shows trayapp, but at first click it will hide gui which is not yet there. Is it possible to check this somehow?
I'll try to learn how to do popup menus in GTK ... don't worry- Is it possible to make a right-click-menu for next and previous song. Pmusic 1.0.3 now includes the -s switch (signal), and at this point you can send 'next' and 'prev' to navigate a running Pmusic. more signals is described with pmusic -h
Should be possible.- What about controlling hotkeys with pmusic_tray
I'll do a tooltip maybe, with the current song and the action performed when you click the icon, something like: "Now playing: roflzomg by lolman, click to hide Pmusic".- $HOME/.pmusic/tmp/ffmpeg_NOW_PLAYING shows playing song. and might be used as info.