swaybar: add status_edge_padding command

This adds the bar subcommand `status_edge_padding <padding>` to set the
padding used when the status line is on the right edge of the bar.
This commit is contained in:
Brian Ashworth 2019-01-11 00:12:24 -05:00
parent c0f92cb2fb
commit ca0a75d540
12 changed files with 44 additions and 4 deletions

View file

@ -198,6 +198,7 @@ sway_cmd bar_cmd_id;
sway_cmd bar_cmd_position;
sway_cmd bar_cmd_separator_symbol;
sway_cmd bar_cmd_status_command;
sway_cmd bar_cmd_status_edge_padding;
sway_cmd bar_cmd_status_padding;
sway_cmd bar_cmd_pango_markup;
sway_cmd bar_cmd_strip_workspace_numbers;

View file

@ -233,6 +233,7 @@ struct bar_config {
struct side_gaps gaps;
pid_t pid;
int status_padding;
int status_edge_padding;
struct {
char *background;
char *statusline;

View file

@ -44,6 +44,7 @@ struct swaybar_config {
bool all_outputs;
int height;
int status_padding;
int status_edge_padding;
struct {
int top;
int right;