You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

12 lines
321 B

  1. #!/bin/bash
  2. #get image resolution
  3. resolution=$(identify $1 | awk '{print $3}')
  4. IFS='x' # x is set as delimiter
  5. read -ra ADDR <<< "$resolution"
  6. width=${ADDR[0]}
  7. height=${ADDR[1]}
  8. ### Display Image / offset with mutt bar
  9. echo -e "2;3;\n0;1;0;42;$((width));$((height));0;0;0;0;$1\n4;\n3;" | /usr/lib/w3m/w3mimgdisplay &