commit ea35cfb59ca6e4bf8c1fe378357d29b34d39165c
parent ad6e0d8fdd1de81c8be606d372259facc4e04ffa
Author: Vincent Demeester <vincent@sbr.pm>
Date: Mon, 4 Jan 2021 11:13:10 +0100
packages: fix shotf
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nix/packages/my/scripts/bin/shotf b/nix/packages/my/scripts/bin/shotf
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-maim -d1 | {
+maim -d | {
case $1 in
%c) to='clipboard'; xclip -selection clipboard -t image/png ;;
%d) to=~/desktop/pictures/screenshots/$(hostname)/$(date +'%Y-%m-%d-%H%M%S').png; cat > "$to" ;;