diff options
| author | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-18 23:26:17 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-18 23:26:17 +0530 |
| commit | 6b0161b2639bb49e270754e90f4f8a47311c5198 (patch) | |
| tree | fc0f4a138b311061daad5ddeb6ed50314f1f5a1a /modules/desktop/rofi | |
| parent | 53eac37422f77750adbc801f71b85ab04cf2b7f9 (diff) | |
| download | home-manager-config-6b0161b2639bb49e270754e90f4f8a47311c5198.tar.gz home-manager-config-6b0161b2639bb49e270754e90f4f8a47311c5198.zip | |
chore: projectwide refactoring
- Using more consistent naming conventions across the project. Using java style super
descriptive variable names.
- Removed slop comments in favor of using more descriptive naming conventions.
Diffstat (limited to 'modules/desktop/rofi')
| -rw-r--r-- | modules/desktop/rofi/default.nix | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/modules/desktop/rofi/default.nix b/modules/desktop/rofi/default.nix index ced9167..bbf1aea 100644 --- a/modules/desktop/rofi/default.nix +++ b/modules/desktop/rofi/default.nix @@ -1,8 +1,13 @@ +# Application launcher and dmenu replacement { config, lib, + pkgs, ... }: +let + base16Colors = import ../../colors/base16 { inherit config lib pkgs; }; +in { options.desktop.rofi = { package = lib.mkOption { @@ -18,7 +23,7 @@ enable = true; theme = let - template = + fontExpandedThemeTemplate = builtins.replaceStrings [ "@@rofi-font@@" @@ -30,9 +35,9 @@ ] (builtins.readFile ./theme.rasi); in - "${config.scheme { - inherit template; - extension = ".rasi"; + "${base16Colors { + templateFileOrContent = fontExpandedThemeTemplate; + fileExtension = ".rasi"; }}"; extraConfig = { modi = "drun"; |
