From b9b69e87bfde6b6491746171fa2deca05d24788e Mon Sep 17 00:00:00 2001 From: Doloro1978 Date: Sat, 25 Oct 2025 12:27:04 +0100 Subject: [PATCH] qol(hyprland@modules): replaced runner with anyrun --- nix/modules/hyprland/runner.nix | 43 ++++++++++++++++++++++++++++++- nix/modules/hyprland/settings.nix | 2 +- 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/nix/modules/hyprland/runner.nix b/nix/modules/hyprland/runner.nix index dc6ce95..b2554d2 100644 --- a/nix/modules/hyprland/runner.nix +++ b/nix/modules/hyprland/runner.nix @@ -3,5 +3,46 @@ let in { - programs.wofi.enable = true; + programs.anyrun = { + enable = true; + config = { + x = { + fraction = 0.5; + }; + y = { + fraction = 0.3; + }; + width = { + fraction = 0.3; + }; + hideIcons = false; + ignoreExclusiveZones = false; + layer = "overlay"; + hidePluginInfo = false; + closeOnClick = false; + showResultsImmediately = false; + maxEntries = null; + + plugins = [ + "${pkgs.anyrun}/lib/libapplications.so" + "${pkgs.anyrun}/lib/libsymbols.so" + ]; + }; + + # Inline comments are supported for language injection into + # multi-line strings with Treesitter! (Depends on your editor) + extraCss = /* css */ '' + .some_class { + background: red; + } + ''; + + extraConfigFiles."some-plugin.ron".text = '' + Config( + // for any other plugin + // this file will be put in ~/.config/anyrun/some-plugin.ron + // refer to docs of xdg.configFile for available options + ) + ''; + }; } diff --git a/nix/modules/hyprland/settings.nix b/nix/modules/hyprland/settings.nix index aa5bce0..69e8414 100644 --- a/nix/modules/hyprland/settings.nix +++ b/nix/modules/hyprland/settings.nix @@ -92,7 +92,7 @@ "$mainMod, M, exit" "$mainMod, E, exec, $fileManager" "$mainMod, V, togglefloating," - "$mainMod, R, exec, wofi --show drun" + "$mainMod, R, exec, anyrun" "$mainMod, P, pseudo, # dwindle" "$mainMod, J, togglesplit, # dwindle" "$mainMod, left, movefocus, l"