You are not logged in.

#1 2010-12-09 16:45:33

nXqd
Member
Registered: 2010-07-01
Posts: 173
Website

text zoom in / out in urxvt

I really want to zoom in/out text in urxvt ? Are there any way to do this ?


When you live for a strong purpose, then hard work isn't an option. It's a necessity. - Steve Pavlina
dotFiles

Offline

#2 2010-12-09 19:57:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: text zoom in / out in urxvt

nXqd wrote:

I really want to zoom in/out text in urxvt ? Are there any way to do this ?

You can change the font size, if that's what you mean.

Offline

#3 2010-12-10 02:07:44

nXqd
Member
Registered: 2010-07-01
Posts: 173
Website

Re: text zoom in / out in urxvt

karol wrote:
nXqd wrote:

I really want to zoom in/out text in urxvt ? Are there any way to do this ?

You can change the font size, if that's what you mean.

I mean that I can change it dynamically like you do in Chrome/Firefox : Ctrl + , Ctrl - and Ctrl 0.


When you live for a strong purpose, then hard work isn't an option. It's a necessity. - Steve Pavlina
dotFiles

Offline

#4 2010-12-10 02:16:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: text zoom in / out in urxvt

nXqd wrote:

I mean that I can change it dynamically like you do in Chrome/Firefox : Ctrl + , Ctrl - and Ctrl 0.

I don't think so, but maybe you can create some keybindings to do that.

printf '\33]50;%s\007' xft:terminus:pixelsize=$1

should do the trick, but you need to pick the fontsize (and another font if you don't use Terminus).

Last edited by karol (2010-12-10 02:19:30)

Offline

#5 2010-12-10 05:38:34

nXqd
Member
Registered: 2010-07-01
Posts: 173
Website

Re: text zoom in / out in urxvt

\33]50;%s\007

How can I find a code like this ?
And where should I put that code in ?
Thanks.


When you live for a strong purpose, then hard work isn't an option. It's a necessity. - Steve Pavlina
dotFiles

Offline

#6 2010-12-10 05:55:31

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

Re: text zoom in / out in urxvt

See https://github.com/trapd00r/pickyfont

Then just add some aliases/bindings.

alias pf='pickyfont ter7'
alias f="pickyfont monte1 normal && pickyfont monte2 bold && pickyfont pro1 italic"
alias q='cd $HOME/devel/pickyfont'
alias 2='pickyfont -f speedy2'
alias 3='pickyfont -f progsole'
alias j='pickyfont -f terminus1'
alias jj='pickyfont -f terminus2'
alias hh='pickyfont -f fixed7'
alias k='pickyfont -f proggy1'
alias kk='pickyfont -f clea3'
alias ll='pickyfont -f profont2'
alias lll='pickyfont -f profont4'

Offline

#7 2010-12-10 15:22:09

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: text zoom in / out in urxvt

nXqd wrote:
\33]50;%s\007

How can I find a code like this ?
And where should I put that code in ?
Thanks.

These are escape sequences but I don't have any definite guide for them - I just found this one some time ago.
Just put it in your commandline / use aliases. I use the tabbed urxvt and this changes fontsize in all the tabs (of this urxvt instance). I don't know of any simple equivalent of Ctrl + / - / 0 for urxvt.

Offline

#8 2010-12-10 23:41:14

badger
Member
From: Melb
Registered: 2004-07-21
Posts: 76

Re: text zoom in / out in urxvt

There is also an existing thread on this topic here: https://bbs.archlinux.org/viewtopic.php?id=44121

Offline

Board footer

Powered by FluxBB