aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2024-05-24 07:24:17 +0000
committerJustine Smithies <justine@smithies.me.uk>2024-05-24 07:24:17 +0000
commit91058138b46c4b3cad8f4a3c4294840625534ce9 (patch)
tree137e9366c1a04e23a57802dbf8d37e1e9560b7dd
parent1906f5ac82eb087d704fae16bad3c6b77bf124ab (diff)
Use png instead of jpeg for screenshots
-rwxr-xr-x.config/river/scripts/screenshot.sh4
1 files changed, 2 insertions, 2 deletions
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