nix-configs/modules/desktop/xkeysnail.nix

27 lines
601 B
Nix
Raw Normal View History

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