diff --git a/docs/docs.md b/docs/docs.md index c0c190b..dda196d 100644 --- a/docs/docs.md +++ b/docs/docs.md @@ -1,5 +1,6 @@ spmenu ====== + ![image](/docs/preview.png) What is spmenu? @@ -493,3 +494,8 @@ operating system. You can also use wildcards (such as `*`) to achieve a global colorscheme. Programs like `pywal` do this. + +License +======= + +spmenu is licensed under the MIT license. See the included LICENSE file for more information. diff --git a/spmenu.1 b/spmenu.1 index 42d8ce0..f7703b4 100644 --- a/spmenu.1 +++ b/spmenu.1 @@ -517,3 +517,7 @@ This requires that \f[V]xrdb\f[R] is available on your operating system. You can also use wildcards (such as \f[V]*\f[R]) to achieve a global colorscheme. Programs like \f[V]pywal\f[R] do this. +.SH License +.PP +spmenu is licensed under the MIT license. +See the included LICENSE file for more information. diff --git a/spmenu.c b/spmenu.c index 2e32acd..d1ade8c 100644 --- a/spmenu.c +++ b/spmenu.c @@ -836,10 +836,11 @@ main(int argc, char *argv[]) xinitvisual(); drw = drw_create(dpy, screen, root, wa.width, wa.height, visual, depth, cmap); + // load fonts if (!drw_font_create(drw, fonts, LENGTH(fonts))) die("no fonts could be loaded."); - lrpad = drw->font->h; + lrpad = drw->font->h; prepare_window_size(); #ifdef __OpenBSD__ @@ -849,6 +850,7 @@ main(int argc, char *argv[]) loadhistory(); + // fast (-f) means we grab keyboard before reading standard input if (fast && !isatty(0)) { grabkeyboard(); readstdin();