From c80448533cec14f77f4e84cd2bf8005d85593e10 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 26 Nov 2021 20:54:40 +0100 Subject: [PATCH] Added some examples --- .gitignore | 2 +- example/.vscode/launch.json | 32 +++++++++++++++ example/.vscode/settings.json | 74 +++++++++++++++++++++++++++++++++++ example/.vscode/tasks.json | 10 +++++ example/hypr.desktop | 9 +++++ 5 files changed, 126 insertions(+), 1 deletion(-) create mode 100644 example/.vscode/launch.json create mode 100644 example/.vscode/settings.json create mode 100644 example/.vscode/tasks.json create mode 100644 example/hypr.desktop diff --git a/.gitignore b/.gitignore index 4e00cfc..fa04b6b 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,4 @@ CTestTestfile.cmake _deps build/ -.vscode/ \ No newline at end of file +/.vscode/ \ No newline at end of file diff --git a/example/.vscode/launch.json b/example/.vscode/launch.json new file mode 100644 index 0000000..432761d --- /dev/null +++ b/example/.vscode/launch.json @@ -0,0 +1,32 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "(gdb) Launch", + "type": "cppdbg", + "request": "launch", + "environment": [ + { + "name": "DISPLAY", + "value": ":1" // Set to whatever value you want. + } + ], + "program": "${workspaceFolder}/build/Hypr", + "args": [], + "stopAtEntry": false, + "cwd": "${fileDirname}", + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ] + } + ] +} \ No newline at end of file diff --git a/example/.vscode/settings.json b/example/.vscode/settings.json new file mode 100644 index 0000000..d4d1c7e --- /dev/null +++ b/example/.vscode/settings.json @@ -0,0 +1,74 @@ +{ + "C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools", + "cmake.configureOnOpen": true, + "files.associations": { + "cctype": "cpp", + "clocale": "cpp", + "cmath": "cpp", + "cstdarg": "cpp", + "cstddef": "cpp", + "cstdio": "cpp", + "cstdlib": "cpp", + "cstring": "cpp", + "ctime": "cpp", + "cwchar": "cpp", + "cwctype": "cpp", + "array": "cpp", + "atomic": "cpp", + "hash_map": "cpp", + "bit": "cpp", + "*.tcc": "cpp", + "bitset": "cpp", + "chrono": "cpp", + "compare": "cpp", + "complex": "cpp", + "concepts": "cpp", + "condition_variable": "cpp", + "cstdint": "cpp", + "deque": "cpp", + "list": "cpp", + "map": "cpp", + "set": "cpp", + "string": "cpp", + "unordered_map": "cpp", + "unordered_set": "cpp", + "vector": "cpp", + "exception": "cpp", + "algorithm": "cpp", + "functional": "cpp", + "iterator": "cpp", + "memory": "cpp", + "memory_resource": "cpp", + "netfwd": "cpp", + "numeric": "cpp", + "random": "cpp", + "ratio": "cpp", + "string_view": "cpp", + "system_error": "cpp", + "tuple": "cpp", + "type_traits": "cpp", + "utility": "cpp", + "fstream": "cpp", + "initializer_list": "cpp", + "iomanip": "cpp", + "iosfwd": "cpp", + "iostream": "cpp", + "istream": "cpp", + "limits": "cpp", + "mutex": "cpp", + "new": "cpp", + "numbers": "cpp", + "ostream": "cpp", + "semaphore": "cpp", + "sstream": "cpp", + "stdexcept": "cpp", + "stop_token": "cpp", + "streambuf": "cpp", + "thread": "cpp", + "cinttypes": "cpp", + "typeinfo": "cpp", + "valarray": "cpp", + "variant": "cpp", + "codecvt": "cpp" + } +} \ No newline at end of file diff --git a/example/.vscode/tasks.json b/example/.vscode/tasks.json new file mode 100644 index 0000000..cca10b3 --- /dev/null +++ b/example/.vscode/tasks.json @@ -0,0 +1,10 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "setdisplay", + "command": "export DISPLAY=:1", // Could be any other shell command + "type": "shell" + } + ] +} \ No newline at end of file diff --git a/example/hypr.desktop b/example/hypr.desktop new file mode 100644 index 0000000..e5dbaac --- /dev/null +++ b/example/hypr.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Hypr +Comment=A tiling window manager written in modern C++ +Exec=Hypr +TryExec=Hypr +Type=Application +X-LightDM-DesktopName=Hypr +DesktopNames=i3 +Keywords=tiling;wm;window;manager;Hypr; \ No newline at end of file