diff options
| author | ne_mene <[email protected]> | 2026-03-02 11:42:31 +0100 |
|---|---|---|
| committer | ne_mene <[email protected]> | 2026-03-02 11:42:31 +0100 |
| commit | 07ac385fd9959d55590076bba49798e542e0b238 (patch) | |
| tree | 2d0de6f7da6a81f885c4dfc2adee1aa62ce61e17 /src/bardata.c | |
| parent | e98200154c99323f7683f59491914e17608ce07f (diff) | |
readme and config flag change
Diffstat (limited to 'src/bardata.c')
| -rw-r--r-- | src/bardata.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bardata.c b/src/bardata.c index 7929201..307f7ae 100644 --- a/src/bardata.c +++ b/src/bardata.c @@ -111,7 +111,7 @@ void set_layout(char argv[MAX_ARGS][MAX_ARG_LEN], int argc) { void set_config(char argv[MAX_ARGS][MAX_ARG_LEN], int argc) { char *var = argv[1]; - if (strcmp(var, "height") == 0) { + if (strcmp(var, "-height") == 0) { int new_bar_height = atoi(argv[2]); if (new_bar_height <= 0) { fprintf(stderr, "invalid bar height %d\n", new_bar_height); @@ -120,19 +120,19 @@ void set_config(char argv[MAX_ARGS][MAX_ARG_LEN], int argc) { bar_height = new_bar_height; return; } - if (strcmp(var, "font") == 0) { + if (strcmp(var, "-font") == 0) { load_font(argv[2]); return; } - if (strcmp(var, "gap") == 0) { + if (strcmp(var, "-gap") == 0) { comp_gap = atoi(argv[2]); return; } - if (strcmp(var, "padding") == 0) { + if (strcmp(var, "-padding") == 0) { padding = atoi(argv[2]); return; } - if (strcmp(var, "background") == 0 || strcmp(var, "bg") == 0) { + if (strcmp(var, "-background") == 0 || strcmp(var, "-bg") == 0) { default_bg = parse_color(argv[2]); XSetWindowAttributes win_attr = { .background_pixel = default_bg.pixel, @@ -140,7 +140,7 @@ void set_config(char argv[MAX_ARGS][MAX_ARG_LEN], int argc) { XChangeWindowAttributes(display, win, CWBackPixel, &win_attr); return; } - if (strcmp(var, "foreground") == 0 || strcmp(var, "fg") == 0) { + if (strcmp(var, "-foreground") == 0 || strcmp(var, "-fg") == 0) { default_fg = parse_color(argv[2]); XftColorFree( display, |
