aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2019-04-12 15:40:23 +0200
committerDavid Runge <dave@sleepmap.de>2019-04-12 15:40:23 +0200
commit3becb367d1e6b489a78642c45e77f03a2b3ef334 (patch)
treedf88450b812d6de7b47cbf3179c8d57887115512
parentf06bd11ecaebea28df2b21b732a65a1a9081988f (diff)
downloaddotfiles-3becb367d1e6b489a78642c45e77f03a2b3ef334.tar.gz
dotfiles-3becb367d1e6b489a78642c45e77f03a2b3ef334.tar.bz2
dotfiles-3becb367d1e6b489a78642c45e77f03a2b3ef334.tar.xz
dotfiles-3becb367d1e6b489a78642c45e77f03a2b3ef334.zip
bin/startsway: Using host specific config, if available.
-rwxr-xr-xbin/startsway8
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