diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2023-03-12 23:42:28 +0100 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2023-03-12 23:42:28 +0100 |
| commit | 7020aab9676778d5b82e7280613f7394006e7c73 (patch) | |
| tree | 4afd79472f4afe88333652803a47ea6767e8250e /modules/home-manager/personal/programs | |
| parent | 708462b39cff5c3b5dc332865e47d01522d807c9 (diff) | |
home: rofi: custom theme
Diffstat (limited to 'modules/home-manager/personal/programs')
| -rw-r--r-- | modules/home-manager/personal/programs/rofi.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/home-manager/personal/programs/rofi.nix b/modules/home-manager/personal/programs/rofi.nix index d0e69d7..51c2139 100644 --- a/modules/home-manager/personal/programs/rofi.nix +++ b/modules/home-manager/personal/programs/rofi.nix @@ -3,9 +3,14 @@ { programs.rofi = { cycle = lib.mkDefault true; - theme = lib.mkDefault config.personal.home.dotfiles.rofi; + theme = lib.mkIf (config.lib ? stylix) (lib.mkForce + (config.lib.stylix.colors { + template = builtins.readFile config.personal.home.dotfiles.rofi; + extension = ".rasi"; + })); # TODO: remove this when stylix fixes it upstream - font = lib.mkIf (config ? stylix) (lib.mkForce "${config.stylix.fonts.monospace.name} 12"); + font = lib.mkIf (config ? stylix) + (lib.mkForce "${config.stylix.fonts.monospace.name} 12"); plugins = with pkgs; [ rofi-top rofi-calc rofi-emoji ]; }; } |
