#!/bin/sh # Read default from X resources DFLT="$( xrdb -query |grep '^URxvt\*font'|cut -f2 )" DFLT="${DFLT:-xft:Deja Vu Sans Mono:size=13}" NEWFONT="$@" FONT=${NEWFONT:-$DFLT} echo "Setting urxvt font to '$FONT'" printf '\e]710;%s\007' "${1:-$FONT}"