2021-09-09 21:55:28 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
base = {
|
|
|
|
services.polybar = {
|
|
|
|
enable = true;
|
2021-09-10 08:40:28 +02:00
|
|
|
package = pkgs.polybar.override {
|
2021-09-15 00:41:46 +02:00
|
|
|
pulseSupport = true;
|
|
|
|
};
|
2021-09-09 21:55:28 +02:00
|
|
|
script = ''for m in $(polybar --list-monitors | ${pkgs.coreutils}/bin/cut -d":" -f1); do
|
|
|
|
MONITOR=$m polybar --reload bottom &
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
config = ./config.ini;
|
|
|
|
extraConfig = builtins.readFile ./modules.ini +
|
2021-09-15 00:41:46 +02:00
|
|
|
builtins.readFile ./colors.ini;
|
2021-09-09 21:55:28 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
2021-09-15 00:41:46 +02:00
|
|
|
home-manager.users.moritz = { ... }: (base);
|
2021-09-09 21:55:28 +02:00
|
|
|
}
|