From 7b33a7d91640770e38691fbb7a2b45653fd4d8b6 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 8 Sep 2014 20:58:26 +0200 Subject: [PATCH 1/1] choose font based on X_RESOLUTION --- .Xdefaults | 6 ++++++ .xsession.d/02-xdefaults | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 .xsession.d/02-xdefaults diff --git a/.Xdefaults b/.Xdefaults index d57bcde..1be99e9 100644 --- a/.Xdefaults +++ b/.Xdefaults @@ -1,6 +1,12 @@ *visualBell: false *urgentOnBell: true + +#if X_RESOLUTION > 3000 +*font: -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1 +#else *font: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1 +#endif + *background: white *foreground: black diff --git a/.xsession.d/02-xdefaults b/.xsession.d/02-xdefaults new file mode 100644 index 0000000..a5f5070 --- /dev/null +++ b/.xsession.d/02-xdefaults @@ -0,0 +1,5 @@ +# load .Xdefaults + +xrdb -merge ~/.Xdefaults + +# vim:ft=zsh -- 2.39.5