dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit 19939cf256613002c14b355bb70560b6f2372829
parent 3c6dcf0d2f58da3aecc8689a0c3c1256f86bf9ac
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Tue, 23 Jan 2018 05:31:08 -0500

my screen: Turn off disconnected outputs

Diffstat:
M.local/bin/my | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/.local/bin/my b/.local/bin/my @@ -137,6 +137,13 @@ case $command in setxkbmap -option -option ctrl:nocaps -option terminate:ctrl_alt_bksp ;; screen) + xrandr_options=`xrandr -q | grep ' disconnected' | awk '{print $1}'` + for option in $xrandr_options + do + __mylog "my screen" "Executing xrandr --output $option --off" + xrandr --output $option --off + done + xrandr_options=`xrandr -q | grep ' connected' | awk '{print $1}'` numoptions=`echo $xrandr_options | wc -w` if [ $numoptions -eq 1 ]