qtile
This commit is contained in:
parent
7a1488860b
commit
b07d950147
27 changed files with 3330 additions and 169 deletions
|
@ -1,11 +1,19 @@
|
|||
diff --git a/sway/main.c b/sway/main.c
|
||||
index 85bc2f1..0129a58 100644
|
||||
index 85bc2f1c..a2f76590 100644
|
||||
--- a/sway/main.c
|
||||
+++ b/sway/main.c
|
||||
@@ -58,16 +58,25 @@ void detect_proprietary(int allow_unsupported_gpu) {
|
||||
size_t line_size = 0;
|
||||
while (getline(&line, &line_size, f) != -1) {
|
||||
if (strncmp(line, "nvidia ", 7) == 0) {
|
||||
@@ -50,41 +50,7 @@ void sig_handler(int signal) {
|
||||
}
|
||||
|
||||
void detect_proprietary(int allow_unsupported_gpu) {
|
||||
- FILE *f = fopen("/proc/modules", "r");
|
||||
- if (!f) {
|
||||
- return;
|
||||
- }
|
||||
- char *line = NULL;
|
||||
- size_t line_size = 0;
|
||||
- while (getline(&line, &line_size, f) != -1) {
|
||||
- if (strncmp(line, "nvidia ", 7) == 0) {
|
||||
- if (allow_unsupported_gpu) {
|
||||
- sway_log(SWAY_ERROR,
|
||||
- "!!! Proprietary Nvidia drivers are in use !!!");
|
||||
|
@ -16,25 +24,24 @@ index 85bc2f1..0129a58 100644
|
|||
- "--unsupported-gpu and DO NOT report issues.");
|
||||
- exit(EXIT_FAILURE);
|
||||
- }
|
||||
+ sway_log(SWAY_INFO,
|
||||
+ "Thank you, based Nvidia user! o7"
|
||||
+ );
|
||||
+ sway_log(SWAY_INFO,
|
||||
+ " _ ___ __ "
|
||||
+ );
|
||||
+ sway_log(SWAY_INFO,
|
||||
+ " ____ _ __(_)___/ (_)___ _ _________ _____/ /_______"
|
||||
+ );
|
||||
+ sway_log(SWAY_INFO,
|
||||
+ " / __ \\ | / / / __ / / __ `/ / ___/ __ \\/ ___/ //_/ ___/"
|
||||
+ );
|
||||
+ sway_log(SWAY_INFO,
|
||||
+ " / / / / |/ / / /_/ / / /_/ / / / / /_/ / /__/ ,< (__ ) "
|
||||
+ );
|
||||
+ sway_log(SWAY_INFO,
|
||||
+ "/_/ /_/|___/_/\\__,_/_/\\__,_/ /_/ \\____/\\___/_/|_/____/ "
|
||||
+ );
|
||||
+
|
||||
break;
|
||||
}
|
||||
if (strstr(line, "fglrx")) {
|
||||
- break;
|
||||
- }
|
||||
- if (strstr(line, "fglrx")) {
|
||||
- if (allow_unsupported_gpu) {
|
||||
- sway_log(SWAY_ERROR,
|
||||
- "!!! Proprietary AMD drivers are in use !!!");
|
||||
- } else {
|
||||
- sway_log(SWAY_ERROR, "Proprietary AMD drivers do NOT support "
|
||||
- "Wayland. Use radeon. To try anyway, launch sway with "
|
||||
- "--unsupported-gpu and DO NOT report issues.");
|
||||
- exit(EXIT_FAILURE);
|
||||
- }
|
||||
- break;
|
||||
- }
|
||||
- }
|
||||
- free(line);
|
||||
- fclose(f);
|
||||
+ return;
|
||||
}
|
||||
|
||||
void run_as_ipc_client(char *command, char *socket_path) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue