summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2020-12-03 12:52:42 +0100
committerRobert Günzler <r@gnzler.io>2020-12-07 19:28:05 +0100
commitf4dde76b9a849b45bd29996c76980843c87d21eb (patch)
treeb1901609343872fdfaa44a610e1fb8d04dec600f
parent5e82d2c9426910247bd836f5de8cb7243cc5ebff (diff)
Add bin/firefox; spawns different profiles based on arg0
-rwxr-xr-xbin/firefox27
1 files changed, 27 insertions, 0 deletions
diff --git a/bin/firefox b/bin/firefox
new file mode 100755
index 0000000..659b854
--- /dev/null
+++ b/bin/firefox
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+set -x
+
+bin=${FIREFOX_BIN:-firefox-nightly-bin}
+
+# enable touch device support
+export MOZ_USE_XINPUT2=1
+
+case "$(basename "$0")" in
+    firefox|nightly)
+        exec "${bin}" --profile $HOME/.mozilla/firefox/wr7p23up.default-nightly $@ ;;
+
+    firefox-kiosk)
+        exec "${bin}" --profile $HOME/.mozilla/firefox/wr7p23up.default-nightly --ssb $@ ;;
+
+    firefox-clean)
+        exec firejail \
+            --overlay-tmpfs \
+            --profile=firefox \
+            "${bin}" -P clean --new-instance $@ ;;
+
+    workfox)
+        swx -M work "${bin}" --profile $HOME/.mozilla/firefox/d2ps1x6l.work $@ ;;
+    workfox-kiosk)
+        swx -M work "${bin}" --profile $HOME/.mozilla/firefox/d2ps1x6l.work --ssb $@ ;;
+esac