update comments

This commit is contained in:
Tobias Powalowski 2023-11-18 21:48:54 +01:00
parent cb0a1aed3a
commit e8cfe3cd79
2 changed files with 3 additions and 1 deletions

View file

@ -4,12 +4,15 @@
# sets bigger font on bigger display resolutions # sets bigger font on bigger display resolutions
# by Tobias Powalowski <tpowa@archlinux.org> # by Tobias Powalowski <tpowa@archlinux.org>
# #
# wait for modules to initialize cmompletely
udevadm settle udevadm settle
# get screen setting mode from /sys
FB_SIZE="$(sed -e 's#.*:##g' -e 's#x.*##g' /sys/class/graphics/fb0/modes 2>/dev/null)" FB_SIZE="$(sed -e 's#.*:##g' -e 's#x.*##g' /sys/class/graphics/fb0/modes 2>/dev/null)"
if [[ "${FB_SIZE}" -gt '1900' ]]; then if [[ "${FB_SIZE}" -gt '1900' ]]; then
SIZE="32" SIZE="32"
else else
SIZE="16" SIZE="16"
fi fi
# update vconsole.conf accordingly
echo KEYMAP=us >/etc/vconsole.conf echo KEYMAP=us >/etc/vconsole.conf
echo FONT=ter-v${SIZE}n >>/etc/vconsole.conf echo FONT=ter-v${SIZE}n >>/etc/vconsole.conf

View file

@ -11,4 +11,3 @@ Wants=systemd-vconsole-setup.service
Type=oneshot Type=oneshot
RemainAfterExit=yes RemainAfterExit=yes
ExecStart=/usr/bin/detect-vconsole.sh ExecStart=/usr/bin/detect-vconsole.sh