1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

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 .fi
.RE .RE
.PP
Another syntax to modify theme properties is:
.PP
.RS
.nf
rofi \-theme+window+fullscreen true \-show run
.fi
.RE
.PP .PP
To print the current theme, run: 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 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: 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++) { for (int j = 1; tokens && tokens[j]; j++) {
count++; count++;
} }
if (count > 2) { if (count == 2) {
if (g_str_has_prefix(tokens[1], "theme")) { if (g_str_has_prefix(tokens[1], "theme")) {
g_strfreev(tokens); g_strfreev(tokens);
tokens = g_strsplit(stored_argv[in], "#", 0); tokens = g_strsplit(stored_argv[in], "+", 0);
count = g_strv_length(tokens); count = g_strv_length(tokens);
if (count > 2) { if (count > 2) {
GString *str = g_string_new(""); GString *str = g_string_new("");