From 94ea7a8cd41b5b0cebf2606f4319ca5050e80520 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 5 Jul 2020 21:03:38 -0400 Subject: Add some new stuff --- urxvt-change-font | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 urxvt-change-font (limited to 'urxvt-change-font') diff --git a/urxvt-change-font b/urxvt-change-font new file mode 100755 index 0000000..6556a2d --- /dev/null +++ b/urxvt-change-font @@ -0,0 +1,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}" -- cgit v1.2.3