aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2020-07-27 15:43:52 +0200
committerDavid Runge <dave@sleepmap.de>2020-07-27 15:43:52 +0200
commit0610cc873bfcec666099867150788bc3da873d5d (patch)
treeb26842c1cfe8a14e4d66c54b9d996ecf51a0a2ba
parentfa8400c18193d09f3c8659a0607a20f5fe0d2cd4 (diff)
downloaddotfiles-0610cc873bfcec666099867150788bc3da873d5d.tar.gz
dotfiles-0610cc873bfcec666099867150788bc3da873d5d.tar.bz2
dotfiles-0610cc873bfcec666099867150788bc3da873d5d.tar.xz
dotfiles-0610cc873bfcec666099867150788bc3da873d5d.zip
Replace hostname executable
bin/startsway: Replace use of hostname executable with HOSTNAME variable (as it's a bash script).
-rwxr-xr-xbin/startsway4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/startsway b/bin/startsway
index 2f3c5ee..0809fb8 100755
--- a/bin/startsway
+++ b/bin/startsway
@@ -17,7 +17,7 @@ export RUST_BACKTRACE=full
mkdir -p "$HOME/.log"
config="$HOME/.config/sway/config"
-if [ -f "$HOME/.config/sway/$(hostname)" ]; then
- config="$HOME/.config/sway/$(hostname)"
+if [ -f "$HOME/.config/sway/${HOSTNAME}" ]; then
+ config="$HOME/.config/sway/${HOSTNAME}"
fi
/usr/bin/sway -c "$config" > "$HOME/.log/sway.log" 2>&1