1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-19 08:19:48 +01:00
home-manager/tests/modules/programs/waybar/styling.nix

47 lines
1 KiB
Nix
Raw Normal View History

2020-07-29 22:29:51 +02:00
{ config, lib, pkgs, ... }:
with lib;
{
2020-07-29 22:29:51 +02:00
config = {
home.stateVersion = "21.11";
2020-07-29 22:29:51 +02:00
programs.waybar = {
package = config.lib.test.mkStubPackage { outPath = "@waybar@"; };
2020-07-29 22:29:51 +02:00
enable = true;
style = ''
* {
border: none;
border-radius: 0;
font-family: Source Code Pro;
font-weight: bold;
color: #abb2bf;
font-size: 18px;
min-height: 0px;
}
window#waybar {
background: #16191C;
color: #aab2bf;
}
#window {
padding: 0 0px;
}
#workspaces button:hover {
box-shadow: inherit;
text-shadow: inherit;
background: #16191C;
border: #16191C;
padding: 0 3px;
}
'';
};
nmt.script = ''
assertPathNotExists home-files/.config/waybar/config
assertFileContent \
home-files/.config/waybar/style.css \
${./styling-expected.css}
'';
};
}