dotfiles/.bin/display

37 lines
1.3 KiB
Bash
Executable File

#!/bin/sh
export DISPLAY=:0
export XAUTHORITY=/home/tanguy/.Xauthority
/home/tanguy/.screenlayout/base.sh
# TODO : Configure each dock configuration with MAC addresses
if [[ "$(ip a | grep 'e0:4f:43:59:98:f4' | wc -l)" == 1 ]]; then
/home/tanguy/.screenlayout/tegl-e0-4f.sh
i3-msg "workspace 1, move workspace to output DVI-I-1-1";
i3-msg "workspace 2, move workspace to output DCI-I-2-2";
i3-msg "workspace 3, move workspace to output eDP-1"
i3-msg "workspace 4, move workspace to output eDP-1"
fi
if [[ "$(ip a | grep 'f4:a8:0d:41:e1:aa' | wc -l)" == 1 ]]; then
/home/tanguy/.screenlayout/tegl-e1-aa.sh
i3-msg "workspace 1, move workspace to output DP-2-2";
i3-msg "workspace 2, move workspace to output DP-2-3";
i3-msg "workspace 3, move workspace to output eDP-1"
i3-msg "workspace 4, move workspace to output eDP-1"
fi
if [[ "$(ip a | grep '00:50:b6:f7:e5:d3' | wc -l)" == 1 ]]; then
/home/tanguy/.screenlayout/tegl-e5-d3.sh
i3-msg "workspace 1, move workspace to output DVI-I-2-2";
i3-msg "workspace 2, move workspace to output DVI-I-1-1";
i3-msg "workspace 3, move workspace to output eDP-1"
i3-msg "workspace 4, move workspace to output eDP-1"
fi
/home/tanguy/.config/polybar/launch.sh > /dev/null 2>&1