3 # usize: Set urxvt (or terminal which understands the same escape sequences)
5 # Usage: usize <width> [<height>]
6 # Usage: usize x<width_multiplier> [x<height_multiplier>]
7 # Usage: usize X<multiplier>
16 echo "Usage: usize $width $height"
20 2) width=$1; height=$2;;
23 # Allow, eg, x2 for width or height.
24 if [ ! "${width#X}" = "$width" ]; then
28 if [ ! "${width#x}" = "$width" ]; then
29 # Add a column for dividers.
31 width=$((width-1+(87*width)))
33 if [ ! "${height#x}" = "$height" ]; then
37 [ $height -gt 1 ] && height=$((height+2))
40 [ -n "$TMUX" ] && tmux_prefix="\033Ptmux;\033"
41 echo -en "$tmux_prefix\033[8;$height;$width;t"