From 91058138b46c4b3cad8f4a3c4294840625534ce9 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Fri, 24 May 2024 07:24:17 +0000 Subject: Use png instead of jpeg for screenshots --- .config/river/scripts/screenshot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.config/river/scripts') diff --git a/.config/river/scripts/screenshot.sh b/.config/river/scripts/screenshot.sh index 088c1b1..68576c7 100755 --- a/.config/river/scripts/screenshot.sh +++ b/.config/river/scripts/screenshot.sh @@ -3,7 +3,7 @@ case $1 in selected-region) # Take a screenshot of the selected region - grim -t jpeg -g "$(slurp)" ~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg + grim -t png -g "$(slurp)" ~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).png ;; save-to-clipboard) # Take a screenshot and save it to the clipboard @@ -13,6 +13,6 @@ case $1 in # Take a screenshot of the currently focused output and save it into screenshots output="$(lswt -j | jq -c '.[] | select(.activated) | .outputs' | awk -F'["" ]' '{print $2}')" - grim -o $output -t jpeg ~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg + grim -o $output -t png ~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).png ;; esac -- cgit v1.2.3