hyprland-dotfiles/rofi/config.rasi

255 lines
7.1 KiB
Plaintext
Raw Normal View History

2023-03-09 12:52:31 +00:00
/*
# ____ __ _
# | _ \ ___ / _(_)
# | |_) / _ \| |_| |
# | _ < (_) | _| |
# |_| \_\___/|_| |_|
#
# by Stephan Raabe (2023)
# -----------------------------------------------------
*/
2023-10-01 16:32:19 +00:00
/* ---- Configuration ---- */
2023-01-25 19:14:03 +00:00
configuration {
2023-10-01 16:32:19 +00:00
modi: "drun,run";
font: "Fira Sans Bold 12";
show-icons: true;
icon-theme: "kora";
display-drun: "APPS";
display-run: "RUN";
display-filebrowser: "FILES";
display-window: "WINDOW";
drun-display-format: "{name}";
2023-10-02 08:31:06 +00:00
hover-select: true;
me-select-entry: "";
me-accept-entry: "MousePrimary";
2023-10-01 16:32:19 +00:00
window-format: "{w} · {c} · {t}";
2023-01-25 19:14:03 +00:00
}
2023-10-01 16:32:19 +00:00
/* ---- Load pywal colors (custom wal template) ---- */
@import "~/.cache/wal/colors-rofi-pywal"
2023-12-21 10:05:20 +00:00
@import "~/.cache/current_wallpaper.rasi"
2024-02-16 07:02:26 +00:00
@import "~/dotfiles/.settings/rofi-border.rasi"
2023-01-25 19:14:03 +00:00
2023-10-01 16:32:19 +00:00
/* ---- Window ---- */
2023-04-11 13:25:32 +00:00
window {
2023-10-01 16:32:19 +00:00
width: 900px;
x-offset: 0px;
y-offset: 0px;
spacing: 0px;
padding: 0px;
margin: 0px;
color: #FFFFFF;
2024-02-16 07:02:26 +00:00
border: @border-width;
2023-10-01 16:32:19 +00:00
border-color: #FFFFFF;
cursor: "default";
transparency: "real";
location: center;
anchor: center;
fullscreen: false;
enabled: true;
border-radius: 10px;
background-color: transparent;
}
2023-09-28 18:43:29 +00:00
2023-10-01 16:32:19 +00:00
/* ---- Mainbox ---- */
mainbox {
enabled: true;
orientation: horizontal;
spacing: 0px;
margin: 0px;
background-color: @background;
2023-12-21 10:05:20 +00:00
background-image: @current-image;
2023-10-01 16:32:19 +00:00
children: ["imagebox","listbox"];
}
2023-09-28 18:43:29 +00:00
2023-10-01 16:32:19 +00:00
/* ---- Imagebox ---- */
imagebox {
padding: 18px;
background-color: transparent;
orientation: vertical;
children: [ "inputbar", "dummy", "mode-switcher" ];
2023-09-28 18:43:29 +00:00
}
2023-10-01 16:32:19 +00:00
/* ---- Listbox ---- */
listbox {
spacing: 20px;
background-color: transparent;
orientation: vertical;
children: [ "message", "listview" ];
2023-09-28 18:43:29 +00:00
}
2023-10-01 16:32:19 +00:00
/* ---- Dummy ---- */
dummy {
background-color: transparent;
}
/* ---- Inputbar ---- */
2023-09-28 18:43:29 +00:00
inputbar {
2023-10-01 16:32:19 +00:00
enabled: true;
text-color: @foreground;
spacing: 10px;
padding: 15px;
border-radius: 10px;
border-color: @foreground;
background-color: @background;
children: [ "textbox-prompt-colon", "entry" ];
}
textbox-prompt-colon {
enabled: true;
expand: false;
str: "";
background-color: transparent;
text-color: inherit;
}
entry {
enabled: true;
background-color: transparent;
text-color: inherit;
cursor: text;
placeholder: "Search";
placeholder-color: inherit;
2023-09-28 18:43:29 +00:00
}
2023-10-01 16:32:19 +00:00
/* ---- Mode Switcher ---- */
mode-switcher{
enabled: true;
spacing: 20px;
background-color: transparent;
text-color: @foreground;
}
button {
padding: 10px;
border-radius: 10px;
background-color: @background;
text-color: inherit;
cursor: pointer;
border: 0px;
}
button selected {
background-color: @color11;
text-color: @foreground;
}
/* ---- Listview ---- */
2023-09-28 18:43:29 +00:00
listview {
2023-10-01 16:32:19 +00:00
enabled: true;
columns: 1;
lines: 8;
cycle: true;
dynamic: true;
scrollbar: false;
layout: vertical;
reverse: false;
fixed-height: true;
fixed-columns: true;
spacing: 0px;
padding: 10px;
margin: 0px;
background-color: @background;
border:0px;
2023-01-25 19:14:03 +00:00
}
2023-10-01 16:32:19 +00:00
/* ---- Element ---- */
2023-04-06 12:30:10 +00:00
element {
2023-10-01 16:32:19 +00:00
enabled: true;
padding: 10px;
margin: 5px;
cursor: pointer;
background-color: @background;
border-radius: 10px;
2024-02-16 07:02:26 +00:00
border: @border-width;
2023-10-01 16:32:19 +00:00
}
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;
2023-09-28 20:22:27 +00:00
}
2023-10-01 16:32:19 +00:00
element selected.normal {
background-color: @color11;
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;
2023-09-28 20:22:27 +00:00
}
element-icon {
2023-10-01 16:32:19 +00:00
background-color: transparent;
text-color: inherit;
size: 32px;
cursor: inherit;
2023-09-28 20:22:27 +00:00
}
element-text {
background-color: transparent;
text-color: inherit;
2023-10-01 16:32:19 +00:00
cursor: inherit;
vertical-align: 0.5;
horizontal-align: 0.0;
2023-01-25 19:14:03 +00:00
}
2023-10-01 16:32:19 +00:00
/*****----- Message -----*****/
message {
background-color: transparent;
border:0px;
margin:20px 0px 0px 0px;
padding:0px;
spacing:0px;
border-radius: 10px;
2023-04-11 13:25:32 +00:00
}
2023-10-01 16:32:19 +00:00
textbox {
padding: 15px;
margin: 0px;
border-radius: 0px;
background-color: @background;
text-color: @foreground;
vertical-align: 0.5;
horizontal-align: 0.0;
2023-04-11 13:25:32 +00:00
}
2023-10-01 16:32:19 +00:00
error-message {
padding: 15px;
border-radius: 20px;
background-color: @background;
text-color: @foreground;
}