Keyd : Add app support.
This commit is contained in:
parent
d30a0d26ae
commit
9c2e4d2e86
|
@ -5,6 +5,7 @@
|
||||||
./Vpn.nix
|
./Vpn.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Disable Kbd Interception.
|
# Disable keyd.
|
||||||
services.interception-tools.enable = lib.mkForce false;
|
services.keyd.enable = lib.mkForce false;
|
||||||
|
systemd.services.keyd-application-mapper.enable = lib.mkForce false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
../dasha/Tablet.nix
|
../dasha/Tablet.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Disable Kbd Interception.
|
# Disable keyd.
|
||||||
services.interception-tools.enable = lib.mkForce false;
|
services.keyd.enable = lib.mkForce false;
|
||||||
|
systemd.services.keyd-application-mapper.enable = lib.mkForce false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,4 +60,8 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# HACK: Workaround for https://github.com/NixOS/nixpkgs/issues/290161
|
||||||
|
users.groups.keyd = {};
|
||||||
|
systemd.services.keyd.serviceConfig.CapabilityBoundingSet = [ "CAP_SETGID" ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -114,7 +114,7 @@ in {
|
||||||
set-option -g default-terminal "tmux-256color"
|
set-option -g default-terminal "tmux-256color"
|
||||||
set-option -g focus-events on
|
set-option -g focus-events on
|
||||||
set-option -sa terminal-features "RGB"
|
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 = ''
|
script = ''
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
./module/Tiling.nix
|
./module/Tiling.nix
|
||||||
./module/Workspace.nix
|
./module/Workspace.nix
|
||||||
./module/Session.nix
|
./module/Session.nix
|
||||||
|
./module/Keyd.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
|
5
module/sway/module/Keyd.nix
Normal file
5
module/sway/module/Keyd.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{ ... }: {
|
||||||
|
text = ''
|
||||||
|
exec keyd-application-mapper -d
|
||||||
|
'';
|
||||||
|
}
|
|
@ -13,6 +13,7 @@
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
uid = 1000;
|
uid = 1000;
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
|
"keyd"
|
||||||
"networkmanager"
|
"networkmanager"
|
||||||
"video"
|
"video"
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,10 +1,20 @@
|
||||||
{ const, username, homeDir, util, style, pkgs, setting, key, secret, ... } @args: let
|
{ const
|
||||||
foot = import ./foot args;
|
, homeDir
|
||||||
mako = import ./mako args;
|
, key
|
||||||
editorconfig = import ./editorconfig args;
|
, pkgs
|
||||||
|
, secret
|
||||||
|
, setting
|
||||||
|
, style
|
||||||
|
, username
|
||||||
|
, util
|
||||||
|
, ... } @args: let
|
||||||
btop = import ./top/btop args;
|
btop = import ./top/btop args;
|
||||||
htop = import ./top/htop args;
|
editorconfig = import ./editorconfig args;
|
||||||
|
foot = import ./foot args;
|
||||||
gtk3 = import ./gtk/3 args;
|
gtk3 = import ./gtk/3 args;
|
||||||
|
htop = import ./top/htop args;
|
||||||
|
keyd = import ./keyd args;
|
||||||
|
mako = import ./mako args;
|
||||||
in {
|
in {
|
||||||
home-manager = {
|
home-manager = {
|
||||||
backupFileExtension = "old";
|
backupFileExtension = "old";
|
||||||
|
@ -19,6 +29,7 @@ in {
|
||||||
".config/foot/foot.ini".text = foot.config;
|
".config/foot/foot.ini".text = foot.config;
|
||||||
".config/gtk-3.0/bookmarks".text = gtk3.bookmarks;
|
".config/gtk-3.0/bookmarks".text = gtk3.bookmarks;
|
||||||
".config/htop/htoprc".text = htop.config;
|
".config/htop/htoprc".text = htop.config;
|
||||||
|
".config/keyd/app.conf".text = keyd.config;
|
||||||
".config/mako/config".text = mako.config;
|
".config/mako/config".text = mako.config;
|
||||||
".editorconfig".text = editorconfig.config;
|
".editorconfig".text = editorconfig.config;
|
||||||
".parallel/will-cite".text = "";
|
".parallel/will-cite".text = "";
|
||||||
|
|
7
user/common/keyd/default.nix
Normal file
7
user/common/keyd/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ util, ... }: {
|
||||||
|
config = util.trimTabs ''
|
||||||
|
[firefox]
|
||||||
|
alt.q = macro(C-S-tab)
|
||||||
|
alt.e = macro(C-tab)
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue