From e54f91bcd90fbcf46b5df9aac33ce8b84321e7ba Mon Sep 17 00:00:00 2001 From: blake Date: Mon, 3 Nov 2025 21:34:29 -0600 Subject: [PATCH] fix tofi-drun --- users/blake/dots/desktop/hypr/default.nix | 2 +- users/blake/dots/desktop/stylix/default.nix | 2 +- users/blake/dots/desktop/tofi/default.nix | 12 ++++++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/users/blake/dots/desktop/hypr/default.nix b/users/blake/dots/desktop/hypr/default.nix index 0f4c4bc..24c8c06 100644 --- a/users/blake/dots/desktop/hypr/default.nix +++ b/users/blake/dots/desktop/hypr/default.nix @@ -119,7 +119,7 @@ in { # programs "$mainMod, Return, exec, kitty" "$mainMod, E, exec, kitty lf" - "$mainMod, R, exec, tofi-drun --drun-launch=true --prompt-text=\"launch:\"" + "$mainMod, R, exec, tofi-drun --drun-launch=true --prompt-text=\"launch: \"" "$mainMod, B, exec, librewolf" "$mainMod, G, exec, lutris" "$mainMod, M, exec, thunderbird" diff --git a/users/blake/dots/desktop/stylix/default.nix b/users/blake/dots/desktop/stylix/default.nix index b101e86..e24e979 100644 --- a/users/blake/dots/desktop/stylix/default.nix +++ b/users/blake/dots/desktop/stylix/default.nix @@ -25,7 +25,7 @@ in { cursor = { package = pkgs.posy-cursors; name = "Posy_Cursor_Black"; - size = 128; + size = 48; }; fonts = { sizes = { diff --git a/users/blake/dots/desktop/tofi/default.nix b/users/blake/dots/desktop/tofi/default.nix index e14e71f..c92a856 100644 --- a/users/blake/dots/desktop/tofi/default.nix +++ b/users/blake/dots/desktop/tofi/default.nix @@ -36,5 +36,17 @@ in { padding-right = 0; }; }; + + # this clears the tofi-drun cache on every rebuild + # if this isn't present then new programs will not + # appear in the list when using as app launcher + home.activation = { + # https://github.com/philj56/tofi/issues/115#issuecomment-1701748297 + regenerateTofiCache = lib.hm.dag.entryAfter [ "writeBoundary" ] '' + tofi_cache=${config.xdg.cacheHome}/tofi-drun + [[ -f "$tofi_cache" ]] && rm "$tofi_cache" + ''; + }; + }; }