home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit fc0ab8828fe840bb1c05fe705f8a4e209016156a
parent 0329f6d5eded1a870a37fcda8c64eabe2b3ee5e9
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Wed,  3 Oct 2018 21:46:59 +0200

scripts: fix shot, add shotf (fullscreen)

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mpkgs/scripts/bin/shot | 2+-
Apkgs/scripts/bin/shotf | 10++++++++++
2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/pkgs/scripts/bin/shot b/pkgs/scripts/bin/shot @@ -3,7 +3,7 @@ maim -g $(slop; sleep ${2:-0}) | { case $1 in %c) to='clipboard'; xclip -selection clipboard -t image/png ;; - %d) to=~/desk/Screenshot_$(date +'%Y-%m-%d_%H:%M:%S').png; cat > "$to" ;; + %d) to=~/desktop/pictures/screenshots/$(hostname)/$(date +'%Y-%m-%d-%H%M%S').png; cat > "$to" ;; *) to=$1; cat > "$to" ;; esac notify-send -i accessories-screenshot 'Screenshot Taken' "Saved to $to" diff --git a/pkgs/scripts/bin/shotf b/pkgs/scripts/bin/shotf @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +maim | { + 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" ;; + *) to=$1; cat > "$to" ;; + esac + notify-send -i accessories-screenshot 'Screenshot Taken' "Saved to $to" +}