nix-configs/modules/desktop/xkeysnail.nix

27 lines
601 B
Nix
Raw Normal View History

2023-02-13 12:54:21 +01:00
{ 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 +";
}
{
2023-02-14 09:08:32 +01:00
command = "${pkgs.xkeysnail}/bin/xkeysnail ${../../other/xkeysnail.py}";
2023-02-13 12:54:21 +01:00
always = true;
}
{
command = "sleep 4 && setxkbmap -layout us -variant altgr-intl";
always = true;
}
];
};
};
}