zaneyos/config/rofi.nix

92 lines
1.7 KiB
Nix
Raw Normal View History

2024-01-15 18:33:36 +01:00
{ pkgs, config, ... }:
{
home.file.".config/rofi/config.rasi".text = ''
@theme "/dev/null"
* {
2024-01-15 19:47:20 +01:00
bg: #${config.colorScheme.colors.base00};
2024-01-15 18:33:36 +01:00
background-color: @bg;
}
configuration {
show-icons: true;
icon-theme: "Papirus";
location: 0;
2024-01-15 19:47:20 +01:00
font: "Ubuntu 12";
2024-01-15 18:33:36 +01:00
display-drun: "Launch:";
}
window {
width: 35%;
transparency: "real";
orientation: vertical;
2024-01-15 19:47:20 +01:00
border-color: #${config.colorScheme.colors.base0B};
2024-01-15 19:45:39 +01:00
border-radius: 5px;
2024-01-15 18:33:36 +01:00
}
mainbox {
children: [inputbar, listview];
}
// ELEMENT
// -----------------------------------
element {
padding: 4 12;
2024-01-15 19:47:20 +01:00
text-color: #${config.colorScheme.colors.base05};
2024-01-15 18:33:36 +01:00
}
element selected {
2024-01-15 19:47:20 +01:00
text-color: #${config.colorScheme.colors.base01};
background-color: #${config.colorScheme.colors.base0B};
2024-01-15 18:33:36 +01:00
}
element-text {
background-color: inherit;
text-color: inherit;
}
element-icon {
size: 16 px;
background-color: inherit;
padding: 0 6 0 0;
alignment: vertical;
}
listview {
columns: 2;
lines: 9;
padding: 8 0;
fixed-height: true;
fixed-columns: true;
fixed-lines: true;
border: 0 10 6 10;
}
// INPUT BAR
//------------------------------------------------
entry {
2024-01-15 19:47:20 +01:00
text-color: #${config.colorScheme.colors.base05};
2024-01-15 18:33:36 +01:00
padding: 10 10 0 0;
margin: 0 -2 0 0;
}
inputbar {
background-image: url("~/.config/rofi/rofi.jpg", width);
padding: 180 0 0;
margin: 0 0 0 0;
}
prompt {
2024-01-15 19:47:20 +01:00
text-color: #${config.colorScheme.colors.base0D};
2024-01-15 18:33:36 +01:00
padding: 10 6 0 10;
margin: 0 -2 0 0;
}
'';
2024-01-15 18:41:59 +01:00
home.file.".config/rofi/rofi.jpg".source = ./files/rofi.jpg;
2024-01-15 18:33:36 +01:00
}