Created
April 15, 2019 03:00
-
-
Save kriansa/88816661b6642ec4477adb7dc790e487 to your computer and use it in GitHub Desktop.
XKB keyboard multimedia function keys
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Append this content to the file /usr/share/X11/xkb/rules/evdev | |
# | |
# Custom options patch by Kriansa | |
! option = symbols | |
custom:multimedia_fn_keys = +media(multimedia_fn_keys) | |
custom:scroll_lock_key_usable = +media(scroll_lock_key_usable) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copy this file to /usr/share/X11/xkb/symbols/media | |
// | |
// Make Scroll Lock usable by turning it into a function key | |
partial modifier_keys xkb_symbols "scroll_lock_key_usable" { | |
key <SCLK> { [ F13 ] }; | |
}; | |
// Make multimedia keys available on the Function keys, without fn | |
partial modifier_keys xkb_symbols "multimedia_fn_keys" { | |
key <FK01> { [ XF86AudioMute ] }; | |
key <FK02> { [ XF86AudioLowerVolume ] }; | |
key <FK03> { [ XF86AudioRaiseVolume ] }; | |
key <FK04> { [ XF86AudioPlay ] }; | |
key <FK05> { [ XF86AudioStop ] }; | |
key <FK06> { [ XF86AudioPrev ] }; | |
key <FK07> { [ XF86AudioNext ] }; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
References: