mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
refactor: move screenshot to scripts
This commit is contained in:
parent
d45f6a9359
commit
1a899dc894
4 changed files with 21 additions and 25 deletions
|
|
@ -19,7 +19,6 @@
|
|||
./greetd.nix
|
||||
./niri.nix
|
||||
./qt.nix
|
||||
./screenshot.nix
|
||||
./gtk/default.nix
|
||||
./dms/default.nix
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
screenshotPkg = pkgs.writeShellScriptBin "screenshot" ''
|
||||
AREA=$(${lib.getExe pkgs.slurp} -d)
|
||||
${lib.getExe pkgs.grim} -t ppm -g "$AREA" - | ${lib.getExe pkgs.satty} -f - --initial-tool=arrow --early-exit --copy-command=${pkgs.wl-clipboard}/bin/wl-copy --action-on-enter="save-to-clipboard" --disable-notifications
|
||||
'';
|
||||
in {
|
||||
config = lib.mkIf config.fireproof.desktop.enable {
|
||||
environment.systemPackages = [
|
||||
screenshotPkg
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue