aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-01-11 00:12:24 -0500
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-01-11 00:12:24 -0500
commitca0a75d5408125c4e2a9394fd1b08b7bbc4ff9c5 (patch)
tree37c5bfa911eebcb21f9712799160d1126363e139 /include
parentswaybar: add status_padding command (diff)
downloadsway-ca0a75d5408125c4e2a9394fd1b08b7bbc4ff9c5.tar.gz
sway-ca0a75d5408125c4e2a9394fd1b08b7bbc4ff9c5.tar.zst
sway-ca0a75d5408125c4e2a9394fd1b08b7bbc4ff9c5.zip
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;
198sway_cmd bar_cmd_position; 198sway_cmd bar_cmd_position;
199sway_cmd bar_cmd_separator_symbol; 199sway_cmd bar_cmd_separator_symbol;
200sway_cmd bar_cmd_status_command; 200sway_cmd bar_cmd_status_command;
201sway_cmd bar_cmd_status_edge_padding;
201sway_cmd bar_cmd_status_padding; 202sway_cmd bar_cmd_status_padding;
202sway_cmd bar_cmd_pango_markup; 203sway_cmd bar_cmd_pango_markup;
203sway_cmd bar_cmd_strip_workspace_numbers; 204sway_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 {
233 struct side_gaps gaps; 233 struct side_gaps gaps;
234 pid_t pid; 234 pid_t pid;
235 int status_padding; 235 int status_padding;
236 int status_edge_padding;
236 struct { 237 struct {
237 char *background; 238 char *background;
238 char *statusline; 239 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 {
44 bool all_outputs; 44 bool all_outputs;
45 int height; 45 int height;
46 int status_padding; 46 int status_padding;
47 int status_edge_padding;
47 struct { 48 struct {
48 int top; 49 int top;
49 int right; 50 int right;