xcfg/src/util.h

19 lines
539 B
C
Raw Normal View History

#pragma once
#include <stdbool.h>
2024-02-20 18:12:54 +00:00
2024-05-01 10:07:40 +00:00
#define AUTOSTARTX \
"\n#auto-startx \nif [[ \"$(tty)\" == \"/dev/tty1\" ]] && [ -z " \
"\"$DISPLAY\" ]; then\nexec startx\nfi\n"
2024-02-20 18:12:54 +00:00
typedef struct Desktop {
char *name;
char *desc;
char *pkg;
char *cmd;
} desktop_t;
2024-05-01 10:07:40 +00:00
bool exists(char *);
char *check_path(char *);
2024-05-01 10:07:40 +00:00
bool joinhome(char *, char *);
bool endswith(const char *, const char *);