modules/desktop: add "open in blackbox" action

This commit is contained in:
Max Headroom 2023-05-02 22:16:29 +02:00
parent 00cb4a1cfe
commit dca28a6b57
2 changed files with 19 additions and 0 deletions

View file

@ -9,6 +9,7 @@ in {
./nixpak-tricks.nix
./hidden-apps.nix
./helix-desktop.nix
./open-in-blackbox.nix
];
services.xserver = {

View file

@ -0,0 +1,18 @@
{ pkgs, ... }:
let
openInBlackBox = pkgs.makeDesktopItem {
name = "net.privatevoid.OpenInBlackBox";
desktopName = "Black Box";
noDisplay = true;
mimeTypes = [ "inode/directory" ];
icon = "com.raggesilver.BlackBox";
startupNotify = false;
tryExec = "blackbox";
exec = "blackbox -w %f";
};
in
{
environment.systemPackages = [ openInBlackBox ];
}