mirror of
				https://github.com/davatorium/rofi.git
				synced 2025-10-30 23:47:19 -04: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
 | 
					.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:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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("");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue