Hyprshot icon indicating copy to clipboard operation
Hyprshot copied to clipboard

-r requires a value

Open ApproachingApathy opened this issue 5 months ago • 0 comments

According to help -r should be a shortcut to --raw. However hyprshot complains the -r needs a value while --raw works as expected.

Running hyprshot with -r.

➜ hyprshot -m region -r
getopt: option requires an argument -- 'r'

The help output suggests that -r should work the same as --raw

➜ hyprshot --help
Usage: hyprshot [options ..] [-m [mode] ..] -- [command]

Hyprshot is an utility to easily take screenshot in Hyprland using your mouse.

It allows taking screenshots of windows, regions and monitors which are saved to a folder of your choosing and copied to your clipboard.

Examples:
  capture a window                      `hyprshot -m window`
  capture active window to clipboard    `hyprshot -m window -m active --clipboard-only`
  capture selected monitor              `hyprshot -m output -m DP-1`

Options:
  -h, --help                show help message
  -m, --mode                one of: output, window, region, active, OUTPUT_NAME
  -o, --output-folder       directory in which to save screenshot
  -f, --filename            the file name of the resulting screenshot
  -z, --freeze              freeze the screen on initialization
  -d, --debug               print debug information
  -s, --silent              don't send notification when screenshot is saved
  -r, --raw                 output raw image data to stdout
  -t, --notif-timeout       notification timeout in milliseconds (default 5000)
  --clipboard-only          copy screenshot to clipboard and don't save image in disk
  -- [command]              open screenshot with a command of your choosing. e.g. hyprshot -m window -- mirage

Modes:
  output        take screenshot of an entire monitor
  window        take screenshot of an open window
  region        take screenshot of selected region
  active        take screenshot of active window|output
                (you must use --mode again with the intended selection)
  OUTPUT_NAME   take screenshot of output with OUTPUT_NAME
                (you must use --mode again with the intended selection)
                (you can get this from `hyprctl monitors`)

ApproachingApathy avatar Sep 10 '24 20:09 ApproachingApathy