3 # ufont: Change urxvt font.
4 # Usage: ufont <size> [<font>]
6 # Example: ufont 11 "xft:DejaVu Sans Mono"
10 font="${1:-xft:DejaVu Sans Mono}"
11 if [ -z "$size" ]; then
12 echo >&2 "Usage: ufont <size> [<font>]"
16 escape="$font:pixelsize=$size"
17 [ -n "$TMUX" ] && tmux_prefix="\033Ptmux;\033"
18 echo -en "$tmux_prefix\033]710;$escape\007$tmux_prefix\033]711;$escape\007"