finish font selection task
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
7f674b4857
commit
00464ccfe0
2 changed files with 43 additions and 0 deletions
14
blog/urxvt-change-font-dynamically.mdwn
Normal file
14
blog/urxvt-change-font-dynamically.mdwn
Normal file
|
@ -0,0 +1,14 @@
|
|||
[[!meta title="How to change the font in urxt (rxvt-unicode) dynamically"]]
|
||||
|
||||
After [[I had a look at some fonts for terminal emulators|published-xorg-terminal-emulator-fonts]],
|
||||
I chose some of the fonts to be used for my terminal.
|
||||
[rxvt-unicode](http://software.schmorp.de/pkg/rxvt-unicode.html) has excellent support for
|
||||
dynamic font changes, as described
|
||||
in the [urxvt faq](http://pod.tst.eu/http://cvs.schmorp.de/rxvt-unicode/doc/rxvt.7.pod#Rendering_Font_amp_Look_and_Feel_Iss).
|
||||
I decided to write a tiny script around the printf call
|
||||
named [urxvt-font-change](http://git.schottelius.org/?p=nsbin;a=commit;h=c0e8fa882655867abf5f6359bdff9498c02bf717).
|
||||
|
||||
This resulted in a clean [.Xresources|configs/dot-Xresources] file, which allows me to change the font
|
||||
using ***Control-Alt-{1-6,0}***.
|
||||
|
||||
[[!tag unix]]
|
29
configs/dot-Xresources
Normal file
29
configs/dot-Xresources
Normal file
|
@ -0,0 +1,29 @@
|
|||
! .Xressources
|
||||
!
|
||||
! Nico Schottelius, 1998 - 2010
|
||||
! Feel free to copy, modify, whatever, this is just my config file.
|
||||
|
||||
|
||||
! Depends on my mood
|
||||
!URxvt.background: LightYellow2
|
||||
!URxvt.foreground: black
|
||||
URxvt.foreground: white
|
||||
URxvt.background: black
|
||||
|
||||
URxvt.scrollBar: False
|
||||
URxvt.inheritPixmap: false
|
||||
URxvt.cursorBlink: true
|
||||
URxvt.secondaryScroll: true
|
||||
URxvt.visualBell: true
|
||||
|
||||
! Fonts
|
||||
URxvt.font:tixus
|
||||
|
||||
! Change fonts on demand
|
||||
URxvt.keysym.M-C-1: command:\033]710;tixus\007\033]711;tixus\007
|
||||
URxvt.keysym.M-C-2: command:\033]710;artsie\007\033]711;artsie\007
|
||||
URxvt.keysym.M-C-3: command:\033]710;lucidasanstypewriter-10\007\033]711;lucidasanstypewriter-10\007
|
||||
URxvt.keysym.M-C-4: command:\033]710;xft:Liberation Mono:style=Regular\007\033]711;xft:Liberation Mono:style=Regular\007
|
||||
URxvt.keysym.M-C-5: command:\033]710;xft:Bitstream Vera Sans Mono:style=Bold\007\033]711;xft:Bitstream Vera Sans Mono:style=Bold\007
|
||||
URxvt.keysym.M-C-6: command:\033]710;12x24\007\033]711;12x24\007
|
||||
URxvt.keysym.M-C-0: command:\033]710;lucidasanstypewriter-24\007\033]711;lucidasanstypewriter-24\007
|
Loading…
Reference in a new issue