Skip to content

Instantly share code, notes, and snippets.

@Kahnix
Created March 7, 2019 05:16
Show Gist options
  • Save Kahnix/79704467d4218bd41272fa90f29d7524 to your computer and use it in GitHub Desktop.
Save Kahnix/79704467d4218bd41272fa90f29d7524 to your computer and use it in GitHub Desktop.
Fixes HIDPI readability issues on my laptop when using a tty, theres probably a better way to do this but it works if I slap it into my bashrc.
#!/bin/bash
#Requires terminus-fonts
if [[ "$(tty)" == /dev/tty[0-9] ]]; #Determine if the user is using a tty
then setfont ter-132n; #Set font to one thats friendlier with a tty
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment