Improvements to rofi-theme manpage.
This commit is contained in:
@@ -117,6 +117,9 @@ It is advised to define the \fIglobal properties section\fR on top of the file t
|
|||||||
.
|
.
|
||||||
.IP "" 0
|
.IP "" 0
|
||||||
.
|
.
|
||||||
|
.P
|
||||||
|
If there are mulitple sections with the same name, they are merged\. Duplicate properties are overwritten and the last parsed entry kept\.
|
||||||
|
.
|
||||||
.SH "Global properties section"
|
.SH "Global properties section"
|
||||||
A theme can have one or more global properties sections (If there is more than one they will be merged)
|
A theme can have one or more global properties sections (If there is more than one they will be merged)
|
||||||
.
|
.
|
||||||
@@ -218,7 +221,7 @@ The properties in a section consist of:
|
|||||||
Both fields are manditory for a property\.
|
Both fields are manditory for a property\.
|
||||||
.
|
.
|
||||||
.P
|
.P
|
||||||
The \fBidentifier\fR names the specified property\. Identifiers can consist of any combination of numbers, letters and \'\-\'\. It must not contain any whitespace\. The structure of the \fBvalue\fR defines the type of the property\.
|
The \fBidentifier\fR names the specified property\. Identifiers can consist of any combination of numbers, letters and \'\-\'\. It must not contain any whitespace\. The structure of the \fBvalue\fR defines the type of the property\. The current parser does not define or enforce a certain type of a particular \fBidentifier\fR\. When used, values with the wrong type that cannot be converted, are ignored\.
|
||||||
.
|
.
|
||||||
.P
|
.P
|
||||||
The current theme format support different type:
|
The current theme format support different type:
|
||||||
@@ -293,6 +296,9 @@ font: "Awasome 12";
|
|||||||
.
|
.
|
||||||
.IP "" 0
|
.IP "" 0
|
||||||
.
|
.
|
||||||
|
.P
|
||||||
|
The string must be valid utf\-8\.
|
||||||
|
.
|
||||||
.SH "Integer"
|
.SH "Integer"
|
||||||
.
|
.
|
||||||
.IP "\(bu" 4
|
.IP "\(bu" 4
|
||||||
@@ -387,10 +393,10 @@ Format: \fBrgb[a]({INTEGER},{INTEGER},{INTEGER}[, {PERCENTAGE}])\fR
|
|||||||
Format: \fBrgb[a]({INTEGER}%,{INTEGER}%,{INTEGER}%[, {PERCENTAGE}])\fR
|
Format: \fBrgb[a]({INTEGER}%,{INTEGER}%,{INTEGER}%[, {PERCENTAGE}])\fR
|
||||||
.
|
.
|
||||||
.IP "\(bu" 4
|
.IP "\(bu" 4
|
||||||
Format: \fBhsl[a]( {ANGLE}, {PERCENTAGE}, {PERCENTAGE} [{PERCENTAGE}])\fR
|
Format: \fBhsl[a]( {ANGLE}, {PERCENTAGE}, {PERCENTAGE} [, {PERCENTAGE}])\fR
|
||||||
.
|
.
|
||||||
.IP "\(bu" 4
|
.IP "\(bu" 4
|
||||||
Format: \fBhwb[a]( {ANGLE}, {PERCENTAGE}, {PERCENTAGE} [{PERCENTAGE}])\fR
|
Format: \fBhwb[a]( {ANGLE}, {PERCENTAGE}, {PERCENTAGE} [, {PERCENTAGE}])\fR
|
||||||
.
|
.
|
||||||
.IP "\(bu" 4
|
.IP "\(bu" 4
|
||||||
Format: \fBcmyk( {PERCENTAGE}, {PERCENTAGE}, {PERCENTAGE}, {PERCENTAGE} [, {PERCENTAGE} ])\fR
|
Format: \fBcmyk( {PERCENTAGE}, {PERCENTAGE}, {PERCENTAGE}, {PERCENTAGE} [, {PERCENTAGE} ])\fR
|
||||||
@@ -595,9 +601,25 @@ Format: \fB{Distance} {Line style} {Distance} {Line style} {Distance} {Line styl
|
|||||||
Border are identical to padding, except that each distance field has a line style property\.
|
Border are identical to padding, except that each distance field has a line style property\.
|
||||||
.
|
.
|
||||||
.SH "Position"
|
.SH "Position"
|
||||||
|
Indicate a place on the window/monitor\.
|
||||||
.
|
.
|
||||||
.IP "\(bu" 4
|
.IP "\(bu" 4
|
||||||
Format: \fB(center|east|north|west|northeast|northweast|south|southwest|southeast)\fR
|
Format: \fB(center|east|north|west|south|north east|north west|south west|south east)\fR
|
||||||
|
.
|
||||||
|
.IP "" 0
|
||||||
|
.
|
||||||
|
.IP "" 4
|
||||||
|
.
|
||||||
|
.nf
|
||||||
|
|
||||||
|
|
||||||
|
north west | north | north east
|
||||||
|
\-\-\-\-\-\-\-\-\-\-\-\-\-|\-\-\-\-\-\-\-\-\-\-\-\-\-|\-\-\-\-\-\-\-\-\-\-\-\-
|
||||||
|
west | center | east
|
||||||
|
\-\-\-\-\-\-\-\-\-\-\-\-\-|\-\-\-\-\-\-\-\-\-\-\-\-\-|\-\-\-\-\-\-\-\-\-\-\-\-
|
||||||
|
south west | south | south east
|
||||||
|
.
|
||||||
|
.fi
|
||||||
.
|
.
|
||||||
.IP "" 0
|
.IP "" 0
|
||||||
.
|
.
|
||||||
@@ -621,6 +643,25 @@ highlight: bold @pink;
|
|||||||
.
|
.
|
||||||
.IP "" 0
|
.IP "" 0
|
||||||
.
|
.
|
||||||
|
.P
|
||||||
|
But this is:
|
||||||
|
.
|
||||||
|
.IP "" 4
|
||||||
|
.
|
||||||
|
.nf
|
||||||
|
|
||||||
|
* {
|
||||||
|
myhigh: bold #FAA;
|
||||||
|
}
|
||||||
|
|
||||||
|
#window {
|
||||||
|
highlight: @myhigh;
|
||||||
|
}
|
||||||
|
.
|
||||||
|
.fi
|
||||||
|
.
|
||||||
|
.IP "" 0
|
||||||
|
.
|
||||||
.SH "Orientation"
|
.SH "Orientation"
|
||||||
.
|
.
|
||||||
.IP "\(bu" 4
|
.IP "\(bu" 4
|
||||||
|
@@ -18,7 +18,7 @@ to create their own rofi themes without the need to learn a new markup language.
|
|||||||
|
|
||||||
## Encoding
|
## Encoding
|
||||||
|
|
||||||
The encoding of the file is utf-8. Both unix (`\n`) and windows (`\r\n`) newlines format are supported. But unix is
|
The encoding of the file is utf-8. Both unix (`\n`) and windows (`\r\n`) newlines format are supported. But unix is
|
||||||
preferred.
|
preferred.
|
||||||
|
|
||||||
## Comments
|
## Comments
|
||||||
@@ -91,6 +91,9 @@ make inheritance of properties clearer.
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If there are mulitple sections with the same name, they are merged. Duplicate properties are overwritten and the last
|
||||||
|
parsed entry kept.
|
||||||
|
|
||||||
## Global properties section
|
## Global properties section
|
||||||
|
|
||||||
A theme can have one or more global properties sections (If there is more than one
|
A theme can have one or more global properties sections (If there is more than one
|
||||||
@@ -166,7 +169,9 @@ Both fields are manditory for a property.
|
|||||||
|
|
||||||
The `identifier` names the specified property. Identifiers can consist of any
|
The `identifier` names the specified property. Identifiers can consist of any
|
||||||
combination of numbers, letters and '-'. It must not contain any whitespace.
|
combination of numbers, letters and '-'. It must not contain any whitespace.
|
||||||
The structure of the `value` defines the type of the property.
|
The structure of the `value` defines the type of the property. The current
|
||||||
|
parser does not define or enforce a certain type of a particular `identifier`.
|
||||||
|
When used, values with the wrong type that cannot be converted, are ignored.
|
||||||
|
|
||||||
The current theme format support different type:
|
The current theme format support different type:
|
||||||
|
|
||||||
@@ -199,6 +204,8 @@ For example:
|
|||||||
font: "Awasome 12";
|
font: "Awasome 12";
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The string must be valid utf-8.
|
||||||
|
|
||||||
## Integer
|
## Integer
|
||||||
|
|
||||||
* Format: `[-+]?[:digit:]+`
|
* Format: `[-+]?[:digit:]+`
|
||||||
@@ -248,8 +255,8 @@ dynamic: false;
|
|||||||
* Format: `#{HEX}{8}` (rrggbbaa)
|
* Format: `#{HEX}{8}` (rrggbbaa)
|
||||||
* Format: `rgb[a]({INTEGER},{INTEGER},{INTEGER}[, {PERCENTAGE}])`
|
* Format: `rgb[a]({INTEGER},{INTEGER},{INTEGER}[, {PERCENTAGE}])`
|
||||||
* Format: `rgb[a]({INTEGER}%,{INTEGER}%,{INTEGER}%[, {PERCENTAGE}])`
|
* Format: `rgb[a]({INTEGER}%,{INTEGER}%,{INTEGER}%[, {PERCENTAGE}])`
|
||||||
* Format: `hsl[a]( {ANGLE}, {PERCENTAGE}, {PERCENTAGE} [{PERCENTAGE}])`
|
* Format: `hsl[a]( {ANGLE}, {PERCENTAGE}, {PERCENTAGE} [, {PERCENTAGE}])`
|
||||||
* Format: `hwb[a]( {ANGLE}, {PERCENTAGE}, {PERCENTAGE} [{PERCENTAGE}])`
|
* Format: `hwb[a]( {ANGLE}, {PERCENTAGE}, {PERCENTAGE} [, {PERCENTAGE}])`
|
||||||
* Format: `cmyk( {PERCENTAGE}, {PERCENTAGE}, {PERCENTAGE}, {PERCENTAGE} [, {PERCENTAGE} ])`
|
* Format: `cmyk( {PERCENTAGE}, {PERCENTAGE}, {PERCENTAGE}, {PERCENTAGE} [, {PERCENTAGE} ])`
|
||||||
* Format: `{named-color} [ / {PERCENTAGE} ]`
|
* Format: `{named-color} [ / {PERCENTAGE} ]`
|
||||||
|
|
||||||
@@ -300,6 +307,8 @@ should be applied.
|
|||||||
* `strikethrough`: put a line through the highlighted text.
|
* `strikethrough`: put a line through the highlighted text.
|
||||||
* `small caps`: emphasise the text using capitalization.
|
* `small caps`: emphasise the text using capitalization.
|
||||||
|
|
||||||
|
> For some reason `small caps` is not working on some systems.
|
||||||
|
|
||||||
## Line style
|
## Line style
|
||||||
|
|
||||||
* Format: `(dash|solid)`
|
* Format: `(dash|solid)`
|
||||||
@@ -366,7 +375,18 @@ style property.
|
|||||||
|
|
||||||
## Position
|
## Position
|
||||||
|
|
||||||
* Format: `(center|east|north|west|northeast|northweast|south|southwest|southeast)`
|
Indicate a place on the window/monitor.
|
||||||
|
|
||||||
|
* Format: `(center|east|north|west|south|north east|north west|south west|south east)`
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
north west | north | north east
|
||||||
|
-------------|-------------|------------
|
||||||
|
west | center | east
|
||||||
|
-------------|-------------|------------
|
||||||
|
south west | south | south east
|
||||||
|
```
|
||||||
|
|
||||||
## Reference
|
## Reference
|
||||||
|
|
||||||
@@ -380,6 +400,18 @@ e.g. this is not valid:
|
|||||||
highlight: bold @pink;
|
highlight: bold @pink;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
But this is:
|
||||||
|
|
||||||
|
```
|
||||||
|
* {
|
||||||
|
myhigh: bold #FAA;
|
||||||
|
}
|
||||||
|
|
||||||
|
#window {
|
||||||
|
highlight: @myhigh;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Orientation
|
## Orientation
|
||||||
|
|
||||||
* Format: `(horizontal|vertical)`
|
* Format: `(horizontal|vertical)`
|
||||||
|
Reference in New Issue
Block a user