From 3becb367d1e6b489a78642c45e77f03a2b3ef334 Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 12 Apr 2019 15:40:23 +0200 Subject: bin/startsway: Using host specific config, if available. --- bin/startsway | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2