Skip to content

Commit

Permalink
try to get some sort of console image support (not working- ugh)
Browse files Browse the repository at this point in the history
  • Loading branch information
atoponce committed Aug 1, 2016
1 parent 6c57853 commit 1a5d1e6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .mutt/.mailcap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
image/*; ~/.mutt/muttimage.sh %s ; copiousoutput
11 changes: 11 additions & 0 deletions .mutt/muttimage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

#### Determine size of Terminal
height=$(stty size | awk 'BEGIN {FS = " "} {print $1}')
width=$(stty size | awk 'BEGIN {FS = " "} {print $2}')

### Display Image / offset with mutt bar
echo -e "2;3;\n0;1;210;20;\
$((width*7-250));\
$((height*14-100));\
0;0;0;0;$1\n4;\n3;" | /usr/lib/w3m/w3mimgdisplay &

0 comments on commit 1a5d1e6

Please sign in to comment.