From 425c1d9b385968f4bc19102dd17a5aa7e8e86ca3 Mon Sep 17 00:00:00 2001 From: Doloro1978 Date: Sat, 1 Nov 2025 14:05:57 +0000 Subject: [PATCH] qol(hyprland): changed runner --- nix/modules/hyprland/runner.nix | 54 +++++++------------------------ nix/modules/hyprland/settings.nix | 2 +- 2 files changed, 12 insertions(+), 44 deletions(-) diff --git a/nix/modules/hyprland/runner.nix b/nix/modules/hyprland/runner.nix index b2554d2..6950d98 100644 --- a/nix/modules/hyprland/runner.nix +++ b/nix/modules/hyprland/runner.nix @@ -1,48 +1,16 @@ { inputs, pkgs, ... }: -let - -in { - 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" - ]; + home.packages = [ + pkgs.walker + ]; + systemd.user.services.walker-deamon = { + Install = { + WantedBy = [ "hyprland-session.target" ]; + }; + Service = { + ExecStart = "${pkgs.writeShellScript "watch-store" '' + walker --gapplication-service + ''}"; }; - - # 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 dab22a0..4c06ece 100644 --- a/nix/modules/hyprland/settings.nix +++ b/nix/modules/hyprland/settings.nix @@ -103,7 +103,7 @@ "$mainMod, M, exit" "$mainMod, E, exec, $fileManager" "$mainMod, V, togglefloating," - "$mainMod, R, exec, anyrun" + "$mainMod, R, exec, walker" "$mainMod, P, pseudo, # dwindle" "$mainMod, J, togglesplit, # dwindle" "$mainMod, left, movefocus, l"