env/dotfiles/Xdefaults
Lucas 9f0e7a0c12 Xdefaults, xinitrc: dynamically calculate font size
Recent changes in OpenBSD made my laptops share different (althought
correctly calculated) DPIs. Add an script and rework X resources loading
so:

 1. load ~/.Xdefaults into xrdb for baseline
 2. run the script to compute a DPI and xterm's faceSize so it respects
    some values previously defined in this repo

As an upside, now XTerm.VT100.faceSize can be queried, so use that in
hlwm theme.
2022-05-17 03:14:19 +00:00

87 lines
3.0 KiB
Plaintext

! env
! Written in 2019,2022 by Lucas
! CC0 1.0 Universal/Public domain - No rights reserved
!
! To the extent possible under law, the author(s) have dedicated all
! copyright and related and neighboring rights to this software to the
! public domain worldwide. This software is distributed without any
! warranty. You should have received a copy of the CC0 Public Domain
! Dedication along with this software. If not, see
! <http://creativecommons.org/publicdomain/zero/1.0/>.
! xterm
XTerm.termName: xterm-256color
XTerm.VT100.loginShell: true
XTerm.VT100.backarrowKey: false
XTerm.VT100.backarrowKeyIsErase: true
XTerm.VT100.bellIsUrgent: true
XTerm.VT100.charClass: 33-47:48,58-64:48,91-96:48,123-126:48
XTerm.VT100.deleteIsDEL: false
XTerm.VT100.disallowedPasteControls: BS,DEL,ESC
XTerm.VT100.metaSendsEscape: true
XTerm.VT100.translations: #override \n\
Ctrl Alt <Key>C: copy-selection(CLIPBOARD) \n\
Ctrl Alt <Key>V: insert-selection(CLIPBOARD) \n\
Ctrl Shift <Key>C: copy-selection(SELECT) \n\
Ctrl Shift <Key>V: insert-selection(SELECT) \n\
Ctrl Shift <Key>+: larger-vt-font() \n\
Ctrl Shift <Key>-: smaller-vt-font() \n\
Ctrl Shift <Key>0: set-vt-font(d)
XTerm.VT100.saveLines: 2000
XTerm.VT100.scrollBar: false
XTerm.VT100.scrollTtyOutput: false
XTerm.VT100.scrollKey: true
!XTerm.VT100.font: -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1
!XTerm.VT100.boldFont: -misc-fixed-bold-r-normal--14-130-75-75-c-70-iso10646-1
!XTerm.VT100.wideFont: -misc-fixed-medium-r-normal--14-130-75-75-c-140-jisx0208.1983-0
XTerm.VT100.faceName: monospace
!XTerm.VT100.faceNameDoublesize: M+ 1m
XTerm.VT100.faceSize: 10.5
XTerm.VT100.faceSize1: 6.0
XTerm.VT100.faceSize2: 8.0
XTerm.VT100.faceSize3: 9.0
XTerm.VT100.faceSize4: 10.5
XTerm.VT100.faceSize5: 12.0
XTerm.VT100.faceSize6: 18.0
XTerm.VT100.color0: #000000
XTerm.VT100.color1: #872011
XTerm.VT100.color2: #468622
XTerm.VT100.color3: #b58b00
XTerm.VT100.color4: #2d6388
XTerm.VT100.color5: #a32d80
XTerm.VT100.color6: #459cab
XTerm.VT100.color7: #c6c6c6
XTerm.VT100.color8: #303030
XTerm.VT100.color9: #dc3a23
XTerm.VT100.color10: #67c034
XTerm.VT100.color11: #f7be00
XTerm.VT100.color12: #4997ce
XTerm.VT100.color13: #ec57bc
XTerm.VT100.color14: #61d6ea
XTerm.VT100.color15: #ffffff
XTerm.VT100.background: #0c0700
XTerm.VT100.foreground: #fff8f0
! ssh-askpass
SshAskpass.grabKeyboard: False
SshAskpass.grabPointer: False
SshAskpass*font: -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1
SshAskpass*fixedFont: -misc-fixed-bold-r-normal--14-130-75-75-c-70-iso10646-1
SshAskpass*foreground: #fff8f0
SshAskpass*background: #0c0700
SshAskpass*bottomShadowColor: #f7be00
SshAskpass*topShadowColor: #f7be00
SshAskpass.shadowThickness: 0
SshAskpass.Button.shadowThickness: 2
SshAskpass.Indicator.shadowThickness: 0
SshAskpass.Indicator.foreground: #61d6ea
SshAskpass.Indicator.background: #459cab
SshAskpass.Indicator.width: 5
SshAskpass.Indicator.height: 1
SshAskpass.Indicator.horizontalSpacing: 1
SshAskpass.Indicator.minimumCount: 10
SshAskpass.Indicator.maximumCount: 10