aboutsummaryrefslogtreecommitdiffstats
path: root/swaynag/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'swaynag/config.c')
-rw-r--r--swaynag/config.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/swaynag/config.c b/swaynag/config.c
index 3488a74d..a57597ef 100644
--- a/swaynag/config.c
+++ b/swaynag/config.c
@@ -38,6 +38,7 @@ int swaynag_parse_options(int argc, char **argv, struct swaynag *swaynag,
38 TO_COLOR_BORDER, 38 TO_COLOR_BORDER,
39 TO_COLOR_BORDER_BOTTOM, 39 TO_COLOR_BORDER_BOTTOM,
40 TO_COLOR_BUTTON, 40 TO_COLOR_BUTTON,
41 TO_COLOR_DETAILS,
41 TO_COLOR_TEXT, 42 TO_COLOR_TEXT,
42 TO_COLOR_BUTTON_TEXT, 43 TO_COLOR_BUTTON_TEXT,
43 TO_THICK_BAR_BORDER, 44 TO_THICK_BAR_BORDER,
@@ -77,6 +78,7 @@ int swaynag_parse_options(int argc, char **argv, struct swaynag *swaynag,
77 {"border-bottom-size", required_argument, NULL, TO_THICK_BAR_BORDER}, 78 {"border-bottom-size", required_argument, NULL, TO_THICK_BAR_BORDER},
78 {"message-padding", required_argument, NULL, TO_PADDING_MESSAGE}, 79 {"message-padding", required_argument, NULL, TO_PADDING_MESSAGE},
79 {"details-border-size", required_argument, NULL, TO_THICK_DET_BORDER}, 80 {"details-border-size", required_argument, NULL, TO_THICK_DET_BORDER},
81 {"details-background", required_argument, NULL, TO_COLOR_DETAILS},
80 {"button-border-size", required_argument, NULL, TO_THICK_BTN_BORDER}, 82 {"button-border-size", required_argument, NULL, TO_THICK_BTN_BORDER},
81 {"button-gap", required_argument, NULL, TO_GAP_BTN}, 83 {"button-gap", required_argument, NULL, TO_GAP_BTN},
82 {"button-dismiss-gap", required_argument, NULL, TO_GAP_BTN_DISMISS}, 84 {"button-dismiss-gap", required_argument, NULL, TO_GAP_BTN_DISMISS},
@@ -122,6 +124,7 @@ int swaynag_parse_options(int argc, char **argv, struct swaynag *swaynag,
122 " --border-bottom-size size Thickness of the bar border.\n" 124 " --border-bottom-size size Thickness of the bar border.\n"
123 " --message-padding padding Padding for the message.\n" 125 " --message-padding padding Padding for the message.\n"
124 " --details-border-size size Thickness for the details border.\n" 126 " --details-border-size size Thickness for the details border.\n"
127 " --details-background RRGGBB[AA] Details background color.\n"
125 " --button-border-size size Thickness for the button border.\n" 128 " --button-border-size size Thickness for the button border.\n"
126 " --button-gap gap Size of the gap between buttons\n" 129 " --button-gap gap Size of the gap between buttons\n"
127 " --button-dismiss-gap gap Size of the gap for dismiss button.\n" 130 " --button-dismiss-gap gap Size of the gap for dismiss button.\n"
@@ -253,6 +256,11 @@ int swaynag_parse_options(int argc, char **argv, struct swaynag *swaynag,
253 fprintf(stderr, "Invalid button background color: %s", optarg); 256 fprintf(stderr, "Invalid button background color: %s", optarg);
254 } 257 }
255 break; 258 break;
259 case TO_COLOR_DETAILS: // Details background color
260 if (type && !parse_color(optarg, &type->details_background)) {
261 fprintf(stderr, "Invalid details background color: %s", optarg);
262 }
263 break;
256 case TO_COLOR_TEXT: // Text color 264 case TO_COLOR_TEXT: // Text color
257 if (type && !parse_color(optarg, &type->text)) { 265 if (type && !parse_color(optarg, &type->text)) {
258 fprintf(stderr, "Invalid text color: %s", optarg); 266 fprintf(stderr, "Invalid text color: %s", optarg);