commit 3fd02f79b83d975928322a87ee75fcee7850d3f5 parent 356cd01bd5ce71cd74ed6e7ab01a792d0cb337b9 Author: Antoine Amarilli <a3nm@a3nm.net> Date: Tue, 31 Jan 2017 22:32:30 +0100 urxvtcdfont Diffstat:
urxvtcdfont | | | 17 | +++++++++++++++++ |
1 file changed, 17 insertions(+), 0 deletions(-)
diff --git a/urxvtcdfont b/urxvtcdfont @@ -0,0 +1,17 @@ +#!/bin/bash + +DB=$HOME/config/private/urxvtfontsize +HOST=$(hostname | cut -d'.' -f1) +ARGS="" + +if [ -f $DB ] +then + if grep "^$HOST\s" "$DB" > /dev/null + then + SIZE=$(grep "^$HOST\s" "$DB" | awk '{print $2}') + ARGS="-fn xft:Terminus:size=$SIZE" + fi +fi + +exec urxvtcd $ARGS "$@" +