You are not logged in.

#1 2005-11-08 15:05:23

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

MPD and xbindkeys.

Allright so I want to set some keys on keyboard so I can stop MPD when I don't want to listing to my music. I just can't figure out how this is set. I now GNOME has this option, and I found it very useful.

Any suggestions? smile


Arch - It's something refreshing

Offline

#2 2005-11-08 18:33:33

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: MPD and xbindkeys.

In Openbox I use Xmdomap to link media keys to MPD (mpc) seems to work ok..

HTH


Mr Green

Offline

#3 2005-11-08 19:04:30

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Re: MPD and xbindkeys.

/me does not understand. Exsplain how.


Arch - It's something refreshing

Offline

#4 2005-11-08 19:23:56

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: MPD and xbindkeys.

Use xev to find keycodes ...

bind keycode to a F<number> then add to openbox key menu

Depends on what wm you use

<keybind key="F30">
      <action name="Execute"><execute>mpc volume -10</execute></action>
  </keybind>

F30 is bound to volume - on my keyboard

entry in .Xmodmap

keycode 174=F30

HTH


Mr Green

Offline

#5 2005-11-08 20:26:30

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Re: MPD and xbindkeys.

Yeah, that mpc packages is what I needed. Now I can Play and Pause through some special keys. But, that is just abot it. I can't stop the music or go Next song etc. I can't figure out what I am doing wrong. Here's my .xbindkeysrc:

----snip----
## My key commands: ##

# xscreensaver
"xscreensaver-command -lock"
        m:0x0 + c:110
# Start ncmpc
"xterm -e ncmpc"
        m:0x0 + c:237
# Start an xterm
"xterm"
        Ctrl + Alt + x

## MPD controls ##

# Play
"mpc play"
        Mod1 + m:0x0 + c:162
# Pause
"mpc pause"
        m:0x0 + c:162
# Stop
"mpc stop"
        Control + Mod1 + m:0x0 + c:162
# Next song
"mpc next"
        Mod1 + m:0x0 + c:105
# Prev song
"mpc prev"
        Mod1 + m:0x0 + c:99



## Alsa controls ##

# sound volume 1% up
"amixer sset Master 5+"
        m:0x0 + c:176
# sound volume 1 % down
"amixer sset Master 5-"
        m:0x0 + c:174
# mute sounds
"amixer sset Master mute"
        m:0x0 + c:160
# unmute sounds
"amixer sset Master unmute"
        Mod1 + m:0x0 + c:160

----snip----

Arch - It's something refreshing

Offline

#6 2005-11-12 17:27:14

danes
Member
Registered: 2004-11-24
Posts: 48

Re: MPD and xbindkeys.

Use xhkeys... it rocks!

Offline

#7 2005-11-12 17:31:51

mezoko
Member
Registered: 2005-03-26
Posts: 310
Website

Re: MPD and xbindkeys.

sorry to be offtopic but look at pygmy it is a mpd front end I know this won't help but are own andrewski made it.


"The only thing we have to fear is fear itself." - Franklin D. Roosevelt

Offline

Board footer

Powered by FluxBB