Skip to content

Commit

Permalink
fish/screenshot: enable crosshairs for slurp
Browse files Browse the repository at this point in the history
Use local build until this is merged: emersion/slurp#56
  • Loading branch information
ammgws committed May 24, 2020
1 parent 5d4f315 commit 8bfcb35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fish/.config/fish/functions/screenshot.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8bfcb35

Please sign in to comment.