I’m using Ubuntu 18.04.2 LTS on my Lenovo Thinkpad E590 and I’m actually trying to add the Lenovo shortcuts (like Fn + F1 to mute, Fn + F5 to decrease the screen’s brightness, etc.)
Let’s take the example of decreasing the screen brightness, which is Fn + F5 on the standard desktop of Ubuntu (which is Unity, right ?)
This is basically what every solution found on the internet told me to do:
- Use xev to get the name of the key.
So Fn = XF86WakeUp and F5 (when Fn is pressed) = XF86MonBrightnessDown.
Then edit the
~/.config/i3/config file by adding this:
bindsym XF86WakeUp+XF86MonBrightnessUp exec xbacklight -inc 10 # increase screen brightness bindsym XF86WakeUp+XF86MonBrightnessDown exec xbacklight -dec 10 # decrease screen brightness
But this doesn’t work after reloading and rebooting my i3. I don’t had any error. Same for the volume control.
bindsym XF86WakeUp+XF86AudioUpperVolume exec --no-startup-id pactl set-sink-volume 0 +2% #increase sound volume bindsym XF86WakeUp+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -2% #decrease sound volume bindsym XF86WakeUp+XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
Does someone knows where the problem is? Because I don’t find it. Thanks for your help by the way.