Simple library that allows for simple method of asking for screenshots from various Linux/BSD desktops
- Works with some Wayland desktops
- Plasma
- GNOME
- Sway
- Works with all X11 desktops (with scrot installed as fallback)
- spectacle (works with KDE Plasma, possibly LXQT)
- gnome-screenshot (works with GNOME, Unity, Budgie, Cinnamon, etc)
- scrot (works with anything with an X server, except WSL or Bash for Ubuntu for Windows)
Uses feh if available to take a screenshot of the full screen, open it, and select an area of that screenshot to freeze the screen
Checks '$XDG_SESSION_TYPE' for either Wayland or X11, and checks for available screenshotting applications.
- file will be the path and filename you want for your screenshot, in png format
- Takes an area screenshot, meaning you can select an area of your screen to take a screenshot of
- If 'freeze' is true, then it will use feh to freeze the screen in place to take an area screenshot
- file will be the path and filename you want for your screenshot, in png format
- Takes an window screenshot, meaning the currently used window will be screenshotted
- file will be the path and filename you want for your screenshot, in png format
- Takes a screenshot of an entire screen(s)
- Experimental Sway support
- Experimental macOS Support
- A typo
- feh is no longer a requirement for "area" screenshots, was used to "freeze" the screen
- Made enum ScreenshotKind public
- First version (created for ShareXin)