Keyd: Add OnlyOffice keys.

This commit is contained in:
Dmitry Voronin 2024-12-21 13:45:27 +03:00
parent 024b78416d
commit 11b57de396
6 changed files with 29 additions and 6 deletions

View file

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

View file

@ -1,7 +1,7 @@
{ pkgs, ... }:
{
file = (pkgs.formats.ini { }).generate "KeydDrgConfig" {
steam-app-548430 = {
file = (pkgs.formats.ini { }).generate "keyd-drg-config" {
"steam-app-548430" = {
"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)";
"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;
}) apps;
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, ... }:
{
file = (pkgs.formats.ini { }).generate "KeydFirefoxConfig" {
file = (pkgs.formats.ini { }).generate "keyd-firefox-config" {
"firefox-esr" = {
"alt.capslock" = "C-t"; # New tab.
"alt.x" = "C-w"; # Close tab.

View file

@ -1,6 +1,6 @@
{ pkgs, ... }:
{
file = (pkgs.formats.ini { }).generate "KeydJetbrainsConfig" {
file = (pkgs.formats.ini { }).generate "keyd-jetbrains-config" {
"jetbrains-*" = {
"alt.b" = "C-f8"; # Toggle line breakpoint.
"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";
};
};
}