commit b9c6192b5dabcd5eb3a97c113b048029365d60dc
parent 12b3bbbfdd341a81bcfe5087e70faa29ed451e78
Author: mrgrouse <bdmfegys@duck.com>
Date: Sun, 12 May 2024 14:38:59 -0400
config.def.h: use awk to only output percentage of volume and microphone volume
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/config.def.h b/config.def.h
@@ -71,8 +71,8 @@ static const struct arg args[] = {
{ disk_free, "\uf0a0 %s|", "/" },
//{ netspeed_rx, "\uf1eb %s|", "wlan0"},
{ temp, "%s C°\uef2b|", "/sys/class/thermal/thermal_zone0/temp" },
- { run_command, "%s% \uf028|", "wpctl get-volume @DEFAULT_AUDIO_SINK@"},
- { run_command, "%s% \uf130|", "wpctl get-volume @DEFAULT_AUDIO_SOURCE@"},
+ { run_command, "%s% \uf028|", "wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{ print $2 }'"},
+ { run_command, "%s% \uf130|", "wpctl get-volume @DEFAULT_AUDIO_SOURCE@ | awk '{ print $2 }'"},
{ battery_perc, "%s% \uf240|", "BAT1" },
{ datetime, "%s", "%r"},
//{ kernel_release, "\uebc6 %s", },