diff options
Diffstat (limited to '')
-rw-r--r-- | src/jo_lowbat.c (renamed from src/jo_main.c) | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/jo_main.c b/src/jo_lowbat.c index a6d05b1..da7c575 100644 --- a/src/jo_main.c +++ b/src/jo_lowbat.c @@ -1,6 +1,6 @@ /****************************************************************************************/ /* */ -/* File : jo_main.c /_________/ */ +/* File : jo_lowbat.c /_________/ */ /* Author : Joe | */ /* Date : 04/2020 | */ /* Info : The main | */ @@ -10,7 +10,8 @@ /* */ /****************************************************************************************/ -#include <jo_main.h> +#include <jo_lowbat.h> +#include <libnotify/notify.h> /* ** Files prefixes @@ -20,11 +21,16 @@ */ int -main(void) +main( + int argc, + const char *argv[] + ) { int8_t status; int8_t percent; + (void)argc; + (void)argv; if ((status = jo_f_status()) == -2) { return (JO_RET_RD_FAILED); } @@ -32,6 +38,8 @@ main(void) return (JO_RET_RD_FAILED); } printf("status: %hhd, %hhd%%\n", status, percent); - /* ESPEAK */ + /* NOTIFY-SEND */ + jo_n_notify("VEGA: Yo", "Welcome", NOTIFY_URGENCY_LOW, 5000); + jo_n_speak("Heya!"); return (JO_RET_FINE); } |