informatique:bureautique:urxvt

Fonctions de zoom pour urxvt

Dans son .bashrc on peut imaginer quelque chose comme ça :

URXVT_SIZE=12
URXVT_PROGRESS_SIZE=3

zoom () {
 printf "'\\33]50;%s\\007'" "xft:DejaVu Sans Mono:pixelsize=$1"
}

zp() {
      URXVT_SIZE=$(echo "$URXVT_SIZE+$URXVT_PROGRESS_SIZE" | bc )
      zoom $URXVT_SIZE
}

zm() {
      URXVT_SIZE=$(echo "$URXVT_SIZE-$URXVT_PROGRESS_SIZE" | bc )
      zoom $URXVT_SIZE
}

On recharge sa conf

. .bahsrc

Puis on appel les fonctions

zoom 50

ou

zm

ou

zp
  • informatique/bureautique/urxvt.txt
  • Dernière modification : 2013/11/04 10:31
  • de nico