diff options
author | tdback <tyler@tdback.net> | 2025-01-16 20:19:38 -0500 |
---|---|---|
committer | tdback <tyler@tdback.net> | 2025-01-16 20:19:38 -0500 |
commit | 05eca99c7e169d98676f9997393b347e3754d113 (patch) | |
tree | 63d8c68ce4dc463031db525eb8296de36b099432 /users/tdback/modules/retired/rofi | |
parent | 88017f5a874478dd82f306a5df88c38a8d06fcb6 (diff) |
chore: move retired modules into modules subdir
Diffstat (limited to 'users/tdback/modules/retired/rofi')
-rw-r--r-- | users/tdback/modules/retired/rofi/default.nix | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/users/tdback/modules/retired/rofi/default.nix b/users/tdback/modules/retired/rofi/default.nix new file mode 100644 index 0000000..4399265 --- /dev/null +++ b/users/tdback/modules/retired/rofi/default.nix @@ -0,0 +1,84 @@ +{ config, pkgs, ... }: +{ + programs.rofi = { + enable = true; + package = pkgs.unstable.rofi; + font = "Iosevka Comfy Motion Fixed 12"; + location = "center"; + extraConfig = { + modi = "window,run,drun"; + icon-theme = "Papirus"; + show-icons = true; + display-drun = ""; + display-window = ""; + drun-display-format = "{icon} {name}"; + }; + theme = + let + inherit (config.lib.formats.rasi) mkLiteral; + in + { + "*" = { + bg = mkLiteral "#050505"; + bg-alt = mkLiteral "#191919"; + fg = mkLiteral "#FFFFFF"; + fg-alt = mkLiteral "#787c99"; + background-color = mkLiteral "@bg"; + border = 0; + margin = 0; + padding = 0; + spacing = 0; + }; + + "window" = { + width = mkLiteral "40%"; + }; + + "element" = { + padding = 12; + text-color = mkLiteral "@fg-alt"; + }; + + "element selected" = { + text-color = mkLiteral "@fg"; + }; + + "element-text" = { + background-color = mkLiteral "inherit"; + text-color = mkLiteral "inherit"; + vertical-align = mkLiteral "0.5"; + }; + + "element-icon" = { + size = 38; + }; + + "entry" = { + background-color = mkLiteral "@bg-alt"; + text-color = mkLiteral "@fg"; + padding = 14; + placeholder = "Search..."; + }; + + "inputbar" = { + children = map mkLiteral [ + "prompt" + "entry" + ]; + }; + + "listview" = { + columns = 2; + lines = 6; + background-color = mkLiteral "@bg"; + }; + + "prompt" = { + enabled = true; + background-color = mkLiteral "@bg-alt"; + text-color = mkLiteral "@fg"; + padding = mkLiteral "14 10 0 14"; + }; + }; + }; +} |