summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2021-03-19 18:02:46 +0100
committerFurkan Sahin <furkan-dev@proton.me>2021-03-19 18:02:46 +0100
commit0becb0590cb5a73216087a262783b8d0b40e7129 (patch)
tree6a2e93690d0dbd3c4eb032ce3d2bbf7e9671af27 /include
parent0c53a48ff59ccc8c24cba5203477d60c7a8fcb51 (diff)
config: Fix swaybar pango_markup inconsistency
Until now, swaybar did not have pango markup enabled by default, even if the sway config had it on. This patch aims to mimic the i3 behavior, but maintaining the functionality of the "pango_markup" sway config command.
Diffstat (limited to 'include')
-rw-r--r--include/sway/config.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index 2a1df2b6..254fbad0 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -292,6 +292,12 @@ struct workspace_config {
struct side_gaps gaps_outer;
};
+enum pango_markup_config {
+ PANGO_MARKUP_DISABLED = false,
+ PANGO_MARKUP_ENABLED = true,
+ PANGO_MARKUP_DEFAULT // The default is font dependent ("pango:" prefix)
+};
+
struct bar_config {
char *swaybar_command;
struct wl_client *client;
@@ -323,7 +329,7 @@ struct bar_config {
char *position;
list_t *bindings;
char *status_command;
- bool pango_markup;
+ enum pango_markup_config pango_markup;
char *font;
int height; // -1 not defined
bool workspace_buttons;