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:
2026-08-16 08:02:00 +02:00
parent 1e5fcb84b7
commit 6476c98e8f

View File

@@ -2,16 +2,16 @@
hostname=$(cat ~/hostname)
if [[ $hostname == "bepis" ]]; then
$(~/.config/screenlayout/desktop.sh)
~/.config/screenlayout/desktop.sh
elif [[ $hostname == "arch-bepis" ]]; then
$(~/.config/screenlayout/arch-bepis-desktop-sway.sh)
~/.config/screenlayout/arch-bepis-desktop-sway.sh
elif [[ $hostname == "printer" ]]; then
$(~/.config/screenlayout/printer.sh)
~/.config/screenlayout/printer.sh
elif [[ $hostname == "surface" ]]; then
$(~/.config/screenlayout/surface.sh)
~/.config/screenlayout/surface.sh
elif [[ $hostname == "bepis-laptop" ]]; then
$(~/.config/screenlayout/laptop.sh)
elif [[ $hostname == "vos"]]; then
$(~/.config/screenlayout/vos.sh)
~/.config/screenlayout/laptop.sh
elif [[ $hostname == "vos" ]]; then
~/.config/screenlayout/vos.sh
fi