mirror of
https://github.com/thegeneralist01/config.git
synced 2026-07-21 19:05:19 +02:00
Extend Logitech Button3 passthrough mappings
This commit is contained in:
parent
21d4ba3eb5
commit
26f0f6867f
1 changed files with 64 additions and 1 deletions
|
|
@ -134,8 +134,35 @@ let
|
|||
name = "Complex Modifications";
|
||||
rules = [
|
||||
{
|
||||
description = "Logitech mouse Button3 sends Fn, or middle click with Hyper or Button2";
|
||||
description = "Logitech mouse Button3 sends Fn, or middle click with Hyper, Shift, Button1, or Button2";
|
||||
manipulators = [
|
||||
{
|
||||
from.pointing_button = "button1";
|
||||
to = [
|
||||
{ pointing_button = "button1"; }
|
||||
{
|
||||
set_variable = {
|
||||
name = "logitech_mouse_button1_held";
|
||||
value = 1;
|
||||
};
|
||||
}
|
||||
];
|
||||
to_after_key_up = [
|
||||
{
|
||||
set_variable = {
|
||||
name = "logitech_mouse_button1_held";
|
||||
value = 0;
|
||||
};
|
||||
}
|
||||
];
|
||||
conditions = [
|
||||
{
|
||||
type = "device_if";
|
||||
identifiers = [ logitechMouseIdentifiers ];
|
||||
}
|
||||
];
|
||||
type = "basic";
|
||||
}
|
||||
{
|
||||
from.pointing_button = "button2";
|
||||
to = [
|
||||
|
|
@ -163,6 +190,25 @@ let
|
|||
];
|
||||
type = "basic";
|
||||
}
|
||||
{
|
||||
from = {
|
||||
pointing_button = "button3";
|
||||
modifiers.optional = [ "any" ];
|
||||
};
|
||||
to = [ { pointing_button = "button3"; } ];
|
||||
conditions = [
|
||||
{
|
||||
type = "device_if";
|
||||
identifiers = [ logitechMouseIdentifiers ];
|
||||
}
|
||||
{
|
||||
type = "variable_if";
|
||||
name = "logitech_mouse_button1_held";
|
||||
value = 1;
|
||||
}
|
||||
];
|
||||
type = "basic";
|
||||
}
|
||||
{
|
||||
from = {
|
||||
pointing_button = "button3";
|
||||
|
|
@ -177,6 +223,23 @@ let
|
|||
];
|
||||
type = "basic";
|
||||
}
|
||||
{
|
||||
from = {
|
||||
pointing_button = "button3";
|
||||
modifiers = {
|
||||
mandatory = [ "shift" ];
|
||||
optional = [ "any" ];
|
||||
};
|
||||
};
|
||||
to = [ { pointing_button = "button3"; } ];
|
||||
conditions = [
|
||||
{
|
||||
type = "device_if";
|
||||
identifiers = [ logitechMouseIdentifiers ];
|
||||
}
|
||||
];
|
||||
type = "basic";
|
||||
}
|
||||
{
|
||||
from = {
|
||||
pointing_button = "button3";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue