From be200795a41c470790db2ec0fbd9a2d704f1f920 Mon Sep 17 00:00:00 2001 From: yage Date: Tue, 24 May 2022 09:31:45 -0600 Subject: [PATCH] runedock --- bin/xorg/butterfree/runedock | 15 +++++++++++++++ bin/xorg/butterfree/runeundock | 10 ++++++++++ 2 files changed, 25 insertions(+) create mode 100755 bin/xorg/butterfree/runedock create mode 100755 bin/xorg/butterfree/runeundock diff --git a/bin/xorg/butterfree/runedock b/bin/xorg/butterfree/runedock new file mode 100755 index 0000000..2f9287a --- /dev/null +++ b/bin/xorg/butterfree/runedock @@ -0,0 +1,15 @@ +#!/bin/zsh +source ${0:a:h}/common +[ ! $EXTERNAL_MONITOR ] && { + NOTIFY 'No external monitor connected!' + return +} + +xrandr \ + --output $EXTERNAL_MONITOR \ + --primary \ + --mode 1280x720 \ + --rotate normal \ + --pos 0x0 \ + && DISCONNECT_OTHER login \ + || NOTIFY "Unable to connect '$EXTERNAL_MONITOR' to 1920x1080" diff --git a/bin/xorg/butterfree/runeundock b/bin/xorg/butterfree/runeundock new file mode 100755 index 0000000..f1ece67 --- /dev/null +++ b/bin/xorg/butterfree/runeundock @@ -0,0 +1,10 @@ +#!/bin/zsh +source ${0:a:h}/common +xrandr \ + --output eDP1 \ + --primary \ + --mode 1280x720 \ + --rotate normal \ + --pos 0x0 \ + && DISCONNECT_OTHER login \ + || NOTIFY "Unable to connect to do the thing :S"