diff options
Diffstat (limited to 'pkgs/by-name/sc/screenshot_temporary')
-rw-r--r-- | pkgs/by-name/sc/screenshot_temporary/package.nix | 17 | ||||
-rwxr-xr-x | pkgs/by-name/sc/screenshot_temporary/screenshot_temporary.sh | 8 |
2 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/by-name/sc/screenshot_temporary/package.nix b/pkgs/by-name/sc/screenshot_temporary/package.nix new file mode 100644 index 00000000..f3739b01 --- /dev/null +++ b/pkgs/by-name/sc/screenshot_temporary/package.nix @@ -0,0 +1,17 @@ +{ + sysLib, + grim, + slurp, + wl-clipboard, +}: +sysLib.writeShellScript { + name = "screenshot_temporary"; + src = ./screenshot_temporary.sh; + generateCompletions = false; + keepPath = false; + dependencies = [ + grim + slurp + wl-clipboard + ]; +} diff --git a/pkgs/by-name/sc/screenshot_temporary/screenshot_temporary.sh b/pkgs/by-name/sc/screenshot_temporary/screenshot_temporary.sh new file mode 100755 index 00000000..8968ca79 --- /dev/null +++ b/pkgs/by-name/sc/screenshot_temporary/screenshot_temporary.sh @@ -0,0 +1,8 @@ +#! /usr/bin/env dash + +# shellcheck source=/dev/null +SHELL_LIBRARY_VERSION="2.1.2" . %SHELL_LIBRARY_PATH + +grim -g "$(slurp)" | wl-copy + +# vim: ft=sh |