Skip to content

Commit

Permalink
small config fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
eshrh committed Feb 10, 2021
1 parent 47aeea9 commit f100cc8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ames.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ screenshot() {
local path=$(mktemp /tmp/maim-screenshot.XXXXXX.png)

maim $path -g $geom
ffmpeg -i $path "/tmp/$(basename $path | cut -d "." -f-2).webp" -hide_banner -loglevel error
ffmpeg -i $path "/tmp/$(basename $path | cut -d "." -f-2).$IMAGE_FORMAT" -hide_banner -loglevel error
rm $path
path="/tmp/$(basename $path | cut -d "." -f-2).webp"
path="/tmp/$(basename $path | cut -d "." -f-2).$IMAGE_FORMAT"
echo "$geom" > /tmp/previous-maim-screenshot
store_file "$path"
update_img $(basename $path)
Expand All @@ -136,9 +136,9 @@ again() {
local path=$(mktemp /tmp/maim-screenshot.XXXXXX.png)
if [[ -f /tmp/previous-maim-screenshot ]]; then
maim $path -g $(cat /tmp/previous-maim-screenshot)
ffmpeg -i $path "/tmp/$(basename $path | cut -d "." -f-2).webp" -hide_banner -loglevel error
ffmpeg -i $path "/tmp/$(basename $path | cut -d "." -f-2).$IMAGE_FORMAT" -hide_banner -loglevel error
rm $path
path="/tmp/$(basename $path | cut -d "." -f-2).webp"
path="/tmp/$(basename $path | cut -d "." -f-2).$IMAGE_FORMAT"

store_file "$path"
get_last_id
Expand Down

0 comments on commit f100cc8

Please sign in to comment.