Fix syntax error in apply-screen-layout.sh breaking display config
Missing space before ]] on the "vos" branch caused a bash parse error, which made the whole script fail silently on every host (including arch-bepis) before it could dispatch to the per-host layout script. Also dropped the $(...) wrapping around each script call, which captured swaymsg's JSON stdout and tried to execute it as a command.
This commit is contained in:
@@ -2,16 +2,16 @@
|
|||||||
hostname=$(cat ~/hostname)
|
hostname=$(cat ~/hostname)
|
||||||
|
|
||||||
if [[ $hostname == "bepis" ]]; then
|
if [[ $hostname == "bepis" ]]; then
|
||||||
$(~/.config/screenlayout/desktop.sh)
|
~/.config/screenlayout/desktop.sh
|
||||||
elif [[ $hostname == "arch-bepis" ]]; then
|
elif [[ $hostname == "arch-bepis" ]]; then
|
||||||
$(~/.config/screenlayout/arch-bepis-desktop-sway.sh)
|
~/.config/screenlayout/arch-bepis-desktop-sway.sh
|
||||||
elif [[ $hostname == "printer" ]]; then
|
elif [[ $hostname == "printer" ]]; then
|
||||||
$(~/.config/screenlayout/printer.sh)
|
~/.config/screenlayout/printer.sh
|
||||||
elif [[ $hostname == "surface" ]]; then
|
elif [[ $hostname == "surface" ]]; then
|
||||||
$(~/.config/screenlayout/surface.sh)
|
~/.config/screenlayout/surface.sh
|
||||||
elif [[ $hostname == "bepis-laptop" ]]; then
|
elif [[ $hostname == "bepis-laptop" ]]; then
|
||||||
$(~/.config/screenlayout/laptop.sh)
|
~/.config/screenlayout/laptop.sh
|
||||||
elif [[ $hostname == "vos" ]]; then
|
elif [[ $hostname == "vos" ]]; then
|
||||||
$(~/.config/screenlayout/vos.sh)
|
~/.config/screenlayout/vos.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user