updated config
This commit is contained in:
1 parent
ced999e944
commit
cb6052a9d3
19 files changed
+331
-155
No files matched your search
+11
-9
@@ -56,6 +56,7 @@ static const char unknown_str[] = "n/a";
|
||||
* thermal zone on FreeBSD
|
||||
* (tz0, tz1, etc.)
|
||||
* uid UID of current user NULL
|
||||
* up interface is running interface name (eth0)
|
||||
* uptime system uptime NULL
|
||||
* username username of current user NULL
|
||||
* vol_perc OSS/ALSA volume in percent mixer file (/dev/mixer)
|
||||
@@ -64,13 +65,14 @@ static const char unknown_str[] = "n/a";
|
||||
* wifi_perc WiFi signal in percent interface name (wlan0)
|
||||
*/
|
||||
static const struct arg args[] = {
|
||||
/* function format argument */
|
||||
{ battery_perc, "[%s%]", "BAT0" },
|
||||
{ weather, "[%s]", NULL },
|
||||
{ datetime, "[%s]", "%F %T" },
|
||||
{ cpu_perc, "[ %s%]", NULL },
|
||||
{ ram_perc, "[ %s%]", NULL },
|
||||
{ disk_perc, "[ %s%]", "/" },
|
||||
{ keymap, "[%s]", NULL },
|
||||
{ wifi_perc, "[ %s%]", "wlp3s0" },
|
||||
/* function format argument */
|
||||
{cpu_perc, " CPU %s%%", NULL},
|
||||
{ram_perc, " │ RAM %s%%", NULL},
|
||||
{run_command, "%s",
|
||||
"command -v pactl >/dev/null 2>&1 && printf \" │ VOL %s\" "
|
||||
"\"$(pactl "
|
||||
"get-sink-volume @DEFAULT_SINK@ 2>/dev/null | grep -o '[0-9]*%' | head "
|
||||
"-1)\""},
|
||||
{datetime, " │ %s", "%a %b %d"},
|
||||
{datetime, " │ %s ", "%I:%M %p"},
|
||||
};
|
||||
Reference in new issue
Block a user