2023-10-05 10:09:04 +00:00
|
|
|
/**
|
2024-01-01 08:54:32 -01:00
|
|
|
* Copyright (C) 2020-2024 Aditya Shakya <adi1090x@gmail.com>
|
2023-10-05 10:09:04 +00:00
|
|
|
**/
|
|
|
|
|
|
|
|
/*****----- Configuration -----*****/
|
|
|
|
configuration {
|
|
|
|
modi: "drun";
|
|
|
|
show-icons: true;
|
|
|
|
display-drun: "";
|
|
|
|
drun-display-format: "{name}";
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****----- Global Properties -----*****/
|
|
|
|
@import "shared/colors.rasi"
|
|
|
|
@import "shared/fonts.rasi"
|
|
|
|
|
|
|
|
/*****----- Main Window -----*****/
|
|
|
|
window {
|
|
|
|
transparency: "real";
|
|
|
|
location: center;
|
|
|
|
anchor: center;
|
|
|
|
fullscreen: false;
|
|
|
|
width: 700px;
|
|
|
|
x-offset: 0px;
|
|
|
|
y-offset: 0px;
|
|
|
|
|
|
|
|
enabled: true;
|
|
|
|
margin: 0px;
|
|
|
|
padding: 0px;
|
|
|
|
border: 0px solid;
|
|
|
|
border-radius: 12px;
|
|
|
|
border-color: @selected;
|
|
|
|
background-color: @background;
|
|
|
|
cursor: "default";
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****----- Main Box -----*****/
|
|
|
|
mainbox {
|
|
|
|
enabled: true;
|
|
|
|
spacing: 10px;
|
|
|
|
margin: 0px;
|
|
|
|
padding: 20px;
|
|
|
|
border: 0px solid;
|
|
|
|
border-radius: 0px 0px 0px 0px;
|
|
|
|
border-color: @selected;
|
|
|
|
background-color: transparent;
|
|
|
|
children: [ "inputbar", "listview" ];
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****----- Inputbar -----*****/
|
|
|
|
inputbar {
|
|
|
|
enabled: true;
|
|
|
|
spacing: 8px;
|
|
|
|
margin: 0px;
|
|
|
|
padding: 12px;
|
|
|
|
border: 0px solid;
|
|
|
|
border-radius: 12px;
|
|
|
|
border-color: @selected;
|
|
|
|
background-color: @background-alt;
|
|
|
|
text-color: @foreground;
|
|
|
|
children: [ "prompt", "entry" ];
|
|
|
|
}
|
|
|
|
|
|
|
|
prompt {
|
|
|
|
enabled: true;
|
|
|
|
background-color: inherit;
|
|
|
|
text-color: inherit;
|
|
|
|
}
|
|
|
|
textbox-prompt-colon {
|
|
|
|
enabled: true;
|
|
|
|
expand: false;
|
|
|
|
str: "::";
|
|
|
|
background-color: inherit;
|
|
|
|
text-color: inherit;
|
|
|
|
}
|
|
|
|
entry {
|
|
|
|
enabled: true;
|
|
|
|
background-color: inherit;
|
|
|
|
text-color: inherit;
|
|
|
|
cursor: text;
|
|
|
|
placeholder: "Search...";
|
|
|
|
placeholder-color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****----- Listview -----*****/
|
|
|
|
listview {
|
|
|
|
enabled: true;
|
|
|
|
columns: 2;
|
|
|
|
lines: 8;
|
|
|
|
cycle: true;
|
|
|
|
dynamic: true;
|
|
|
|
scrollbar: false;
|
|
|
|
layout: vertical;
|
|
|
|
reverse: false;
|
|
|
|
fixed-height: true;
|
|
|
|
fixed-columns: true;
|
|
|
|
|
|
|
|
spacing: 5px;
|
|
|
|
margin: 0px;
|
|
|
|
padding: 0px;
|
|
|
|
border: 0px solid;
|
|
|
|
border-radius: 0px;
|
|
|
|
border-color: @selected;
|
|
|
|
background-color: transparent;
|
|
|
|
text-color: @foreground;
|
|
|
|
cursor: "default";
|
|
|
|
}
|
|
|
|
scrollbar {
|
|
|
|
handle-width: 5px ;
|
|
|
|
handle-color: @selected;
|
|
|
|
border-radius: 0px;
|
|
|
|
background-color: @background-alt;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****----- Elements -----*****/
|
|
|
|
element {
|
|
|
|
enabled: true;
|
|
|
|
spacing: 10px;
|
|
|
|
margin: 0px;
|
|
|
|
padding: 5px;
|
|
|
|
border: 0px solid;
|
|
|
|
border-radius: 12px;
|
|
|
|
border-color: @selected;
|
|
|
|
background-color: transparent;
|
|
|
|
text-color: @foreground;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
element normal.normal {
|
|
|
|
background-color: @background;
|
|
|
|
text-color: @foreground;
|
|
|
|
}
|
|
|
|
element selected.normal {
|
|
|
|
background-color: @selected;
|
|
|
|
text-color: @background;
|
|
|
|
}
|
|
|
|
element-icon {
|
|
|
|
background-color: transparent;
|
|
|
|
text-color: inherit;
|
|
|
|
size: 32px;
|
|
|
|
cursor: inherit;
|
|
|
|
}
|
|
|
|
element-text {
|
|
|
|
background-color: transparent;
|
|
|
|
text-color: inherit;
|
|
|
|
highlight: inherit;
|
|
|
|
cursor: inherit;
|
|
|
|
vertical-align: 0.5;
|
|
|
|
horizontal-align: 0.0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****----- Message -----*****/
|
|
|
|
error-message {
|
|
|
|
padding: 15px;
|
|
|
|
border: 2px solid;
|
|
|
|
border-radius: 12px;
|
|
|
|
border-color: @selected;
|
|
|
|
background-color: @background;
|
|
|
|
text-color: @foreground;
|
|
|
|
}
|
|
|
|
textbox {
|
|
|
|
background-color: @background;
|
|
|
|
text-color: @foreground;
|
|
|
|
vertical-align: 0.5;
|
|
|
|
horizontal-align: 0.0;
|
|
|
|
highlight: none;
|
|
|
|
}
|