Lucas
9f0e7a0c12
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.
38 lines
1.2 KiB
Plaintext
38 lines
1.2 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/>.
|
|
|
|
: ${hlwm_color0="#000000"}
|
|
: ${hlwm_color1="#872011"}
|
|
: ${hlwm_color2="#468622"}
|
|
: ${hlwm_color3="#b58b00"}
|
|
: ${hlwm_color4="#2d6388"}
|
|
: ${hlwm_color5="#a32d80"}
|
|
: ${hlwm_color6="#459cab"}
|
|
: ${hlwm_color7="#c6c6c6"}
|
|
: ${hlwm_color8="#303030"}
|
|
: ${hlwm_color9="#dc3a23"}
|
|
: ${hlwm_color10="#67c034"}
|
|
: ${hlwm_color11="#f7be00"}
|
|
: ${hlwm_color12="#4997ce"}
|
|
: ${hlwm_color13="#ec57bc"}
|
|
: ${hlwm_color14="#61d6ea"}
|
|
: ${hlwm_color15="#ffffff"}
|
|
: ${hlwm_background="#0c0700"}
|
|
: ${hlwm_foreground="#fff8f0"}
|
|
|
|
: ${hlwm_font="-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1"}
|
|
|
|
_hlwm_faceSize=$(xrdb -get XTerm.VT100.faceSize)
|
|
: ${hlwm_face="monospace:size=${_hlwm_faceSize:-10.5}"}
|
|
unset _hlwm_faceSize
|
|
|
|
: ${hlwm_font_height=17}
|