refactor(anyrun): Now using anixrun plugin

Thanks to the nix rewrite of the config
This commit is contained in:
GaspardCulis 2024-10-01 08:45:13 +02:00
parent d50993c00f
commit c1c601da96

View file

@ -1,9 +1,38 @@
{pkgs, ...}: {
home.file = {
".config/anyrun".source = ../anyrun;
};
home.packages = [
pkgs.anyrun
{
pkgs,
inputs,
...
}: {
imports = [
inputs.anyrun.homeManagerModules.anyrun # Import the anyrun home-manager module
];
programs.anyrun = {
enable = true;
config = {
plugins = [
inputs.anyrun.packages.${pkgs.system}.applications
inputs.anyrun.packages.${pkgs.system}.symbols
inputs.anyrun.packages.${pkgs.system}.websearch
inputs.anyrun.packages.${pkgs.system}.rink
inputs.anyrun.packages.${pkgs.system}.shell
inputs.anixrun.packages.${pkgs.system}.default
];
x = {fraction = 0.5;};
y = {fraction = 0.3;};
width = {fraction = 0.3;};
hideIcons = false;
ignoreExclusiveZones = false;
layer = "top";
hidePluginInfo = true;
closeOnClick = true;
showResultsImmediately = false;
maxEntries = null;
};
extraCss = builtins.readFile ./style.css;
extraConfigFiles."applications.ron".text = builtins.readFile ./applications.ron;
extraConfigFiles."symbols.ron".text = builtins.readFile ./symbols.ron;
extraConfigFiles."websearch.ron".text = builtins.readFile ./websearch.ron;
};
}