From fb82c7bc7c4e766217fda55f4aaefdc740a0c274 Mon Sep 17 00:00:00 2001 From: cyber-sushi Date: Tue, 24 Dec 2024 19:04:58 +0100 Subject: [PATCH] Added cursor movement example --- examples/config-keyboard.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/config-keyboard.toml b/examples/config-keyboard.toml index d1c279b..a52e445 100644 --- a/examples/config-keyboard.toml +++ b/examples/config-keyboard.toml @@ -23,5 +23,10 @@ KEY_LEFTCTRL-KEY_LEFTALT-KEY_LEFTSHIFT-KEY_O = ["notify-send 'OwO'"] KEY_MINUS-KEY_K = ["pkill firefox"] #Keep in mind that if you want to use Modifiers across multiple devices (e.g. KEY_LEFTCTRL on your keyboard and BTN_RIGHT on your mouse), both devices will have to be read by Makima and thus both will need a config file, even if empty. Having a config file is just a way to tell Makima "Hey, read this device!". +[movements] +KEY_LEFTSHIFT-KEY_W = "CURSOR_UP" + [settings] -CUSTOM_MODIFIERS = "KEY_GRAVE-KEY_BACKSLASH" #The keys listed here will be treated as modifiers and will only emit their own event when released. If another key is pressed before the custom modifier is released, it will not emit any event. If you declare a binding that uses a non-modifier key as a modifier in the [remap] or [commands] sections, it's automatically added to this setting. \ No newline at end of file +CUSTOM_MODIFIERS = "KEY_GRAVE-KEY_BACKSLASH" #The keys listed here will be treated as modifiers and will only emit their own event when released. If another key is pressed before the custom modifier is released, it will not emit any event. If you declare a binding that uses a non-modifier key as a modifier in the [remap] or [commands] sections, it's automatically added to this setting. +CURSOR_SPEED = "10" #Speed of the cursor when moved through keys specified in [movements]. +CURSOR_ACCEL = "0.5" #Acceleration of the cursor when moved through keys. Values from 0.0 to 1.0. \ No newline at end of file