feat(config): rofi
This commit is contained in:
parent
29d50556c1
commit
81df2a9c4a
2 changed files with 165 additions and 0 deletions
155
config/rofi/config.rasi
Normal file
155
config/rofi/config.rasi
Normal file
|
@ -0,0 +1,155 @@
|
|||
// Config //
|
||||
configuration {
|
||||
modi: "drun,filebrowser,window";
|
||||
show-icons: true;
|
||||
display-drun: " ";
|
||||
display-run: " ";
|
||||
display-filebrowser: " ";
|
||||
display-window: " ";
|
||||
drun-display-format: "{name}";
|
||||
window-format: "{w}{t}";
|
||||
font: "JetBrainsMono 10";
|
||||
icon-theme: "custom";
|
||||
}
|
||||
|
||||
@theme "~/.config/rofi/theme.rasi"
|
||||
|
||||
// Main //
|
||||
window {
|
||||
height: 12em;
|
||||
width: 38em;
|
||||
transparency: "screenshot";
|
||||
fullscreen: false;
|
||||
enabled: true;
|
||||
cursor: "default";
|
||||
spacing: 0em;
|
||||
padding: 0em;
|
||||
border-color: @main-br;
|
||||
background-color: @main-bg;
|
||||
}
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 0em;
|
||||
padding: 0em;
|
||||
orientation: vertical;
|
||||
children: [ "listbox" , "inputmode" ];
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
// Lists //
|
||||
listbox {
|
||||
padding: 0em;
|
||||
spacing: 0em;
|
||||
orientation: horizontal;
|
||||
children: [ "listview" ];
|
||||
background-color: transparent;
|
||||
}
|
||||
listview {
|
||||
padding: 0.5em;
|
||||
spacing: 0.2em;
|
||||
enabled: true;
|
||||
columns: 5;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
scrollbar: false;
|
||||
reverse: false;
|
||||
fixed-height: true;
|
||||
fixed-columns: true;
|
||||
cursor: "default";
|
||||
background-color: @main-bg;
|
||||
text-color: @main-fg;
|
||||
}
|
||||
|
||||
|
||||
// Inputs //
|
||||
inputmode {
|
||||
padding: 0em;
|
||||
spacing: 0em;
|
||||
orientation: horizontal;
|
||||
children: [ "inputbar" , "mode-switcher" ];
|
||||
background-color: transparent;
|
||||
}
|
||||
inputbar {
|
||||
enabled: true;
|
||||
width: 24em;
|
||||
padding: 0em;
|
||||
spacing: 0em;
|
||||
padding: 1.5em 1em 1.5em 2.5em;
|
||||
children: [ "entry" ];
|
||||
background-color: transparent;
|
||||
}
|
||||
entry {
|
||||
vertical-align: 0.5;
|
||||
border-radius: 3em;
|
||||
enabled: true;
|
||||
spacing: 0em;
|
||||
padding: 1em;
|
||||
text-color: @main-fg;
|
||||
background-color: @main-bg;
|
||||
}
|
||||
|
||||
|
||||
// Modes //
|
||||
mode-switcher {
|
||||
width: 13em;
|
||||
orientation: horizontal;
|
||||
enabled: true;
|
||||
padding: 1.5em 2.5em 1.5em 0em;
|
||||
spacing: 1em;
|
||||
background-color: transparent;
|
||||
}
|
||||
button {
|
||||
cursor: pointer;
|
||||
padding: 0em;
|
||||
border-radius: 3em;
|
||||
background-color: @main-bg;
|
||||
text-color: @main-fg;
|
||||
}
|
||||
button selected {
|
||||
background-color: @main-fg;
|
||||
text-color: @main-bg;
|
||||
}
|
||||
|
||||
|
||||
// Elements //
|
||||
element {
|
||||
orientation: vertical;
|
||||
enabled: true;
|
||||
spacing: 0.2em;
|
||||
padding: 0.5em;
|
||||
cursor: pointer;
|
||||
background-color: transparent;
|
||||
text-color: @main-fg;
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: @select-bg;
|
||||
text-color: @select-fg;
|
||||
}
|
||||
element-icon {
|
||||
size: 2.5em;
|
||||
cursor: inherit;
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
}
|
||||
element-text {
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
cursor: inherit;
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
}
|
||||
|
||||
// Error message //
|
||||
error-message {
|
||||
text-color: @main-fg;
|
||||
background-color: @main-bg;
|
||||
text-transform: capitalize;
|
||||
children: [ "textbox" ];
|
||||
}
|
||||
|
||||
textbox {
|
||||
text-color: inherit;
|
||||
background-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
10
config/rofi/theme.rasi
Normal file
10
config/rofi/theme.rasi
Normal file
|
@ -0,0 +1,10 @@
|
|||
* {
|
||||
main-bg: #2F3E46;
|
||||
main-fg: #CAD2C5;
|
||||
main-br: #cba6f7ff;
|
||||
main-ex: #f5e0dcff;
|
||||
select-bg: #84A98C;
|
||||
select-fg: #11111bff;
|
||||
separatorcolor: transparent;
|
||||
border-color: transparent;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue