mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-05 14:59:29 -05:00
install: firefox module
This commit is contained in:
Executable
+29
@@ -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'
|
||||
Reference in New Issue
Block a user