1
0
mirror of https://github.com/nix-community/home-manager synced 2024-07-04 20:33:27 +02:00
home-manager/tests/modules/services/window-managers/i3/i3-bar-focused-colors.nix
Sergey Vlasov b42fce7aaa
i3,sway: add bar color options for the focused output (#2135)
Both i3bar and swaybar can use different colors for the bar on the
currently focused monitor output; add color options for this feature.
2021-06-22 20:56:41 -06:00

26 lines
529 B
Nix

{ config, lib, ... }:
with lib;
{
config = {
xsession.windowManager.i3 = {
enable = true;
config.bars = [{
colors.focusedBackground = "#ffffff";
colors.focusedStatusline = "#000000";
colors.focusedSeparator = "#999999";
}];
};
nixpkgs.overlays = [ (import ./i3-overlay.nix) ];
nmt.script = ''
assertFileExists home-files/.config/i3/config
assertFileContent home-files/.config/i3/config \
${./i3-bar-focused-colors-expected.conf}
'';
};
}