Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(home-manager): add support for fuzzel #224

Closed
wants to merge 11 commits into from
14 changes: 13 additions & 1 deletion .sources/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,18 @@
"url": "https://github.com/catppuccin/foot/archive/80756a4d63ea4fae4d0fdd793017370f8b8b12ac.tar.gz",
"hash": "12a3znfdjpiqrylpv009cvi4w4dgw4i6kxk5gm959y72gybbpbw7"
},
"fuzzel": {
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "catppuccin",
"repo": "fuzzel"
},
"branch": "main",
"revision": "eeb4c8d159187ef7eb59a4a99baec67c2e797e9f",
"url": "https://github.com/catppuccin/fuzzel/archive/eeb4c8d159187ef7eb59a4a99baec67c2e797e9f.tar.gz",
"hash": "0h0vd1l0hq7bgnga0lbx2564fwlh9riwahx1fr2dr09gi9ry36y8"
},
"gh-dash": {
"type": "Git",
"repository": {
Expand Down Expand Up @@ -458,4 +470,4 @@
}
},
"version": 3
}
}
1 change: 1 addition & 0 deletions modules/home-manager/all-modules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
./fcitx5.nix
./fish.nix
./foot.nix
./fuzzel.nix
./fzf.nix
./gh-dash.nix
./gitui.nix
Expand Down
23 changes: 23 additions & 0 deletions modules/home-manager/fuzzel.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{ config, lib, ... }:
let
inherit (config.catppuccin) sources;

cfg = config.programs.fuzzel.catppuccin;
enable = cfg.enable && config.programs.fuzzel.enable;
palette = (lib.importJSON "${sources.palette}/palette.json").${cfg.flavor}.colors;
in
{
options.programs.fuzzel.catppuccin = lib.ctp.mkCatppuccinOpt "fuzzel" // {
accent = lib.ctp.mkAccentOpt "fuzzel";
};

config.programs.fuzzel.settings.colors = lib.mkIf enable {
background = palette.base.hex + "dd";
text = palette.text.hex + "ff";
match = palette.red.hex + "ff";
selection = palette.surface2.hex + "ff";
selection-match = palette.red.hex + "ff";
selection-text = palette.text.hex + "ff";
border = palette.${cfg.accent}.hex + "ff";
};
}
1 change: 1 addition & 0 deletions test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ testers.runNixOSTest {
cava = enable;
fish = enable;
foot = enable;
fuzzel = enable;
fzf = enable;
gh-dash = enable;
git = enable // {
Expand Down