dotwryn/config/xserver/set_randr_layout

23 lines
553 B
Plaintext
Raw Normal View History

#!/bin/zsh
source $HOME/.my_zsh_env
2019-09-26 16:13:45 +00:00
XSERVER_DIR="$DOTWRYN/config/xserver"
AT_HOME="$(xrandr | grep -q 'HDMI-0 connected')";
AT_RENT="$(xrandr | grep -q 'DP-0 connected' || xrandr | grep -q 'DP-1 connected')";
echo at home >> /home/w0ryn/test
echo $AT_HOME >> /home/w0ryn/test
echo >> /home/w0ryn/test
echo at rent >> /home/w0ryn/test
echo $AT_RENT >> /home/w0ryn/test
if $AT_HOME ; then
"$XSERVER_DIR/screenlayout/homedock_hdmionly.sh";
elif $AT_RENT; then
"$XSERVER_DIR/screenlayout/workdock.sh"
else;
"$XSERVER_DIR/screenlayout/undock.sh";
fi