zaneyos/config/home/rofi.nix

132 lines
2.6 KiB
Nix
Raw Normal View History

2024-01-15 18:33:36 +01:00
{ pkgs, config, ... }:
let
palette = config.colorScheme.palette;
in {
2024-01-15 18:33:36 +01:00
home.file.".config/rofi/config.rasi".text = ''
@theme "/dev/null"
* {
2024-02-08 08:25:40 +01:00
bg: #${palette.base00};
background-color: @bg;
2024-01-15 18:33:36 +01:00
}
configuration {
2024-02-08 08:25:40 +01:00
modi: "run,filebrowser,drun";
show-icons: true;
icon-theme: "Papirus";
location: 0;
font: "JetBrains Nerd Font 16";
drun-display-format: "{icon} {name}";
display-drun: " Apps ";
display-run: " Run ";
display-filebrowser: " File ";
2024-01-15 18:33:36 +01:00
}
window {
2024-02-08 08:25:40 +01:00
width: 45%;
transparency: "real";
orientation: vertical;
border: 2px ;
border-color: #${palette.base0F};
border-radius: 10px;
2024-01-15 18:33:36 +01:00
}
mainbox {
2024-02-08 08:25:40 +01:00
children: [ inputbar, listview, mode-switcher ];
2024-01-15 18:33:36 +01:00
}
// ELEMENT
// -----------------------------------
element {
2024-02-08 08:25:40 +01:00
padding: 8 14;
text-color: #${palette.base05};
border-radius: 5px;
2024-01-15 18:33:36 +01:00
}
element selected {
2024-02-08 08:25:40 +01:00
text-color: #${palette.base01};
background-color: #${palette.base0C};
2024-01-15 18:33:36 +01:00
}
element-text {
2024-02-08 08:25:40 +01:00
background-color: inherit;
text-color: inherit;
2024-01-15 18:33:36 +01:00
}
element-icon {
2024-02-08 08:25:40 +01:00
size: 24 px;
background-color: inherit;
padding: 0 6 0 0;
alignment: vertical;
2024-01-15 18:33:36 +01:00
}
listview {
2024-02-08 08:25:40 +01:00
columns: 2;
lines: 9;
padding: 8 0;
fixed-height: true;
fixed-columns: true;
fixed-lines: true;
border: 0 10 6 10;
2024-01-15 18:33:36 +01:00
}
// INPUT BAR
//------------------------------------------------
entry {
2024-02-08 08:25:40 +01:00
text-color: #${palette.base05};
padding: 10 10 0 0;
margin: 0 -2 0 0;
2024-01-15 18:33:36 +01:00
}
inputbar {
2024-02-08 08:25:40 +01:00
background-image: url("~/.config/rofi/rofi.jpg", width);
padding: 180 0 0;
margin: 0 0 0 0;
2024-01-15 18:33:36 +01:00
}
prompt {
2024-02-08 08:25:40 +01:00
text-color: #${palette.base0D};
padding: 10 6 0 10;
margin: 0 -2 0 0;
}
// Mode Switcher
//------------------------------------------------
mode-switcher {
border-color: #${palette.base0F};
spacing: 0;
}
button {
padding: 10px;
background-color: @bg;
text-color: #${palette.base01};
vertical-align: 0.5;
horizontal-align: 0.5;
}
button selected {
background-color: @bg;
text-color: #${palette.base0F};
}
message {
background-color: @bg;
margin: 2px;
padding: 2px;
border-radius: 5px;
}
textbox {
padding: 6px;
margin: 20px 0px 0px 20px;
text-color: #${palette.base0F};
background-color: @bg;
2024-01-15 18:33:36 +01:00
}
'';
}