Add still to freeze screenshot region

This commit is contained in:
aloslider committed 2026-08-02 04:44:18 +03:00
1 parent 75f9ba1579
commit 382b6a6cb0
2 files changed
+4 -8

No files matched your search

+1
View File
@@ -44,6 +44,7 @@ packages:
- nixfmt
- prizrak-box-bin
- python-xmlformatter
- still
- tree-sitter-cli-github-bin
go:
- github.com/davidbudnick/redis-tui
@@ -11,18 +11,13 @@ MODE="${1:-region}"
case "${MODE}" in
region)
grim -g "$(slurp -d)" -t ppm -
;;
window)
niri msg action screenshot-window
sleep 0.5
wl-paste --type image/png
still -p -c 'grim -g "$(slurp -d)" -t ppm -'
;;
monitor-focused)
grim -t ppm -o "$(niri msg --json focused-output | jq --raw-output .name)" -
still -p -c 'grim -t ppm -o "$(niri msg --json focused-output | jq --raw-output .name)" -'
;;
monitor-all)
grim -t ppm -
still -p -c 'grim -t ppm -'
;;
*)
echo "'${MODE}' is not a supported, aborting!" >&2