SLSTATUS module design

This commit is contained in:
2024-06-22 19:24:06 +01:00
parent 49cb6c82d1
commit faf671ed22
4 changed files with 20 additions and 21 deletions

View File

@@ -2,5 +2,4 @@
- Add CPU temp to SLSTATUS - Add CPU temp to SLSTATUS
- Find a more automated way to replace SLSTATUS if possible - Find a more automated way to replace SLSTATUS if possible
- Add modules design to the statusbar
- Remove dialog boxes when running commands in the installer - Remove dialog boxes when running commands in the installer

View File

@@ -69,15 +69,15 @@ 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_essid, "[ %s", "wlan0" },
{ wifi_essid, "%s", "wlo1" }, { wifi_essid, "%s", "wlo1" },
{ wifi_perc, "(%s", "wlan0" }, { wifi_perc, " %s", "wlan0" },
{ wifi_perc, "%s%%) ", "wlo1" }, { wifi_perc, "%s%%] ", "wlo1" },
{ battery_perc, "󰂉 %s", "BAT0" }, { battery_perc, "[󰂉 %s", "BAT0" },
{ battery_perc, "%s%% ", "cw2015-battery" }, { battery_perc, "%s%%] ", "cw2015-battery" },
{ 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 },
{ ram_used, " %s", NULL }, { ram_used, "[ %s", NULL },
{ ram_perc, "(%s%%) ", NULL }, { ram_perc, " %s%%] ", NULL },
{ datetime, " %s", "%d/%m/%y %l:%M %p" }, { datetime, "[ %s]", "%d/%m/%y %l:%M %p" },
}; };

View File

@@ -69,15 +69,15 @@ 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_essid, "[ %s", "wlan0" },
{ wifi_essid, "%s", "wlo1" }, { wifi_essid, "%s", "wlo1" },
{ wifi_perc, "(%s", "wlan0" }, { wifi_perc, " %s", "wlan0" },
{ wifi_perc, "%s%%) ", "wlo1" }, { wifi_perc, "%s%%] ", "wlo1" },
{ battery_perc, "󰂉 %s", "BAT0" }, { battery_perc, "[󰂉 %s", "BAT0" },
{ battery_perc, "%s%% ", "cw2015-battery" }, { battery_perc, "%s%%] ", "cw2015-battery" },
{ 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 },
{ ram_used, " %s", NULL }, { ram_used, "[ %s", NULL },
{ ram_perc, "(%s%%) ", NULL }, { ram_perc, " %s%%] ", NULL },
{ datetime, " %s", "%d/%m/%y %l:%M %p" }, { datetime, "[ %s]", "%d/%m/%y %l:%M %p" },
}; };

Binary file not shown.