user/rofi: stole a theme

This commit is contained in:
LavaDesu 2021-11-18 22:56:27 +07:00
parent 910a1c5538
commit 428a9d66c3
Signed by: cilly
GPG key ID: 6500251E087653C9
2 changed files with 91 additions and 4 deletions

View file

@ -1,8 +1,7 @@
{ config, ... }: {
{ config, inputs, ... }: {
programs.rofi = {
enable = true;
font = "Open Sans 10";
terminal = "kitty";
#theme = builtins.fetchUrl {};
theme = "theme";
};
xdg.configFile."rofi/theme.rasi".source = ../../res/theme.rasi;
}

88
res/theme.rasi Normal file
View file

@ -0,0 +1,88 @@
// Stolen from https://github.com/DanisDGK thanks uwu
configuration {
modi: "drun,run";
terminal: "kitty";
display-drun: "";
drun-display-format: "{name}";
sidebar-mode: false;
show-icons: true;
}
@theme "/dev/null"
* {
bg: #12131b;
fg: #f3f6ff;
button: #ae58c8;
background-color: @bg;
text-color: @fg;
}
window {
transparency: "real";
width: 40%;
border-radius: 20px;
}
prompt { enabled: false; }
entry {
placeholder: "Search";
placeholder-color: #f3f6ff90;
transparency: "real";
expand: true;
font: "Noto Sans 32";
padding: 1.5%;
border-radius: 8px;
background-color: transparent;
}
inputbar {
children: [ prompt, entry ];
expand: false;
border-radius: 0px 0 8px 8px;
padding: 30px 30px 15px 30px;
}
listview {
columns: 1;
lines: 4;
cycle: false;
dynamic: true;
layout: vertical;
padding: 30px 30px 15px 30px;
}
mainbox { children: [ inputbar, listview ]; }
element {
orientation: horizontal;
padding: 1.5% 0% 1.5% 0%;
border-radius: 8px;
}
element-text {
expand: true;
vertical-align: 0.5;
horizontal-align: 0.97;
margin: 0% 3% 0.5% 3%;
background-color: inherit;
text-color: inherit;
font: "Noto Sans 12";
}
element-icon {
vertical-align: 0.5;
horizonal-align: 0.03;
margin: 0.5% 3% 0.5% 3%;
background-color: inherit;
text-color: inherit;
size: 54;
}
element selected {
background-color: @button;
border-radius: 8px;
}