2022-02-06 07:15:14 +00:00
|
|
|
#!/bin/zsh
|
2022-08-22 22:40:57 +00:00
|
|
|
source ${0:a:h}/xorg.zsh
|
2022-02-06 07:15:14 +00:00
|
|
|
[ ! $EXTERNAL_MONITOR ] && {
|
|
|
|
NOTIFY 'No external monitor connected!'
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
xrandr \
|
|
|
|
--output $EXTERNAL_MONITOR \
|
|
|
|
--primary \
|
2022-03-07 19:19:02 +00:00
|
|
|
--mode 1920x1080 \
|
2022-02-06 07:15:14 +00:00
|
|
|
--rotate normal \
|
|
|
|
--pos 0x0 \
|
|
|
|
&& DISCONNECT_OTHER login \
|
|
|
|
|| NOTIFY "Unable to connect '$EXTERNAL_MONITOR' to 1920x1080"
|
2022-08-24 18:03:48 +00:00
|
|
|
|
|
|
|
xset dpms 0 0 0 && xset s noblank && xset s off \
|
|
|
|
&& notify-send 'DPMS' 'disabled screen blank'
|