You are not logged in.
Pages: 1
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?
Arch - It's something refreshing
Offline
In Openbox I use Xmdomap to link media keys to MPD (mpc) seems to work ok..
HTH
Mr Green
Offline
/me does not understand. Exsplain how.
Arch - It's something refreshing
Offline
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
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
Offline
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
Pages: 1