aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/rofi
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar@gmail.com>2026-09-18 23:26:17 +0530
committerArpit Chakladar <arpitchakladar@gmail.com>2026-09-18 23:26:17 +0530
commit6b0161b2639bb49e270754e90f4f8a47311c5198 (patch)
treefc0f4a138b311061daad5ddeb6ed50314f1f5a1a /modules/desktop/rofi
parent53eac37422f77750adbc801f71b85ab04cf2b7f9 (diff)
downloadhome-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.nix13
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";