2024-04-22 23:28:22 +00:00
|
|
|
#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 " \
|
2024-04-22 23:28:22 +00:00
|
|
|
"\"$DISPLAY\" ]; then\nexec startx\nfi\n"
|
2024-02-20 18:12:54 +00:00
|
|
|
|
2024-04-22 23:28:22 +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 *);
|
2024-04-22 23:28:22 +00:00
|
|
|
char *check_path(char *);
|
2024-05-01 10:07:40 +00:00
|
|
|
bool joinhome(char *, char *);
|
|
|
|
bool endswith(const char *, const char *);
|