forked from kshenoy/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Xresources
87 lines (77 loc) · 3.8 KB
/
Xresources
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
!! Simply trying to load the defaults results in an error as it can not parse the #include
!! Thus, go to the directory /usr/share/X11/app-defaults/XTerm and then load it
!
!sh -c "cd /usr/share/X11/app-defaults && xrdb -load XTerm-color && xrdb -merge ~/.Xresources"
!sh -c "cd /etc/X11/app-defaults && xrdb -load XTerm-color && xrdb -merge ~/.Xresources"
!
!! To check the loaded options, use
!xrdb -query -all
!
!! Check if xterm has been compiled with freetype support or not by passing xterm binary as argument to the ldd command
!ldd path/to/xterm/binary
!! Show font names (with freetype support):
!/tool/pandora64/.package/fontconfig-2.10.91/bin/fc-list :scalable=true:spacing=mono: family
!! faceName and faceSize only work if xterm has been compiled with freetype support
!! Search for render font in `man xterm`
!=======================================================================================================================
! XTerm/UXTerm settings {{{1
!=======================================================================================================================
!! Most settings are from the ArchWiki: https://wiki.archlinux.org/index.php/Xterm
!! More comprehensive list of options: https://www.computerhope.com/unix/uxterm.htm
!! To allow the terminal itself to set the TERM variable correctly; instead of forcing in .bashrc etc.
*XTerm*termName: xterm-256color
!! Interpret all incoming data as UTF-8
*XTerm*locale: true
*XTerm*saveLines: 10000
*XTerm*cursorBlink: true
!! From https://unix.stackexchange.com/a/332367/111534
*XTerm*faceName: Iosevka
*XTerm*fontdefault*Label: Size 9 (Default)
*XTerm*faceSize: 9
*XTerm*font1*Label: Size 8
*XTerm*faceSize1: 8
*XTerm*font2*Label: Size 10
*XTerm*faceSize2: 10
*XTerm*font3*Label: Size 11
*XTerm*faceSize3: 11
*XTerm*font4*Label: Size 12
*XTerm*faceSize4: 12
*XTerm*font5*Label: Size 14
*XTerm*faceSize5: 14
*XTerm*font6*Label: Size 16
*XTerm*faceSize6: 16
*XTerm*ForceBoxChars: true
*XTerm*internalBorder: 3
*XTerm*scaleHeight: 1.1
*XTerm*on3Clicks: regex ([[:alpha:]]+://)?([[:alnum:]!#+,./=?@_~-]|(%[[:xdigit:]][[:xdigit:]]))+
*XTerm*rightScrollBar: false
*XTerm*scrollBar: false
!=======================================================================================================================
! Xft settings {{{1
!=======================================================================================================================
! From https://wiki.archlinux.org/index.php/font_configuration#Applications_without_fontconfig_support
Xft.dpi: 94
Xft.lcdfilter: lcddefault
Xft.antialias: true
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight
!=======================================================================================================================
! Emacs settings {{{1
!=======================================================================================================================
Emacs.fontBackend: xft
Emacs.font: Iosevka-9:style=Regular
Emacs.menuBar: off
Emacs.toolBar: off
Emacs.verticalScrollBars: off
!=======================================================================================================================
! Colors {{{1
!=======================================================================================================================
!! Color 0/8: Black
!! Color 1/9: Red
!! Color 2/10: Green
!! Color 3/11: Yellow
!! Color 4/12: Blue
!! Color 5/13: Magenta
!! Color 6/14: Cyan
!! Color 7/15: White