You are not logged in.

#1 2014-06-03 17:12:00

bstaletic
Member
Registered: 2014-02-02
Posts: 658

[SOLVED] Multimedia key keybindings i3 window manager

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

#2 2014-06-03 18:01:03

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] Multimedia key keybindings i3 window manager

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.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2014-06-03 18:20:06

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: [SOLVED] Multimedia key keybindings i3 window manager

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

#4 2014-06-03 19:16:54

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: [SOLVED] Multimedia key keybindings i3 window manager

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

#5 2014-06-04 08:46:33

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: [SOLVED] Multimedia key keybindings i3 window manager

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

#6 2014-06-05 15:28:21

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: [SOLVED] Multimedia key keybindings i3 window manager

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 next

my volumeControl script
my mpcPrevSong.sh script

Offline

Board footer

Powered by FluxBB