Skip to content

screenshot cli for macOS allowing to screenshot a single window only

Notifications You must be signed in to change notification settings

mischnic/screenshot-native

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

screenshot

Take a screenshot of a specific window on macOS.

Inspired by https://github.com/thismachinechills/screenshot, but rewritten to be a native swift app.

Usage: screenshot <app> [options]

Take a screenshot of the specified <app>lication

Options:
  -f, --format <value>      Output format (bmp, gif, jpeg, jpeg2000, png, tiff) [Default: png]
  -o, --out-file <value>    Output file [Required]
  -s, --shadow              Capture the shadow as well
  -t, --title <value>       Window title

Dev

Run

swift run screenshot

Build

swift build --configuration=release -Xswiftc -static-stdlib

Generate Xcode project

swift package generate-xcodeproj --xcconfig-overrides=Config.xcconfig

About

screenshot cli for macOS allowing to screenshot a single window only

Resources

Stars

Watchers

Forks

Packages

No packages published