]> Skullheadx's Git Forge - slstatus.git/commitdiff
scrolling music
authorSkullheadx <admonty1@protonmail.com>
Wed, 29 Apr 2026 21:32:37 +0000 (17:32 -0400)
committerSkullheadx <admonty1@protonmail.com>
Wed, 29 Apr 2026 21:32:37 +0000 (17:32 -0400)
config.def.h
config.h

index 100093e3ce1522131a043f0e853fc92408a4a467..66d233d953d4aa5a923393689ea5f5ae1138bad1 100644 (file)
@@ -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" },
 };
index 4b12ee902a694d0ff27a076d6d66de6eadf538dd..66d233d953d4aa5a923393689ea5f5ae1138bad1 100644 (file)
--- 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 },*/