Author Topic: Call Notify plugin via shortkey  (Read 3252 times)

Jakarta

  • Newbie
  • *
  • Posts: 3
    • View Profile
Call Notify plugin via shortkey
« on: March 13, 2011, 03:37:33 »
I like gmusicbrowser, because it does what I want, and I like Perl.
I control gmusicbrowser with KDE keybord shortkeys via gmusicplayer -cmd .
Now i would like to call the notify plugin with a shortkey in a running instance for to popup only when requested.

Any ideas how to realize?

Thank you a lot.

ochosi

  • Full Member
  • ***
  • Posts: 187
    • View Profile
Re: Call Notify plugin via shortkey
« Reply #1 on: March 13, 2011, 04:01:19 »
hm, i have no clue how notifications work in kde, but in gnome or xfce you could install the package "libnotify-bin" which provides you with the commandline-interface to the notification-system.

you can then make your specific kb-shortcut call a script that executes the "notify-send $blabla" call and does whatever you want to do in gmusicbrowser.

but possibly i'm not getting where you wanna go with this and you have to explain it in more detail...

Jakarta

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Call Notify plugin via shortkey
« Reply #2 on: March 13, 2011, 04:26:49 »
hm, i have no clue how notifications work in kde, but in gnome or xfce you could install the package "libnotify-bin" which provides you with the commandline-interface to the notification-system.

you can then make your specific kb-shortcut call a script that executes the "notify-send $blabla" call and does whatever you want to do in gmusicbrowser.

but possibly i'm not getting where you wanna go with this and you have to explain it in more detail...

Thank you very much for your answer. I feared, my question was not clear. Tanks for your patience.
To call a notification system is not the problem.
The gmusicbrowser plugin "notify"  (notify.pm) shows me informations about the played track and pops up while jumping to the next track.

But I want to see this popup by pressing a special keyboard key only.

Any other solution  outside the plugin is welcome also,



Quentin Sculo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1095
    • View Profile
Re: Call Notify plugin via shortkey
« Reply #3 on: March 14, 2011, 21:09:12 »
I'll add a command to do that.
Note that the PopupTrayTip can be interesting too, especially since you can customize the window that pops up.

Jakarta

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re:Call Notify plugin via shortkey
« Reply #4 on: March 15, 2011, 00:42:06 »
Thank you all a lot.
I do it now with a kdialog or zenity call, this is good enough for me now.

The perl code of gmusicbrowser is charming and allows quickly done adjustments in any way.

Thanks to all developers.