mirror of
https://github.com/nix-community/home-manager
synced 2024-07-03 03:48:31 +02:00
Both i3bar and swaybar can use different colors for the bar on the currently focused monitor output; add color options for this feature.
33 lines
768 B
Nix
33 lines
768 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
dummy-package = pkgs.runCommandLocal "dummy-package" { } "mkdir $out";
|
|
|
|
in {
|
|
config = {
|
|
wayland.windowManager.sway = {
|
|
enable = true;
|
|
package = dummy-package // { outPath = "@sway"; };
|
|
# overriding findutils causes issues
|
|
config.menu = "${pkgs.dmenu}/bin/dmenu_run";
|
|
|
|
config.bars = [{
|
|
colors.focusedBackground = "#ffffff";
|
|
colors.focusedStatusline = "#000000";
|
|
colors.focusedSeparator = "#999999";
|
|
}];
|
|
};
|
|
|
|
nixpkgs.overlays = [ (import ./sway-overlay.nix) ];
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/sway/config
|
|
assertFileContent home-files/.config/sway/config \
|
|
${./sway-bar-focused-colors.conf}
|
|
'';
|
|
};
|
|
}
|