Update cmdline separator and add to manpage.

This commit is contained in:
Dave Davenport 2021-12-17 19:04:02 +01:00
parent fbfb9b0247
commit 5f7563dae3
3 changed files with 20 additions and 2 deletions

View File

@ -1739,6 +1739,18 @@ rofi \-theme\-str 'window { fullscreen:true;}' \-show run
.fi
.RE
.PP
Another syntax to modify theme properties is:
.PP
.RS
.nf
rofi \-theme+window+fullscreen true \-show run
.fi
.RE
.PP
To print the current theme, run:

View File

@ -1108,6 +1108,12 @@ To test minor changes, part of the theme can be passed on the command line, for
rofi -theme-str 'window { fullscreen:true;}' -show run
```
Another syntax to modify theme properties is:
```bash
rofi -theme+window+fullscreen true -show run
```
To print the current theme, run:
```

View File

@ -548,10 +548,10 @@ void config_parse_cmd_options(void) {
for (int j = 1; tokens && tokens[j]; j++) {
count++;
}
if (count > 2) {
if (count == 2) {
if (g_str_has_prefix(tokens[1], "theme")) {
g_strfreev(tokens);
tokens = g_strsplit(stored_argv[in], "#", 0);
tokens = g_strsplit(stored_argv[in], "+", 0);
count = g_strv_length(tokens);
if (count > 2) {
GString *str = g_string_new("");