Files
dotfiles/.config/screenlayout/apply-screen-layout.sh
wholteza 6476c98e8f 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.
2026-08-16 08:02:00 +02:00

18 lines
511 B
Bash
Executable File

#!/bin/bash
hostname=$(cat ~/hostname)
if [[ $hostname == "bepis" ]]; then
~/.config/screenlayout/desktop.sh
elif [[ $hostname == "arch-bepis" ]]; then
~/.config/screenlayout/arch-bepis-desktop-sway.sh
elif [[ $hostname == "printer" ]]; then
~/.config/screenlayout/printer.sh
elif [[ $hostname == "surface" ]]; then
~/.config/screenlayout/surface.sh
elif [[ $hostname == "bepis-laptop" ]]; then
~/.config/screenlayout/laptop.sh
elif [[ $hostname == "vos" ]]; then
~/.config/screenlayout/vos.sh
fi