summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-03-04 14:28:22 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-03-04 14:28:22 +1100
commitfc1f8b07bfee0ef1093bc5ee6a6a537a20a3911e (patch)
treef090eafe22750a71b4a892cde4f1bb377db25b2e
parentinstall: gtk no prompt if already using papirus (diff)
downloadcaelestia-cli-fc1f8b07bfee0ef1093bc5ee6a6a537a20a3911e.tar.gz
caelestia-cli-fc1f8b07bfee0ef1093bc5ee6a6a537a20a3911e.tar.bz2
caelestia-cli-fc1f8b07bfee0ef1093bc5ee6a6a537a20a3911e.zip
install: firefox module
-rwxr-xr-xinstall/firefox.fish29
1 files changed, 29 insertions, 0 deletions
diff --git a/install/firefox.fish b/install/firefox.fish
new file mode 100755
index 0000000..7f170d1
--- /dev/null
+++ b/install/firefox.fish
@@ -0,0 +1,29 @@
+#!/bin/fish
+
+. (dirname (status filename))/util.fish
+
+install-deps git inotify-tools
+
+set -l dist $C_DATA/firefox
+
+# Update/Clone repo
+update-repo firefox $dist
+
+# Install native app manifest
+for dev in mozilla zen
+ if test -d $HOME/.$dev
+ mkdir -p $HOME/.$dev/native-messaging-hosts
+ cp $dist/native_app/manifest.json $HOME/.$dev/native-messaging-hosts/caelestiafox.json
+ sed -i "s|\$SRC|$dist|g" $HOME/.$dev/native-messaging-hosts/caelestiafox.json
+ end
+end
+
+# Install zen css
+if test -d $HOME/.zen
+ for profile in $HOME/.zen/*/chrome
+ cp $dist/zen.css $profile/userChrome.css
+ end
+end
+
+log 'Done.'
+log 'Please install the extension manually from https://addons.mozilla.org/en-US/firefox/addon/caelestiafox'