diff --git a/config.h b/config.h index ec54d17..6e31dca 100644 --- a/config.h +++ b/config.h @@ -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"}, }; diff --git a/slstatus b/slstatus index 30e6b7e..53cd485 100755 Binary files a/slstatus and b/slstatus differ diff --git a/slstatus.o b/slstatus.o index f70f93c..b541cd5 100644 Binary files a/slstatus.o and b/slstatus.o differ