Files
flake/modules/wm/rofi/config.rasi

252 lines
4.4 KiB
CSS

/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Rofi Theme File
* Rofi Version: 1.7.3
**/
@import "colors.rasi"
/*****----- Configuration -----*****/
configuration {
modi: "run,drun";
display-drun: "";
display-run: "";
drun-display-format: "{name}";
window-format: "{w} · {c} · {t}";
matching: "fuzzy";
drun-match-fields: "name";
}
/*****----- Global Properties -----*****/
* {
font: "monospace 12";
background-alt: @background;
active: @foreground;
urgent: @backgroundAdditional;
}
/*****----- Main Window -----*****/
window {
/* properties for window widget */
transparency: "real";
location: west;
anchor: west;
fullscreen: false;
width: 500px;
height: 86%;
x-offset: 1%;
y-offset: 0px;
/* properties for all widgets */
enabled: true;
border-radius: 12px;
cursor: "default";
background-color: @background;
}
/*****----- Main Box -----*****/
mainbox {
enabled: true;
spacing: 0px;
background-color: transparent;
orientation: vertical;
children: [ "inputbar", "listbox", "mode-switcher"];
}
listbox {
spacing: 15px;
padding: 15px;
background-color: transparent;
orientation: vertical;
children: [ "message", "listview"];
}
/*****----- Inputbar -----*****/
inputbar {
enabled: true;
spacing: 10px;
padding: 40px 40px 155px;
background-color: transparent;
background-image: url("~/.cache/current-wallpaper", width);
text-color: @foreground;
orientation: horizontal;
children: [ "textbox-prompt-colon", "entry"];
}
textbox-prompt-colon {
font: "monospace 10";
enabled: true;
expand: false;
str: "";
padding: 14px 17px 14px 17px;
border-radius: 10px;
background-color: @background-alt;
text-color: inherit;
}
entry {
enabled: true;
expand: true;
padding: 12px 16px;
border-radius: 10px;
background-color: @background-alt;
text-color: inherit;
cursor: text;
placeholder: "Search";
placeholder-color: inherit;
}
dummy {
expand: true;
background-color: transparent;
}
/*****----- Mode Switcher -----*****/
mode-switcher {
enabled: true;
padding: 15px;
spacing: 10px;
background-color: transparent;
text-color: @foreground;
}
button {
vertical-align: 0.5;
horizontal-align: 0.5;
font: "monspace 18";
border-radius: 12px;
padding: 16px;
background-color: @background-alt;
text-color: inherit;
cursor: pointer;
}
button selected {
background-color: @selected;
text-color: @backgroundSolid;
}
/*****----- Listview -----*****/
listview {
enabled: true;
columns: 1;
lines: 10;
cycle: false;
dynamic: true;
scrollbar: false;
layout: vertical;
reverse: false;
fixed-height: true;
fixed-columns: true;
spacing: 10px;
background-color: transparent;
text-color: @foreground;
cursor: "default";
}
/*****----- Elements -----*****/
element {
enabled: true;
padding: 14px;
border-radius: 0px;
background-color: transparent;
text-color: @foreground;
cursor: pointer;
}
element normal.normal {
border-radius: 100%;
background-color: inherit;
text-color: inherit;
}
element normal.urgent {
border-radius: 100%;
background-color: @foreground-alt;
text-color: @backgroundSolid;
}
element normal.active {
border-radius: 100%;
background-color: @foreground-alt;
text-color: @backgroundSolid;
}
element alternate.normal {
border-radius: 100%;
background-color: inherit;
text-color: inherit;
}
element alternate.urgent {
border-radius: 100%;
background-color: @foreground-alt;
text-color: @backgroundSolid;
}
element alternate.active {
border-radius: 100%;
background-color: @foreground-alt;
text-color: @backgroundSolid;
}
element selected.normal {
border-radius: 100%;
background-color: @selected;
text-color: @backgroundSolid;
}
element selected.urgent {
border-radius: 100%;
background-color: @selected;
text-color: @backgroundSolid;
}
element selected.active {
border-radius: 100%;
background-color: @selected;
text-color: @backgroundSolid;
}
element-icon {
background-color: transparent;
text-color: inherit;
size: 24px;
cursor: inherit;
}
element-text {
background-color: transparent;
text-color: inherit;
cursor: inherit;
vertical-align: 0.5;
horizontal-align: 0.0;
}
/*****----- Message -----*****/
message {
background-color: transparent;
}
textbox {
padding: 12px;
border-radius: 0px;
background-color: @background-alt;
text-color: @foreground;
vertical-align: 0.5;
horizontal-align: 0.0;
}
error-message {
padding: 12px;
border-radius: 0px;
background-color: @background;
text-color: @foreground;
}
/* vim:ft=css