Guest User

Rofi.rasi

a guest
Apr 14th, 2024
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.77 KB | None | 0 0
  1. /* config - Launcher */
  2.  
  3. /* ---- Configuration ---- */
  4.  
  5. configuration {
  6. modi: "drun,run,filebrowser,window,calc";
  7. show-icons: true;
  8. display-calc: "Calc";
  9. display-drun: "Apps";
  10. display-run: "Run";
  11. display-filebrowser: "Files";
  12. display-window: "Windows";
  13. drun-display-format: "{name}";
  14. window-format: "{w} ยท {c} ยท {t}";
  15. font: "JetBrains Mono Nerd Font 10";
  16. icon-theme: "Tela-circle-dracula";
  17.  
  18. }
  19.  
  20. /* ---- Load pywal colors ---- */
  21. @theme "~/.cache/wal/colors-rofi-dark.rasi"
  22.  
  23. /* ---- Global Properties ---- */
  24. * {
  25.  
  26. background-alt: @selected-active-background; // Buttons background
  27. selected: @selected-normal-background; // Button selected
  28. active: @selected-urgent-background; // Window activated
  29. urgent: @selected-normal-background; // When hovering the activated window (maybe more?)
  30.  
  31. text-selected: @background;
  32. text-color: @foreground;
  33. border-color: @selected;
  34. }
  35.  
  36. /* ---- Window ---- */
  37. window {
  38. // Default
  39. enabled: true;
  40. fullscreen: false;
  41. transparency: "real";
  42. cursor: "default";
  43. spacing: 0px;
  44. border: 2px;
  45. border-radius: 30px;
  46. location: center;
  47. anchor: center;
  48.  
  49. // Style Values
  50. width: 55%;
  51. background-color: #00000088;
  52. }
  53.  
  54. /* ----- Main Box ----- */
  55. mainbox {
  56. enabled: true;
  57. orientation: vertical;
  58. children: [ "inputbar", "listbox" ];
  59. background-color: transparent;
  60. }
  61.  
  62.  
  63. /* ---- Inputbar ---- */
  64. inputbar {
  65. enabled: true;
  66. padding: 80px 60px;
  67. margin: 20px;
  68. background-color: transparent;
  69. border-radius: 25px;
  70. orientation: horizontal;
  71. children: ["entry", "dummy", "mode-switcher" ];
  72. background-image: url("~/.config/rofi/.current_wallpaper", width);
  73. }
  74.  
  75. /* ---- Entry input ---- */
  76. entry {
  77. enabled: true;
  78. expand: false;
  79. width: 300px;
  80. padding: 12px 16px;
  81. border-radius: 10px;
  82. background-color: @background-alt;
  83. text-color: inherit;
  84. cursor: text;
  85. placeholder: "๏€‚ Search"; // << Search symbol
  86. placeholder-color: inherit;
  87. }
  88.  
  89. /* ---- Listbox ---- */
  90. listbox {
  91. spacing: 20px;
  92. padding: 20px;
  93. background-color: transparent;
  94. orientation: vertical;
  95. children: [ "message", "listview" ];
  96. }
  97.  
  98. /* ---- Listview ---- */
  99. listview {
  100. enabled: true;
  101. columns: 2;
  102. lines: 8;
  103. cycle: true;
  104. dynamic: true;
  105. scrollbar: false;
  106. layout: vertical;
  107. reverse: false;
  108. fixed-height: true;
  109. fixed-columns: true;
  110.  
  111. spacing: 10px;
  112. background-color: transparent;
  113.  
  114. // Adapt rofi theme
  115. border: 0px;
  116. }
  117.  
  118. /* ---- Dummy ---- */
  119. dummy {
  120. expand: true;
  121. background-color: transparent;
  122. }
  123.  
  124. /* ---- Mode Switcher ---- */
  125. mode-switcher{
  126. enabled: true;
  127. spacing: 10px;
  128. background-color: transparent;
  129. }
  130. button {
  131. width: 80px;
  132. padding: 12px;
  133. border-radius: 12px;
  134. background-color: @background-alt;
  135. text-color: inherit;
  136. cursor: pointer;
  137. }
  138. button selected {
  139. background-color: @selected;
  140. text-color: @text-selected;
  141. }
  142.  
  143.  
  144. /* ---- Elements ---- */
  145. element {
  146. enabled: true;
  147. spacing: 10px;
  148. padding: 4px;
  149. border-radius: 10px;
  150. background-color: transparent;
  151. cursor: pointer;
  152. }
  153.  
  154.  
  155. element normal.normal {
  156. background-color: inherit;
  157. text-color: inherit;
  158. }
  159. element normal.urgent {
  160. background-color: @urgent;
  161. text-color: @foreground;
  162. }
  163. element normal.active {
  164. background-color: @active;
  165. text-color: @foreground;
  166. }
  167.  
  168. element selected.normal {
  169. background-color: @selected;
  170. text-color: @text-selected;
  171. }
  172. element selected.urgent {
  173. background-color: @urgent;
  174. text-color: @text-selected;
  175. }
  176. element selected.active {
  177. background-color: @urgent;
  178. text-color: @text-selected;
  179. }
  180. // Adapt rofi theme
  181. element alternate.normal {
  182. background-color: transparent;
  183. text-color: inherit;
  184. }
  185. element alternate.urgent {
  186. background-color: transparent;
  187. text-color: inherit;
  188. }
  189. element alternate.active {
  190. background-color: transparent;
  191. text-color: inherit;
  192. }
  193. element-icon {
  194. background-color: transparent;
  195. text-color: inherit;
  196. size: 36px;
  197. cursor: inherit;
  198. }
  199. element-text {
  200. background-color: transparent;
  201. text-color: inherit;
  202. cursor: inherit;
  203. vertical-align: 0.5;
  204. horizontal-align: 0.0;
  205.  
  206. }
  207.  
  208. /* ---- Message ---- */
  209. message {
  210. background-color: transparent;
  211. border: 0px;
  212. }
  213. textbox {
  214. padding: 12px;
  215. border-radius: 10px;
  216. background-color: @background-alt;
  217. text-color: @foreground;
  218. vertical-align: 0.5;
  219. horizontal-align: 0.0;
  220. }
  221. error-message {
  222. padding: 12px;
  223. border-radius: 20px;
  224. background-color: @background-alt;
  225. text-color: @foreground;
  226. }
Add Comment
Please, Sign In to add comment