[Trisquel-users] HOw to darken/turn off only one screen

Mason Hock mason at masonhock.com
Wed Feb 20 18:40:07 CET 2019


> I would just map those two commands to some convenient shortcuts.

Or, if you don't want to have two different shortcuts, the following
script will toggle your display on/off.


#!/bin/bash
display=LVDS1

if xrandr --listactivemonitors | grep $display; then
        xrandr --output $display --off
else
        xrandr --output $display --auto
fi


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://listas.trisquel.info/pipermail/trisquel-users/attachments/20190220/a330a6de/attachment.pgp>


More information about the Trisquel-users mailing list