I'm not able to make the multimedia-, volume- and brightness-keys to work in the i3 wm on my Macbook Air from 2015. I have inserted the code which is supposed to enable the buttons however it doesn't work. Reloaded the config settings and tried restarting the computer. The following is the code I use:
Pulse Audio controls
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +2%; exec pactl set-sink-mute @DEFAULT_SINK@ 0
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -2%; exec pactl set-sink-mute @DEFAULT_SINK@ 0
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
Media player controls
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
Sreen brightness controls
bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
which I found on this question
Is it possible that the multimedia keys have a different name on certain Macbooks?
I have also tried this
Perhaps there is a significant place I have to place the code?
Edit 1
I can see the command line reacting when I press the buttons
Edit 2
When executing the xbacklight command in the prompt I get the following output:
% xbacklight -inc 20
No outputs have backlight property
Edit 3
I've now solved for the volume keys with the following rows
bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master 5%+
bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master 5%-
bindsym XF86AudioMute exec amixer -D pulse set Master 1+ toggle
Edit 4
Found great info here: https://faq.i3wm.org/question/3747/enabling-multimedia-keys.1.html