Changed the default wofi size to be 50%x40% instead of 1000x400
This commit is contained in:
parent
3e3846f9b4
commit
36048841bb
@ -36,10 +36,10 @@ Runs wofi in dmenu mode.
|
|||||||
Specifies the mode to run in. A list of modes can be found in \fBwofi\fR(7).
|
Specifies the mode to run in. A list of modes can be found in \fBwofi\fR(7).
|
||||||
.TP
|
.TP
|
||||||
.B \-W, \-\-width=\fIWIDTH\fR
|
.B \-W, \-\-width=\fIWIDTH\fR
|
||||||
Specifies the menu width in pixels or percent of screen size, default is 1000. Pixels are used unless the number ends with a %.
|
Specifies the menu width in pixels or percent of screen size, default is 50%. Pixels are used unless the number ends with a %.
|
||||||
.TP
|
.TP
|
||||||
.B \-H, \-\-height=\fIHEIGHT\fR
|
.B \-H, \-\-height=\fIHEIGHT\fR
|
||||||
Specifies the menu height in pixels or percent of screen size, default is 400. Pixels are used unless the number ends with a %.
|
Specifies the menu height in pixels or percent of screen size, default is 40%. Pixels are used unless the number ends with a %.
|
||||||
.TP
|
.TP
|
||||||
.B \-p, \-\-prompt=\fIPROMPT\fR
|
.B \-p, \-\-prompt=\fIPROMPT\fR
|
||||||
Sets the prompt to be display in the search box, default is the name of the mode.
|
Sets the prompt to be display in the search box, default is the name of the mode.
|
||||||
|
@ -32,10 +32,10 @@ Specifies the mode to run in. A list of modes can be found in \fBwofi\fR(7).
|
|||||||
Identical to \fBshow\fR.
|
Identical to \fBshow\fR.
|
||||||
.TP
|
.TP
|
||||||
.B width=\fIWIDTH\fR
|
.B width=\fIWIDTH\fR
|
||||||
Specifies the menu width in pixels or percent of screen size, default is 1000. Pixels are used unless the number ends with a %.
|
Specifies the menu width in pixels or percent of screen size, default is 50%. Pixels are used unless the number ends with a %.
|
||||||
.TP
|
.TP
|
||||||
.B height=\fIHEIGHT\fR
|
.B height=\fIHEIGHT\fR
|
||||||
Specifies the menu height in pixels or percent of screen size, default is 400. Pixels are used unless the number ends with a %.
|
Specifies the menu height in pixels or percent of screen size, default is 40%. Pixels are used unless the number ends with a %.
|
||||||
.TP
|
.TP
|
||||||
.B prompt=\fIPROMPT\fR
|
.B prompt=\fIPROMPT\fR
|
||||||
Sets the prompt to be display in the search box, default is the name of the mode.
|
Sets the prompt to be display in the search box, default is the name of the mode.
|
||||||
|
@ -1316,8 +1316,8 @@ static gboolean do_percent_size(gpointer data) {
|
|||||||
|
|
||||||
void wofi_init(struct map* _config) {
|
void wofi_init(struct map* _config) {
|
||||||
config = _config;
|
config = _config;
|
||||||
char* width_str = config_get(config, "width", "1000");
|
char* width_str = config_get(config, "width", "50%");
|
||||||
char* height_str = config_get(config, "height", "400");
|
char* height_str = config_get(config, "height", "40%");
|
||||||
width = strtol(width_str, NULL, 10);
|
width = strtol(width_str, NULL, 10);
|
||||||
height = strtol(height_str, NULL, 10);
|
height = strtol(height_str, NULL, 10);
|
||||||
x = map_get(config, "x");
|
x = map_get(config, "x");
|
||||||
|
Loading…
Reference in New Issue
Block a user