Skip to content

Commit

Permalink
Include cursor in screeshots
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaskallup committed Feb 22, 2024
1 parent b3f6c1d commit 8674d9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/screenshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ rm -f $screenshot_output
if [ "$1" = "select" ]; then
# Let me select screen to screenshot
slurp_output=$(slurp -c '#ff0000ff' -ro)
grim -g "$slurp_output" - > $screenshot_output
grim -cg "$slurp_output" - > $screenshot_output
else
# Take current active screen
active_screen=$(tac ~/.dwl_info | grep -m1 "selmon 1" | sed -e 's/ .*//')
grim -o $active_screen - > $screenshot_output
grim -co $active_screen - > $screenshot_output
fi

if [ -s "$screenshot_output" ]; then
Expand Down

0 comments on commit 8674d9e

Please sign in to comment.