Files
bin
altaria
bg-apps
butterfree
gamedock
hdmidock
runedock
runeundock
undock
workdock
xorg.zsh
umbreon
backlight
get-colorscheme-hex
i3-logout
i3-utils
i3lock
kitty-alternate-theme
media
play-sound
pulseaudio
scwrypts
set-background
vim
xorg-activate-default
colorschemes
config
resume
setup
vim
zsh
.gitattributes
.gitignore
.gitmodules
README.md
dotwryn/bin/butterfree/workdock

25 lines
553 B
Bash
Executable File

#!/bin/zsh
source ${0:a:h}/xorg.zsh
LEFT=$(GET_ALL_EXTERNAL_MONITORS | grep 'DP.-1')
RIGHT=$(GET_ALL_EXTERNAL_MONITORS | grep 'DP.-2')
[ $LEFT ] && [ $RIGHT ] || {
NOTIFY "Unable to detect work monitors; are you connected?"
return
}
xrandr \
--output $RIGHT \
--primary \
--mode 1920x1080 \
--scale 1.25x1.25 \
--rotate normal \
--pos 2400x0 \
--output $LEFT \
--mode 1920x1080 \
--scale 1.25x1.25 \
--rotate normal \
--pos 0x0 \
&& DISCONNECT_OTHER login $LEFT \
|| NOTIFY "Unable to connect '$EXTERNAL_MONITOR' to 1920x1080"