How do I specify fonts in Xresources?

How do I specify fonts in Xresources?

Most X programs will take the “-fn” option to specify a font to use, or you can use the “font” resource in your . Xresources file to specify a font. For example, “emacs -fn 9×15” would run emacs with the 9×15 font.

How do I change xterm?

Just add xterm*faceName: monospace:pixelsize=14 . If you don’t want to change your default, use command line arguments: xterm -bg blue -fg yellow. Setting xterm*background or xterm*foreground changes all xterm colors, including menus etc. To change it for the terminal area only, set xterm*vt100.

Where is my Xresources file?

Xresources is a user-level configuration dotfile, typically located at ~/. Xresources . It can be used to set X resources, which are configuration parameters for X client applications.

How do I configure xterm fonts?

To alter the font size Ctrl+ brings up a menu with six font size options. These can be configured to whatever size you want. I really like the way that GNOME Terminal uses ++ to make the font bigger, – to shrink it and 0 to reset it to the standard size. We can do the same in XTerm.

How to change the default font size of xterm?

One more option, add this to your ~/.Xresources to make hotkeys for changing the font size: If you use uxterm, be sure to use UXTerm.vt100.translations instead. Then you can use ctrl + + to increase font size or ctrl + – to decrease the size, just like you can with ctrl + right-click and selecting one of the other font size options.

Where do I find Xresources file in Linux?

You have to create it. This is common on Unix-like systems; you do your own configuration, creating whatever files are needed. Syntax is documented in https://wiki.archlinux.org/index.php/X_resources, but note that you have to scroll down several screenfuls to find it. Thanks.

Is there a way to increase the font size?

Then you can use ctrl + + to increase font size or ctrl + – to decrease the size, just like you can with ctrl + right-click and selecting one of the other font size options. Creating the .Xresources file with specified lines of code (provided in the answer by noffle) fixed my issue, but on reboot the settings got lost again.

Where do I find the X resources dotfile?

Xresources is a user-level configuration dotfile, typically located at ~/.Xresources. It can be used to set X resources, which are configuration parameters for X client applications. Among other things they can be used to: configure terminal preferences (e.g. terminal colors)