From 54471f0faf2697e55e01ed4a276de0cd921a7c30 Mon Sep 17 00:00:00 2001 From: beeb5k Date: Sat, 6 Jun 2026 15:59:26 +0530 Subject: Add noctalia niri and way to switch between my config and noxtalia easily --- common/programs/rofi.nix | 264 ++++++++++++++++++++++++----------------------- 1 file changed, 133 insertions(+), 131 deletions(-) (limited to 'common/programs/rofi.nix') diff --git a/common/programs/rofi.nix b/common/programs/rofi.nix index d0abd1a..20fdffe 100644 --- a/common/programs/rofi.nix +++ b/common/programs/rofi.nix @@ -5,140 +5,142 @@ ... }: { - programs.rofi = { - enable = true; - font = "IosevkaInput"; - # plugins = with pkgs; [ rofi-emoji ]; - theme = "~/.config/rofi/themes/config.rasi"; - extraConfig = { - show-icons = true; - # drun-display-format = "{name}"; + config = lib.mkIf config.beeMods.windowManagers.beeConfig.enable { + programs.rofi = { + enable = true; + font = "IosevkaInput"; + # plugins = with pkgs; [ rofi-emoji ]; + theme = "~/.config/rofi/themes/config.rasi"; + extraConfig = { + show-icons = true; + # drun-display-format = "{name}"; + }; }; - }; - home.packages = [ - pkgs.rofi-power-menu - ]; - - xdg.configFile = { - "rofi/shared/colors.rasi" = { - enable = !config.beeMods.matugen.enable; - text = - # rasi - '' - * { - bg: #212121; - bg-alt: #2d2d2d; - fg: #ffffffdd; - fg-dim: #616161; - accent: #80cbc4; - selected-bg: #424242; - selected-fg: #80cbc4; - urgent: #ef9a9a; - outline: #424242; - } - ''; - }; + home.packages = [ + pkgs.rofi-power-menu + ]; + + xdg.configFile = { + "rofi/shared/colors.rasi" = { + enable = !config.beeMods.matugen.enable; + text = + # rasi + '' + * { + bg: #212121; + bg-alt: #2d2d2d; + fg: #ffffffdd; + fg-dim: #616161; + accent: #80cbc4; + selected-bg: #424242; + selected-fg: #80cbc4; + urgent: #ef9a9a; + outline: #424242; + } + ''; + }; + + "rofi/themes/config.rasi" = { + enable = true; + text = + # rasi + '' + @import "shared/colors.rasi" + * { + background-color: transparent; + text-color: @fg; + border: 0px; + margin: 0px; + padding: 0px; + spacing: 0px; + } + + window { + background-color: @bg; + border-radius: 0px; + border: 2px; + border-color: @outline; + width: 680px; + padding: 10px; + } + + mainbox { + background-color: transparent; + spacing: 8px; + } + + inputbar { + background-color: @bg-alt; + border-radius: 0px; + padding: 10px 12px; + spacing: 8px; + children: [entry]; + } + + entry { + background-color: transparent; + text-color: @fg; + placeholder-color: @fg-dim; + placeholder: "Search..."; + cursor: text; + font: "IosevkaInput 13"; + } + + listview { + background-color: transparent; + columns: 1; + lines: 5; + spacing: 2px; + scrollbar: false; + } + + element { + background-color: transparent; + border-radius: 0px; + padding: 8px 12px; + spacing: 12px; + children: [element-icon, element-text]; + } + + element normal normal { + background-color: transparent; + text-color: @fg; + } + + element alternate normal { + background-color: transparent; + text-color: @fg; + } + + element selected normal { + background-color: @selected-bg; + text-color: @selected-fg; + } + + element normal urgent { + text-color: @urgent; + } + + element selected urgent { + background-color: @selected-bg; + text-color: @urgent; + } + + element-icon { + background-color: transparent; + size: 22px; + } + + element-text { + background-color: transparent; + text-color: inherit; + vertical-align: 0.5; + font: "IosevkaInput 13"; + } + ''; + }; - "rofi/themes/config.rasi" = { - enable = true; - text = - # rasi - '' - @import "shared/colors.rasi" - * { - background-color: transparent; - text-color: @fg; - border: 0px; - margin: 0px; - padding: 0px; - spacing: 0px; - } - - window { - background-color: @bg; - border-radius: 0px; - border: 2px; - border-color: @outline; - width: 680px; - padding: 10px; - } - - mainbox { - background-color: transparent; - spacing: 8px; - } - - inputbar { - background-color: @bg-alt; - border-radius: 0px; - padding: 10px 12px; - spacing: 8px; - children: [entry]; - } - - entry { - background-color: transparent; - text-color: @fg; - placeholder-color: @fg-dim; - placeholder: "Search..."; - cursor: text; - font: "IosevkaInput 13"; - } - - listview { - background-color: transparent; - columns: 1; - lines: 5; - spacing: 2px; - scrollbar: false; - } - - element { - background-color: transparent; - border-radius: 0px; - padding: 8px 12px; - spacing: 12px; - children: [element-icon, element-text]; - } - - element normal normal { - background-color: transparent; - text-color: @fg; - } - - element alternate normal { - background-color: transparent; - text-color: @fg; - } - - element selected normal { - background-color: @selected-bg; - text-color: @selected-fg; - } - - element normal urgent { - text-color: @urgent; - } - - element selected urgent { - background-color: @selected-bg; - text-color: @urgent; - } - - element-icon { - background-color: transparent; - size: 22px; - } - - element-text { - background-color: transparent; - text-color: inherit; - vertical-align: 0.5; - font: "IosevkaInput 13"; - } - ''; }; - }; } -- cgit v1.3.1