Control cmus with Mediakeys in i3

To control the cmus audioplayer with the mediakeys on your keyboard, add the following to your i3 config:

bindsym XF86AudioPlay exec playerctl play
bindsym XF86AudioPause exec playerctl pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous

Sources