xcfg/src/util.h

19 lines
456 B
C
Raw Normal View History

#pragma once
#include <stdbool.h>
2024-02-20 18:12:54 +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;
bool exists(char *);
char *check_path(char *);
bool joinhome(char *, char *);
bool endswith(const char *, const char *);