more zsh migration work

This commit is contained in:
Wryn Wagner
2019-12-31 14:26:32 -07:00
parent 587d3a517c
commit 10b00353d1
5 changed files with 62 additions and 52 deletions

View File

@ -2,21 +2,18 @@
source $HOME/.my_zsh_env
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')";
AT_HOME(){
xrandr -q | grep -q 'HDMI-0 connected';
}
echo at home >> /home/w0ryn/test
echo $AT_HOME >> /home/w0ryn/test
AT_RENT() {
xrandr -q | grep -q 'DP-[0134] connected';
}
echo >> /home/w0ryn/test
echo at rent >> /home/w0ryn/test
echo $AT_RENT >> /home/w0ryn/test
if $AT_HOME ; then
if AT_HOME; then
"$XSERVER_DIR/screenlayout/homedock_hdmionly.sh";
elif $AT_RENT; then
"$XSERVER_DIR/screenlayout/workdock.sh"
elif AT_RENT; then
"$XSERVER_DIR/screenlayout/workdock.sh";
else;
"$XSERVER_DIR/screenlayout/undock.sh";
fi