From 89135d08cb5f7f3dbe8b312d459c55dedd16acfd Mon Sep 17 00:00:00 2001 From: Colin Date: Sun, 12 May 2024 19:46:51 +0000 Subject: [PATCH] rofi: file browser: include an entry to open the app launcher --- hosts/common/programs/rofi/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hosts/common/programs/rofi/default.nix b/hosts/common/programs/rofi/default.nix index 23e49432..7d21290e 100644 --- a/hosts/common/programs/rofi/default.nix +++ b/hosts/common/programs/rofi/default.nix @@ -48,6 +48,13 @@ let exec = "rofi -combi-modes filebrowser -show"; desktopName = "rofi filebrowser"; }) + (pkgs.makeDesktopItem { + name = "rofi-applications"; + exec = "rofi -combi-modes drun -show"; + desktopName = "rofi applications"; + mimeTypes = [ "application/x-desktop" ]; + noDisplay = true; + }) ]; }); # rofi-emoji = pkgs.rofi-emoji.override { @@ -85,6 +92,7 @@ in sandbox.whitelistWayland = true; sandbox.extraHomePaths = [ ".local/share/applications" #< to locate .desktop files + "Apps" #< provide a means to transition from the filebrowser to the app launcher "Books/local" "Books/servo" "Music" @@ -109,6 +117,7 @@ in ]; fs.".config/rofi/config.rasi".symlink.target = ./config.rasi; + fs."Apps".symlink.target = ".local/share/applications/rofi-applications.desktop"; persist.byStore.cryptClearOnBoot = [ # this gets us a few things: # - file browser remembers its last directory