summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-03-04 15:18:24 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-03-04 15:18:24 +1100
commit94fc21eb45446727993a0ac8f5b849cb5add67aa (patch)
tree1ef81defcda1c24915a1039aa5129c2080428f49
parentinstall: firefox module (diff)
downloadcaelestia-cli-94fc21eb45446727993a0ac8f5b849cb5add67aa.tar.gz
caelestia-cli-94fc21eb45446727993a0ac8f5b849cb5add67aa.tar.bz2
caelestia-cli-94fc21eb45446727993a0ac8f5b849cb5add67aa.zip
install: fix firefox install
Also actually add it to the completions and valid modules
-rw-r--r--completions/caelestia.fish2
-rwxr-xr-xinstall/firefox.fish8
-rwxr-xr-xmain.fish2
3 files changed, 9 insertions, 3 deletions
diff --git a/completions/caelestia.fish b/completions/caelestia.fish
index 0651709..2eac75c 100644
--- a/completions/caelestia.fish
+++ b/completions/caelestia.fish
@@ -22,7 +22,7 @@ complete -c caelestia -n $not_seen -a 'wallpaper' -d 'Change the wallpaper'
complete -c caelestia -n $not_seen -a 'pip' -d 'Picture in picture utilities'
# Install
-set -l commands all discord fish foot fuzzel hypr safeeyes scripts shell gtk vscode
+set -l commands all discord firefox fish foot fuzzel hypr safeeyes scripts shell gtk vscode
complete -c caelestia -n "$seen install && not $seen $commands" -a "$commands"
# Shell
diff --git a/install/firefox.fish b/install/firefox.fish
index 7f170d1..3f6c78c 100755
--- a/install/firefox.fish
+++ b/install/firefox.fish
@@ -21,7 +21,13 @@ end
# Install zen css
if test -d $HOME/.zen
for profile in $HOME/.zen/*/chrome
- cp $dist/zen.css $profile/userChrome.css
+ for file in userChrome userContent
+ if test -f $profile/$file.css
+ echo -e "@import url('$dist/zen/$file.css');\n$(cat $profile/$file.css)" > $profile/$file.css
+ else
+ echo "@import url('$dist/zen/$file.css');" > $profile/$file.css
+ end
+ end
end
end
diff --git a/main.fish b/main.fish
index 4889275..a349ecc 100755
--- a/main.fish
+++ b/main.fish
@@ -35,7 +35,7 @@ if test "$argv[1]" = scheme
end
if test "$argv[1]" = install
- set -l valid_modules scripts discord fish foot fuzzel hypr safeeyes shell gtk vscode
+ set -l valid_modules scripts discord firefox fish foot fuzzel hypr safeeyes shell gtk vscode
if test "$argv[2]" = all
for module in $valid_modules
$src/install/$module.fish $argv[3..]