SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2013-11-22 14:41:22

Malice
#! Member
From: Poland
Registered: 2013-10-15
Posts: 50

Clementine is not working with global hotkeys(play, etc.)

Hello,

I recently installed clementine, and I can not get key shortcuts to work properly.
It's my first installation, keys are not working from the start.
Before Clementine, I used deadbeef, and it captured all of my hotkeys normally.

If I can't get it to work, maybe I could find a way around this problem, like setting hotkey in #! to operate on clementine? If yes, then how?

Offline

Help fund CrunchBang, donate to the project!

#2 2013-11-24 11:57:30

Malice
#! Member
From: Poland
Registered: 2013-10-15
Posts: 50

Re: Clementine is not working with global hotkeys(play, etc.)

Okay,
guys from IRC helped me with this problem, so I'll post solution:

I edited rc.xml from Openbox. I read clementine's manual to see how can I control it from CLI.
After reading it, I came up with these lines:

    <!-- Keybindings for Media Keys -->
    <keybind key="XF86AudioMute">
      <action name="Execute">
        <command>amixer set Master toggle</command>
      </action>
    </keybind>
    <keybind key="XF86AudioLowerVolume">
      <action name="Execute">
        <command>clementine --volume-down</command>
      </action>
    </keybind>
    <keybind key="XF86AudioRaiseVolume">
      <action name="Execute">
        <command>clementine --volume-up</command>
      </action>
    </keybind>
    
     <keybind key="XF86AudioPlay">
		<action name="Execute">
			<command>clementine -t</command>
		</action>
    </keybind>
    <keybind key="XF86AudioPrev">
      <action name="Execute">
        <command>clementine --previous</command>
      </action>
    </keybind>
    <keybind key="XF86AudioNext">
      <action name="Execute">
        <command>clementine --next</command>
      </action>
    </keybind>

And it works smile Hope it will help someone

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo