From c9460d54a43a27eecb2a13aa657527c18fd08eb3 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Mon, 13 Oct 2025 23:08:08 +0545 Subject: [PATCH] style(ui): improve sound pack listing output formatting --- src/cli.c | 1 - src/soundpacks.c | 16 ++++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/cli.c b/src/cli.c index 4578c6e..9ea8bc4 100644 --- a/src/cli.c +++ b/src/cli.c @@ -1,4 +1,3 @@ - #include "app/cli.h" #include "config.h" #include diff --git a/src/soundpacks.c b/src/soundpacks.c index d701c1c..7d097ca 100644 --- a/src/soundpacks.c +++ b/src/soundpacks.c @@ -208,10 +208,10 @@ int list_sound_packs(void) { USER_MOUSE_AUDIO_SUBPATH); } - printf("Available sound packs:\n"); - printf("======================\n\n"); - printf("Keyboard Sound Packs:\n"); - printf("---------------------\n"); + printf("Available Sound Packs\n"); + printf("=====================\n\n"); + printf("KEYBOARD SOUNDS:\n"); + printf("----------------\n"); if (user_keyboard_dir[0] && (dir = opendir(user_keyboard_dir)) != NULL) { while ((entry = readdir(dir)) != NULL) { if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0) @@ -240,13 +240,13 @@ int list_sound_packs(void) { continue; } if (stat(path, &st) == 0 && S_ISDIR(st.st_mode)) { - printf(" %s (system)\n", entry->d_name); + printf(" %s (preinstalled)\n", entry->d_name); } } closedir(dir); } - printf("\nMouse Sound Packs:\n"); - printf("------------------\n"); + printf("\nMOUSE SOUNDS:\n"); + printf("-------------\n"); if (user_mouse_dir[0] && (dir = opendir(user_mouse_dir)) != NULL) { while ((entry = readdir(dir)) != NULL) { if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0) @@ -275,7 +275,7 @@ int list_sound_packs(void) { continue; } if (stat(path, &st) == 0 && S_ISDIR(st.st_mode)) { - printf(" %s (system)\n", entry->d_name); + printf(" %s (pre-installed)\n", entry->d_name); } } closedir(dir);