summaryrefslogtreecommitdiff
path: root/src/print_volume.c
diff options
context:
space:
mode:
authorBrendan Van Hook <me@bsvh.me>2015-10-02 02:28:53 -0400
committerBrendan Van Hook <me@bsvh.me>2015-10-04 14:52:32 -0400
commita13b2e7288e943359ccb37be86efb716efbe98c8 (patch)
treeb17acf7436a8b9de6c6d27aa4d82f01f6b8821aa /src/print_volume.c
parentf3125fdfded91144cb9f5b9ea3bf406598f17321 (diff)
Added support for lemonbar
Diffstat (limited to 'src/print_volume.c')
-rw-r--r--src/print_volume.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/print_volume.c b/src/print_volume.c
index 86b3505..58cba2a 100644
--- a/src/print_volume.c
+++ b/src/print_volume.c
@@ -37,11 +37,11 @@ static char *apply_volume_format(const char *fmt, char *outwalk, int ivolume) {
continue;
}
if (BEGINS_WITH(walk + 1, "%")) {
- outwalk += sprintf(outwalk, "%%");
+ outwalk += sprintf(outwalk, "%s", pct_mark);
walk += strlen("%");
}
if (BEGINS_WITH(walk + 1, "volume")) {
- outwalk += sprintf(outwalk, "%d%%", ivolume);
+ outwalk += sprintf(outwalk, "%d%s", ivolume, pct_mark);
walk += strlen("volume");
}
}