From d64ae6e75d4be2c5366afc7ab5c4354d077014dc Mon Sep 17 00:00:00 2001 From: Ambrevar Date: Thu, 2 Aug 2012 16:28:47 +0100 Subject: [PATCH] Shell: screen morph and multi screen aliases. --- .shell.d/alias_rc | 8 ++++++++ .shell.d/funs_rc | 2 -- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.shell.d/alias_rc b/.shell.d/alias_rc index 4dfd70fb..adf5b199 100644 --- a/.shell.d/alias_rc +++ b/.shell.d/alias_rc @@ -92,6 +92,14 @@ fi ## Configuration files [ -e "/etc/rc.conf" ] && alias ercc='sudo $EDITOR /etc/rc.conf' +## Xrandr +alias xmulti="xrandr --output VGA1 --auto --right-of $(xrandr | grep -A1 current | sed -n 2p | awk '{print $1}')" +alias xmultioff="xrandr --output VGA1 --off" +alias xmorphsw="xrandr --output $(xrandr | grep -A1 current | sed -n 2p | awk '{print $1}') --transform 1.24,0.16,-124,0,1.24,0,0,0.000316,1" +alias xmorphnone="xrandr --output $(xrandr | grep -A1 current | sed -n 2p | awk '{print $1}') --transform none" +alias xmorphzo="xrandr --output $(xrandr | grep -A1 current | sed -n 2p | awk '{print $1}') --scale 1.2x1.2" +alias xmorphzi="xrandr --output $(xrandr | grep -A1 current | sed -n 2p | awk '{print $1}') --scale 0.8x0.8" + ##============================================================================== ## Zsh power aliases ##============================================================================== diff --git a/.shell.d/funs_rc b/.shell.d/funs_rc index ea6fcfd9..1c8a19f3 100644 --- a/.shell.d/funs_rc +++ b/.shell.d/funs_rc @@ -588,8 +588,6 @@ bindatasearch() [ $? -eq 0 ] && echo "$1" ' _ {} "$SOURCE" \; - - } ##==============================================================================