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.
18 lines
511 B
Bash
Executable File
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
|
|
|