aboutsummaryrefslogtreecommitdiff
path: root/modules/home-manager/polybar/default.nix
blob: 4ed3e547a25d2006a0976018b5b4984f131e97d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ ... }:
{
	flake.modules.homeManager.polybar =
		{
			config,
			pkgs,
			...
		}:
		{
			home.file.".config/polybar/launch.sh" = {
				source = ./launch.sh;
				executable = true;
			};
			home.file.".config/polybar/config.ini" = {
				source = ./config.ini;
				#        onChange = ''
				#${pkgs.procps}/bin/pkill polybar
				#PATH=$PATH:${pkgs.polybarFull}/bin:${pkgs.lxrandr}/bin ~/.config/polybar/launch.sh
				#'';
			};
			home.packages = with pkgs; [
				polybarFull
			];
		};
}