aboutsummaryrefslogtreecommitdiffstats
path: root/sway-launcher-desktop.sh
diff options
context:
space:
mode:
authorJoe Fiorini <joe@joefiorini.com>2019-10-23 09:53:13 -0400
committerGitHub <noreply@github.com>2019-10-23 09:53:13 -0400
commite5f9c51dfd1c43c9f49b929071e63c96b6a0950a (patch)
treeb9e5588900f9a602d19b3d6cf2ce1a9917e7e4a0 /sway-launcher-desktop.sh
parent63bec1eaf0946952f5004e7140a7b9307f2ea2f3 (diff)
downloadsway-launcher-desktop-e5f9c51dfd1c43c9f49b929071e63c96b6a0950a.tar.gz
sway-launcher-desktop-e5f9c51dfd1c43c9f49b929071e63c96b6a0950a.zip
Allow overriding terminal variable
Diffstat (limited to 'sway-launcher-desktop.sh')
-rwxr-xr-xsway-launcher-desktop.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/sway-launcher-desktop.sh b/sway-launcher-desktop.sh
index c459d10..a631a47 100755
--- a/sway-launcher-desktop.sh
+++ b/sway-launcher-desktop.sh
@@ -20,7 +20,10 @@ if [[ "$1" == 'describe' ]]; then
exit
fi
-TERMINAL_COMMAND="termite -e"
+# Defaulting terminal to termite, but feel free to either change
+# this or override with an environment variable in your sway config
+# It would be good to move this to a config file eventually
+set ${TERMINAL_COMMAND:="termite -e"}
HIST_FILE="${XDG_CACHE_HOME:-$HOME/.cache}/${0##*/}-history.txt"