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:
parent
fbfb9b0247
commit
5f7563dae3
3 changed files with 20 additions and 2 deletions
|
@ -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:
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
||||
```
|
||||
|
|
|
@ -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("");
|
||||
|
|
Loading…
Reference in a new issue