← All posts tagged urxvt

kusayu
Linux япростооставлюэтоздесь Bash code urxvt
Смена размера шрифта в rxvt-unicode "на лету"

#!/bin/bash
#~/bin/fsize


if [ $# -ne 1 ] && [ $# -ne 2 ]
then
        echo "Usage: `basename $0` <truetype_font> <size>"
        echo "   or: `basename $0` -fn <xfont>"
        exit 1
else 
        if [ $# -eq 1 ]; then
                printf '\33]50;%s%d\007' "xft:Terminus:antialiasing=true:size="  $1
                exit 0
        elif [ "$1" = "-fn" ]; then
                printf '\33]50;%s%d\007' "xft:$2:antialiasing=true"
                exit 0
        else 
                printf '\33]50;%s%d\007' "xft:$1:antialiasing=true:size=" $2
                exit 0
        fi
fi