20 lines
367 B
Bash
Executable File
20 lines
367 B
Bash
Executable File
#!/bin/zsh
|
|
source $HOME/.my_zsh_env
|
|
XSERVER_DIR="$DOTWRYN/config/xserver"
|
|
|
|
AT_HOME(){
|
|
xrandr -q | grep -q 'HDMI-0 connected';
|
|
}
|
|
|
|
AT_RENT() {
|
|
xrandr -q | grep -q 'DP-[0134] connected';
|
|
}
|
|
|
|
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
|