diff options
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 |