From 8be840e69ce7c6a41fdf80abb1f9c1b55ec24cf4 Mon Sep 17 00:00:00 2001 From: Jason Nader Date: Sun, 24 May 2020 14:04:00 +0900 Subject: [PATCH] fish/screenshot: enable crosshairs for slurp Use local build until this is merged: https://github.com/emersion/slurp/pull/56 --- fish/.config/fish/functions/screenshot.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fish/.config/fish/functions/screenshot.fish b/fish/.config/fish/functions/screenshot.fish index 8daa254..3779b3f 100644 --- a/fish/.config/fish/functions/screenshot.fish +++ b/fish/.config/fish/functions/screenshot.fish @@ -54,7 +54,8 @@ function screenshot --description="When using `sway`: Takes screenshot, uploads set FILENAME (string join "" $SCREENSHOT_DIR "/" (date +%Y%m%d_%Hh%Mm%Ss) ".png") if test $WM = sway - slurp -d | grim -g - $FILENAME + # build locally until https://github.com/emersion/slurp/pull/56 is merged + slurp -x -d | grim -g - $FILENAME else if test $WM = i3 set FILENAME (scrot $FILENAME -q 100 -a -e 'echo $f') end