#!/usr/bin/env bash

# the screen will blank after 3 minutes of inactivity on the TTY console.
NEWARG="consoleblank=3"
sudo sed -i -E "s|^(GRUB_CMDLINE_LINUX_DEFAULT=\"[^\"]*)\"|\1 ${NEWARG}\"|" /etc/default/grub
sudo update_grub
