diff options
author | David Runge <dave@sleepmap.de> | 2019-04-12 15:40:23 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2019-04-12 15:40:23 +0200 |
commit | 3becb367d1e6b489a78642c45e77f03a2b3ef334 (patch) | |
tree | df88450b812d6de7b47cbf3179c8d57887115512 /bin/startsway | |
parent | f06bd11ecaebea28df2b21b732a65a1a9081988f (diff) | |
download | dotfiles-3becb367d1e6b489a78642c45e77f03a2b3ef334.tar.gz dotfiles-3becb367d1e6b489a78642c45e77f03a2b3ef334.tar.bz2 dotfiles-3becb367d1e6b489a78642c45e77f03a2b3ef334.tar.xz dotfiles-3becb367d1e6b489a78642c45e77f03a2b3ef334.zip |
bin/startsway: Using host specific config, if available.
Diffstat (limited to 'bin/startsway')
-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 |