summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2019-12-25 23:10:46 +0100
committerDave Davenport <qball@gmpclient.org>2019-12-25 23:10:46 +0100
commit2c56e5ca330bee411e2544ff8b10dc3330c4e8e9 (patch)
tree3651066e4840112e8004655369c98c1020e4b56d
parentcc71fa13b71ff5f35623a16dd8603fe1fb033e13 (diff)
[DOC] Update theme documentation with @media.
-rw-r--r--doc/rofi-theme.536
-rw-r--r--doc/rofi-theme.5.markdown23
2 files changed, 59 insertions, 0 deletions
diff --git a/doc/rofi-theme.5 b/doc/rofi-theme.5
index 7d30a5a0..72918a54 100644
--- a/doc/rofi-theme.5
+++ b/doc/rofi-theme.5
@@ -1471,6 +1471,42 @@ rofi \-dump\-theme
.fi
.RE
+.SH Media support
+.PP
+Parts of the theme can be conditionally loaded, like the CSS \fB\fC@media\fR option.
+
+.PP
+.RS
+
+.nf
+@media ( min\-width: 120px ) {
+
+}
+
+.fi
+.RE
+
+.PP
+It supports the following keys as constraint:
+
+.RS
+.IP \(bu 2
+\fB\fCmin\-width\fR: load when width is bigger then value.
+.IP \(bu 2
+\fB\fCmax\-width\fR: load when width is smaller then value.
+.IP \(bu 2
+\fB\fCmin\-height\fR: load when height is bigger then value.
+.IP \(bu 2
+\fB\fCmax\-height\fR: load when height is smaller then value.
+.IP \(bu 2
+\fB\fCmin\-aspect\-ratio\fR load when aspect ratio is over value.
+.IP \(bu 2
+\fB\fCmax\-aspect\_ratio\fR: load when aspect ratio is under value.
+.IP \(bu 2
+\fB\fCmonitor\-id\fR: The monitor id, see rofi \-help for id's.
+
+.RE
+
.SH EXAMPLES
.PP
Several examples are installed together with \fBrofi\fP\&. These can be found in \fB\fC{datadir}/rofi/themes/\fR, where
diff --git a/doc/rofi-theme.5.markdown b/doc/rofi-theme.5.markdown
index ee88b879..b7bc8b61 100644
--- a/doc/rofi-theme.5.markdown
+++ b/doc/rofi-theme.5.markdown
@@ -933,6 +933,29 @@ To print the current theme, run:
rofi -dump-theme
```
+## Media support
+
+Parts of the theme can be conditionally loaded, like the CSS `@media` option.
+
+```
+@media ( min-width: 120px ) {
+
+}
+```
+
+It supports the following keys as constraint:
+
+ * `min-width`: load when width is bigger then value.
+ * `max-width`: load when width is smaller then value.
+ * `min-height`: load when height is bigger then value.
+ * `max-height`: load when height is smaller then value.
+ * `min-aspect-ratio` load when aspect ratio is over value.
+ * `max-aspect_ratio`: load when aspect ratio is under value.
+ * `monitor-id`: The monitor id, see rofi -help for id's.
+
+
+
+
## EXAMPLES