#!/bin/sh

dim=$(xdpyinfo | grep dimensions)
h_dim=${dim%%x*}
h_dim=${h_dim##* }
v_dim=${dim#*x}
v_dim=${v_dim%% *}

exec links2 -g -mode $((h_dim*5/6))x$((v_dim*7/8)) -menu-font-size 22 -font-italic "/usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS_Italic.ttf" -font-italic-bold "/usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS_Bold_Italic.ttf" -html-user-font-size 24 -codepage utf-8 -save-url-history 1 -html-g-background-color 0xeeeeee "$@"
