diff options
author | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2015-10-04 21:01:49 +0200 |
---|---|---|
committer | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2015-10-04 21:01:49 +0200 |
commit | 974f95702efbf1ae15882777d191c7fde99bfb9b (patch) | |
tree | b17acf7436a8b9de6c6d27aa4d82f01f6b8821aa /src/print_volume.c | |
parent | f3125fdfded91144cb9f5b9ea3bf406598f17321 (diff) | |
parent | a13b2e7288e943359ccb37be86efb716efbe98c8 (diff) |
Merge pull request #68 from bsvh/master
Added support for lemonbar
Diffstat (limited to 'src/print_volume.c')
-rw-r--r-- | src/print_volume.c | 4 |
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"); } } |