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>]
15 echo "Usage: usize $width $height"
19 2) width=$1; height=$2;;
22 # Allow, eg, x2 for width or height.
23 if [ ! "${width#x}" = "${width}" ]; then
24 # Add a column for dividers.
26 width=$((width-1+(87*width)))
28 if [ ! "${height#x}" = "${height}" ]; then
32 [ $height -gt 1 ] && height=$((height+2))
35 [ -n "$TMUX" ] && tmux_prefix="\033Ptmux;\033"
36 echo -e "$tmux_prefix\033[8;$height;$width;t"