Keyd : Add app support.
This commit is contained in:
parent
d30a0d26ae
commit
9c2e4d2e86
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 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 = ''
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
./module/Tiling.nix
|
||||
./module/Workspace.nix
|
||||
./module/Session.nix
|
||||
./module/Keyd.nix
|
||||
];
|
||||
};
|
||||
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;
|
||||
uid = 1000;
|
||||
extraGroups = [
|
||||
"keyd"
|
||||
"networkmanager"
|
||||
"video"
|
||||
];
|
||||
|
|
|
@ -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 = "";
|
||||
|
|
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