wmifs: Add support for wmgeneral's -geometry command line option.
Also take the opportunity to correct the manpage; the -d option should be -display.
This commit is contained in:
		
							parent
							
								
									a51ad11229
								
							
						
					
					
						commit
						c16a5a9d8d
					
				
					 2 changed files with 11 additions and 1 deletions
				
			
		| 
						 | 
					@ -33,9 +33,12 @@ Show summary of options.
 | 
				
			||||||
.B \-v
 | 
					.B \-v
 | 
				
			||||||
Show version of the program.
 | 
					Show version of the program.
 | 
				
			||||||
.TP
 | 
					.TP
 | 
				
			||||||
.B \-d <display name>
 | 
					.B \-display <display name>
 | 
				
			||||||
Use an alternate X display.
 | 
					Use an alternate X display.
 | 
				
			||||||
.TP
 | 
					.TP
 | 
				
			||||||
 | 
					.B \-geometry +x+y
 | 
				
			||||||
 | 
					Set window position.
 | 
				
			||||||
 | 
					.TP
 | 
				
			||||||
.B \-i <interface name>
 | 
					.B \-i <interface name>
 | 
				
			||||||
Interface that should come up initially when executing wmifs.  If you
 | 
					Interface that should come up initially when executing wmifs.  If you
 | 
				
			||||||
use "auto" as interface name, the first active ("up") interface will be
 | 
					use "auto" as interface name, the first active ("up") interface will be
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -319,6 +319,12 @@ int main(int argc, char *argv[])
 | 
				
			||||||
					exit(1);
 | 
										exit(1);
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
				break;
 | 
									break;
 | 
				
			||||||
 | 
								case 'g':
 | 
				
			||||||
 | 
									if (strcmp(arg+1, "geometry")) {
 | 
				
			||||||
 | 
										usage();
 | 
				
			||||||
 | 
										exit(1);
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									break;
 | 
				
			||||||
			case 'i':
 | 
								case 'i':
 | 
				
			||||||
				active_interface = argv[i+1];
 | 
									active_interface = argv[i+1];
 | 
				
			||||||
				i++;
 | 
									i++;
 | 
				
			||||||
| 
						 | 
					@ -1003,6 +1009,7 @@ void usage(void)
 | 
				
			||||||
	fprintf(stderr, "usage:\n");
 | 
						fprintf(stderr, "usage:\n");
 | 
				
			||||||
	fprintf(stderr, "\t-c <color>\t\tset color\n");
 | 
						fprintf(stderr, "\t-c <color>\t\tset color\n");
 | 
				
			||||||
	fprintf(stderr, "\t-display <display name>\tset display\n");
 | 
						fprintf(stderr, "\t-display <display name>\tset display\n");
 | 
				
			||||||
 | 
						fprintf(stderr, "\t-geometry +x+y\t\tset window position\n");
 | 
				
			||||||
	fprintf(stderr, "\t-h\t\t\tthis help screen\n");
 | 
						fprintf(stderr, "\t-h\t\t\tthis help screen\n");
 | 
				
			||||||
	fprintf(stderr, "\t-i <interface name>\tdefault (as it appears in /proc/net/route)\n");
 | 
						fprintf(stderr, "\t-i <interface name>\tdefault (as it appears in /proc/net/route)\n");
 | 
				
			||||||
	fprintf(stderr, "\t-I <interval>\t\tsampling interval, in seconds (default: 0.05)\n");
 | 
						fprintf(stderr, "\t-I <interval>\t\tsampling interval, in seconds (default: 0.05)\n");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue