e2b1b4fe9bcf378c8ceea6f6b4921ec923e4d973
- Author
- Pavle Portic <git@theedgeofrage.com>
- Committer
- Pavle Portic <git@theedgeofrage.com>
- Date
Message
Add per-screen dpi in Xresources
Diff
1diff --git a/dot_Xresources.tmpl b/dot_Xresources.tmpl
2index 1a3d793f9ac0072468cfb9bc0920c14a28ff61c1..d4cb844b0572939d327b962133de24c39cf10ba1 100644
3--- a/dot_Xresources.tmpl
4+++ b/dot_Xresources.tmpl
5@@ -30,15 +30,16 @@
6 Xcursor.theme: Breeze
7
8 ! Font options
9-Xft.autohint: 1
10+Xft.autohint: 0
11 Xft.antialias: 1
12-Xft.hinting: true
13-Xft.hintstyle: hintslight
14-Xft.dpi: 96
15+Xft.hinting: 1
16+Xft.hintstyle: hintfull
17 Xft.lcdfilter: lcddefault
18
19+
20 {{ range $key, $val := .xresources.rgba }}
21 #if SCREEN_NUM == {{ $key }}
22-Xft.rgba: {{ $val }}
23+Xft.rgba: {{ $val.rgba }}
24+Xft.dpi: {{ $val.dpi }}
25 #endif
26 {{end}}