mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-08-16 01:37:56 +02:00
archlinux: Fix HiDPI font for virtual console
It turns out the font that I was setting before didn't actually do anything. This is the real way to double the font size in your virtual console, particularly useful for HiDPI displays, since your tty does not know about your X DPI.
This commit is contained in:
@ -30,8 +30,10 @@ echo "en_US.UTF-8 UTF-8" > /mnt/etc/locale.gen
|
||||
# Generate the locale.
|
||||
arch-chroot /mnt locale-gen
|
||||
|
||||
# Change the terminal font to a larger one (`latarcyrheb-sun32` is also an option)
|
||||
echo "FONT=ter-132n" >> /mnt/etc/vconsole.conf
|
||||
# Set the tty font to a larger one (same as the default setfont, but larger)
|
||||
if [ "$HIDPI" == "YES" ]; then
|
||||
echo "FONT=latarcyrheb-sun32" > /mnt/etc/vconsole.conf
|
||||
fi
|
||||
|
||||
# Install grub to the primary partition.
|
||||
arch-chroot /mnt grub-install /dev/sda
|
||||
|
Reference in New Issue
Block a user