2022-12-06 14:33:02 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
export DISPLAY=:0
|
2023-09-14 07:57:52 +00:00
|
|
|
export XAUTHORITY=~/.Xauthority
|
2022-12-06 14:33:02 +00:00
|
|
|
|
2023-09-14 07:57:52 +00:00
|
|
|
DOCK_ID=$(lsusb -d 0x17ef:0x30a9 -v | grep -i iserial | awk '{print $3}') > /dev/null 2>&1
|
2022-12-06 14:33:02 +00:00
|
|
|
|
2023-09-14 07:57:52 +00:00
|
|
|
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;
|
2022-12-06 14:33:02 +00:00
|
|
|
fi
|
|
|
|
|
2023-09-14 07:57:52 +00:00
|
|
|
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
|
2022-12-06 14:33:02 +00:00
|
|
|
|
2023-09-14 07:57:52 +00:00
|
|
|
echo "Layout applied"
|
2022-12-06 14:33:02 +00:00
|
|
|
fi
|
|
|
|
|
2023-09-14 07:57:52 +00:00
|
|
|
#/home/tanguy/.config/polybar/launch.sh > /dev/null 2>&1
|