1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-18 09:09:45 +01:00
home-manager/tests/modules/services/window-managers/bspwm/configuration.nix

43 lines
1 KiB
Nix
Raw Normal View History

2023-05-13 00:08:12 +02:00
{ pkgs, ... }:
{
2023-05-13 00:08:12 +02:00
xsession.windowManager.bspwm = {
enable = true;
monitors.focused = [ "desktop 1" "d'esk top" ]; # pathological desktop names
alwaysResetDesktops = false;
settings = {
border_width = 2;
split_ratio = 0.52;
gapless_monocle = true;
external_rules_command = "/path/to/external rules command";
ignore_ewmh_fullscreen = [ "enter" "exit" ];
};
2023-05-13 00:08:12 +02:00
rules."*" = {
sticky = true;
center = false;
desktop = "d'esk top#next";
splitDir = "north";
border = null;
unknownRule = 42;
};
extraConfigEarly = ''
extra config early
'';
2023-05-13 00:08:12 +02:00
extraConfig = ''
extra config
'';
startupPrograms = [ "foo" "bar || qux" ];
};
2023-05-13 00:08:12 +02:00
test.stubs.bspwm = { };
nmt.script = ''
bspwmrc=home-files/.config/bspwm/bspwmrc
assertFileExists "$bspwmrc"
assertFileIsExecutable "$bspwmrc"
assertFileContent "$bspwmrc" ${
pkgs.writeShellScript "bspwmrc-expected" (builtins.readFile ./bspwmrc)
}
'';
}