sway status initial commit

This commit is contained in:
2025-11-14 18:27:32 +01:00
commit 0c809d51f0
3 changed files with 2730 additions and 0 deletions

30
nob.c Normal file
View File

@ -0,0 +1,30 @@
#include <stdio.h>
#define NOB_IMPLEMENTATION
#define NOB_STRIP_PREFIX
#include "nob.h"
Cmd cmd = {0};
int main(int argc, char *argv[]) {
NOB_GO_REBUILD_URSELF(argc, argv);
nob_cc(&cmd);
nob_cc_flags(&cmd);
nob_cc_output(&cmd, "swaystatus");
nob_cc_inputs(&cmd, "swaystatus.c");
if (!cmd_run(&cmd)) {
fprintf(stderr, "ERROR: Failed to compile swaystatus");
return 1;
}
// cmd_append(&cmd, "./swaystatus");
// if (!cmd_run(&cmd)) {
// fprintf(stderr, "ERROR: Failed to run swaystatus");
// return 1;
// }
return 0;
}