blob: 6556a2d2bf21d36bda0413c43a608b9117468990 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/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}"
|