dotfiles/modules/desktop/polybar/default.nix

20 lines
519 B
Nix
Raw Normal View History

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