From 6476c98e8f7f51933d1d2d71e628d6c3ff8e50f1 Mon Sep 17 00:00:00 2001 From: wholteza Date: Sun, 16 Aug 2026 08:02:00 +0200 Subject: [PATCH] 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. --- .config/screenlayout/apply-screen-layout.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.config/screenlayout/apply-screen-layout.sh b/.config/screenlayout/apply-screen-layout.sh index e17f10e..8da806d 100755 --- a/.config/screenlayout/apply-screen-layout.sh +++ b/.config/screenlayout/apply-screen-layout.sh @@ -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