2013-04-24 16:58:31 +02:00
|
|
|
#!/bin/bash
|
2014-01-07 16:40:55 +01:00
|
|
|
URXVT_FONT_NAME="Terminus"
|
|
|
|
URXVT_FONT_SIZE=8
|
2014-01-06 14:49:03 +01:00
|
|
|
URXVT_FONT_INCREMENT=1
|
|
|
|
|
2013-04-24 16:58:31 +02:00
|
|
|
function urxvt_set_font
|
|
|
|
{
|
2014-01-06 14:49:03 +01:00
|
|
|
# set font
|
2013-04-24 16:58:31 +02:00
|
|
|
printf '\33]50;%s\007' "xft:$1"
|
|
|
|
}
|
|
|
|
|
|
|
|
function urxvt_set_title
|
|
|
|
{
|
|
|
|
# set window title
|
|
|
|
printf '\33]2;%s\007' "$1"
|
|
|
|
}
|
2014-01-06 14:49:03 +01:00
|
|
|
|
|
|
|
# Quick functions
|
|
|
|
|
|
|
|
zp() {
|
|
|
|
URXVT_FONT_SIZE=$(echo "$URXVT_FONT_SIZE+$URXVT_FONT_INCREMENT" | bc )
|
|
|
|
urxvt_set_font "${URXVT_FONT_NAME}:size=${URXVT_FONT_SIZE}"
|
|
|
|
}
|
|
|
|
|
|
|
|
zm() {
|
|
|
|
URXVT_FONT_SIZE=$(echo "$URXVT_FONT_SIZE-$URXVT_FONT_INCREMENT" | bc )
|
|
|
|
urxvt_set_font "${URXVT_FONT_NAME}:size=${URXVT_FONT_SIZE}"
|
|
|
|
}
|