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

Map Logitech mouse Button3 to Fn with Hyper override

This commit is contained in:
TheGeneralist 2026-06-06 19:13:25 +02:00
parent 9e366fe80b
commit 5d22e55d6b
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4

View file

@ -104,12 +104,8 @@ let
is_pointing_device = true;
};
# Middle click sends Fn; side buttons navigate back and forward.
# Side buttons navigate back and forward.
logitechMouseSimpleModifications = [
{
from.pointing_button = "button3";
to = [ { apple_vendor_top_case_key_code = "keyboard_fn"; } ];
}
{
from.pointing_button = "button4";
to = [
@ -133,6 +129,39 @@ let
complex_modifications = {
name = "Complex Modifications";
rules = [
{
description = "Logitech mouse Button3 sends Fn, or middle click with Hyper";
manipulators = [
{
from = {
pointing_button = "button3";
modifiers.mandatory = hyperModifiers;
};
to = [ { pointing_button = "button3"; } ];
conditions = [
{
type = "device_if";
identifiers = [ logitechMouseIdentifiers ];
}
];
type = "basic";
}
{
from = {
pointing_button = "button3";
modifiers.optional = [ "any" ];
};
to = [ { apple_vendor_top_case_key_code = "keyboard_fn"; } ];
conditions = [
{
type = "device_if";
identifiers = [ logitechMouseIdentifiers ];
}
];
type = "basic";
}
];
}
# {
# description = "Change numbers to symbols and vice versa";
# manipulators = manipulators;
@ -143,7 +172,9 @@ let
{
from = {
key_code = "caps_lock";
modifiers = { optional = [ "any" ]; };
modifiers = {
optional = [ "any" ];
};
};
to = [
{