This commit is contained in:
Wryn (yage) Wagner 2022-05-24 09:31:45 -06:00
parent 268acccf35
commit be200795a4
2 changed files with 25 additions and 0 deletions

15
bin/xorg/butterfree/runedock Executable file
View File

@ -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"

10
bin/xorg/butterfree/runeundock Executable file
View File

@ -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"