summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorJoshua Yun <joshua@joshuayun.com>2025-04-01 00:29:34 -0500
committerJoshua Yun <joshua@joshuayun.com>2025-04-01 00:29:34 -0500
commit4c8d59a13cf615481694e07535ec672dcdab59aa (patch)
treefc54b3a890d2d29d3aa7da0b28ce35f47eb0113b /config.def.h
parentf68f49273e70b3767b30c549dda04ddd4d25fc91 (diff)
downloadslstatus-4c8d59a13cf615481694e07535ec672dcdab59aa.tar.gz
feat: pamixer status bar for volume
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index d805331..2742f74 100644
--- a/config.def.h
+++ b/config.def.h
@@ -58,12 +58,17 @@ static const char unknown_str[] = "n/a";
* uid UID of current user NULL
* uptime system uptime NULL
* username username of current user NULL
+ * pamixer_vol_perc Pamixer volume in percent NULL
* vol_perc OSS/ALSA volume in percent mixer file (/dev/mixer)
* NULL on OpenBSD/FreeBSD
* wifi_essid WiFi ESSID interface name (wlan0)
* wifi_perc WiFi signal in percent interface name (wlan0)
*/
static const struct arg args[] = {
- /* function format argument */
- { datetime, "%s", "%F %T" },
+ /* function format argument */
+ { cpu_perc, " CPU: %s%% | ", NULL },
+ { ram_used, "RAM: %s / ", NULL },
+ { ram_total, "%s | ", NULL },
+ { pamixer_vol_perc, "Vol: %s | ", NULL },
+ { datetime, "%s ", "%a %m/%d %r" },
};