From db8e6b125b582d217cb00e2c56047b750b8941a8 Mon Sep 17 00:00:00 2001 From: Wryn Wagner Date: Sat, 30 Nov 2019 20:41:45 -0700 Subject: [PATCH] Added docking/undocking shortcuts --- bash/utility | 5 +++++ config/xserver/screenlayout/homedock_hdmionly.sh | 2 ++ config/xserver/screenlayout/undock.sh | 2 ++ .../{three_monitor_work_setup.sh => workdock.sh} | 0 config/xserver/set_randr_layout | 2 +- 5 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 config/xserver/screenlayout/homedock_hdmionly.sh create mode 100755 config/xserver/screenlayout/undock.sh rename config/xserver/screenlayout/{three_monitor_work_setup.sh => workdock.sh} (100%) diff --git a/bash/utility b/bash/utility index 34f0050..c58881f 100644 --- a/bash/utility +++ b/bash/utility @@ -1,5 +1,10 @@ #!/bin/bash +# --- Shortcuts for quick ARANDR switch ----------------------- +alias undock="$DOTWRYN/config/xserver/screenlayout/undock.sh"; +alias workdock="$DOTWRYN $HOME/.wryn/config/xserver/screenlayout/workdock.sh"; +alias homedock="$DOTWRYN/config/xserver/screenlayout/homedock_hdmionly.sh"; + # --- Note-taking facilitated --------------------------------- NOTE_PATH='/Users/w0ryn/Documents/notes'; NOTE_EXTENSION='.txt'; diff --git a/config/xserver/screenlayout/homedock_hdmionly.sh b/config/xserver/screenlayout/homedock_hdmionly.sh new file mode 100755 index 0000000..775172c --- /dev/null +++ b/config/xserver/screenlayout/homedock_hdmionly.sh @@ -0,0 +1,2 @@ +#!/bin/sh +xrandr --output DP-0 --off --output DP-1 --off --output HDMI-0 --primary --mode 3840x2160 --pos 2880x0 --rotate normal --output DP-2 --off --output DP-3 --off --output DP-4 --off diff --git a/config/xserver/screenlayout/undock.sh b/config/xserver/screenlayout/undock.sh new file mode 100755 index 0000000..fb7ad15 --- /dev/null +++ b/config/xserver/screenlayout/undock.sh @@ -0,0 +1,2 @@ +#!/bin/sh +xrandr --output DP-0 --off --output DP-1 --off --output HDMI-0 --off --output DP-2 --primary --mode 2880x1800 --scale 0.7x0.7 --pos 0x0 --rotate normal --output DP-3 --off --output DP-4 --off diff --git a/config/xserver/screenlayout/three_monitor_work_setup.sh b/config/xserver/screenlayout/workdock.sh similarity index 100% rename from config/xserver/screenlayout/three_monitor_work_setup.sh rename to config/xserver/screenlayout/workdock.sh diff --git a/config/xserver/set_randr_layout b/config/xserver/set_randr_layout index cc0c038..4768f83 100755 --- a/config/xserver/set_randr_layout +++ b/config/xserver/set_randr_layout @@ -2,4 +2,4 @@ source $HOME/.my_bash_env XSERVER_DIR="$DOTWRYN/config/xserver" -"$XSERVER_DIR/screenlayout/three_monitor_work_setup.sh" +"$XSERVER_DIR/screenlayout/workdock.sh"