• Home
  • Blog
  • Add-ons
  • Forum
  • Wiki
  • Developers
Nightingale - The tune of life, the tune of yours
  • Portal
  • Search
  • Member List
  • Calendar
  • Help
  • Portal
  • Search
  • Member List
  • Calendar
  • Help
Guest Hi, Guest
  • Login
  • Register
Login
Username:
Password: Lost Password?
 
Nightingale Forums Nightingale Helpdesk [SOLVED] Use media keys to control Nightingale

Pages (2): 1 2 Next »
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
[SOLVED] Use media keys to control Nightingale
sparhawk Offline
Member
***
Posts: 73
Threads: 12
Joined: Feb 2012
Reputation: 0
#1
02-14-2012, 11:39 AM
I finally worked out a way to map media keys to control Nightingale. Since the Songbird media-key plugins have not been ported yet, this is a workaround. Install the "Command Line Support" add-on. Then, using the command line, try
Code:
/path/to/applications/nightingale/nightingale -pause
to play/pause Nightingale. Caveat: every time I run this, I get "Segmentation fault" returned, but it does seem to work.

In Ubuntu 11.10, to map this to a key, go to System Settings > Keyboard > Shortcuts, then click on Custom Shortcuts, and +. Name it whatever you like, and use the same command as above. Map the key to your media key, or whatever you like! The only (other) problem is that Ubuntu might complain that the media key is mapped to something else, so you have to disable the normal function of that key. It's not a problem for me, as I only use that key for my music player, but I guess it might be an issue if you want media keys to continue controlling your video player, etc.
Find
Reply
GeekShadow Offline
Mozilla addict
******
Posts: 195
Threads: 25
Joined: Nov 2010
Reputation: 4
#2
02-14-2012, 05:58 PM
I'm working on a proper way Wink
Former Songbird contributor
Nightingale Community developer
Mozilla Reps
Website Find
Reply
sparhawk Offline
Member
***
Posts: 73
Threads: 12
Joined: Feb 2012
Reputation: 0
#3
02-14-2012, 06:39 PM
Excellent! I can't wait. My way is certainly suboptimal…
Find
Reply
3×5 Offline
Member
***
Posts: 50
Threads: 12
Joined: Oct 2012
Reputation: 0
#4
01-01-2013, 04:49 PM
Is this still relevant? I have the add-on but it's not working for me, using the instructions above.
Find
Reply
sparhawk Offline
Member
***
Posts: 73
Threads: 12
Joined: Feb 2012
Reputation: 0
#5
01-01-2013, 08:07 PM
Ah yeah, this was how I did it when I manually downloaded Nightingale from the webpage. I'm not sure how you've installed it, but I'm installed it from this ppa: trebelnik-stefina/nightingale .

The command now is
Code:
/usr/share/nightingale/nightingale-bin -pause
Find
Reply
3×5 Offline
Member
***
Posts: 50
Threads: 12
Joined: Oct 2012
Reputation: 0
#6
01-02-2013, 01:58 AM
I see. This does work from the command line, but I'm trying to bind it to my IR remote using lirc. My .lircrc file looks like this:

begin
prog = usr/share/nightingale/nightingale-bin
button = KEY_PAUSE
config = -pause
end

This doesn't do anything, though. I've tried using this:

config = pause

but that doesn't do anything either.
Find
Reply
sparhawk Offline
Member
***
Posts: 73
Threads: 12
Joined: Feb 2012
Reputation: 0
#7
01-02-2013, 08:37 AM
Can't help you there, sorry. I don't even know what lirc is. Since the Nightingale side of things do work fine, it might be worth chasing this up with lirc support. Good luck.

(Also, FWIW, you're missing an initial slash from your path in the script. I don't know if that's important. Again, I know nothing about it, but you might try putting the entire command in prog? i.e. include `-pause`? You might need quotation marks for the space.)
Find
Reply
3×5 Offline
Member
***
Posts: 50
Threads: 12
Joined: Oct 2012
Reputation: 0
#8
01-02-2013, 10:34 AM
Thanks, sparhawk.
Find
Reply
3×5 Offline
Member
***
Posts: 50
Threads: 12
Joined: Oct 2012
Reputation: 0
#9
02-06-2013, 03:07 AM
One more question: Is there a way to get this to trigger only when nightingale is running? navigating to the path and then adding a flag at the end will open nightingale and run the command, if it's closed, and will simply send along the command if it's open.

The reason I ask is that I was able to map the commands but I only want them to trigger when nightingale is already open, and not open nightingale if it isn't already.
Find
Reply
sparhawk Offline
Member
***
Posts: 73
Threads: 12
Joined: Feb 2012
Reputation: 0
#10
02-06-2013, 07:51 AM
(02-06-2013, 03:07 AM)3×5 Wrote: One more question: Is there a way to get this to trigger only when nightingale is running?

I doubt it. AFAIK the only way to use the media keys is via the command-line hack, which does have this consequence. GeekShadow mentioned that he was developing a better way, but that was a year ago, and I've not heard anything since. (I presume this method would not suffer from the same bug.)
Find
Reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)
  • Return to Top
  • Lite (Archive) Mode
  • RSS Syndication
Current time: 04-01-2023, 04:48 AM Powered By MyBB, © 2002-2023 MyBB Group.
Design By AliReza_Tofighi In WhiteCrow Software Group.
white outlined nightingale project logo

Nightingale is free!
It is an Open Source project released under the terms of the GNU General Public License v2 (GPL v2).
For more details, please read the license information.

Follow us!
f  g  t

Support
  • Community Forum
  • Official Blog
  • Add-ons
  • Wiki
  • Help Forum
Contribute
  • Developer's Center
  • Translate Nightingale
  • Source Code
  • Report a Bug
Ressources
  • Download Nightingale
Linear Mode
Threaded Mode