From 0add03647f4224c4805b13f5fef0c6cce28922bc Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 21 Mar 2018 19:31:01 +0000 Subject: [PATCH] =?UTF-8?q?add=20r=C3=A4nder=20function=20(screen=20settin?= =?UTF-8?q?gs)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/.zshrc.local | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/home/.zshrc.local b/home/.zshrc.local index 31c8195..fcff826 100644 --- a/home/.zshrc.local +++ b/home/.zshrc.local @@ -81,7 +81,7 @@ transfer() { fi cat $tmpfile rm -f $tmpfile -} +} ## Touchpad enabling/disabling @@ -102,6 +102,41 @@ eval "$(dircolors -b $HOME/.dircolors)" ## Color switcher alias dynamic-colors="~/.dynamic-colors/bin/dynamic-colors" +## Screen settings +function ränder() { + case "$1" in + "office") + xrandr \ + --output VGA-1 --off \ + --output LVDS-1 --primary --mode 1280x800 --pos 0x721 --rotate normal \ + --output HDMI-3 --mode 1920x1200 --pos 1280x0 --rotate normal \ + --output HDMI-2 --off \ + --output HDMI-1 --off \ + --output DP-3 --off \ + --output DP-2 --off \ + --output DP-1 --off + ;; + "solo") + xrandr \ + --output VGA-1 --off \ + --output LVDS-1 --primary --mode 1280x800 --rotate normal \ + --output HDMI-3 --off \ + --output HDMI-2 --off \ + --output HDMI-1 --off \ + --output DP-3 --off \ + --output DP-2 --off \ + --output DP-1 --off + ;; + "auto") + xrandr --auto + ;; + *) + echo "Invalid Preset" + ;; + esac + feh --bg-fill ~/bg.jpg +} + # Bugs ## silversearcher-ag and not apt-get