|
|
@ -39,6 +39,7 @@ int swaynag_parse_options(int argc, char **argv, struct swaynag *swaynag,
|
|
|
|
TO_COLOR_BORDER_BOTTOM,
|
|
|
|
TO_COLOR_BORDER_BOTTOM,
|
|
|
|
TO_COLOR_BUTTON,
|
|
|
|
TO_COLOR_BUTTON,
|
|
|
|
TO_COLOR_TEXT,
|
|
|
|
TO_COLOR_TEXT,
|
|
|
|
|
|
|
|
TO_COLOR_BUTTON_TEXT,
|
|
|
|
TO_THICK_BAR_BORDER,
|
|
|
|
TO_THICK_BAR_BORDER,
|
|
|
|
TO_PADDING_MESSAGE,
|
|
|
|
TO_PADDING_MESSAGE,
|
|
|
|
TO_THICK_DET_BORDER,
|
|
|
|
TO_THICK_DET_BORDER,
|
|
|
@ -72,6 +73,7 @@ int swaynag_parse_options(int argc, char **argv, struct swaynag *swaynag,
|
|
|
|
{"border-bottom", required_argument, NULL, TO_COLOR_BORDER_BOTTOM},
|
|
|
|
{"border-bottom", required_argument, NULL, TO_COLOR_BORDER_BOTTOM},
|
|
|
|
{"button-background", required_argument, NULL, TO_COLOR_BUTTON},
|
|
|
|
{"button-background", required_argument, NULL, TO_COLOR_BUTTON},
|
|
|
|
{"text", required_argument, NULL, TO_COLOR_TEXT},
|
|
|
|
{"text", required_argument, NULL, TO_COLOR_TEXT},
|
|
|
|
|
|
|
|
{"button-text", required_argument, NULL, TO_COLOR_BUTTON_TEXT},
|
|
|
|
{"border-bottom-size", required_argument, NULL, TO_THICK_BAR_BORDER},
|
|
|
|
{"border-bottom-size", required_argument, NULL, TO_THICK_BAR_BORDER},
|
|
|
|
{"message-padding", required_argument, NULL, TO_PADDING_MESSAGE},
|
|
|
|
{"message-padding", required_argument, NULL, TO_PADDING_MESSAGE},
|
|
|
|
{"details-border-size", required_argument, NULL, TO_THICK_DET_BORDER},
|
|
|
|
{"details-border-size", required_argument, NULL, TO_THICK_DET_BORDER},
|
|
|
@ -116,6 +118,7 @@ int swaynag_parse_options(int argc, char **argv, struct swaynag *swaynag,
|
|
|
|
" --border-bottom RRGGBB[AA] Bottom border color.\n"
|
|
|
|
" --border-bottom RRGGBB[AA] Bottom border color.\n"
|
|
|
|
" --button-background RRGGBB[AA] Button background color.\n"
|
|
|
|
" --button-background RRGGBB[AA] Button background color.\n"
|
|
|
|
" --text RRGGBB[AA] Text color.\n"
|
|
|
|
" --text RRGGBB[AA] Text color.\n"
|
|
|
|
|
|
|
|
" --button-text RRGGBB[AA] Button text color.\n"
|
|
|
|
" --border-bottom-size size Thickness of the bar border.\n"
|
|
|
|
" --border-bottom-size size Thickness of the bar border.\n"
|
|
|
|
" --message-padding padding Padding for the message.\n"
|
|
|
|
" --message-padding padding Padding for the message.\n"
|
|
|
|
" --details-border-size size Thickness for the details border.\n"
|
|
|
|
" --details-border-size size Thickness for the details border.\n"
|
|
|
@ -255,6 +258,11 @@ int swaynag_parse_options(int argc, char **argv, struct swaynag *swaynag,
|
|
|
|
fprintf(stderr, "Invalid text color: %s", optarg);
|
|
|
|
fprintf(stderr, "Invalid text color: %s", optarg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case TO_COLOR_BUTTON_TEXT: // Button text color
|
|
|
|
|
|
|
|
if (type && !parse_color(optarg, &type->button_text)) {
|
|
|
|
|
|
|
|
fprintf(stderr, "Invalid button text color: %s", optarg);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
case TO_THICK_BAR_BORDER: // Bottom border thickness
|
|
|
|
case TO_THICK_BAR_BORDER: // Bottom border thickness
|
|
|
|
if (type) {
|
|
|
|
if (type) {
|
|
|
|
type->bar_border_thickness = strtol(optarg, NULL, 0);
|
|
|
|
type->bar_border_thickness = strtol(optarg, NULL, 0);
|
|
|
|