Browse Source

sysinfo: show package manager info

K. Lange 2 years ago
parent
commit
0188140357
1 changed files with 16 additions and 8 deletions
  1. 16 8
      apps/sysinfo.c

+ 16 - 8
apps/sysinfo.c

@@ -45,26 +45,34 @@ int main(int argc, char * argv[]) {
 	int term_is_toaru = term && strstr(term,"toaru");
 
 	int i = 0;
+
 	prog_lines[i] = "hostname";
 	sprintf(data_lines[i++], C_A "%s" C_O "@" C_A, user);
+
+	/* no command */
 	sprintf(data_lines[i++], C_A "OS: " C_O "ToaruOS");
+
 	prog_lines[i] = "uname -sr";
 	sprintf(data_lines[i++], C_A "Kernel: " C_O);
+
 	prog_lines[i] = "uptime -p";
 	sprintf(data_lines[i++], C_A "Uptime: " C_O);
-	//sprintf(data_lines[i++], C_A "Packages: " C_O "(hell if I know!)");
+
+	prog_lines[i] = "msk count";
+	sprintf(data_lines[i++], C_A "Packages: " C_O);
+
 	prog_lines[i] = "sh -v";
 	sprintf(data_lines[i++], C_A "Shell: " C_O);
-	prog_lines[i] = "yutani-query -r";
+
+	prog_lines[i] = "yutani-query resolution";
 	sprintf(data_lines[i++], C_A "Resolution: " C_O);
+
+	/* no command */
 	sprintf(data_lines[i++], C_A "WM: " C_O "Yutani");
+
+	/* from environment */
 	sprintf(data_lines[i++], C_A "WM Theme: " C_O "%s", wm_theme);
-#if 0
-	prog_lines[i] = "yutani-query -m";
-	sprintf(data_lines[i++], C_A "Font: " C_O);
-#endif
-	//sprintf(data_lines[i++], C_A "CPU: " C_O "(query cpudet)");
-	//sprintf(data_lines[i++], C_A "GPU: " C_O "(hell if I know!)");
+
 	prog_lines[i] = "free -ut";
 	sprintf(data_lines[i++], C_A "RAM: " C_O);