mirror of
https://github.com/swaywm/sway.git
synced 2025-11-19 06:59:52 -05:00
add bar colours for focused_(workspace|statusline|separator)
If these aren't defined in config, color settings without 'focused_' prefix are used as a fallback.
This commit is contained in:
parent
39ee0ec552
commit
ad4d21d60b
9 changed files with 124 additions and 6 deletions
|
|
@ -160,12 +160,14 @@ sway_cmd bar_cmd_workspace_buttons;
|
|||
|
||||
sway_cmd bar_colors_cmd_active_workspace;
|
||||
sway_cmd bar_colors_cmd_background;
|
||||
sway_cmd bar_colors_cmd_background;
|
||||
sway_cmd bar_colors_cmd_focused_background;
|
||||
sway_cmd bar_colors_cmd_binding_mode;
|
||||
sway_cmd bar_colors_cmd_focused_workspace;
|
||||
sway_cmd bar_colors_cmd_inactive_workspace;
|
||||
sway_cmd bar_colors_cmd_separator;
|
||||
sway_cmd bar_colors_cmd_focused_separator;
|
||||
sway_cmd bar_colors_cmd_statusline;
|
||||
sway_cmd bar_colors_cmd_focused_statusline;
|
||||
sway_cmd bar_colors_cmd_urgent_workspace;
|
||||
|
||||
sway_cmd input_cmd_accel_profile;
|
||||
|
|
|
|||
|
|
@ -148,6 +148,9 @@ struct bar_config {
|
|||
char background[10];
|
||||
char statusline[10];
|
||||
char separator[10];
|
||||
char focused_background[10];
|
||||
char focused_statusline[10];
|
||||
char focused_separator[10];
|
||||
char focused_workspace_border[10];
|
||||
char focused_workspace_bg[10];
|
||||
char focused_workspace_text[10];
|
||||
|
|
@ -164,6 +167,10 @@ struct bar_config {
|
|||
char binding_mode_bg[10];
|
||||
char binding_mode_text[10];
|
||||
|
||||
bool has_focused_background;
|
||||
bool has_focused_statusline;
|
||||
bool has_focused_separator;
|
||||
|
||||
bool has_binding_mode_border;
|
||||
bool has_binding_mode_bg;
|
||||
bool has_binding_mode_text;
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ struct bar {
|
|||
struct config *config;
|
||||
struct status_line *status;
|
||||
list_t *outputs;
|
||||
struct output *focused_output;
|
||||
|
||||
int ipc_event_socketfd;
|
||||
int ipc_socketfd;
|
||||
|
|
@ -22,6 +23,7 @@ struct output {
|
|||
list_t *workspaces;
|
||||
char *name;
|
||||
int idx;
|
||||
bool focused;
|
||||
};
|
||||
|
||||
struct workspace {
|
||||
|
|
|
|||
|
|
@ -40,6 +40,10 @@ struct config {
|
|||
uint32_t statusline;
|
||||
uint32_t separator;
|
||||
|
||||
uint32_t focused_background;
|
||||
uint32_t focused_statusline;
|
||||
uint32_t focused_separator;
|
||||
|
||||
struct box_colors focused_workspace;
|
||||
struct box_colors active_workspace;
|
||||
struct box_colors inactive_workspace;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue