Переглянути джерело

Adding .gitignore & vscode cpp extension settings & custom dwm version info

bodicsek 4 роки тому
батько
коміт
0f9651e648
4 змінених файлів з 22 додано та 4 видалено
  1. 2 0
      .gitignore
  2. 16 0
      .vscode/c_cpp_properties.json
  3. 2 2
      config.mk
  4. 2 2
      dwm.c

+ 2 - 0
.gitignore

@@ -0,0 +1,2 @@
+*.o
+dwm

+ 16 - 0
.vscode/c_cpp_properties.json

@@ -0,0 +1,16 @@
+{
+    "configurations": [
+        {
+            "name": "Linux",
+            "includePath": [
+                "${default}",
+                "/usr/include/freetype2"
+            ],
+            "compilerPath": "/usr/bin/gcc",
+            "cStandard": "gnu17",
+            "cppStandard": "gnu++14",
+            "intelliSenseMode": "linux-gcc-arm64"
+        }
+    ],
+    "version": 4
+}

+ 2 - 2
config.mk

@@ -11,8 +11,8 @@ X11INC = /usr/X11R6/include
 X11LIB = /usr/X11R6/lib
 
 # Xinerama, comment if you don't want it
-XINERAMALIBS  = -lXinerama
-XINERAMAFLAGS = -DXINERAMA
+# XINERAMALIBS  = -lXinerama
+# XINERAMAFLAGS = -DXINERAMA
 
 # freetype
 FREETYPELIBS = -lfontconfig -lXft

+ 2 - 2
dwm.c

@@ -2006,7 +2006,7 @@ void
 updatestatus(void)
 {
 	if (!gettextprop(root, XA_WM_NAME, stext, sizeof(stext)))
-		strcpy(stext, "dwm-"VERSION);
+		strcpy(stext, "dwm-cust-"VERSION);
 	drawbar(selmon);
 }
 
@@ -2144,7 +2144,7 @@ int
 main(int argc, char *argv[])
 {
 	if (argc == 2 && !strcmp("-v", argv[1]))
-		die("dwm-"VERSION);
+		die("dwm-cust-"VERSION);
 	else if (argc != 1)
 		die("usage: dwm [-v]");
 	if (!setlocale(LC_CTYPE, "") || !XSupportsLocale())