add playing song

This commit is contained in:
lucy 2026-04-05 11:50:49 +02:00
commit c584086139
3 changed files with 7 additions and 1 deletions

View file

@ -66,5 +66,11 @@ static const char unknown_str[] = "n/a";
*/
static const struct arg args[] = {
/* function format argument */
{wifi_essid, "%s", "wlp3s0"}, {wifi_perc, " %s%% |", "wlp3s0"}, {battery_perc, " bat %s%%", "BAT0"}, {battery_state, "%s |", "BAT0"}, {vol_perc_pw, " vol %s |", "@DEFAULT_AUDIO_SINK@"}, {datetime, " %s", "%d.%m.%Y | %H:%M"},
{run_command, "%s | ", "playerctl metadata --player=spotify --format '{{artist}} - {{title}}'"},
{wifi_essid, "%s", "wlp3s0"},
{wifi_perc, " %s%% |", "wlp3s0"},
{battery_perc, " bat %s%%", "BAT0"},
{battery_state, "%s |", "BAT0"},
{vol_perc_pw, " vol %s |", "@DEFAULT_AUDIO_SINK@"},
{datetime, " %s", "%d.%m.%Y | %H:%M"},
};

BIN
slstatus

Binary file not shown.

Binary file not shown.