You are not logged in.
I have special key on my keyboard for stop (XF86AudioStop) play/pause (XF86AudioPlay) next (XF86AudioNext) and previous (XF86AudioPrev).
Is it possible to make keybindings for ncmpcpp or mpd for these keys?
Note: I would like not to have to install additional packages, though "no new package rule" is preferable it's also reconsiderable.
Last edited by bstaletic (2014-06-04 08:46:55)
Offline
Any reason why you don't want to install additional packages ?
You can set up these keys in the i3 config file. Look it up in the i3 user guide on how to set up keybindings.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
I know how the i3 syntax works, I seccessfully set XF86AudioMute, XF86AudioRaiseVolume and XF86LowerVolume.
As for the new packages... I just like my system to be as minimalistic as it possibly could. These buttons were never used before, so I can live without them. If new package is more powerful than I need it to be I'll probably try to find a simpler solution. If that fails I'll reconsider the previously mentioned package.
Offline
You can use mpc stop, mpc toggle, mpc prev and mpc next as the used commands in i3 to communicate with mpd.
It is also possible to do it with ncmpcpp if I am not mistaken, but you'll have to read the man page.
Offline
Thanks, mpc works. The same commands are for ncmpcpp, I don't know how I skipped passed that section all three times I had read the man page.
Offline
here's my media keys section
# media keys
bindsym XF86AudioRaiseVolume exec $HOME/Launchers/volumeControl up
bindsym XF86AudioLowerVolume exec $HOME/Launchers/volumeControl down
bindsym XF86AudioMute exec $HOME/Launchers/volumeControl mute
bindsym XF86AudioPlay exec mpc toggle
bindsym XF86AudioStop exec mpc stop
bindsym XF86AudioPrev exec $HOME/Launchers/mpcPrevSong.sh
bindsym XF86AudioNext exec mpc nextmy volumeControl script
my mpcPrevSong.sh script
Offline