100 lines
2.3 KiB
Nix
100 lines
2.3 KiB
Nix
|
{
|
||
|
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 = null;
|
||
|
};
|
||
|
|
||
|
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"),
|
||
|
)
|
||
|
'';
|
||
|
"dictionary.ron".text = ''
|
||
|
Config(
|
||
|
prefix: ":d",
|
||
|
)
|
||
|
'';
|
||
|
"symbols.ron".text = ''
|
||
|
Config(
|
||
|
prefix: ":u",
|
||
|
)
|
||
|
'';
|
||
|
"translate.ron".text = ''
|
||
|
Config(
|
||
|
prefix: ":",
|
||
|
language_delimiter: ">",
|
||
|
)
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
}
|