24 lines
1.2 KiB
TOML
24 lines
1.2 KiB
TOML
#SAMPLE CONFIG FILE FOR A GENERIC KEYBOARD
|
|
#Put this in ~/.config/makima and rename it to the exact name of the device as shown by the 'evtest' command, including spaces and capitalization. Omit "/" if present.
|
|
#You can find the available keycodes in /usr/include/linux/input-event-codes.h
|
|
#If you're not sure which keycode corresponds to which key, you can run 'evtest', select your device and press the corresponding key/button.
|
|
|
|
[remap]
|
|
#Examples of Key => Key(s)
|
|
KEY_CAPSLOCK = ["KEY_LEFTCTRL"]
|
|
KEY_LEFTCTRL = ["KEY_CAPSLOCK"]
|
|
#Examples of Modifier(s) + Key => Key(s)
|
|
KEY_LEFTCTRL-KEY_LEFTSHIFT.KEY_Q = ["KEY_ESC"]
|
|
KEY_LEFTSHIFT.KEY_UP = ["KEY_LEFTSHIFT", "KEY_PAGEUP"]
|
|
KEY_LEFTSHIFT.KEY_DOWN = ["KEY_LEFTSHIFT", "KEY_PAGEDOWN"]
|
|
KEY_LEFTSHIFT-KEY_LEFTMETA-KEY_LEFTALT.BTN_RIGHT = ["KEY_LEFTCTRL", "KEY_C"]
|
|
|
|
[commands]
|
|
#Examples of Modifier + Key => run a shell command
|
|
KEY_LEFTCTRL.KEY_N = ["nautilus"]
|
|
KEY_LEFTMETA.KEY_F = ["firefox", "discord"]
|
|
KEY_LEFTALT.KEY_SPACE = ["foot sh -c 'pacman -Q | wc -l && sleep 1 && neofetch' && sleep 5"]
|
|
KEY_LEFTCTRL-KEY_LEFTALT-KEY_LEFTSHIFT.KEY_O = ["notify-send 'OwO'"]
|
|
|
|
[settings]
|
|
GRAB_DEVICE = "true" #gain exclusivity on the device
|