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"