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:
parent
9e366fe80b
commit
5d22e55d6b
1 changed files with 37 additions and 6 deletions
|
|
@ -104,12 +104,8 @@ let
|
||||||
is_pointing_device = true;
|
is_pointing_device = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Middle click sends Fn; side buttons navigate back and forward.
|
# Side buttons navigate back and forward.
|
||||||
logitechMouseSimpleModifications = [
|
logitechMouseSimpleModifications = [
|
||||||
{
|
|
||||||
from.pointing_button = "button3";
|
|
||||||
to = [ { apple_vendor_top_case_key_code = "keyboard_fn"; } ];
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
from.pointing_button = "button4";
|
from.pointing_button = "button4";
|
||||||
to = [
|
to = [
|
||||||
|
|
@ -133,6 +129,39 @@ let
|
||||||
complex_modifications = {
|
complex_modifications = {
|
||||||
name = "Complex Modifications";
|
name = "Complex Modifications";
|
||||||
rules = [
|
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";
|
# description = "Change numbers to symbols and vice versa";
|
||||||
# manipulators = manipulators;
|
# manipulators = manipulators;
|
||||||
|
|
@ -143,7 +172,9 @@ let
|
||||||
{
|
{
|
||||||
from = {
|
from = {
|
||||||
key_code = "caps_lock";
|
key_code = "caps_lock";
|
||||||
modifiers = { optional = [ "any" ]; };
|
modifiers = {
|
||||||
|
optional = [ "any" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
to = [
|
to = [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue