diff options
| author | Caroline Larimore <caroline@larimo.re> | 2024-07-25 22:52:20 -0700 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2024-07-25 23:00:44 -0700 |
| commit | 2f17e369400b9c895b3554008ab3efbc76255428 (patch) | |
| tree | 172c910e17f14bb8d0d7306fe527c2c79140df64 /roles/home/desktop/rofi.nix | |
| parent | 10c984caf7067656990e5966b4626314f225755f (diff) | |
roles: home: migrate old home module to roles
Diffstat (limited to 'roles/home/desktop/rofi.nix')
| -rw-r--r-- | roles/home/desktop/rofi.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/roles/home/desktop/rofi.nix b/roles/home/desktop/rofi.nix new file mode 100644 index 0000000..dff60e7 --- /dev/null +++ b/roles/home/desktop/rofi.nix @@ -0,0 +1,47 @@ +{ config, ... }: + +{ + programs.rofi = { + font = "monospace 12"; + + theme = let + inherit (config.lib.formats.rasi) mkLiteral; + c = config.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"; + }; + }; +} |