nixpkgs/nixos/modules/config/fonts
rnhmjoj dd38ae1f2c
nixos/fonts: scale X11 core cursor
Most desktop environments manage the cursor using the Xcursor library
by default; this comes with scalable or multiple-sized cursor themes.
However, when running just a simple WM (twm, bspwm, ...) the cursor
handling is left to the X server, which uses a very simple fixed bitmap
font (this is called a "core" cursor). The font is uncomfortably small
on a high DPI display and must be replaced with a saner default.

Up until recently[1] it used to be possible to change the font on the
xserver command line, however the font name is now hardcoded. It's still
possible to change it, though: here I override the `fontcursormisc`
package and set an alias that points to a vector variant of the original
cursor font. The font size is set to match the standard cursor
dimensions on a 96dpi display. It's not perfect but it's a very simple
and effective solution.

[1]: 56ea4c769c
2021-08-15 12:01:38 +02:00
..
fontconfig.nix Revert "Revert "apparmor: fix and improve the service"" 2021-04-23 07:17:55 +02:00
fontdir.nix fontdir: add ttc to font regex 2020-10-26 10:45:22 +08:00
fonts.nix nixos/fonts: scale X11 core cursor 2021-08-15 12:01:38 +02:00
ghostscript.nix treewide: add types to boolean / enable options or make use of mkEnableOption 2020-04-27 09:32:01 +02:00