Add wifi info to the system bar

This commit is contained in:
2024-06-19 20:17:47 +01:00
parent 4cedf49aa8
commit ced847b53a
3 changed files with 6 additions and 0 deletions

View File

@@ -65,6 +65,9 @@ static const char unknown_str[] = "??";
*/ */
static const struct arg args[] = { static const struct arg args[] = {
/* function format argument */ /* function format argument */
{ wifi_essid, " %s", "wlan0" },
{ wifi_perc, "(%s%%) ", "wlan0" },
{ battery_perc, "󰂉 %s%% ", "BAT0" }, { battery_perc, "󰂉 %s%% ", "BAT0" },
{ run_command, " %s%% ", "wpctl get-volume @DEFAULT_AUDIO_SINK@ | cut -c 11-" }, { run_command, " %s%% ", "wpctl get-volume @DEFAULT_AUDIO_SINK@ | cut -c 11-" },
{ cpu_perc, " %s%% ", NULL }, { cpu_perc, " %s%% ", NULL },

View File

@@ -65,6 +65,9 @@ static const char unknown_str[] = "??";
*/ */
static const struct arg args[] = { static const struct arg args[] = {
/* function format argument */ /* function format argument */
{ wifi_essid, " %s", "wlan0" },
{ wifi_perc, "(%s%%) ", "wlan0" },
{ battery_perc, "󰂉 %s%% ", "BAT0" }, { battery_perc, "󰂉 %s%% ", "BAT0" },
{ run_command, " %s%% ", "wpctl get-volume @DEFAULT_AUDIO_SINK@ | cut -c 11-" }, { run_command, " %s%% ", "wpctl get-volume @DEFAULT_AUDIO_SINK@ | cut -c 11-" },
{ cpu_perc, " %s%% ", NULL }, { cpu_perc, " %s%% ", NULL },

Binary file not shown.