sane-screenshot: port to sane.programs
This commit is contained in:
parent
063d99dd73
commit
a7bd831ad8
|
@ -834,6 +834,8 @@ in
|
|||
superTux.sandbox.whitelistWayland = true;
|
||||
superTux.persist.byStore.plaintext = [ ".local/share/supertux2" ];
|
||||
|
||||
swappy = {};
|
||||
|
||||
tcpdump.sandbox.method = "landlock";
|
||||
tcpdump.sandbox.net = "all";
|
||||
tcpdump.sandbox.autodetectCliPaths = "existingFileOrParent";
|
||||
|
|
|
@ -83,6 +83,7 @@
|
|||
./ripgrep.nix
|
||||
./rofi
|
||||
./sane-input-handler
|
||||
./sane-screenshot.nix
|
||||
./sane-scripts.nix
|
||||
./sfeed.nix
|
||||
./signal-desktop.nix
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
{ ... }:
|
||||
{
|
||||
sane.programs.sane-screenshot = {
|
||||
sandbox.method = "bwrap";
|
||||
sandbox.whitelistWayland = true;
|
||||
sandbox.whitelistDbus = [ "user" ]; #< to send notifications
|
||||
suggestedPrograms = [
|
||||
"libnotify"
|
||||
"swappy"
|
||||
"sway-contrib.grimshot"
|
||||
"util-linux"
|
||||
"wl-clipboard"
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1,6 +1,16 @@
|
|||
{ static-nix-shell }:
|
||||
{ static-nix-shell, copyDesktopItems, makeDesktopItem }:
|
||||
static-nix-shell.mkBash {
|
||||
pname = "sane-screenshot";
|
||||
srcRoot = ./.;
|
||||
pkgs = [ "libnotify" "swappy" "sway-contrib.grimshot" "util-linux" "wl-clipboard" ];
|
||||
nativeBuildInputs = [
|
||||
copyDesktopItems
|
||||
];
|
||||
desktopItems = [
|
||||
(makeDesktopItem {
|
||||
name = "sane-screenshot";
|
||||
exec = "sane-screenshot";
|
||||
desktopName = "interactive screenshotter";
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue