aboutsummaryrefslogtreecommitdiff
path: root/snowfall
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2025-02-07 22:12:21 -0800
committerCaroline Larimore <caroline@larimo.re>2025-04-14 18:58:49 -0700
commit18413c5606d6dcf0539df3dbaffcdbdc034ea1a6 (patch)
tree2963cefdeae64df0907dce84a23fae4f7e1b19ac /snowfall
parentb0478a9dc9121d083e5f568fed203ac9a74e1830 (diff)
migration: rofi
Diffstat (limited to 'snowfall')
-rw-r--r--snowfall/modules/home/apps/rofi/default.nix58
-rw-r--r--snowfall/modules/home/suites/desktop/default.nix1
2 files changed, 59 insertions, 0 deletions
diff --git a/snowfall/modules/home/apps/rofi/default.nix b/snowfall/modules/home/apps/rofi/default.nix
new file mode 100644
index 0000000..5f1ea52
--- /dev/null
+++ b/snowfall/modules/home/apps/rofi/default.nix
@@ -0,0 +1,58 @@
+{ options, config, lib, namespace, ... }:
+
+with lib; with lib.${namespace}; let
+ cfg = config.${namespace}.apps.rofi;
+ desktop = config.${namespace}.desktop;
+in {
+ options.${namespace}.apps.rofi = with types; {
+ enable = mkEnableOption "rofi";
+ };
+
+ config = mkIf cfg.enable {
+ programs.rofi = {
+ enable = true;
+
+ font = "monospace 12";
+
+ theme = let
+ inherit (config.lib.formats.rasi) mkLiteral;
+ c = desktop.theme.colors;
+ in {
+ "@import" = "default";
+
+ "*" = {
+ background = mkLiteral "#${c.bg}";
+ foreground = mkLiteral "#${c.fg}";
+ foreground-alt = mkLiteral "#${c.bg3}";
+
+ alternate-normal-background = mkLiteral "var(background)";
+
+ selected-normal-foreground = mkLiteral "var(background)";
+ selected-normal-background = mkLiteral "#${c.accent}";
+
+ border-color = mkLiteral "var(background)";
+ separatorcolor = mkLiteral "#${c.bg3}";
+ };
+
+ inputbar = {
+ children = map mkLiteral [ "entry" "num-filtered-rows" "textbox-num-sep" "num-rows" ];
+ };
+
+ element = {
+ children = map mkLiteral [ "element-icon" "element-text" ];
+ };
+
+ entry.placeholder = "";
+
+ scrollbar.handle-color = mkLiteral "var(foreground-alt)";
+ num-rows.text-color = mkLiteral "var(foreground-alt)";
+ num-filtered-rows.text-color = mkLiteral "var(foreground-alt)";
+ textbox-num-sep.text-color = mkLiteral "var(foreground-alt)";
+
+ message.border = mkLiteral "1px solid 0px 0px";
+ listview.border = mkLiteral "1px solid 0px 0px";
+ sidebar.border = mkLiteral "1px solid 0px 0px";
+ };
+ };
+ };
+}
diff --git a/snowfall/modules/home/suites/desktop/default.nix b/snowfall/modules/home/suites/desktop/default.nix
index 97d4ddf..244c56c 100644
--- a/snowfall/modules/home/suites/desktop/default.nix
+++ b/snowfall/modules/home/suites/desktop/default.nix
@@ -13,6 +13,7 @@ in {
i3.enable = true;
polybar.enable = true;
+ rofi.enable = true;
picom.enable = true;
kitty.enable = true;