Monday, May 6, 2013

BASH CLI turn monitor off / blank screen

So you want to get your screen blank or get your monitor into standby mode from the CLI?
Add the following to your .bashrc:


alias blank='sleep 1 && xset dpms force standby'

From there on, just use the command blank from your terminal.