nix-configs/modules/desktop/xkeysnail.nix
2023-02-13 12:54:21 +01:00

27 lines
587 B
Nix

{ config, lib, pkgs, ... }:
{
config = {
services.xserver.windowManager.i3.extraPackages = with pkgs; [
xkeysnail
xorg.xhost
xorg.setxkbmap
];
home-manager.users.jade = { pkgs, ... }: {
xsession.windowManager.i3.config.startup = [
{
command = "xhost +";
}
{
command = "${pkgs.xkeysnail} ${../../other/xkeysnail.py}";
always = true;
}
{
command = "sleep 4 && setxkbmap -layout us -variant altgr-intl";
always = true;
}
];
};
};
}