diff options
Diffstat (limited to 'browser')
-rwxr-xr-x | browser | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -8,15 +8,26 @@ if [[ $1 != "" ]]; then fi fi +# scale on highres displays if [[ $(dpi) -gt 120 ]]; then SCALE=1.4 else SCALE=1.0 fi +# maybe use firefox distributed in binary bin=$(which firefox) if [[ $? -eq 1 ]]; then bin=$(which firefox-bin) fi -TZ=UTC GDK_SCALE=$SCALE GDK_DPI_SCALE=$SCALE /usr/bin/env $bin $@ +# for mutt copy the file before it disappears +case "$1" in + *tmp/pks/mutt/*) + cp $1 $1.html + TZ=UTC GDK_SCALE=$SCALE GDK_DPI_SCALE=$SCALE /usr/bin/env $bin -new-tab $1.html + ;; + *) + TZ=UTC GDK_SCALE=$SCALE GDK_DPI_SCALE=$SCALE /usr/bin/env $bin $@ + ;; +esac |