dotwryn/bin/butterfree/undock

19 lines
395 B
Bash
Executable File

#!/bin/zsh
source ${0:a:h}/xorg.zsh
[ ! $NATIVE_MONITOR ] && {
NOTIFY "Must specify NATIVE_MONITOR"
return
}
xrandr \
--output $NATIVE_MONITOR \
--primary \
--mode "2560x1440" \
--rotate normal \
--pos 0x0 \
&& DISCONNECT_OTHER undock \
|| NOTIFY "Native monitor '$PRIMARY_MONITOR' unresponsive"
xset +dpms && xset s blank && xset s on \
&& notify-send 'DPMS' 'enabled screen blank'