mirror of
https://github.com/kolunmi/dwlb.git
synced 2025-12-17 19:43:18 +00:00
add -no-hide-vacant-tags, -no-bottom, and -no-hidden options
This commit is contained in:
parent
fac42b84ab
commit
c1362d5ff1
9
dwlb.c
9
dwlb.c
@ -57,8 +57,11 @@
|
|||||||
"usage: dwlb [OPTIONS]\n" \
|
"usage: dwlb [OPTIONS]\n" \
|
||||||
"Bar Config\n" \
|
"Bar Config\n" \
|
||||||
" -hide-vacant-tags do not display empty and inactive tags\n" \
|
" -hide-vacant-tags do not display empty and inactive tags\n" \
|
||||||
|
" -no-hide-vacant-tags display empty and inactive tags\n" \
|
||||||
" -hidden bars will initially be hidden\n" \
|
" -hidden bars will initially be hidden\n" \
|
||||||
|
" -no-hidden bars will not initially be hidden\n" \
|
||||||
" -bottom bars will initially be drawn at the bottom\n" \
|
" -bottom bars will initially be drawn at the bottom\n" \
|
||||||
|
" -no-bottom bars will initially be drawn at the top\n" \
|
||||||
" -font [FONT] specify a font\n" \
|
" -font [FONT] specify a font\n" \
|
||||||
" -active-fg-color [COLOR] specify text color of active tags or monitors\n" \
|
" -active-fg-color [COLOR] specify text color of active tags or monitors\n" \
|
||||||
" -active-bg-color [COLOR] specify background color of active tags or monitors\n" \
|
" -active-bg-color [COLOR] specify background color of active tags or monitors\n" \
|
||||||
@ -1031,10 +1034,16 @@ main(int argc, char **argv)
|
|||||||
return 0;
|
return 0;
|
||||||
} else if (!strcmp(argv[i], "-hide-vacant-tags")) {
|
} else if (!strcmp(argv[i], "-hide-vacant-tags")) {
|
||||||
hide_vacant = true;
|
hide_vacant = true;
|
||||||
|
} else if (!strcmp(argv[i], "-no-hide-vacant-tags")) {
|
||||||
|
hide_vacant = false;
|
||||||
} else if (!strcmp(argv[i], "-bottom")) {
|
} else if (!strcmp(argv[i], "-bottom")) {
|
||||||
bottom = true;
|
bottom = true;
|
||||||
|
} else if (!strcmp(argv[i], "-no-bottom")) {
|
||||||
|
bottom = false;
|
||||||
} else if (!strcmp(argv[i], "-hidden")) {
|
} else if (!strcmp(argv[i], "-hidden")) {
|
||||||
hidden = true;
|
hidden = true;
|
||||||
|
} else if (!strcmp(argv[i], "-no-hidden")) {
|
||||||
|
hidden = false;
|
||||||
} else if (!strcmp(argv[i], "-font")) {
|
} else if (!strcmp(argv[i], "-font")) {
|
||||||
if (++i >= argc)
|
if (++i >= argc)
|
||||||
DIE("Option -font requires an argument");
|
DIE("Option -font requires an argument");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user