aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/grimshot
Commit message (Collapse)AuthorAge
* treewide: fix typosLibravatar Torstein Husebø2020-02-18
|
* Change wordingLibravatar Cyril Levis2020-02-04
|
* Add the possibility to capture only one screen if several screens are use.Libravatar Cyril Levis2020-02-04
|
* grimshot: fix branching on command exit statusLibravatar Manuel Mendez2019-11-17
| | | | | | | | | | | | | | | | | | The previous behavior was incorrect because `if` was checking the return status of the `[` command which was never going to be an error. `[` seems to only return an error if no args are provided. This was basically a useless use of `[` anyway since it was just meant as a straight interpretation of command exit, something that `if` can do itself. Compare: ```sh [ ]; echo ?=$? [ /bin/false ]; echo ?=$? if [ /bin/false ]; then echo this is the unintended bug; fi if /bin/false; then echo this will not be printed; fi ```
* Grimshot: a helper for screenshots within swayLibravatar Lauri2019-10-16
Usage: grimshot copy|save win|screen|area [FILE] Troubleshoot: grimshot check Requirements: - `grim`: screenshot utility for wayland - `slurp`: to select an area - `swaymsg`: to read properties of current window - `wl-copy`: clipboard utility - `jq`: json uliity to parse swaymsg output - `notify-send`: to show notifications Those are needed to be installed, if unsure, run `grimshot check` Examples: `grimshot copy win` - to copy current window `grimshot save area` - to select area and save it to default file (Pictures/Grimshot-$datetime.png) `grimshot save screen ~/screenshot.png` - to save screenshot under ~/screenshot.png `grimshot` - usage `grimshot check` - verify if tools are installed