From 9296b7731bc22c8d983ee4931dade6448727afa2 Mon Sep 17 00:00:00 2001 From: Colin Date: Fri, 1 Mar 2024 18:07:52 +0000 Subject: [PATCH] rofi: add a .desktop file to rofi-snippets --- hosts/common/programs/rofi/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hosts/common/programs/rofi/default.nix b/hosts/common/programs/rofi/default.nix index 278764a1..1cdf36b4 100644 --- a/hosts/common/programs/rofi/default.nix +++ b/hosts/common/programs/rofi/default.nix @@ -129,6 +129,16 @@ in "rofi" "wtype" ]; + nativeBuildInputs = [ + pkgs.copyDesktopItems + ]; + desktopItems = [ + (pkgs.makeDesktopItem { + name = "rofi-snippets"; + exec = "rofi-snippets"; + desktopName = "rofi macro to insert common texts"; + }) + ]; }; # if i could remove the sed, then maybe possible to not sandbox. sandbox.method = "bwrap";