dotfiles/.bin/display

23 lines
565 B
Plaintext
Raw Permalink Normal View History

#!/bin/sh
export DISPLAY=:0
export XAUTHORITY=~/.Xauthority
DOCK_ID=$(lsusb -d 0x17ef:0x30a9 -v | grep -i iserial | awk '{print $3}') > /dev/null 2>&1
if [ -z "$DOCK_ID" ]; then
/bin/sh -c ~/.screenlayout/base.sh > /dev/null 2>&1
/bin/sh -c ~/.bin/workspacelayout/base.sh > /dev/null 2>&1
exit 0;
fi
FILE=~/.screenlayout/$DOCK_ID.sh
if test -f $FILE; then
~/.screenlayout/$DOCK_ID.sh > /dev/null 2>&1
~/.bin/workspacelayout/$DOCK_ID.sh > /dev/null 2>&1
echo "Layout applied"
fi
#/home/tanguy/.config/polybar/launch.sh > /dev/null 2>&1