diff options
-rwxr-xr-x | bin/startsway | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/startsway b/bin/startsway index ee46560..582b77e 100755 --- a/bin/startsway +++ b/bin/startsway @@ -2,5 +2,11 @@ export XKB_DEFAULT_LAYOUT=us,de export XKB_DEFAULT_OPTIONS=grp:alt_shift_toggle + mkdir -p "$HOME/.log" -/usr/bin/sway -dV > "$HOME/.log/sway.log" 2>&1 +config="$HOME/.config/sway/config" + +if [ -f "$HOME/.config/sway/$(hostname)" ]; then + config="$HOME/.config/sway/$(hostname)" +fi +/usr/bin/sway -dV -c "$config" > "$HOME/.log/sway.log" 2>&1 |