Discussion:
Per-screen Xft settings
Oleksii Vilchanskyi
2018-09-27 15:03:58 UTC
Permalink
Hello,

I am trying to set Xft.rgba value depending on the screen (0 is
horizontal, 1 is rotated vertically). However, whenever I `startx`, the
settings are not merged automatically, unless I manually do `xrdb -merge
~/.Xresources`.

How do I know? The output of `xrdb -query` right after X starts is:
[...]
! screen 0 resources
#if SCREEN_NUM == 0
#endif

! screen 1 resources
#if SCREEN_NUM == 1
#endif

and after I manually `xrdb -merge .Xresources`:
[...]
! screen 0 resources
#if SCREEN_NUM == 0
Xft.rgba: rgb
#endif

! screen 1 resources
#if SCREEN_NUM == 1
Xft.rgba: vrgb
#endif


.Xresources (only relevant parts):
------------
#if SCREEN_NUM == 0
Xft.rgba: rgb
#endif
#if SCREEN_NUM == 1
Xft.rgba: vrgb
#endif
------------

.xinitrc (only relevant parts):
------------
userresources=$HOME/.Xresources
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
------------

Why doesn't it work?
Thanks.
--
< Regards, | S pozdravem >
Oleksii Vilchanskyi
PGP:0x8D3A0E046BDE941F2A53867CE3FD952D48C0B338
Loading...