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