modules/desktop: add "open in blackbox" action
This commit is contained in:
parent
00cb4a1cfe
commit
dca28a6b57
2 changed files with 19 additions and 0 deletions
|
@ -9,6 +9,7 @@ in {
|
||||||
./nixpak-tricks.nix
|
./nixpak-tricks.nix
|
||||||
./hidden-apps.nix
|
./hidden-apps.nix
|
||||||
./helix-desktop.nix
|
./helix-desktop.nix
|
||||||
|
./open-in-blackbox.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
|
|
18
modules/desktop/open-in-blackbox.nix
Normal file
18
modules/desktop/open-in-blackbox.nix
Normal 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 ];
|
||||||
|
}
|
Loading…
Reference in a new issue