ironbar, sway tweaks, user services

This commit is contained in:
atagen 2023-08-19 23:03:54 +10:00
parent 899f706e3f
commit fbc47ef8f7
5 changed files with 117 additions and 33 deletions

40
sway-nvidia.patch Normal file
View file

@ -0,0 +1,40 @@
diff --git a/sway/main.c b/sway/main.c
index 85bc2f1..0129a58 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) {
- if (allow_unsupported_gpu) {
- sway_log(SWAY_ERROR,
- "!!! Proprietary Nvidia drivers are in use !!!");
- } else {
- sway_log(SWAY_ERROR,
- "Proprietary Nvidia drivers are NOT supported. "
- "Use Nouveau. To launch sway anyway, launch with "
- "--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")) {