config.rasi (9452B)
1 /** 2 * 3 * Author : Aditya Shakya (adi1090x) 4 * Github : @adi1090x 5 * 6 * Rofi Theme File 7 * Rofi Version: 1.7.3 8 **/ 9 10 /*****----- Configuration -----*****/ 11 configuration { 12 modi: "drun"; 13 show-icons: true; 14 display-drun: ""; 15 display-run: ""; 16 display-filebrowser: ""; 17 display-window: ""; 18 drun-display-format: "{name} [<span weight='light' size='small'><i>({generic})</i></span>]"; 19 window-format: "{w} · {c} · {t}"; 20 } 21 22 /*****----- Global Properties -----*****/ 23 * { 24 font: "IoskeleyMonoNL Nerd Font 12"; 25 } 26 27 * { 28 bg: #0a0a0a; 29 bg-alt: #141414; 30 fg: #b8a5e6; 31 sel: #ff7645; 32 active: #b8a5e6; 33 urgent: #cc5533; 34 35 border-colour: var(sel); 36 handle-colour: var(sel); 37 background-colour: var(bg); 38 foreground-colour: var(fg); 39 alternate-background: var(bg-alt); 40 normal-background: var(bg); 41 normal-foreground: var(fg); 42 urgent-background: var(urgent); 43 urgent-foreground: var(bg); 44 active-background: var(active); 45 active-foreground: var(bg); 46 selected-normal-background: var(sel); 47 selected-normal-foreground: var(bg); 48 selected-urgent-background: var(active); 49 selected-urgent-foreground: var(bg); 50 selected-active-background: var(urgent); 51 selected-active-foreground: var(bg); 52 alternate-normal-background: var(bg); 53 alternate-normal-foreground: var(fg); 54 alternate-urgent-background: var(urgent); 55 alternate-urgent-foreground: var(bg); 56 alternate-active-background: var(active); 57 alternate-active-foreground: var(bg); 58 } 59 60 /*****----- Main Window -----*****/ 61 window { 62 /* properties for window widget */ 63 transparency: "real"; 64 location: center; 65 anchor: center; 66 fullscreen: false; 67 width: 40%; 68 x-offset: 0px; 69 y-offset: 0px; 70 71 /* properties for all widgets */ 72 enabled: true; 73 margin: 0px; 74 padding: 0px; 75 border: 0px solid; 76 border-radius: 12px; 77 border-color: @border-colour; 78 cursor: "default"; 79 background-color: @background-colour; 80 } 81 82 /*****----- Main Box -----*****/ 83 mainbox { 84 enabled: true; 85 spacing: 10px; 86 margin: 0px; 87 padding: 30px; 88 border: 0px solid; 89 border-radius: 0px 0px 0px 0px; 90 border-color: @border-colour; 91 background-color: transparent; 92 children: [ "inputbar", "listview" ]; 93 } 94 95 /*****----- Inputbar -----*****/ 96 inputbar { 97 enabled: true; 98 spacing: 10px; 99 margin: 0px; 100 padding: 0px 0px 10px 10px; 101 border: 0px; 102 border-radius: 12px; 103 border-color: @border-colour; 104 background-color: @background-colour; 105 text-color: @foreground-colour; 106 children: [ "prompt", "entry" ]; 107 } 108 109 prompt { 110 enabled: true; 111 background-color: inherit; 112 text-color: inherit; 113 } 114 textbox-prompt-colon { 115 enabled: true; 116 expand: false; 117 str: "::"; 118 background-color: inherit; 119 text-color: inherit; 120 } 121 entry { 122 enabled: true; 123 background-color: inherit; 124 text-color: inherit; 125 cursor: text; 126 placeholder: ""; 127 placeholder-color: inherit; 128 } 129 130 /*****----- Listview -----*****/ 131 listview { 132 enabled: true; 133 columns: 1; 134 lines: 12; 135 cycle: true; 136 dynamic: true; 137 scrollbar: false; 138 layout: vertical; 139 reverse: false; 140 fixed-height: false; 141 fixed-columns: true; 142 143 spacing: 0px; 144 margin: 0px; 145 padding: 0px; 146 border: 0px solid; 147 border-radius: 12px; 148 border-color: @border-colour; 149 background-color: transparent; 150 text-color: @foreground-colour; 151 cursor: "default"; 152 } 153 scrollbar { 154 handle-width: 5px ; 155 handle-color: @handle-colour; 156 border-radius: 12px; 157 background-color: @alternate-background; 158 } 159 160 /*****----- Elements -----*****/ 161 element { 162 enabled: true; 163 spacing: 10px; 164 margin: 0px; 165 padding: 5px; 166 border: 0px solid; 167 border-radius: 12px; 168 border-color: @border-colour; 169 background-color: transparent; 170 text-color: @foreground-colour; 171 cursor: pointer; 172 } 173 element normal.normal { 174 background-color: var(normal-background); 175 text-color: var(normal-foreground); 176 } 177 element normal.urgent { 178 background-color: var(urgent-background); 179 text-color: var(urgent-foreground); 180 } 181 element normal.active { 182 background-color: var(active-background); 183 text-color: var(active-foreground); 184 } 185 element selected.normal { 186 background-color: var(selected-normal-background); 187 text-color: var(selected-normal-foreground); 188 } 189 element selected.urgent { 190 background-color: var(selected-urgent-background); 191 text-color: var(selected-urgent-foreground); 192 } 193 element selected.active { 194 background-color: var(selected-active-background); 195 text-color: var(selected-active-foreground); 196 } 197 element alternate.normal { 198 background-color: var(alternate-normal-background); 199 text-color: var(alternate-normal-foreground); 200 } 201 element alternate.urgent { 202 background-color: var(alternate-urgent-background); 203 text-color: var(alternate-urgent-foreground); 204 } 205 element alternate.active { 206 background-color: var(alternate-active-background); 207 text-color: var(alternate-active-foreground); 208 } 209 element-icon { 210 background-color: transparent; 211 text-color: inherit; 212 size: 24px; 213 cursor: inherit; 214 } 215 element-text { 216 background-color: transparent; 217 text-color: inherit; 218 highlight: inherit; 219 cursor: inherit; 220 vertical-align: 0.5; 221 horizontal-align: 0.0; 222 } 223 224 /*****----- Mode Switcher -----*****/ 225 mode-switcher{ 226 enabled: true; 227 spacing: 10px; 228 margin: 0px; 229 padding: 0px; 230 border: 0px solid; 231 border-radius: 12px; 232 border-color: @border-colour; 233 background-color: transparent; 234 text-color: @foreground-colour; 235 } 236 button { 237 padding: 10px; 238 border: 0px solid; 239 border-radius: 12px; 240 border-color: @border-colour; 241 background-color: @alternate-background; 242 text-color: inherit; 243 cursor: pointer; 244 } 245 button selected { 246 background-color: var(selected-normal-background); 247 text-color: var(selected-normal-foreground); 248 } 249 250 /*****----- Message -----*****/ 251 message { 252 enabled: true; 253 margin: 0px; 254 padding: 0px; 255 border: 0px solid; 256 border-radius: 0px 0px 0px 0px; 257 border-color: @border-colour; 258 background-color: transparent; 259 text-color: @foreground-colour; 260 } 261 textbox { 262 padding: 10px; 263 border: 0px solid; 264 border-radius: 12px; 265 border-color: @border-colour; 266 background-color: @alternate-background; 267 text-color: @foreground-colour; 268 vertical-align: 0.5; 269 horizontal-align: 0.0; 270 highlight: none; 271 placeholder-color: @foreground-colour; 272 blink: true; 273 markup: true; 274 } 275 error-message { 276 padding: 10px; 277 border: 0px solid; 278 border-radius: 12px; 279 border-color: @border-colour; 280 background-color: @background-colour; 281 text-color: @foreground-colour; 282 }