Per-screen Xft settings
Oleksii Vilchanskyi
oleksii.vilchanskyi at gmail.com
Thu Sep 27 15:03:58 UTC 2018
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.x.org/archives/xorg/attachments/20180927/20969321/attachment.sig>
More information about the xorg
mailing list