mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
refactor: desktop legacy module
This commit is contained in:
parent
5f56c011ab
commit
d463f4d1af
31 changed files with 630 additions and 577 deletions
|
|
@ -1,14 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: 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 {
|
||||
environment.systemPackages = [
|
||||
screenshotPkg
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue