mirror of
https://github.com/thegeneralist01/config.git
synced 2026-07-21 19:05:19 +02:00
Add Logitech G213 key swap
This commit is contained in:
parent
30cc577558
commit
7bf3bd5c8a
1 changed files with 22 additions and 18 deletions
|
|
@ -79,6 +79,23 @@ let
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
logitechG213Identifiers = {
|
||||||
|
vendor_id = 1133;
|
||||||
|
product_id = 49974;
|
||||||
|
is_keyboard = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
logitechG213SimpleModifications = [
|
||||||
|
{
|
||||||
|
from.key_code = "left_command";
|
||||||
|
to = [ { key_code = "left_option"; } ];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
from.key_code = "left_option";
|
||||||
|
to = [ { key_code = "left_command"; } ];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
complex_modifications = {
|
complex_modifications = {
|
||||||
name = "Complex Modifications";
|
name = "Complex Modifications";
|
||||||
rules = [
|
rules = [
|
||||||
|
|
@ -87,30 +104,13 @@ let
|
||||||
# manipulators = manipulators;
|
# manipulators = manipulators;
|
||||||
# }
|
# }
|
||||||
{
|
{
|
||||||
description = "Caps Lock to Escape";
|
description = "Caps Lock to Hyperkey";
|
||||||
manipulators = [
|
manipulators = [
|
||||||
{
|
{
|
||||||
from = {
|
from = {
|
||||||
key_code = "caps_lock";
|
key_code = "caps_lock";
|
||||||
modifiers = { optional = [ "any" ]; };
|
modifiers = { optional = [ "any" ]; };
|
||||||
};
|
};
|
||||||
to = [
|
|
||||||
{
|
|
||||||
key_code = "escape";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
type = "basic";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
description = "Escape to Hyperkey";
|
|
||||||
manipulators = [
|
|
||||||
{
|
|
||||||
from = {
|
|
||||||
key_code = "escape";
|
|
||||||
modifiers = { optional = [ "any" ]; };
|
|
||||||
};
|
|
||||||
to = [
|
to = [
|
||||||
{
|
{
|
||||||
key_code = "left_shift";
|
key_code = "left_shift";
|
||||||
|
|
@ -323,6 +323,10 @@ let
|
||||||
inherit complex_modifications;
|
inherit complex_modifications;
|
||||||
|
|
||||||
devices = [
|
devices = [
|
||||||
|
{
|
||||||
|
identifiers = logitechG213Identifiers;
|
||||||
|
simple_modifications = logitechG213SimpleModifications;
|
||||||
|
}
|
||||||
{
|
{
|
||||||
identifiers.is_keyboard = true;
|
identifiers.is_keyboard = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue