mirror of
https://github.com/nix-community/home-manager
synced 2024-07-04 20:33:27 +02:00
b42fce7aaa
Both i3bar and swaybar can use different colors for the bar on the currently focused monitor output; add color options for this feature.
26 lines
529 B
Nix
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}
|
|
'';
|
|
};
|
|
}
|