sane-screenshot: port to sane.programs
This commit is contained in:
@@ -834,6 +834,8 @@ in
|
|||||||
superTux.sandbox.whitelistWayland = true;
|
superTux.sandbox.whitelistWayland = true;
|
||||||
superTux.persist.byStore.plaintext = [ ".local/share/supertux2" ];
|
superTux.persist.byStore.plaintext = [ ".local/share/supertux2" ];
|
||||||
|
|
||||||
|
swappy = {};
|
||||||
|
|
||||||
tcpdump.sandbox.method = "landlock";
|
tcpdump.sandbox.method = "landlock";
|
||||||
tcpdump.sandbox.net = "all";
|
tcpdump.sandbox.net = "all";
|
||||||
tcpdump.sandbox.autodetectCliPaths = "existingFileOrParent";
|
tcpdump.sandbox.autodetectCliPaths = "existingFileOrParent";
|
||||||
|
@@ -83,6 +83,7 @@
|
|||||||
./ripgrep.nix
|
./ripgrep.nix
|
||||||
./rofi
|
./rofi
|
||||||
./sane-input-handler
|
./sane-input-handler
|
||||||
|
./sane-screenshot.nix
|
||||||
./sane-scripts.nix
|
./sane-scripts.nix
|
||||||
./sfeed.nix
|
./sfeed.nix
|
||||||
./signal-desktop.nix
|
./signal-desktop.nix
|
||||||
|
15
hosts/common/programs/sane-screenshot.nix
Normal file
15
hosts/common/programs/sane-screenshot.nix
Normal file
@@ -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 {
|
static-nix-shell.mkBash {
|
||||||
pname = "sane-screenshot";
|
pname = "sane-screenshot";
|
||||||
srcRoot = ./.;
|
srcRoot = ./.;
|
||||||
pkgs = [ "libnotify" "swappy" "sway-contrib.grimshot" "util-linux" "wl-clipboard" ];
|
pkgs = [ "libnotify" "swappy" "sway-contrib.grimshot" "util-linux" "wl-clipboard" ];
|
||||||
|
nativeBuildInputs = [
|
||||||
|
copyDesktopItems
|
||||||
|
];
|
||||||
|
desktopItems = [
|
||||||
|
(makeDesktopItem {
|
||||||
|
name = "sane-screenshot";
|
||||||
|
exec = "sane-screenshot";
|
||||||
|
desktopName = "interactive screenshotter";
|
||||||
|
})
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user