mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

urxvtcdfont (285B)


      1 #!/bin/bash
      2 
      3 DB=$HOME/config/private/urxvtfontsize
      4 HOST=$(hostname | cut -d'.' -f1)
      5 ARGS=""
      6 
      7 if [ -f $DB ]
      8 then
      9   if grep "^$HOST\s" "$DB" > /dev/null
     10   then 
     11     SIZE=$(grep "^$HOST\s" "$DB" | awk '{print $2}')
     12     ARGS="-fn xft:Terminus:size=$SIZE"
     13   fi
     14 fi
     15 
     16 exec urxvtcd $ARGS "$@"
     17