aboutsummaryrefslogtreecommitdiffstats
path: root/sway/config/bar.c
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 /sway/config/bar.c
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 'sway/config/bar.c')
-rw-r--r--sway/config/bar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/config/bar.c b/sway/config/bar.c
index ebe81cab..101562d1 100644
--- a/sway/config/bar.c
+++ b/sway/config/bar.c
@@ -107,6 +107,7 @@ struct bar_config *default_bar_config(void) {
107 bar->pid = 0; 107 bar->pid = 0;
108 bar->modifier = get_modifier_mask_by_name("Mod4"); 108 bar->modifier = get_modifier_mask_by_name("Mod4");
109 bar->status_padding = 1; 109 bar->status_padding = 1;
110 bar->status_edge_padding = 3;
110 if (!(bar->mode = strdup("dock"))) { 111 if (!(bar->mode = strdup("dock"))) {
111 goto cleanup; 112 goto cleanup;
112 } 113 }