niksos/homes/jacek/gui/anyrun.nix

101 lines
2.4 KiB
Nix
Raw Normal View History

{
config,
inputs,
pkgs,
...
}: {
programs.anyrun = {
enable = true;
config = {
plugins = with inputs.anyrun.packages.${pkgs.system}; [
applications
dictionary
kidex
rink
symbols
translate
];
hideIcons = false;
ignoreExclusiveZones = false;
layer = "overlay";
hidePluginInfo = false;
closeOnClick = true;
showResultsImmediately = true;
maxEntries = 50;
};
extraCss = ''
window {
background: transparent;
}
#match,
#entry,
#plugin,
#main {
background: transparent;
}
#match.activatable {
padding: 6px;
border-radius: 10px;
color: white;
margin-top: 4px;
}
#match.activatable:selected {
background: red;
color: black;
}
#match-title, #match-desc {
color: inherit;
}
#entry {
color: white;
box-shadow: none;
border-radius: 10px;
border: 2px solid red;
}
box#main {
background: rgba(36, 39, 58, 0.7);
border-radius: 16px;
padding: 8px;
box-shadow: 0pz 2px 33px -5px rgba(0, 0, 0, 0.5);
}
row:first-child {
margin-top: 6px;
}
'';
extraConfigFiles = {
"applications.ron".text = ''
Config(
desktop_actions: true,
terminal: Some("foot"),
max_entries: 30,
)
'';
"dictionary.ron".text = ''
Config(
prefix: ":d",
)
'';
"symbols.ron".text = ''
Config(
prefix: ":u",
)
'';
"translate.ron".text = ''
Config(
prefix: ":",
language_delimiter: ">",
)
'';
};
};
}