this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

home/programs.rofi: drop stylix dep

Aly Raffauf 3bc9fadf 31473ee9

-217
-217
modules/home/programs/rofi/default.nix
··· 6 6 }: let 7 7 cfg = config.myHome; 8 8 defaultApps.terminal = cfg.profiles.defaultApps.terminal.exec or (lib.getExe pkgs.ghostty); 9 - inherit (config.lib.formats.rasi) mkLiteral; 10 - 11 - mkRgba = opacity: color: let 12 - c = config.lib.stylix.colors; 13 - r = c."${color}-rgb-r"; 14 - g = c."${color}-rgb-g"; 15 - b = c."${color}-rgb-b"; 16 - in 17 - mkLiteral 18 - "rgba ( ${r}, ${g}, ${b}, ${opacity} % )"; 19 - mkRgb = mkRgba "100"; 20 - rofiOpacity = builtins.toString (builtins.ceil (config.stylix.opacity.popups * 100)); 21 9 in { 22 10 options.myHome.programs.rofi.enable = lib.mkEnableOption "rofi application launcher"; 23 11 ··· 40 28 ]; 41 29 42 30 inherit (defaultApps) terminal; 43 - theme = { 44 - "*" = { 45 - background = mkRgba rofiOpacity "base00"; 46 - lightbg = mkRgba rofiOpacity "base01"; 47 - red = mkRgba rofiOpacity "base08"; 48 - blue = mkRgba rofiOpacity "base0D"; 49 - blueopaque = mkRgb "base0D"; 50 - lightfg = mkRgba rofiOpacity "base06"; 51 - foreground = mkRgb "base05"; 52 - lightbgopaque = mkRgb "base01"; 53 - lightfgopaque = mkRgb "base06"; 54 - 55 - background-color = mkLiteral "transparent"; 56 - separatorcolor = mkLiteral "@blueopaque"; 57 - border-color = mkLiteral "@foreground"; 58 - selected-normal-foreground = mkLiteral "@lightbgopaque"; 59 - selected-normal-background = mkLiteral "@blueopaque"; 60 - selected-active-foreground = mkLiteral "@lightbgopaque"; 61 - selected-active-background = mkLiteral "@blueopaque"; 62 - selected-urgent-foreground = mkLiteral "@background"; 63 - selected-urgent-background = mkLiteral "@red"; 64 - normal-foreground = mkLiteral "@foreground"; 65 - normal-background = mkLiteral "transparent"; 66 - active-foreground = mkLiteral "@blue"; 67 - active-background = mkLiteral "transparent"; 68 - urgent-foreground = mkLiteral "@red"; 69 - urgent-background = mkLiteral "transparent"; 70 - alternate-normal-foreground = mkLiteral "@foreground"; 71 - alternate-normal-background = mkLiteral "transparent"; 72 - alternate-active-foreground = mkLiteral "@blue"; 73 - alternate-active-background = mkLiteral "transparent"; 74 - alternate-urgent-foreground = mkLiteral "@red"; 75 - alternate-urgent-background = mkLiteral "transparent"; 76 - 77 - # Text Colors 78 - base-text = mkRgb "base05"; 79 - selected-normal-text = mkRgb "base01"; 80 - selected-active-text = mkRgb "base00"; 81 - selected-urgent-text = mkRgb "base00"; 82 - normal-text = mkRgb "base05"; 83 - active-text = mkRgb "base0D"; 84 - urgent-text = mkRgb "base08"; 85 - alternate-normal-text = mkRgb "base05"; 86 - alternate-active-text = mkRgb "base0D"; 87 - alternate-urgent-text = mkRgb "base08"; 88 - }; 89 - 90 - window = { 91 - background-color = mkLiteral "@background"; 92 - border = 4; 93 - border-color = mkLiteral "@blue"; 94 - border-radius = mkLiteral "${toString 10}"; 95 - }; 96 - 97 - message = { 98 - border-color = mkLiteral "@separatorcolor"; 99 - border = mkLiteral "2px solid 0px 0px"; 100 - padding = 1; 101 - }; 102 - 103 - textbox.text-color = mkLiteral "@base-text"; 104 - 105 - listview = { 106 - border = mkLiteral "2px solid 0px 0px"; 107 - border-color = mkLiteral "@separatorcolor"; 108 - # border-radius = 10; 109 - padding = 5; 110 - scrollbar = false; 111 - spacing = 4; 112 - }; 113 - 114 - element = { 115 - border = 0; 116 - border-radius = 10; 117 - padding = 5; 118 - }; 119 - 120 - element-text = { 121 - background-color = mkLiteral "inherit"; 122 - text-color = mkLiteral "inherit"; 123 - }; 124 - 125 - element-icon = { 126 - background-color = mkLiteral "inherit"; 127 - text-color = mkLiteral "inherit"; 128 - }; 129 - 130 - "element normal.normal" = { 131 - background-color = mkLiteral "@normal-background"; 132 - text-color = mkLiteral "@normal-text"; 133 - }; 134 - 135 - "element normal.urgent" = { 136 - background-color = mkLiteral "@urgent-background"; 137 - text-color = mkLiteral "@urgent-text"; 138 - }; 139 - 140 - "element normal.active" = { 141 - background-color = mkLiteral "@active-background"; 142 - text-color = mkLiteral "@active-text"; 143 - }; 144 - 145 - "element selected.normal" = { 146 - background-color = mkLiteral "@selected-normal-background"; 147 - text-color = mkLiteral "@selected-normal-text"; 148 - }; 149 - 150 - "element selected.urgent" = { 151 - background-color = mkLiteral "@selected-urgent-background"; 152 - text-color = mkLiteral "@selected-urgent-text"; 153 - }; 154 - 155 - "element selected.active" = { 156 - background-color = mkLiteral "@selected-active-background"; 157 - text-color = mkLiteral "@selected-active-text"; 158 - }; 159 - 160 - "element alternate.normal" = { 161 - background-color = mkLiteral "@alternate-normal-background"; 162 - text-color = mkLiteral "@alternate-normal-text"; 163 - }; 164 - 165 - "element alternate.urgent" = { 166 - background-color = mkLiteral "@alternate-urgent-background"; 167 - text-color = mkLiteral "@alternate-urgent-text"; 168 - }; 169 - 170 - "element alternate.active" = { 171 - background-color = mkLiteral "@alternate-active-background"; 172 - text-color = mkLiteral "@alternate-active-text"; 173 - }; 174 - 175 - scrollbar.handle-color = mkLiteral "@normal-foreground"; 176 - sidebar.border-color = mkLiteral "@separatorcolor"; 177 - button.text-color = mkLiteral "@normal-text"; 178 - 179 - "button selected" = { 180 - background-color = mkLiteral "@selected-normal-background"; 181 - text-color = mkLiteral "@selected-normal-text"; 182 - }; 183 - 184 - inputbar.text-color = mkLiteral "@normal-text"; 185 - case-indicator.text-color = mkLiteral "@normal-text"; 186 - entry.text-color = mkLiteral "@normal-text"; 187 - prompt.text-color = mkLiteral "@normal-text"; 188 - 189 - "#textbox-prompt-colon" = { 190 - expand = false; 191 - margin = mkLiteral "0px 0.3em 0em 0em"; 192 - str = ":"; 193 - text-color = mkLiteral "inherit"; 194 - }; 195 - 196 - case-indicator.spacing = 0; 197 - entry.spacing = 0; 198 - 199 - prompt = { 200 - spacing = 0; 201 - margin = 1; 202 - }; 203 - 204 - "#inputbar" = { 205 - children = map mkLiteral ["prompt" "textbox-prompt-colon" "entry" "case-indicator"]; 206 - padding = 10; 207 - }; 208 - 209 - mode-switcher = { 210 - border = mkLiteral "2px solid 0px 0px"; 211 - border-color = mkLiteral "@separatorcolor"; 212 - }; 213 - }; 214 - 215 - extraConfig = { 216 - case-sensitive = false; 217 - click-to-exit = true; 218 - combi-display-format = "{text}"; 219 - combi-hide-mode-prefix = true; 220 - 221 - combi-modes = [ 222 - "window" 223 - "drun" 224 - "ssh" 225 - "recursivebrowser" 226 - ]; 227 - 228 - display-combi = "Search"; 229 - display-drun = "Apps"; 230 - display-filebrowser = "Files"; 231 - display-recursivebrowser = "Files"; 232 - display-run = "Run"; 233 - display-ssh = "SSH"; 234 - display-window = "Windows"; 235 - drun-display-format = "{icon} {name}"; 236 - hover-select = true; 237 - matching = "fuzzy"; 238 - me-accept-entry = "MousePrimary"; 239 - me-select-entry = ""; 240 - modes = "drun,window,ssh,recursivebrowser"; 241 - scrollbar = false; 242 - show-display-name = false; 243 - show-icons = true; 244 - sort = true; 245 - window-format = " {c} {t}"; 246 - window-thumbnail = false; 247 - }; 248 31 }; 249 32 250 33 xdg.configFile = {