From 5563ffe72659d3f5c6bbe73d1f159270536db181 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 12 Oct 2018 16:19:32 +0000 Subject: [PATCH] =?UTF-8?q?[zshrc]=20new=20r=C3=A4nder=20profiles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/.zshrc.local | 54 +++++++++++++++++++---------------------------- 1 file changed, 22 insertions(+), 32 deletions(-) diff --git a/home/.zshrc.local b/home/.zshrc.local index bc6285f..5d57948 100644 --- a/home/.zshrc.local +++ b/home/.zshrc.local @@ -71,37 +71,28 @@ function ränder() { ( case "$1" in "office") - xrandr \ - --output VGA-1 --off \ - --output LVDS-1 --primary --mode 1280x800 --pos 0x720 --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 - ;; - "officealt") - xrandr \ - --output VGA-1 --off \ - --output LVDS-1 --primary --mode 1280x800 --pos 0x1000 --rotate normal \ - --output HDMI-3 --mode 1920x1200 --pos 1280x0 --rotate left \ - --output HDMI-2 --off \ - --output HDMI-1 --off \ - --output DP-3 --off \ - --output DP-2 --off \ - --output DP-1 --off + xrandr \ + --output VIRTUAL1 --off \ + --output eDP1 --primary --mode 1920x1080 --pos 0x632 --rotate normal \ + --output DP1 --off \ + --output DP2-1 --off \ + --output DP2-2 --mode 1920x1200 --pos 1920x0 --rotate normal \ + --output DP2-3 --off \ + --output HDMI2 --off \ + --output HDMI1 --off \ + --output DP2 --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 + xrandr \ + --output VIRTUAL1 --off \ + --output eDP1 --primary --mode 1920x1080 --rotate normal \ + --output DP1 --off \ + --output DP2-1 --off \ + --output DP2-2 --off \ + --output DP2-3 --off \ + --output HDMI2 --off \ + --output HDMI1 --off \ + --output DP2 --off ;; "auto") xrandr --auto @@ -111,12 +102,11 @@ function ränder() { ;; *) echo "Invalid Preset" - notify-send "ränder" "Invalid Preset $1" -i ~/.local/share/icons/Paper/48x48/devices/video-display.png + notify-send "ränder" "Invalid Preset $1" invalid="true" ;; esac - [ -z $invalid ] && notify-send "ränder" "Switched to $1" -i ~/.local/share/icons/Paper/48x48/devices/video-display.png - feh --bg-fill ~/bg.jpg + [ -z $invalid ] && notify-send "ränder" "Switched to $1" ) }