On Mon, May 09, 2022 at 07:00:15 +0000, Nia Alarie wrote:

> Module Name:  xsrc
> Committed By: nia
> Date:         Mon May  9 07:00:15 UTC 2022
> 
> Modified Files:
>       xsrc/external/mit/xdm/dist/config: Xsession.in
>       xsrc/external/mit/xinit/dist: xinitrc.cpp
> 
> Log Message:
> Default X session: In xterm and xman at lower DPIs, use misc-fixed
> instead of spleen for greater readability.  Reasoning: misc-fixed
> has native bold variants.

You can avoid code duplication and multiple invocations of xrdb by
putting the default resources into a file that both xinitrc and
Xsession can load and using the fact that xrdb uses CPP on its input.

E.g.

  $ xrdb -n -DFontSize=22
  #if FontSize + 0 > 18
  # define FONT Large
  #else
  # define FONT Small
  #endif
  *font: FONT

gets you

  *font:  Large


-uwe

Reply via email to