summarylogtreecommitdiffstats
path: root/INSTALL.md
blob: fa74205004064cd56f6fe3212af35e766ed6f82f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
## Manual installation from a system installed package

1. Go to `about:support` in Firefox.

2. Application Basics > Profile Directory > Open Directory.

3. Open directory in a terminal.

4. Create a `chrome` directory if it doesn't exist:

   ```sh
   mkdir chrome
   cd chrome
   ```

5. create a symlink to the actual theme location:

   ```sh
   ln -s /usr/lib/firefox-gnome-theme firefox-gnome-theme
   ```

6. Create single-line user CSS files if non-existent or empty (at least one line is needed for `sed`):

   ```sh
   [[ -s userChrome.css ]] || echo >> userChrome.css
   [[ -s userContent.css ]] || echo >> userContent.css
   ```

7. Import this theme at the beginning of the CSS files (all `@import`s must come before any existing `@namespace` declarations):

   ```sh
   sed -i '1s/^/@import "firefox-gnome-theme\/userChrome.css";\n/' userChrome.css
   sed -i '1s/^/@import "firefox-gnome-theme\/userContent.css";\n/' userContent.css
   ```

8. Symlink preferences file:

   ```sh
   cd .. # Go back to the profile directory
   ln -fs chrome/firefox-gnome-theme/configuration/user.js user.js
   ```

9. Restart Firefox.

10. Open Firefox customization panel and move the new tab button to headerbar.

Done. See README.md for more details.