2024-05-22 14:29:45 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
inputs,
|
2024-07-21 20:14:19 +02:00
|
|
|
inputs',
|
2024-05-22 14:29:45 +02:00
|
|
|
...
|
2024-07-21 20:14:19 +02:00
|
|
|
}: let
|
2024-07-07 13:23:38 +02:00
|
|
|
inherit (config.modules.other.system) username;
|
2024-07-21 15:11:55 +02:00
|
|
|
cfg = config.modules.usrEnv.programs.launchers.anyrun;
|
2024-07-21 20:14:19 +02:00
|
|
|
inherit (lib) mkIf;
|
2024-05-05 22:12:18 +02:00
|
|
|
in {
|
|
|
|
config = mkIf cfg.enable {
|
2024-05-15 00:14:59 +02:00
|
|
|
home-manager.users.${username} = {
|
2024-05-22 14:29:45 +02:00
|
|
|
imports = [inputs.anyrun.homeManagerModules.default];
|
2024-05-05 22:12:18 +02:00
|
|
|
|
2024-05-15 00:14:59 +02:00
|
|
|
programs.anyrun = {
|
|
|
|
enable = true;
|
|
|
|
config = {
|
2024-07-21 20:14:19 +02:00
|
|
|
plugins = with inputs'.anyrun.packages; [
|
2024-05-15 00:14:59 +02:00
|
|
|
applications
|
|
|
|
dictionary
|
|
|
|
shell
|
2024-07-07 13:23:38 +02:00
|
|
|
websearch
|
2024-05-15 00:14:59 +02:00
|
|
|
];
|
|
|
|
hideIcons = false;
|
|
|
|
ignoreExclusiveZones = false;
|
|
|
|
layer = "overlay";
|
|
|
|
hidePluginInfo = true;
|
|
|
|
closeOnClick = true;
|
|
|
|
showResultsImmediately = true;
|
2024-07-13 22:08:21 +02:00
|
|
|
maxEntries = 10;
|
2024-05-15 00:14:59 +02:00
|
|
|
width.fraction = 0.3;
|
|
|
|
y.absolute = 15;
|
|
|
|
};
|
2024-07-13 22:08:21 +02:00
|
|
|
extraCss = builtins.readFile ./style.css;
|
2024-05-15 00:14:59 +02:00
|
|
|
|
2024-07-13 22:08:21 +02:00
|
|
|
extraConfigFiles = {
|
|
|
|
"applications.ron".text = ''
|
|
|
|
Config(
|
|
|
|
max_entries: 10,
|
|
|
|
terminal: Some("foot"),
|
2024-07-21 20:14:19 +02:00
|
|
|
desktop_actions: false
|
2024-07-13 22:08:21 +02:00
|
|
|
)
|
|
|
|
'';
|
2024-08-07 23:31:14 +02:00
|
|
|
|
2024-07-13 22:08:21 +02:00
|
|
|
"websearch.ron".text = ''
|
|
|
|
Config(
|
|
|
|
prefix: "?",
|
|
|
|
engines: [DuckDuckGo]
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
};
|
2024-05-05 22:12:18 +02:00
|
|
|
};
|
2024-05-15 00:14:59 +02:00
|
|
|
};
|
2024-05-05 22:12:18 +02:00
|
|
|
};
|
|
|
|
}
|