#!/bin/bash -i # # usize: Set urxvt (or terminal which understands the same escape sequences) # size. # Usage: usize [] # width=${COLUMNS:-80} height=${LINES:-24} tmux_prefix= case $# in 0) echo "Usage: usize $width $height" exit 1 ;; 1) width=$1;; 2) width=$1; height=$2;; esac [ -n "$TMUX" ] && tmux_prefix="\033Ptmux;\033" echo -e "$tmux_prefix\033[8;$height;$width;t" exit 0