Files
sway/.config/sway/scripts/screenshot_window.sh
BluishHumility 678c3a1fcb feat(screenshots): add swappy, add screenshot scripts and keybindings
* Add [swappy](https://github.com/jtheoof/swappy) for handling screenshots. It's a nice Flameshot-like tool that allows adding simple annotations (drawing circles, arrows, text, etc) to screenshots and can save to file or pass to the clipboard.
* Add keybindings for "snip", screenshot window, and screenshot current display.
* Add scripts for the screenshot window and screenshot current display functions.
* `packages-repository.txt` has also been alphabetically sorted to make it easier to work with.
2024-07-29 22:00:22 -04:00

4 lines
158 B
Bash
Executable File

#!/bin/bash
grim -g "$(swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | slurp)" - | swappy -f -