From: Skullheadx Date: Wed, 29 Apr 2026 21:32:37 +0000 (-0400) Subject: scrolling music X-Git-Url: http://git.skullheadx.com/tech/openbsd_html_css/blog/static/gitweb.css?a=commitdiff_plain;h=efd7e7de9197b0136b0f9a011e6a78d792991168;p=slstatus.git scrolling music --- diff --git a/config.def.h b/config.def.h index 100093e..66d233d 100644 --- a/config.def.h +++ b/config.def.h @@ -66,5 +66,15 @@ static const char unknown_str[] = "n/a"; */ static const struct arg args[] = { /* function format argument */ - { datetime, "%s", "%F %T" }, + { username, " %s@", NULL }, + { hostname, "%s |", NULL }, +/* { run_command, " MUSIC: %s |", "mpc current"},*/ + { run_command, " MUSIC: %s |", "scrolling-title"}, + { cpu_perc, " CPU %s%% |", NULL }, + { ram_perc, " RAM %s%% |", NULL }, +/* { swap_perc, " SWAP %s%% |", NULL },*/ + { up, " WIFI %s |", "wlp9s0"}, + { run_command, " VOL %s%% |", "pamixer --get-volume"}, + { uptime, " UPTIME %s |", NULL }, + { datetime, " %s", "%F %T" }, }; diff --git a/config.h b/config.h index 4b12ee9..66d233d 100644 --- a/config.h +++ b/config.h @@ -68,7 +68,8 @@ static const struct arg args[] = { /* function format argument */ { username, " %s@", NULL }, { hostname, "%s |", NULL }, - { run_command, " MUSIC: %s |", "mpc current"}, +/* { run_command, " MUSIC: %s |", "mpc current"},*/ + { run_command, " MUSIC: %s |", "scrolling-title"}, { cpu_perc, " CPU %s%% |", NULL }, { ram_perc, " RAM %s%% |", NULL }, /* { swap_perc, " SWAP %s%% |", NULL },*/