From 2f9d930d82970bde7f54f540385eb6009b5b1cc0 Mon Sep 17 00:00:00 2001 From: Ryan Kes Date: Sun, 10 Mar 2019 22:24:59 +0100 Subject: [PATCH] use legacy mixer for volume percentage --- PKGBUILD | 2 +- config.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 1cdcff6..c6f831c 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -20,7 +20,7 @@ source=("git+https://git.suckless.org/${pkgname%-git}" "${_patches[@]}") md5sums=('SKIP' - '9a36cf69d3a7318fffad5535f3e0fed5' + '0fe1531906ed0d267687f7b425e331ab' '24ea93ef665decc0315248f62aa65f44' '58404d0af1893f560926daf605a79919') diff --git a/config.h b/config.h index 7fb4ce4..e80cec1 100644 --- a/config.h +++ b/config.h @@ -77,7 +77,8 @@ static const struct arg args[] = { { seperator, "\x0F", NULL }, { disk_perc, "\x10 / %s%%", "/" }, { disk_perc, "  %s%% ", "/home" }, - //{ seperator, "\x11", NULL }, + { seperator, "\x11", NULL }, + { vol_perc, " \x12 蓼 %s%% ", "/dev/mixer" }, //{ run_command, "\x12 蓼 %s%% ", "/bin/sh -c \"amixer get Master | tail -n1 | grep -Po '\\[\\K[^%]*' | head -n1\"" }, { seperator, "\x13", NULL }, { ram_perc, "\x14  %s%% ", NULL },