Keyd: Add OnlyOffice keys.

This commit is contained in:
Dmitry Voronin 2024-12-21 13:45:27 +03:00
parent 024b78416d
commit 2c6c123569
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
6 changed files with 29 additions and 6 deletions

View file

@ -1,6 +1,6 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
file = (pkgs.formats.ini { }).generate "KeydChromiumConfig" { file = (pkgs.formats.ini { }).generate "keyd-chromium-config" {
"chromium-browser" = { "chromium-browser" = {
"alt.capslock" = "C-t"; # New tab. "alt.capslock" = "C-t"; # New tab.
"alt.x" = "C-w"; # Close tab. "alt.x" = "C-w"; # Close tab.

View file

@ -1,7 +1,7 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
file = (pkgs.formats.ini { }).generate "KeydDrgConfig" { file = (pkgs.formats.ini { }).generate "keyd-drg-config" {
steam-app-548430 = { "steam-app-548430" = {
"alt.1" = "alt.1" =
"macro(enter 10ms L e t ' s 10ms space d o 10ms space t h i s 10ms space T e x a s 10ms space s t y l e ! 10ms enter)"; "macro(enter 10ms L e t ' s 10ms space d o 10ms space t h i s 10ms space T e x a s 10ms space s t y l e ! 10ms enter)";
"alt.2" = "macro(enter 10ms H e c k space y e s ! enter)"; "alt.2" = "macro(enter 10ms H e c k space y e s ! enter)";

View file

@ -25,5 +25,5 @@ in
value = builtins.listToAttrs keySets; value = builtins.listToAttrs keySets;
}) apps; }) apps;
in in
(pkgs.formats.ini { }).generate "KeydDisableConfig" (builtins.listToAttrs appSets); (pkgs.formats.ini { }).generate "keyd-disable-config" (builtins.listToAttrs appSets);
} }

View file

@ -1,6 +1,6 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
file = (pkgs.formats.ini { }).generate "KeydFirefoxConfig" { file = (pkgs.formats.ini { }).generate "keyd-firefox-config" {
"firefox-esr" = { "firefox-esr" = {
"alt.capslock" = "C-t"; # New tab. "alt.capslock" = "C-t"; # New tab.
"alt.x" = "C-w"; # Close tab. "alt.x" = "C-w"; # Close tab.

View file

@ -1,6 +1,6 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
file = (pkgs.formats.ini { }).generate "KeydJetbrainsConfig" { file = (pkgs.formats.ini { }).generate "keyd-jetbrains-config" {
"jetbrains-*" = { "jetbrains-*" = {
"alt.b" = "C-f8"; # Toggle line breakpoint. "alt.b" = "C-f8"; # Toggle line breakpoint.
"alt.equal" = "C-A-l"; # Reformat. "alt.equal" = "C-A-l"; # Reformat.

View file

@ -0,0 +1,23 @@
{ pkgs, ... }:
{
file = (pkgs.formats.ini { }).generate "keyd-onlyoffice-config" {
"onlyoffice-desktop-editors" = {
"alt.a" = "home";
"alt.b" = "pageup";
"alt.d" = "end";
"alt.e" = "A-pagedown";
"alt.f" = "pagedown";
"alt.h" = "left";
"alt.i" = "f2";
"alt.j" = "down";
"alt.k" = "up";
"alt.l" = "right";
"alt.q" = "A-pageup";
"alt.r" = "C-y";
"alt.s" = "C-end";
"alt.u" = "C-z";
"alt.v" = "S-space";
"alt.w" = "C-home";
};
};
}