From e9de99ad9f135aaf1110080b6f5b631b88f80f67 Mon Sep 17 00:00:00 2001
From: Myned <dev@bjork.tech>
Date: Mon, 10 Feb 2025 15:10:33 -0600
Subject: [PATCH] rofi: modify theme

Signed-off-by: Myned <dev@bjork.tech>
---
 options/custom/menus/rofi/custom.rasi | 46 ++++++++++++++++-----------
 options/custom/menus/rofi/default.nix | 29 ++++++++---------
 2 files changed, 42 insertions(+), 33 deletions(-)

diff --git a/options/custom/menus/rofi/custom.rasi b/options/custom/menus/rofi/custom.rasi
index aad9c24..e4b2252 100644
--- a/options/custom/menus/rofi/custom.rasi
+++ b/options/custom/menus/rofi/custom.rasi
@@ -1,5 +1,5 @@
 /***
-https://github.com/lbonn/rofi/blob/wayland/doc/rofi-theme.5.markdown
+https://davatorium.github.io/rofi/current/rofi-theme.5/
 https://github.com/newmanls/rofi-themes-collection/blob/master/themes/rounded-common.rasi
 https://github.com/newmanls/rofi-themes-collection/blob/master/themes/rounded-pink-dark.rasi
 ***/
@@ -11,52 +11,62 @@ https://github.com/newmanls/rofi-themes-collection/blob/master/themes/rounded-pi
   padding: 0;
   spacing: 0;
   text-color: #93a1a1;
+  vertical-align: 0.5;
 }
 
 window {
   background-color: #002b36;
   border-color: #073642;
-  border-radius: 30px;
+  border-radius: 32px;
   location: north;
   width: 750;
   y-offset: calc(50% - 25% / 2);
 }
 
 mainbox {
+  children: [inputbox, listview];
   padding: 4px;
 }
 
-inputbar {
+inputbox {
   background-color: #073642;
+  border-radius: 24px;
+  children: [inputbar, message];
+  expand: false;
+}
+
+inputbar {
+  background-color: #002b36;
   border-color: #d33682;
-  border-radius: 30px;
-  padding: 8px 8px 8px 4px;
-  spacing: 4px;
+  border-radius: 32px;
+  children: [entry, prompt];
+  padding: 4px;
 }
 
 prompt {
-  font: 'monospace 16';
-  padding: 4px 4px 4px 8px;
+  background-color: #073642;
+  border-radius: 32px;
+  font: 'monospace 18';
+  padding: 4px 18px;
   text-color: #93a1a1;
-  vertical-align: 0.5;
 }
 
 entry {
   font: 'monospace 18';
+  margin: 4px 12px;
   placeholder-color: #586e7580;
-  vertical-align: 0.5;
 }
 
 message {
-  padding: 8px 8px 4px 8px;
+  padding: 16px;
 }
 
 textbox {
-  font: 'sans-serif 10';
+  font: 'monospace 16';
+  horizontal-align: 0.5;
 }
 
 listview {
-  background-color: transparent;
   columns: 1;
   fixed-height: false;
   lines: 5;
@@ -64,9 +74,9 @@ listview {
 }
 
 element {
-  border-radius: 30px;
+  border-radius: 32px;
   padding: 12px;
-  spacing: 8px;
+  spacing: 4px;
 }
 
 element selected normal,
@@ -76,10 +86,10 @@ element selected active {
 
 element-icon {
   size: 32px;
-  vertical-align: 0.5;
 }
 
 element-text {
-  text-color: inherit;
-  vertical-align: 0.5;
+  highlight: #d33682;
+  margin: 4px;
+  tab-stops: [700px];
 }
diff --git a/options/custom/menus/rofi/default.nix b/options/custom/menus/rofi/default.nix
index 91a98b2..2b8c03b 100644
--- a/options/custom/menus/rofi/default.nix
+++ b/options/custom/menus/rofi/default.nix
@@ -34,10 +34,10 @@ in {
         };
 
         dmenu.show = "${quit} || ${rofi} -dmenu";
-        emoji.show = "${quit} || ${rofimoji} --prompt 󰞅";
-        network.show = "${quit} || ${rofi} -dmenu -p ";
+        emoji.show = "${quit} || ${rofimoji} --prompt 󰱰";
+        network.show = "${quit} || ${rofi} -dmenu -p 󰛳";
         search.show = "";
-        vault.show = "${quit} || ${rofi-rbw} --prompt ";
+        vault.show = "${quit} || ${rofi-rbw} --prompt 󰌾";
       };
 
       services = {
@@ -58,36 +58,35 @@ in {
           enable = true;
 
           # https://github.com/lbonn/rofi
-          # https://github.com/lbonn/rofi/tree/wayland/doc
           package = pkgs.rofi-wayland; # Wayland fork
 
           plugins = with pkgs; [
             rofi-calc # https://github.com/svenstaro/rofi-calc
           ];
 
+          # https://davatorium.github.io/rofi/themes/themes/
           #?? rofi-theme-selector
           theme = "custom";
 
-          # https://github.com/lbonn/rofi/blob/wayland/CONFIG.md
-          # https://github.com/lbonn/rofi/blob/wayland/doc/rofi.1.markdown
+          # https://davatorium.github.io/rofi/current/rofi.1/
           # https://www.nerdfonts.com/cheat-sheet
           extraConfig = {
             combi-hide-mode-prefix = true;
-            combi-modes = ["drun" "run" "calc"];
+            combi-modes = ["drun" "run"];
             cycle = false;
-            display-calc = "󱖦";
-            display-clipboard = "󰅌";
-            display-combi = "";
+            display-calc = "";
+            display-clipboard = "";
+            display-combi = "";
             display-dmenu = "󰗧";
-            display-drun = "";
-            display-keys = "";
+            display-drun = "󱗼";
+            display-keys = "󰌌";
             display-run = "";
             display-ssh = "";
             drun-display-format = "{name}"; # Display only names
             drun-match-fields = "name"; # Disable matching of invisible desktop attributes
             matching = "prefix"; # Match beginning of words
 
-            # https://github.com/lbonn/rofi/blob/wayland/doc/rofi.1.markdown#available-modes
+            # https://davatorium.github.io/rofi/current/rofi.1/#available-modes
             modes = [
               "calc"
               "clipboard"
@@ -101,7 +100,7 @@ in {
         };
 
         xdg.configFile = {
-          # https://github.com/lbonn/rofi/blob/wayland/doc/rofi-theme.5.markdown
+          # https://davatorium.github.io/rofi/current/rofi-theme.5/
           "rofi/custom.rasi".text = ''
             ${readFile ./custom.rasi}
 
@@ -110,7 +109,7 @@ in {
             }
           '';
 
-          # https://github.com/lbonn/rofi/blob/wayland/doc/rofi-script.5.markdown
+          # https://davatorium.github.io/rofi/current/rofi-script.5/
           # https://github.com/sentriz/cliphist?tab=readme-ov-file#picker-examples
           "rofi/scripts/clipboard" = {
             #// source = getExe' hm.services.cliphist.package "cliphist-rofi-img";