2025-05-22 17:56:05 -05:00

268 lines
7.7 KiB
Plaintext

/*
# ____ __ _
# | _ \ ___ / _(_)
# | |_) / _ \| |_| |
# | _ < (_) | _| |
# |_| \_\___/|_| |_|
#
# by Stephan Raabe (2023)
# -----------------------------------------------------
*/
/* ---- Configuration ---- */
configuration {
modi: "drun,filebrowser,window,run";
font: "Fira Sans 11";
show-icons: true;
icon-theme: "Tela-circle-dracula";
display-drun: " ";
display-run: " ";
display-filebrowser: " ";
display-window: " ";
drun-display-format: "{name}";
hover-select: false;
scroll-method: 1;
me-select-entry: "";
me-accept-entry: "MousePrimary";
window-format: "{w} · {c} · {t}";
}
/* ---- Load font ---- */
@import "~/.config/ml4w/settings/rofi-font.rasi"
/* ---- Load pywal colors (custom wal template) ---- */
@theme "~/.cache/wal/colors-rofi-pywal"
/* ---- Load wallpaper ---- */
@import "~/.config/ml4w/cache/current_wallpaper.rasi"
/* ---- Load border width ---- */
@import "~/.config/ml4w/settings/rofi-border.rasi"
/* ---- Load border radius ---- */
@import "~/.config/ml4w/settings/rofi-border-radius.rasi"
// Main //
window {
width: 30em;
x-offset: 0em;
y-offset: 2em;
spacing: 0em;
padding: 0em;
margin: 0em;
color: #FFFFFF;
border: @border-width;
border-color: @color11;
cursor: "default";
transparency: "real";
location: north;
anchor: north;
fullscreen: false;
enabled: true;
border-radius: @border-radius;
background-color: transparent;
}
mainbox {
enabled: true;
spacing: 0em;
padding: 0em;
orientation: horizontal;
children: [ "listbox" ];
background-color: transparent;
background-image: @current-image;
}
/* ---- Imagebox ---- */
imagebox {
padding: 1em;
background-color: transparent;
orientation: horizontal;
children: [ "inputbar" ];
}
// Inputs //
inputbar {
enabled: true;
spacing: 0em;
padding: 1em;
children: [ "textbox-prompt-colon", "entry" ];
background-color: transparent;
background-image: url("~/.config/ml4w/cache/current_wallpaper", width);
}
textbox-prompt-colon {
enabled: true;
expand: false;
str: " ";
padding: 1em 1em 0em 0em;
text-color: @foreground;
border-radius: 2em 0em 0em 2em;
background-color: @background;
background-image: url("~/.config/ml4w/cache/current_wallpaper", width);
}
entry {
enabled: true;
border-radius: 0em 2em 2em 0em;
spacing: 1em;
padding: 1em;
background-color: @background;
text-color: @foreground;
cursor: text;
placeholder: "Search";
placeholder-color: inherit;
}
// Lists //
listbox {
padding: 0em;
spacing: 0em;
orientation: vertical;
children: [ "inputbar", "listview" , "message" ];
background-color: @background;
}
listview {
padding: 1em;
spacing: 0em;
margin: 0em;
enabled: true;
columns: 1;
lines: 8;
cycle: true;
dynamic: true;
scrollbar: false;
layout: vertical;
reverse: false;
fixed-height: true;
fixed-columns: true;
cursor: "default";
background-color: transparent;
text-color: @foreground;
}
// Modes //
mode-switcher {
orientation: vertical;
width: 6.6em;
enabled: true;
padding: 1.5em;
spacing: 1.5em;
background-color: transparent;
}
button {
cursor: pointer;
border-radius: 2em;
background-color: @background;
text-color: @foreground;
}
button selected {
background-color: @color5;
text-color: @background;
}
// Elements //
element {
enabled: true;
padding: 1em;
margin: 0em;
cursor: pointer;
background-color: transparent;
text-color: @foreground;
border-radius: 1.1em;
}
element selected.normal {
background-color: @color11;
text-color: @foreground;
border-radius: 1.5em;
}
element normal.normal {
background-color: inherit;
text-color: @foreground;
}
element normal.urgent {
background-color: inherit;
text-color: @foreground;
}
element normal.active {
background-color: inherit;
text-color: @foreground;
}
element selected.urgent {
background-color: inherit;
text-color: @foreground;
}
element selected.active {
background-color: inherit;
text-color: @foreground;
}
element alternate.normal {
background-color: inherit;
text-color: @foreground;
}
element alternate.urgent {
background-color: inherit;
text-color: @foreground;
}
element alternate.active {
background-color: inherit;
text-color: @foreground;
}
element-icon {
size: 0em;
cursor: inherit;
background-color: transparent;
text-color: inherit;
content: "";
}
element-text {
vertical-align: 0.5;
horizontal-align: 0.0;
cursor: inherit;
background-color: transparent;
text-color: inherit;
}
/*****----- Message -----*****/
message {
background-color: transparent;
border: 0em;
margin: 2.2em 0em 0em 0em;
padding: 0em;
spacing: 0em;
border-radius: 1.1em;
}
textbox {
padding: 2em;
margin: 0em;
border-radius: 0em;
background-color: @background;
text-color: @foreground;
vertical-align: 0.5;
horizontal-align: 0.0;
}
error-message {
padding: 2em;
border-radius: 2.1em;
background-color: @background;
text-color: @foreground;
}