75 lines
1.5 KiB
Nix
75 lines
1.5 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.local.gui;
|
|
in {
|
|
config = mkIf cfg.enable {
|
|
programs = {
|
|
wofi = {
|
|
enable = true;
|
|
settings = {
|
|
prompt = "";
|
|
width = "25%";
|
|
height = "30%";
|
|
};
|
|
style = ''
|
|
window {
|
|
background-color: rgb(0, 0, 0);
|
|
color: #eaeaea;
|
|
font-family: monospace;
|
|
font-size: 12px;
|
|
border: none;
|
|
border-radius: 0;
|
|
padding: 0;
|
|
width: 50%; /* half screen width */
|
|
}
|
|
|
|
/* Search input */
|
|
#input {
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
color: #ffffff;
|
|
padding: 4px 6px;
|
|
border: none;
|
|
border-radius: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Results list container */
|
|
#inner-box {
|
|
background-color: transparent;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
/* Entries */
|
|
#entry {
|
|
padding: 2px 6px;
|
|
margin: 0;
|
|
border-radius: 0;
|
|
background-color: transparent;
|
|
color: #cccccc;
|
|
}
|
|
|
|
/* Text inside entries */
|
|
#text {
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Scrollbar */
|
|
scrollbar {
|
|
background: transparent;
|
|
}
|
|
scrollbar slider {
|
|
background: rgba(255, 255, 255, 0.15);
|
|
}
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|