aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2019-01-11 00:12:24 -0500
committerBrian Ashworth <bosrsf04@gmail.com>2019-01-11 00:12:24 -0500
commitca0a75d5408125c4e2a9394fd1b08b7bbc4ff9c5 (patch)
tree37c5bfa911eebcb21f9712799160d1126363e139 /include
parentc0f92cb2fb94ac87396da99646f9219e54b36860 (diff)
downloadsway-ca0a75d5408125c4e2a9394fd1b08b7bbc4ff9c5.tar.xz
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.
Diffstat (limited to 'include')
-rw-r--r--include/sway/commands.h1
-rw-r--r--include/sway/config.h1
-rw-r--r--include/swaybar/config.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h
index 95f34140..04f93ba9 100644
--- a/include/sway/commands.h
+++ b/include/sway/commands.h
@@ -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;
diff --git a/include/sway/config.h b/include/sway/config.h
index c49d4ccf..a667984d 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -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;
diff --git a/include/swaybar/config.h b/include/swaybar/config.h
index ce0dd4c9..add0a1cf 100644
--- a/include/swaybar/config.h
+++ b/include/swaybar/config.h
@@ -44,6 +44,7 @@ struct swaybar_config {
bool all_outputs;
int height;
int status_padding;
+ int status_edge_padding;
struct {
int top;
int right;