[DOC] Add default theme loading to rofi-theme manpage.

This commit is contained in:
Dave Davenport 2021-09-12 19:59:36 +02:00
parent b9e28942bf
commit ff022f8940
2 changed files with 62 additions and 0 deletions

View File

@ -3,6 +3,44 @@
.PP
\fBrofi\-theme\fP \- Rofi theme format files
.SH DEFAULT THEME LOADING
.PP
By default, rofi loads the default theme. This theme is \fBalways\fP loaded.
In the default (always loaded) configuration it does:
.PP
.RS
.nf
@theme "default"
.fi
.RE
.PP
To unload the default theme, and load another theme, add \fB\fC@theme\fR to your
\fB\fCconfig.rasi\fR file.
.PP
If you have a theme loaded by \fB\fC@theme\fR or use the default theme, you can tweak
it by adding overriding elements at the end of your \fB\fCconfig.rasi\fR file.
.PP
For the difference between \fB\fC@import\fR and \fB\fC@theme\fR see the \fB\fCMultiple file
handling\fR section in this manpage.
.PP
To see the default theme, run the following command:
.PP
.RS
.nf
rofi \-no\-config \-dump\-theme
.fi
.RE
.SH DESCRIPTION
.PP
The need for a new theme format was motivated by the fact that the way rofi handled widgets has changed. From a very

View File

@ -4,6 +4,30 @@
**rofi-theme** - Rofi theme format files
## DEFAULT THEME LOADING
By default, rofi loads the default theme. This theme is **always** loaded.
In the default (always loaded) configuration it does:
```css
@theme "default"
```
To unload the default theme, and load another theme, add `@theme` to your
`config.rasi` file.
If you have a theme loaded by `@theme` or use the default theme, you can tweak
it by adding overriding elements at the end of your `config.rasi` file.
For the difference between `@import` and `@theme` see the `Multiple file
handling` section in this manpage.
To see the default theme, run the following command:
```bash
rofi -no-config -dump-theme
```
## DESCRIPTION
The need for a new theme format was motivated by the fact that the way rofi handled widgets has changed. From a very