diff options
| author | Robert Günzler <r@gnzler.io> | 2022-02-09 00:14:31 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2022-02-09 00:16:55 +0100 |
| commit | 79349095c7b8e6b159d1ecce0f5fa298b3392a09 (patch) | |
| tree | 5a791ac6b73988c3b857188db5df1f86b27cc590 /bin/firefox | |
| parent | fcd381b368c1498034f8d0170268dc5613ba23f8 (diff) | |
add river init and make some scripts work
Diffstat (limited to 'bin/firefox')
| -rwxr-xr-x | bin/firefox | 7 |
1 files changed, 6 insertions, 1 deletions
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 |