diff options
| author | BossCode45 <human.cyborg42@gmail.com> | 2024-10-01 14:54:37 +1300 |
|---|---|---|
| committer | BossCode45 <human.cyborg42@gmail.com> | 2024-10-01 14:54:37 +1300 |
| commit | 915532bf8fbda9ba2a36e04fcd6acc67c6c68fa5 (patch) | |
| tree | 0d7a7569ab5fc30c90d5df91a54d312c764cf328 | |
| parent | f998705c5a0e50021875a811537962083b73ed26 (diff) | |
| download | YATwm-915532bf8fbda9ba2a36e04fcd6acc67c6c68fa5.tar.gz YATwm-915532bf8fbda9ba2a36e04fcd6acc67c6c68fa5.zip | |
Restructure
| -rw-r--r-- | YATmsg/main.cpp | 0 | ||||
| -rw-r--r-- | compile_commands.json | 156 | ||||
| -rw-r--r-- | makefile | 10 | ||||
| -rw-r--r-- | old.compile_commands.json | 128 | ||||
| -rw-r--r-- | src/IPC.cpp (renamed from IPC.cpp) | 0 | ||||
| -rw-r--r-- | src/IPC.h (renamed from IPC.h) | 0 | ||||
| -rw-r--r-- | src/commands.cpp (renamed from commands.cpp) | 0 | ||||
| -rw-r--r-- | src/commands.h (renamed from commands.h) | 0 | ||||
| -rw-r--r-- | src/config.cpp (renamed from config.cpp) | 0 | ||||
| -rw-r--r-- | src/config.h (renamed from config.h) | 0 | ||||
| -rw-r--r-- | src/error.h (renamed from error.h) | 0 | ||||
| -rw-r--r-- | src/ewmh.cpp (renamed from ewmh.cpp) | 0 | ||||
| -rw-r--r-- | src/ewmh.h (renamed from ewmh.h) | 0 | ||||
| -rw-r--r-- | src/keybinds.cpp (renamed from keybinds.cpp) | 0 | ||||
| -rw-r--r-- | src/keybinds.h (renamed from keybinds.h) | 0 | ||||
| -rw-r--r-- | src/main.cpp (renamed from main.cpp) | 0 | ||||
| -rw-r--r-- | src/structs.h (renamed from structs.h) | 0 | ||||
| -rw-r--r-- | src/util.cpp (renamed from util.cpp) | 0 | ||||
| -rw-r--r-- | src/util.h (renamed from util.h) | 0 | ||||
| -rw-r--r-- | test | 2 |
20 files changed, 212 insertions, 84 deletions
diff --git a/YATmsg/main.cpp b/YATmsg/main.cpp new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/YATmsg/main.cpp diff --git a/compile_commands.json b/compile_commands.json index 3997f42..aa66e68 100644 --- a/compile_commands.json +++ b/compile_commands.json @@ -1,128 +1,128 @@ [ { "arguments": [ - "/usr/bin/g++", + "/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/g++", "-std=c++17", - "-I/usr/include/gdk-pixbuf-2.0", - "-I/usr/include/glib-2.0", - "-I/usr/lib64/glib-2.0/include", - "-I/usr/include/sysprof-4", - "-I/usr/include/libpng16", - "-I/usr/include/libmount", - "-I/usr/include/blkid", - "-pthread", + "-I/nix/store/drrf5w7pcc5q9h4si9i8vm2hclg0zijg-libnotify-0.8.3-dev/include", + "-I/nix/store/a45ri2jgzpv6q36va2y6wq471y88hpnl-gdk-pixbuf-2.42.10-dev/include/gdk-pixbuf-2.0", + "-I/nix/store/s0nl17v1827bl7qyjgkkar90c2a40ykb-glib-2.78.4-dev/include", + "-I/nix/store/s0nl17v1827bl7qyjgkkar90c2a40ykb-glib-2.78.4-dev/include/glib-2.0", + "-I/nix/store/k1qjs35nw1lbssg1l1xpmh0082hy7wl4-glib-2.78.4/lib/glib-2.0/include", "-c", "-o", - "ewmh.o", - "ewmh.cpp" + "build/config.o", + "src/config.cpp" ], "directory": "/home/boss/Documents/Coding/WM/YATwm", - "file": "/home/boss/Documents/Coding/WM/YATwm/ewmh.cpp", - "output": "/home/boss/Documents/Coding/WM/YATwm/ewmh.o" + "file": "/home/boss/Documents/Coding/WM/YATwm/src/config.cpp", + "output": "/home/boss/Documents/Coding/WM/YATwm/build/config.o" }, { "arguments": [ - "/usr/bin/g++", + "/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/g++", "-std=c++17", - "-I/usr/include/gdk-pixbuf-2.0", - "-I/usr/include/glib-2.0", - "-I/usr/lib64/glib-2.0/include", - "-I/usr/include/sysprof-4", - "-I/usr/include/libpng16", - "-I/usr/include/libmount", - "-I/usr/include/blkid", - "-pthread", + "-I/nix/store/drrf5w7pcc5q9h4si9i8vm2hclg0zijg-libnotify-0.8.3-dev/include", + "-I/nix/store/a45ri2jgzpv6q36va2y6wq471y88hpnl-gdk-pixbuf-2.42.10-dev/include/gdk-pixbuf-2.0", + "-I/nix/store/s0nl17v1827bl7qyjgkkar90c2a40ykb-glib-2.78.4-dev/include", + "-I/nix/store/s0nl17v1827bl7qyjgkkar90c2a40ykb-glib-2.78.4-dev/include/glib-2.0", + "-I/nix/store/k1qjs35nw1lbssg1l1xpmh0082hy7wl4-glib-2.78.4/lib/glib-2.0/include", "-c", "-o", - "main.o", - "main.cpp" + "build/ewmh.o", + "src/ewmh.cpp" ], "directory": "/home/boss/Documents/Coding/WM/YATwm", - "file": "/home/boss/Documents/Coding/WM/YATwm/main.cpp", - "output": "/home/boss/Documents/Coding/WM/YATwm/main.o" + "file": "/home/boss/Documents/Coding/WM/YATwm/src/ewmh.cpp", + "output": "/home/boss/Documents/Coding/WM/YATwm/build/ewmh.o" }, { "arguments": [ - "/usr/bin/g++", + "/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/g++", "-std=c++17", - "-I/usr/include/gdk-pixbuf-2.0", - "-I/usr/include/glib-2.0", - "-I/usr/lib64/glib-2.0/include", - "-I/usr/include/sysprof-4", - "-I/usr/include/libpng16", - "-I/usr/include/libmount", - "-I/usr/include/blkid", - "-pthread", + "-I/nix/store/drrf5w7pcc5q9h4si9i8vm2hclg0zijg-libnotify-0.8.3-dev/include", + "-I/nix/store/a45ri2jgzpv6q36va2y6wq471y88hpnl-gdk-pixbuf-2.42.10-dev/include/gdk-pixbuf-2.0", + "-I/nix/store/s0nl17v1827bl7qyjgkkar90c2a40ykb-glib-2.78.4-dev/include", + "-I/nix/store/s0nl17v1827bl7qyjgkkar90c2a40ykb-glib-2.78.4-dev/include/glib-2.0", + "-I/nix/store/k1qjs35nw1lbssg1l1xpmh0082hy7wl4-glib-2.78.4/lib/glib-2.0/include", "-c", "-o", - "util.o", - "util.cpp" + "build/main.o", + "src/main.cpp" ], "directory": "/home/boss/Documents/Coding/WM/YATwm", - "file": "/home/boss/Documents/Coding/WM/YATwm/util.cpp", - "output": "/home/boss/Documents/Coding/WM/YATwm/util.o" + "file": "/home/boss/Documents/Coding/WM/YATwm/src/main.cpp", + "output": "/home/boss/Documents/Coding/WM/YATwm/build/main.o" }, { "arguments": [ - "/usr/bin/g++", + "/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/g++", "-std=c++17", - "-I/usr/include/gdk-pixbuf-2.0", - "-I/usr/include/glib-2.0", - "-I/usr/lib64/glib-2.0/include", - "-I/usr/include/sysprof-4", - "-I/usr/include/libpng16", - "-I/usr/include/libmount", - "-I/usr/include/blkid", - "-pthread", + "-I/nix/store/drrf5w7pcc5q9h4si9i8vm2hclg0zijg-libnotify-0.8.3-dev/include", + "-I/nix/store/a45ri2jgzpv6q36va2y6wq471y88hpnl-gdk-pixbuf-2.42.10-dev/include/gdk-pixbuf-2.0", + "-I/nix/store/s0nl17v1827bl7qyjgkkar90c2a40ykb-glib-2.78.4-dev/include", + "-I/nix/store/s0nl17v1827bl7qyjgkkar90c2a40ykb-glib-2.78.4-dev/include/glib-2.0", + "-I/nix/store/k1qjs35nw1lbssg1l1xpmh0082hy7wl4-glib-2.78.4/lib/glib-2.0/include", "-c", "-o", - "config.o", - "config.cpp" + "build/IPC.o", + "src/IPC.cpp" ], "directory": "/home/boss/Documents/Coding/WM/YATwm", - "file": "/home/boss/Documents/Coding/WM/YATwm/config.cpp", - "output": "/home/boss/Documents/Coding/WM/YATwm/config.o" + "file": "/home/boss/Documents/Coding/WM/YATwm/src/IPC.cpp", + "output": "/home/boss/Documents/Coding/WM/YATwm/build/IPC.o" }, { "arguments": [ - "/usr/bin/g++", + "/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/g++", "-std=c++17", - "-I/usr/include/gdk-pixbuf-2.0", - "-I/usr/include/glib-2.0", - "-I/usr/lib64/glib-2.0/include", - "-I/usr/include/sysprof-4", - "-I/usr/include/libpng16", - "-I/usr/include/libmount", - "-I/usr/include/blkid", - "-pthread", + "-I/nix/store/drrf5w7pcc5q9h4si9i8vm2hclg0zijg-libnotify-0.8.3-dev/include", + "-I/nix/store/a45ri2jgzpv6q36va2y6wq471y88hpnl-gdk-pixbuf-2.42.10-dev/include/gdk-pixbuf-2.0", + "-I/nix/store/s0nl17v1827bl7qyjgkkar90c2a40ykb-glib-2.78.4-dev/include", + "-I/nix/store/s0nl17v1827bl7qyjgkkar90c2a40ykb-glib-2.78.4-dev/include/glib-2.0", + "-I/nix/store/k1qjs35nw1lbssg1l1xpmh0082hy7wl4-glib-2.78.4/lib/glib-2.0/include", "-c", "-o", - "keybinds.o", - "keybinds.cpp" + "build/util.o", + "src/util.cpp" ], "directory": "/home/boss/Documents/Coding/WM/YATwm", - "file": "/home/boss/Documents/Coding/WM/YATwm/keybinds.cpp", - "output": "/home/boss/Documents/Coding/WM/YATwm/keybinds.o" + "file": "/home/boss/Documents/Coding/WM/YATwm/src/util.cpp", + "output": "/home/boss/Documents/Coding/WM/YATwm/build/util.o" }, { "arguments": [ - "/usr/bin/g++", + "/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/g++", "-std=c++17", - "-I/usr/include/gdk-pixbuf-2.0", - "-I/usr/include/glib-2.0", - "-I/usr/lib64/glib-2.0/include", - "-I/usr/include/sysprof-4", - "-I/usr/include/libpng16", - "-I/usr/include/libmount", - "-I/usr/include/blkid", - "-pthread", + "-I/nix/store/drrf5w7pcc5q9h4si9i8vm2hclg0zijg-libnotify-0.8.3-dev/include", + "-I/nix/store/a45ri2jgzpv6q36va2y6wq471y88hpnl-gdk-pixbuf-2.42.10-dev/include/gdk-pixbuf-2.0", + "-I/nix/store/s0nl17v1827bl7qyjgkkar90c2a40ykb-glib-2.78.4-dev/include", + "-I/nix/store/s0nl17v1827bl7qyjgkkar90c2a40ykb-glib-2.78.4-dev/include/glib-2.0", + "-I/nix/store/k1qjs35nw1lbssg1l1xpmh0082hy7wl4-glib-2.78.4/lib/glib-2.0/include", "-c", "-o", - "commands.o", - "commands.cpp" + "build/keybinds.o", + "src/keybinds.cpp" ], "directory": "/home/boss/Documents/Coding/WM/YATwm", - "file": "/home/boss/Documents/Coding/WM/YATwm/commands.cpp", - "output": "/home/boss/Documents/Coding/WM/YATwm/commands.o" + "file": "/home/boss/Documents/Coding/WM/YATwm/src/keybinds.cpp", + "output": "/home/boss/Documents/Coding/WM/YATwm/build/keybinds.o" + }, + { + "arguments": [ + "/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/g++", + "-std=c++17", + "-I/nix/store/drrf5w7pcc5q9h4si9i8vm2hclg0zijg-libnotify-0.8.3-dev/include", + "-I/nix/store/a45ri2jgzpv6q36va2y6wq471y88hpnl-gdk-pixbuf-2.42.10-dev/include/gdk-pixbuf-2.0", + "-I/nix/store/s0nl17v1827bl7qyjgkkar90c2a40ykb-glib-2.78.4-dev/include", + "-I/nix/store/s0nl17v1827bl7qyjgkkar90c2a40ykb-glib-2.78.4-dev/include/glib-2.0", + "-I/nix/store/k1qjs35nw1lbssg1l1xpmh0082hy7wl4-glib-2.78.4/lib/glib-2.0/include", + "-c", + "-o", + "build/commands.o", + "src/commands.cpp" + ], + "directory": "/home/boss/Documents/Coding/WM/YATwm", + "file": "/home/boss/Documents/Coding/WM/YATwm/src/commands.cpp", + "output": "/home/boss/Documents/Coding/WM/YATwm/build/commands.o" } ] @@ -2,9 +2,9 @@ CXX := g++ CXXFLAGS := -std=c++17 `pkg-config --cflags --libs libnotify`# -g -fsanitize=address -fno-omit-frame-pointer LINKFLAGS := -lX11 -lXrandr -OBJS_DIR := . -OUT_DIR := . -SOURCE_DIR := . +OBJS_DIR := build +OUT_DIR := out +SOURCE_DIR := src EXEC := YATwm SOURCE_FILES := $(wildcard $(SOURCE_DIR)/*.cpp) SOURCE_HEADERS := $(wildcard $(SOURCE_DIR)/*.h) @@ -12,7 +12,7 @@ OBJS := $(subst $(SOURCE_DIR),$(OBJS_DIR), $(patsubst %.cpp,%.o,$(SOURCE_FILES)) INSTALL_DIR = / $(EXEC): $(OBJS) - $(CXX) $(OBJS) $(CXXFLAGS) $(LINKFLAGS) -o $(OUT_DIR)/$(EXEC) + $(CXX) $(OBJS) $(CXXFLAGS) $(LINKFLAGS) -o $(EXEC) $(OBJS_DIR)/%.o : $(SOURCE_DIR)/%.cpp $(CXX) $(CXXFLAGS) -c $< -o $@ @@ -39,4 +39,4 @@ $(OBJS_DIR)/ipc.o: $(SOURCE_DIR)/ipc.cpp $(SOURCE_DIR)/ipc.h $(SOURCE_DIR)/comma clean: rm $(OBJS_DIR)/*.o - rm $(OUT_DIR)/$(EXEC) + rm $(EXEC) diff --git a/old.compile_commands.json b/old.compile_commands.json new file mode 100644 index 0000000..3997f42 --- /dev/null +++ b/old.compile_commands.json @@ -0,0 +1,128 @@ +[ + { + "arguments": [ + "/usr/bin/g++", + "-std=c++17", + "-I/usr/include/gdk-pixbuf-2.0", + "-I/usr/include/glib-2.0", + "-I/usr/lib64/glib-2.0/include", + "-I/usr/include/sysprof-4", + "-I/usr/include/libpng16", + "-I/usr/include/libmount", + "-I/usr/include/blkid", + "-pthread", + "-c", + "-o", + "ewmh.o", + "ewmh.cpp" + ], + "directory": "/home/boss/Documents/Coding/WM/YATwm", + "file": "/home/boss/Documents/Coding/WM/YATwm/ewmh.cpp", + "output": "/home/boss/Documents/Coding/WM/YATwm/ewmh.o" + }, + { + "arguments": [ + "/usr/bin/g++", + "-std=c++17", + "-I/usr/include/gdk-pixbuf-2.0", + "-I/usr/include/glib-2.0", + "-I/usr/lib64/glib-2.0/include", + "-I/usr/include/sysprof-4", + "-I/usr/include/libpng16", + "-I/usr/include/libmount", + "-I/usr/include/blkid", + "-pthread", + "-c", + "-o", + "main.o", + "main.cpp" + ], + "directory": "/home/boss/Documents/Coding/WM/YATwm", + "file": "/home/boss/Documents/Coding/WM/YATwm/main.cpp", + "output": "/home/boss/Documents/Coding/WM/YATwm/main.o" + }, + { + "arguments": [ + "/usr/bin/g++", + "-std=c++17", + "-I/usr/include/gdk-pixbuf-2.0", + "-I/usr/include/glib-2.0", + "-I/usr/lib64/glib-2.0/include", + "-I/usr/include/sysprof-4", + "-I/usr/include/libpng16", + "-I/usr/include/libmount", + "-I/usr/include/blkid", + "-pthread", + "-c", + "-o", + "util.o", + "util.cpp" + ], + "directory": "/home/boss/Documents/Coding/WM/YATwm", + "file": "/home/boss/Documents/Coding/WM/YATwm/util.cpp", + "output": "/home/boss/Documents/Coding/WM/YATwm/util.o" + }, + { + "arguments": [ + "/usr/bin/g++", + "-std=c++17", + "-I/usr/include/gdk-pixbuf-2.0", + "-I/usr/include/glib-2.0", + "-I/usr/lib64/glib-2.0/include", + "-I/usr/include/sysprof-4", + "-I/usr/include/libpng16", + "-I/usr/include/libmount", + "-I/usr/include/blkid", + "-pthread", + "-c", + "-o", + "config.o", + "config.cpp" + ], + "directory": "/home/boss/Documents/Coding/WM/YATwm", + "file": "/home/boss/Documents/Coding/WM/YATwm/config.cpp", + "output": "/home/boss/Documents/Coding/WM/YATwm/config.o" + }, + { + "arguments": [ + "/usr/bin/g++", + "-std=c++17", + "-I/usr/include/gdk-pixbuf-2.0", + "-I/usr/include/glib-2.0", + "-I/usr/lib64/glib-2.0/include", + "-I/usr/include/sysprof-4", + "-I/usr/include/libpng16", + "-I/usr/include/libmount", + "-I/usr/include/blkid", + "-pthread", + "-c", + "-o", + "keybinds.o", + "keybinds.cpp" + ], + "directory": "/home/boss/Documents/Coding/WM/YATwm", + "file": "/home/boss/Documents/Coding/WM/YATwm/keybinds.cpp", + "output": "/home/boss/Documents/Coding/WM/YATwm/keybinds.o" + }, + { + "arguments": [ + "/usr/bin/g++", + "-std=c++17", + "-I/usr/include/gdk-pixbuf-2.0", + "-I/usr/include/glib-2.0", + "-I/usr/lib64/glib-2.0/include", + "-I/usr/include/sysprof-4", + "-I/usr/include/libpng16", + "-I/usr/include/libmount", + "-I/usr/include/blkid", + "-pthread", + "-c", + "-o", + "commands.o", + "commands.cpp" + ], + "directory": "/home/boss/Documents/Coding/WM/YATwm", + "file": "/home/boss/Documents/Coding/WM/YATwm/commands.cpp", + "output": "/home/boss/Documents/Coding/WM/YATwm/commands.o" + } +] diff --git a/commands.cpp b/src/commands.cpp index 57cfd0b..57cfd0b 100644 --- a/commands.cpp +++ b/src/commands.cpp diff --git a/commands.h b/src/commands.h index af4a4a0..af4a4a0 100644 --- a/commands.h +++ b/src/commands.h diff --git a/config.cpp b/src/config.cpp index 3af2491..3af2491 100644 --- a/config.cpp +++ b/src/config.cpp diff --git a/keybinds.cpp b/src/keybinds.cpp index c41452f..c41452f 100644 --- a/keybinds.cpp +++ b/src/keybinds.cpp diff --git a/keybinds.h b/src/keybinds.h index a742240..a742240 100644 --- a/keybinds.h +++ b/src/keybinds.h diff --git a/structs.h b/src/structs.h index 8215bf5..8215bf5 100644 --- a/structs.h +++ b/src/structs.h @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash make |
