Help with i3 Fn/media keys (not working)


I have recently had to remove i3 due to gnome conflict, have re-installed manjaor-gnome and then have added i3

I used my old config files but cannot seem to get the Fn/media keys working and cannot seem to find the correct sections to help me

I would like to get the media and brightness keys working and the indicators (that I used to have) back

Please can someone tell me how I can do that?

Thanks paul

You should be able to configure the keys in keyboard shortcut configuration of Gnome.

You mean something like this?

# MultimediaKeys
# Vol up
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% 
# Vol down
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% 
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle 
#Play some 
bindsym XF86AudioPlay exec playerctl play
#Pauze the play
bindsym XF86AudioPause exec playerctl pause
#Next song/chapter
bindsym XF86AudioNext exec playerctl next
#Previous song/chapter 
bindsym XF86AudioPrev exec playerctl previous

# Screen brightness
bindsym XF86MonBrightnessUp exec xbacklight -inc 20
# decrease
bindsym XF86MonBrightnessDown exec xbacklight -dec 20

When you have an Fn key on your keyboard try to finout its keycode with xev and look it up with xmodmap -pke

Or use $mod+Fx where x the number of the functionkey.

For instance screen brightness increase is under your F6 key which you normally activate with fn+F6… Forget the fn key and just set something like

bindsym $mod+F6 exec xbacklight -inc 20

Go on till you have all the key settings you need.

1 Like

Yes , SLaltEr, exactly, thanks

I have some of those buts was not sure how to find the others, however i assume that the key bindings will not give me the notifications, ie to tell me what brightness or sound volume I am at

Would you be able to also point me in the direction of how to do that please?

Thanks very much

I dunno what bar you use nor what notifier.

It was the default one in the i3 community edition, it simply showed what level of brightness etc. it was in a grey box in the upper right

No idea since I don’t use the community edition (architect with i3-gaps, rofi, dunst and polybar).

But I guess it is conky-i3. Never used it but I guess with conky-i3 and conky-manager you can come a long way.

Just for notice you can get it to work in polybar also, but I think the community i3 version uses conky for it. I could be wrong.

I sure hope someone who knows that and who had understanding of conky (which I don’t have) can help you with that part.

Here’s a list of apps (and their description) being used by the i3 community edtion:

local/artwork-i3 20190912-1 (i3-manjaro)
    Wallpapers for manjaro-i3
local/conky-i3 20180507-1 (i3-manjaro)
    Conkies for manjaro-i3 in grey, green, solarized or 'maia' colors
local/dmenu-manjaro 5.0-1 (i3-manjaro)
    customized recency-aware dmenu for manjaro-i3 with xft- and mouse-support
local/i3-default-artwork 20190912-1 (i3-manjaro)
    Default wallpaper and icons for manjaro-i3
local/i3-gaps 4.18.3-1 (i3)
    A fork of i3wm tiling window manager with more features, including gaps
local/i3-help 20180110-1 (i3-manjaro)
    help-files for manjaro-i3
local/i3-scripts 20200804-1
    Scripts and wrappers for manjaro-i3
local/i3-scrot 2-2
    simple screenshot script using scrot
local/i3exit 20200217-1 (i3-manjaro)
    Systemd/OpenRC-compatible exit-script for i3, including 'blurlock'
local/i3lock 2.12-2 (i3)
    Improved screenlocker based upon XCB and PAM
local/i3status-manjaro 2.13-3 (i3-manjaro)
    customized status bar for manjaro-i3, dzen2 or xmobar
local/manjaro-i3-settings 20200919-1 (i3-manjaro)
    Manjaro Linux i3 settings                                                                                   
local/nitrogen 1.6.1-3
    Background browser and setter for X windows                                                                                       
local/dunst 1.5.0-1.0
    Customizable and lightweight notification-daemon
local/dunstify 1.5.0-1.0
    Notification sending tool included in dunst

Hope this helps.

As far as the keybindings go, maybe the gnome installation defaulted to a different layout. Also I’m not sure which of gnome’s configurations are being ‘imposed’ on i3 - maybe somebody else running gnome has got some idea…

thanks, I appreciate that, I will give it a go and also look at polybar as well

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.