Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
(add): removing installer script and combining them into one, fixing …
Browse files Browse the repository at this point in the history
…getting default firefox profile and moving themes to be more accesible from the installer script
  • Loading branch information
iruzo committed Apr 19, 2023
1 parent 7994630 commit 6d140cd
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 140 deletions.
32 changes: 8 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,32 +27,16 @@ This theme was known previously as »*ag.proton*« — but let's be honest: That

- Default
```sh
sh <(curl https://raw.githubusercontent.com/andreasgrafen/cascade/main/installer/default.sh)
sh -c "$(curl -sSL https://raw.githubusercontent.com/andreasgrafen/cascade/main/installer.sh)"
```
- gruvbox
```sh
sh <(curl https://raw.githubusercontent.com/andreasgrafen/cascade/main/installer/gruvbox.sh)
```
- rosepine-default
```sh
sh <(curl https://raw.githubusercontent.com/andreasgrafen/cascade/main/installer/rosepine-default.sh)
```
- rosepine-moon
```sh
sh <(curl https://raw.githubusercontent.com/andreasgrafen/cascade/main/installer/rosepine-moon.sh)
```
- catppuccin-frappe
```sh
sh <(curl https://raw.githubusercontent.com/andreasgrafen/cascade/main/installer/catppuccin-frappe.sh)
```
- catppuccin-macchiato
```sh
sh <(curl https://raw.githubusercontent.com/andreasgrafen/cascade/main/installer/catppuccin-macchiato.sh)
```
- catppuccin-mocha

- Selecting a theme
```sh
sh <(curl https://raw.githubusercontent.com/andreasgrafen/cascade/main/installer/catppuccin-mocha.sh)
sh -c "$(curl -sSL https://raw.githubusercontent.com/andreasgrafen/cascade/main/installer.sh) gruvbox"
```

> **Note** You can select from multiple themes like catppuccin, rose pine, or gruvbox. Themes are available in "integrations/". Replace in the previous example "gruvbox" with your desired theme.
> **Note** On NixOS, you can modify `toolkit.legacyUserProfileCustomizations.stylesheets` by setting `"DisableProfileCustomizations": true` on your `policies` config, or execute one of the installer scripts using `post-build-hook = installer.sh`
> **Note** You can configure it manually following the MacOS and Windows steps with the next path for Linux `$HOME/.mozilla/firefox/######.default-release/`
Expand Down Expand Up @@ -87,7 +71,7 @@ It seems like `flexbox` (within the Firefox UI) is inheritly broken on Windows.
<details>
<summary>Theming</summary>

Set your theme: You can change between multiple themes by replacing the content in `chrome/includes/cascade-colours.css` with one of the themes in `integrations/theme/theme.css`
Set your theme: You can change between multiple themes by replacing the content in `chrome/includes/cascade-colours.css` with one of the themes in `integrations/theme.css`

This are the themes available:

Expand Down
10 changes: 7 additions & 3 deletions installer/catppuccin-frappe.sh → installer.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/bin/sh
DEFAULT_FIREFOX_PROFILE=$(ls $HOME/.mozilla/firefox/ | grep default | awk -F' ' '{print $NF}')
DEFAULT_FIREFOX_PROFILE=$(grep 'Path=' "$firefox_profiles_dir/profiles.ini" | cut -d= -f2)
rm $HOME/.mozilla/firefox/$DEFAULT_FIREFOX_PROFILE/chrome -rf
cd $HOME/.mozilla/firefox/$DEFAULT_FIREFOX_PROFILE
git clone https://github.com/iruzo/cascade && mv cascade/chrome .
mv cascade/integrations/catppuccin/cascade-frappe.css chrome/includes/cascade-colours.css
rm cascade -rf

# configure desired theme
if [ "$#" -gt 0 ]; then
mv cascade/integrations/cascade-$1.css chrome/includes/cascade-colours.css
rm cascade -rf
fi

# change toolkit.legacyUserProfileCustomizations.stylesheets
if [ ! -e "$HOME/.mozilla/firefox/$DEFAULT_FIREFOX_PROFILE/prefs.js" ]; then
Expand Down
19 changes: 0 additions & 19 deletions installer/catppuccin-macchiato.sh

This file was deleted.

19 changes: 0 additions & 19 deletions installer/catppuccin-mocha.sh

This file was deleted.

18 changes: 0 additions & 18 deletions installer/default.sh

This file was deleted.

19 changes: 0 additions & 19 deletions installer/gruvbox.sh

This file was deleted.

19 changes: 0 additions & 19 deletions installer/rosepine-default.sh

This file was deleted.

19 changes: 0 additions & 19 deletions installer/rosepine-moon.sh

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6d140cd

Please sign in to comment.