switching to fuzzel for uwsm integration and tuirun still WIP

This commit is contained in:
2025-01-05 10:45:55 +01:00
parent 09c7770adf
commit 996bbead2e
8 changed files with 91 additions and 17 deletions

View File

@@ -0,0 +1,57 @@
{
config,
lib,
pkgs,
osConfig,
inputs,
...
}: let
inherit (lib) mkIf mkEnableOption mkMerge;
cfg = config.home.programs.fuzzel;
host = osConfig.networking.hostName;
in {
options = {
home.programs.fuzzel.enable = mkEnableOption "Enables fuzzel";
};
config = mkIf cfg.enable (mkMerge [
{
programs.fuzzel = {
enable = true;
settings = {
main = {
layer = "overlay";
font = "Input Sans Narrow Light:size=12";
launch-prefix = "uwsm app --";
lines = "8";
};
colors = {
background = "282828ff";
text = "928374ff";
prompt = "ebdbb2ff";
placeholder = "928374ff";
input = "ebdbb2ff";
match = "ebdbb2ff";
selection = "32302fff";
selection-text = "ebdbb2ff";
selection-match = "ebdbb2ff";
counter = "4c7a5dff";
border = "4c7a5dff";
};
border = {
width = 3;
radius = 0;
};
};
};
}
(mkIf (host == "cnix") {
programs.fuzzel.settings.main.terminal = "${inputs.ghostty.packages.x86_64-linux.default}/bin/ghostty";
})
(mkIf (host == "cnixpad") {
programs.fuzzel.settings.main.terminal = "${pkgs.foot}/bin/foot";
})
(mkIf (host == "toothpc") {
programs.fuzzel.settings.main.terminal = "${pkgs.alacritty}/bin/alacritty";
})
]);
}