Optionally add focused window title to the bar

Add a "window_title yes|no" bar command that displays the title of the
focused window on the bar.
This commit is contained in:
Pedro Côrte-Real 2019-08-17 19:38:14 +01:00
parent 8441711990
commit 8a019a83c9
10 changed files with 131 additions and 1 deletions

View file

@ -34,10 +34,12 @@ struct swaybar_config {
char *mode;
char *hidden_state;
char *modifier;
char *title;
bool strip_workspace_numbers;
bool strip_workspace_name;
bool binding_mode_indicator;
bool wrap_scroll;
bool window_title;
bool workspace_buttons;
list_t *bindings;
struct wl_list outputs; // config_output::link
@ -51,6 +53,7 @@ struct swaybar_config {
int bottom;
int left;
} gaps;
uint64_t window_app_id;
struct {
uint32_t background;