Keyd : Add app support.

This commit is contained in:
Dmitry Voronin 2024-04-24 04:58:58 +03:00
parent d30a0d26ae
commit 9c2e4d2e86
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
9 changed files with 41 additions and 10 deletions

View file

@ -5,6 +5,7 @@
./Vpn.nix
];
# Disable Kbd Interception.
services.interception-tools.enable = lib.mkForce false;
# Disable keyd.
services.keyd.enable = lib.mkForce false;
systemd.services.keyd-application-mapper.enable = lib.mkForce false;
}

View file

@ -4,6 +4,7 @@
../dasha/Tablet.nix
];
# Disable Kbd Interception.
services.interception-tools.enable = lib.mkForce false;
# Disable keyd.
services.keyd.enable = lib.mkForce false;
systemd.services.keyd-application-mapper.enable = lib.mkForce false;
}

View file

@ -60,4 +60,8 @@
};
};
};
# HACK: Workaround for https://github.com/NixOS/nixpkgs/issues/290161
users.groups.keyd = {};
systemd.services.keyd.serviceConfig.CapabilityBoundingSet = [ "CAP_SETGID" ];
}

View file

@ -114,7 +114,7 @@ in {
set-option -g default-terminal "tmux-256color"
set-option -g focus-events on
set-option -sa terminal-features "RGB"
set-option -g update-environment "SSH_CLIENT SSH_TTY DOCKER_CONFIG DOCKER_HOST DISPLAY XAUTHORITY BASH_PATH"
set-option -g update-environment "SSH_CLIENT SSH_TTY DOCKER_CONFIG DOCKER_HOST DISPLAY XAUTHORITY BASH_PATH SWAY_SOCK"
'';
script = ''

View file

@ -23,6 +23,7 @@
./module/Tiling.nix
./module/Workspace.nix
./module/Session.nix
./module/Keyd.nix
];
};
in {

View file

@ -0,0 +1,5 @@
{ ... }: {
text = ''
exec keyd-application-mapper -d
'';
}

View file

@ -13,6 +13,7 @@
isNormalUser = true;
uid = 1000;
extraGroups = [
"keyd"
"networkmanager"
"video"
];

View file

@ -1,10 +1,20 @@
{ const, username, homeDir, util, style, pkgs, setting, key, secret, ... } @args: let
foot = import ./foot args;
mako = import ./mako args;
editorconfig = import ./editorconfig args;
{ const
, homeDir
, key
, pkgs
, secret
, setting
, style
, username
, util
, ... } @args: let
btop = import ./top/btop args;
htop = import ./top/htop args;
editorconfig = import ./editorconfig args;
foot = import ./foot args;
gtk3 = import ./gtk/3 args;
htop = import ./top/htop args;
keyd = import ./keyd args;
mako = import ./mako args;
in {
home-manager = {
backupFileExtension = "old";
@ -19,6 +29,7 @@ in {
".config/foot/foot.ini".text = foot.config;
".config/gtk-3.0/bookmarks".text = gtk3.bookmarks;
".config/htop/htoprc".text = htop.config;
".config/keyd/app.conf".text = keyd.config;
".config/mako/config".text = mako.config;
".editorconfig".text = editorconfig.config;
".parallel/will-cite".text = "";

View file

@ -0,0 +1,7 @@
{ util, ... }: {
config = util.trimTabs ''
[firefox]
alt.q = macro(C-S-tab)
alt.e = macro(C-tab)
'';
}