Sophie Hirn 5 years ago
parent
commit
dd0f7e0b34
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      .beacon-hooks/10-feh

+ 3
- 0
.beacon-hooks/10-feh View File

@@ -12,6 +12,9 @@ if [ -e "bg-wide.png" ]; then
echo "Converting ..."
sz=`xdpyinfo | grep dimensions | sed 's:^[^0-9]*\([0-9][0-9]*x[0-9][0-9]*\).*$:\1:'`
convert bg-wide.png -resize "$sz"^ -gravity center -extent "$sz" .bg-wide-scaled.png
convert bg-wide.png -crop 1920x1080+0+0 .bg-wide1.png
convert bg-wide.png -crop 1920x1080+1920+0 .bg-wide2.png
convert bg-wide.png -crop 1920x1080+3840+0 .bg-wide3.png
md5sum bg-wide.png >.bg-wide.md5
fi


Loading…
Cancel
Save