1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-07-21 19:05:19 +02:00

Add Logitech mouse Karabiner mappings

This commit is contained in:
TheGeneralist 2026-06-05 14:14:55 +02:00
parent eb40bafb6d
commit e9ca3daa19
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4

View file

@ -86,12 +86,8 @@ let
is_keyboard = true;
};
# Keep the G213's left Control as Fn and swap its Windows/Alt modifiers.
# Swap the G213's Windows/Alt modifiers.
logitechG213SimpleModifications = [
{
from.key_code = "left_control";
to = [ { apple_vendor_top_case_key_code = "keyboard_fn"; } ];
}
{
from.key_code = "left_command";
to = [ { key_code = "left_option"; } ];
@ -102,6 +98,37 @@ let
}
];
logitechMouseIdentifiers = {
vendor_id = 1133;
product_id = 50503;
is_pointing_device = true;
};
logitechMouseSimpleModifications = [
{
from.pointing_button = "button3";
to = [ { apple_vendor_top_case_key_code = "keyboard_fn"; } ];
}
{
from.pointing_button = "button4";
to = [
{
key_code = "open_bracket";
modifiers = [ "left_command" ];
}
];
}
{
from.pointing_button = "button5";
to = [
{
key_code = "close_bracket";
modifiers = [ "left_command" ];
}
];
}
];
complex_modifications = {
name = "Complex Modifications";
rules = [
@ -339,6 +366,11 @@ let
identifiers = logitechG213Identifiers;
simple_modifications = logitechG213SimpleModifications;
}
{
identifiers = logitechMouseIdentifiers;
ignore = false;
simple_modifications = logitechMouseSimpleModifications;
}
];
}
];