Skip to content

Commit

Permalink
feat(home-manager): add support for waybar
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichthagel committed Apr 19, 2024
1 parent 9d833a5 commit 5c6523b
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 1 deletion.
22 changes: 21 additions & 1 deletion _sources/generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,26 @@
},
"version": "5ed4e8a6a20c928688da268dfcdf460ac9c3cb49"
},
"waybar": {
"cargoLocks": null,
"date": "2024-03-31",
"extract": null,
"name": "waybar",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "catppuccin",
"repo": "waybar",
"rev": "0830796af6aa64ce8bc7453d42876a628777ac68",
"sha256": "sha256-9lY+v1CTbpw2lREG/h65mLLw5KuT8OJdEPOb+NNC6Fo=",
"type": "github"
},
"version": "0830796af6aa64ce8bc7453d42876a628777ac68"
},
"yazi": {
"cargoLocks": null,
"date": "2024-02-21",
Expand Down Expand Up @@ -679,4 +699,4 @@
},
"version": "0adc53028d81bf047461bc61c43a484d11b15220"
}
}
}
12 changes: 12 additions & 0 deletions _sources/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,18 @@
};
date = "2024-03-30";
};
waybar = {
pname = "waybar";
version = "0830796af6aa64ce8bc7453d42876a628777ac68";
src = fetchFromGitHub {
owner = "catppuccin";
repo = "waybar";
rev = "0830796af6aa64ce8bc7453d42876a628777ac68";
fetchSubmodules = false;
sha256 = "sha256-9lY+v1CTbpw2lREG/h65mLLw5KuT8OJdEPOb+NNC6Fo=";
};
date = "2024-03-31";
};
yazi = {
pname = "yazi";
version = "0846aed69b2a62d29c98e100af0cf55ca729723d";
Expand Down
18 changes: 18 additions & 0 deletions modules/home-manager/waybar.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{ config
, lib
, sources
, ...
}:
let
cfg = config.programs.waybar.catppuccin;
enable = cfg.enable && config.programs.waybar.enable;
in
{
options.programs.waybar.catppuccin = lib.ctp.mkCatppuccinOpt "waybar";

config.programs.waybar = lib.mkIf enable {
style = lib.mkBefore ''
@import "${sources.waybar}/themes/${cfg.flavour}.css";
'';
};
}
4 changes: 4 additions & 0 deletions nvfetcher.toml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ fetch.github = "catppuccin/swaylock"
src.git = "https://github.com/catppuccin/tmux.git"
fetch.github = "catppuccin/tmux"

[waybar]
src.git = "https://github.com/catppuccin/waybar.git"
fetch.github = "catppuccin/waybar"

[yazi]
src.git = "https://github.com/catppuccin/yazi.git"
fetch.github = "catppuccin/yazi"
Expand Down
1 change: 1 addition & 0 deletions test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ in
starship = ctpEnable;
swaylock = ctpEnable;
tmux = ctpEnable;
waybar = ctpEnable;
yazi = ctpEnable;
zathura = ctpEnable;
};
Expand Down

0 comments on commit 5c6523b

Please sign in to comment.