Skip to content

Commit

Permalink
[docs] update manpage(7) with cli changes
Browse files Browse the repository at this point in the history
  • Loading branch information
CheerfulPianissimo committed May 23, 2024
1 parent 8f69d0d commit 1cd5ab9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/wayshot.7.scd
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ Wayshot - Screenshot tool for compositors implementing zwlr_screencopy_v1 such a

# SYNOPSIS

*wayshot* [_options_]
*wayshot* [_options_] [_output_]

# REGION SELECTION
wayshot -s "$(slurp)"
wayshot -s

# FULLSCREEN
# CAPTURE FULLSCREEN

wayshot

# CUSTOM FILE PATH AND EXTENSION

wayshot -f ../screenshot.png --extension ppm
wayshot ../screenshot.png --extension ppm

# SCREENSHOT AND COPY TO CLIPBOARD

wayshot --stdout -e jpeg | wl-copy
wayshot --clipboard

# SCREENSHOT A PARTICULAR DISPLAY

Expand All @@ -30,15 +30,15 @@ wayshot -o eDP-1

# PICK A HEX COLOR CODE, USING IMAGEMAGICk

wayshot -s "$(slurp)" --stdout | convert - -format '%[pixel:p{0,0}]' txt:-|grep -E "#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})" -o
wayshot -s - | convert - -format '%[pixel:p{0,0}]' txt:-|grep -E "#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})" -o

# PICK A HEX COLOR CODE WITHOUT USING IMAGEMAGICK

wayshot -s "$(slurp -p)" --stdout -e ppm | tail -c 3 | od -An -tuC | xargs printf '#%02X%02X%02X\n'
wayshot -s - --encoding ppm | tail -c 3 | od -An -tuC | xargs printf '#%02X%02X%02X\n'

# PICK A COLOR, USING IMAGEMAGICK

wayshot -s "$(slurp -p)" --stdout | convert - -format '%[pixel:p{0,0}]' txt:-
wayshot -s - | convert - -format '%[pixel:p{0,0}]' txt:-

# AUTHORS

Expand Down

0 comments on commit 1cd5ab9

Please sign in to comment.