dotfiles/config/rofi/launcher.rasi

165 lines
4.9 KiB
Plaintext

// Originally created by - https://github.com/gh0stzk
//----- Main Configuration -----//
configuration {
modi: "drun";
icon-theme: "Papirus-Dark";
application-fallback-icon: "Adwaita";
show-icons: true;
drun-display-format: "{name}";
disable-history: true;
sidebar-mode: false;
hover-select: true;
me-select-entry: "";
me-accept-entry: "MousePrimary";
}
//----- Global Properties -----//
* {
font: "Terminess Nerd Font Mono Bold 16";
background: #1f2329;
background-alt: #1f2329E0;
foreground: #b8bfe5;
selected: #3f5273;
}
//----- Main Window -----//
window {
/* properties for window widget */
transparency: "real";
location: center;
anchor: center;
border: 2px;
border-color: #465b80;
fullscreen: false;
width: 750px;
x-offset: 0px;
y-offset: 0px;
/* properties for all widgets */
enabled: true;
border-radius: 0px;
cursor: "default";
background-color: @background;
}
//----- Main Box -----//
mainbox {
enabled: true;
spacing: 0px;
background-color: transparent;
orientation: vertical;
children: [ "inputbar", "listbox" ];
}
listbox {
spacing: 10px;
padding: 15px 15px;
background-color: transparent;
orientation: vertical;
children: [ "listview" ];
}
//----- Inputbar -----//
inputbar {
enabled: true;
spacing: 10px;
background-color: transparent;
text-color: @foreground;
orientation: horizontal;
children: [ "textbox-prompt-colon", "entry" ];
}
textbox-prompt-colon {
enabled: true;
expand: false;
font: "JetBrainsMono Nerd Font Bold 16";
str: "";
padding: 12px 19px 0 15px;
border-radius: 8px;
background-color: @background-alt;
text-color: inherit;
}
entry {
enabled: true;
expand: true;
padding: 12px 12px;
border-radius: 8px;
background-color: @background-alt;
text-color: inherit;
cursor: text;
placeholder: "Search";
placeholder-color: inherit;
}
//----- Listview -----//
listview {
enabled: true;
columns: 3;
lines: 5;
cycle: true;
dynamic: true;
scrollbar: false;
layout: vertical;
reverse: false;
fixed-height: true;
fixed-columns: true;
spacing: 1px;
background-color: transparent;
text-color: @foreground;
cursor: "default";
}
//----- Elements -----//
element {
enabled: true;
spacing: 10px;
padding: 8px;
border-radius: 4px;
background-color: transparent;
text-color: @foreground;
cursor: pointer;
}
element normal.normal {
background-color: inherit;
text-color: inherit;
}
element selected.normal {
background-color: @selected;
text-color: @background;
}
element-icon {
background-color: transparent;
text-color: inherit;
size: 36px;
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: 5px;
background-color: @background-alt;
text-color: @foreground;
vertical-align: 0.5;
horizontal-align: 0.0;
}
error-message {
padding: 12px;
border-radius: 5px;
background-color: @background;
text-color: @foreground;
}