summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
author諏訪子 <suwako@076.moe>2024-06-19 22:53:46 +0900
committer諏訪子 <suwako@076.moe>2024-06-19 22:53:46 +0900
commitb2155d447caf2d69db6fea4d4d47e9b4053696c7 (patch)
tree3a1ddf3d716174c5bc405ca9632093ba93cef5b5 /main.c
parent4605ae223e5746a69940959cff651c491758f515 (diff)
解像度の追加
Diffstat (limited to 'main.c')
-rw-r--r--main.c22
1 files changed, 14 insertions, 8 deletions
diff --git a/main.c b/main.c
index 4309d30..bf5b61e 100644
--- a/main.c
+++ b/main.c
@@ -12,6 +12,7 @@
#include "src/recording.h"
#endif
#include "src/packages.h"
+#include "src/resolution.h"
#include "src/cpu.h"
#include "src/gpu.h"
#include "src/memory.h"
@@ -105,10 +106,12 @@ size_t logosize = 11;
lc++;
#if defined(__linux__)
- printf("%s ", LOGO[lc]);
- printf("%s%s%s"RESET, color, "Distro", ": ");
- printf("%s\n", display_distro());
- lc++;
+ if (display_distro() != NULL) {
+ printf("%s ", LOGO[lc]);
+ printf("%s%s%s"RESET, color, "Distro", ": ");
+ printf("%s\n", display_distro());
+ lc++;
+ }
#endif
printf("%s ", LOGO[lc]);
@@ -142,6 +145,13 @@ size_t logosize = 11;
printf("\n");
lc++;
+ if (display_resolution()) {
+ printf("%s ", LOGO[lc]);
+ printf("%s%s%s"RESET, color, "Resolution", ": ");
+ printf("%s\n", display_resolution());
+ lc++;
+ }
+
printf("%s ", LOGO[lc]);
printf("%s%s%s"RESET, color, "CPU", ": ");
display_cpu();
@@ -166,13 +176,9 @@ size_t logosize = 11;
}
// TODO:
- // * ロゴ
- // * パッケージ
// * libc
// * シェル
- // * 解像度
// * 端末
- // * GPU
// * ストレージ
return 0;