Add wifi info to the system bar
This commit is contained in:
@@ -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 },
|
||||||
|
|||||||
@@ -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.
Reference in New Issue
Block a user