From 79349095c7b8e6b159d1ecce0f5fa298b3392a09 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Wed, 9 Feb 2022 00:14:31 +0100 Subject: add river init and make some scripts work --- bin/firefox | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bin/firefox') diff --git a/bin/firefox b/bin/firefox index 9a05b9e..d49d9af 100755 --- a/bin/firefox +++ b/bin/firefox @@ -28,6 +28,11 @@ firefox-clean) ;; workfox) - swx -M work -- "${bin}" --profile $HOME/.mozilla/firefox/d2ps1x6l.work $@ + set -- "${bin}" --profile "$HOME"/.mozilla/firefox/d2ps1x6l.work "$@" + if swaymsg -t get_version >/dev/null 2>&1; then + exec swx -M work -- "$@" + else + exec "$@" + fi ;; esac -- cgit 1.4.1