From 44f85c76ecc71e2d72db54ce1fe4d05d406fbdd9 Mon Sep 17 00:00:00 2001 From: Anas Elgarhy Date: Mon, 31 Oct 2022 13:32:01 +0200 Subject: [PATCH] Improve yoo --- CMakeLists.txt | 4 +- .../cmakeFiles-v1-10ab7de84491b2ad21c0.json | 97 ++++ .../cmakeFiles-v1-ad9218d2c69b47be0e82.json | 406 ---------------- ...=> codemodel-v2-47532c44014cf30e75ae.json} | 2 +- ...on => index-2022-10-31T08-02-25-0393.json} | 8 +- ...et-yo_dwm-Debug-631731075c5f906219d9.json} | 68 ++- cmake-build-debug/CMakeFiles/clion-log.txt | 6 - .../Testing/Temporary/LastTest.log | 4 +- cmake-build-debug/build.ninja | 39 +- src/colors.h | 18 +- src/config.h | 2 - src/dwm.c | 324 +------------ src/dwm.h | 272 +++++++++++ src/keys/functions.h | 46 ++ src/keys/keys.c | 34 +- src/keys/keys.c.orig | 442 ------------------ src/keys/keys.h | 31 +- src/keys/mouse.c | 23 + src/keys/mouse.h | 29 ++ src/layouts/layouts.h | 20 +- src/movestack.c | 2 +- 21 files changed, 599 insertions(+), 1278 deletions(-) create mode 100644 cmake-build-debug/.cmake/api/v1/reply/cmakeFiles-v1-10ab7de84491b2ad21c0.json delete mode 100644 cmake-build-debug/.cmake/api/v1/reply/cmakeFiles-v1-ad9218d2c69b47be0e82.json rename cmake-build-debug/.cmake/api/v1/reply/{codemodel-v2-a8c048656fcb1fb7324c.json => codemodel-v2-47532c44014cf30e75ae.json} (93%) rename cmake-build-debug/.cmake/api/v1/reply/{index-2022-10-31T05-03-24-0067.json => index-2022-10-31T08-02-25-0393.json} (88%) rename cmake-build-debug/.cmake/api/v1/reply/{target-yo_dwm-Debug-619ca603d9f8a027e9c4.json => target-yo_dwm-Debug-631731075c5f906219d9.json} (81%) create mode 100644 src/dwm.h create mode 100644 src/keys/functions.h delete mode 100644 src/keys/keys.c.orig create mode 100644 src/keys/mouse.c create mode 100644 src/keys/mouse.h diff --git a/CMakeLists.txt b/CMakeLists.txt index 9168c26..f2d5a51 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,4 +26,6 @@ add_executable(yo_dwm src/movestack.c src/transient.c src/util.c - src/util.h) + src/util.h src/keys/mouse.c src/keys/mouse.h src/keys/functions.h src/dwm.h) + +target_link_libraries(yo_dwm X11 Xft Xinerama) diff --git a/cmake-build-debug/.cmake/api/v1/reply/cmakeFiles-v1-10ab7de84491b2ad21c0.json b/cmake-build-debug/.cmake/api/v1/reply/cmakeFiles-v1-10ab7de84491b2ad21c0.json new file mode 100644 index 0000000..c7c0096 --- /dev/null +++ b/cmake-build-debug/.cmake/api/v1/reply/cmakeFiles-v1-10ab7de84491b2ad21c0.json @@ -0,0 +1,97 @@ +{ + "inputs" : + [ + { + "path" : "CMakeLists.txt" + }, + { + "isGenerated" : true, + "path" : "cmake-build-debug/CMakeFiles/3.23.2/CMakeSystem.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeSystemSpecificInitialize.cmake" + }, + { + "isGenerated" : true, + "path" : "cmake-build-debug/CMakeFiles/3.23.2/CMakeCCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeSystemSpecificInformation.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeGenericSystem.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeInitializeConfigs.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Platform/Linux.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Platform/UnixPaths.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeCInformation.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeLanguageInformation.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/GNU-C.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/GNU.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/CMakeCommonCompilerMacros.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Platform/Linux-GNU-C.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Platform/Linux-GNU.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeCommonLanguageInclude.cmake" + } + ], + "kind" : "cmakeFiles", + "paths" : + { + "build" : "/home/anas/suckless_utils/yo-dwm/cmake-build-debug", + "source" : "/home/anas/suckless_utils/yo-dwm" + }, + "version" : + { + "major" : 1, + "minor" : 0 + } +} diff --git a/cmake-build-debug/.cmake/api/v1/reply/cmakeFiles-v1-ad9218d2c69b47be0e82.json b/cmake-build-debug/.cmake/api/v1/reply/cmakeFiles-v1-ad9218d2c69b47be0e82.json deleted file mode 100644 index b816a49..0000000 --- a/cmake-build-debug/.cmake/api/v1/reply/cmakeFiles-v1-ad9218d2c69b47be0e82.json +++ /dev/null @@ -1,406 +0,0 @@ -{ - "inputs" : - [ - { - "path" : "CMakeLists.txt" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeDetermineSystem.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeSystem.cmake.in" - }, - { - "isGenerated" : true, - "path" : "cmake-build-debug/CMakeFiles/3.23.2/CMakeSystem.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeSystemSpecificInitialize.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeDetermineCCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeDetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeDetermineCompilerId.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeCompilerIdDetection.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/ADSP-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/ARMCC-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/ARMClang-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/AppleClang-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Clang-DetermineCompilerInternal.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Borland-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Bruce-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Clang-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Clang-DetermineCompilerInternal.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Compaq-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Cray-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Embarcadero-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Fujitsu-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/FujitsuClang-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/GHS-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/GNU-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/HP-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/IAR-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/IBMClang-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Intel-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/IntelLLVM-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/LCC-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/MSVC-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/NVHPC-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/NVIDIA-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/PGI-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/PathScale-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/SCO-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/SDCC-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/SunPro-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/TI-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Watcom-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/XL-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/XLClang-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/zOS-C-DetermineCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeFindBinUtils.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/GNU-FindBinUtils.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeCCompiler.cmake.in" - }, - { - "isGenerated" : true, - "path" : "cmake-build-debug/CMakeFiles/3.23.2/CMakeCCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeSystemSpecificInformation.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeGenericSystem.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeInitializeConfigs.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Platform/Linux.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Platform/UnixPaths.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeCInformation.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeLanguageInformation.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/GNU-C.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/GNU.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/CMakeCommonCompilerMacros.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Platform/Linux-GNU-C.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Platform/Linux-GNU.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeCommonLanguageInclude.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeTestCCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeTestCompilerCommon.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeDetermineCompilerABI.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeParseImplicitIncludeInfo.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeParseImplicitLinkInfo.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeParseLibraryArchitecture.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeTestCompilerCommon.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeCCompilerABI.c" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeDetermineCompileFeatures.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Internal/FeatureTesting.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeCCompiler.cmake.in" - }, - { - "isGenerated" : true, - "path" : "cmake-build-debug/CMakeFiles/3.23.2/CMakeCCompiler.cmake" - } - ], - "kind" : "cmakeFiles", - "paths" : - { - "build" : "/home/anas/suckless_utils/yo-dwm/cmake-build-debug", - "source" : "/home/anas/suckless_utils/yo-dwm" - }, - "version" : - { - "major" : 1, - "minor" : 0 - } -} diff --git a/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-a8c048656fcb1fb7324c.json b/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-47532c44014cf30e75ae.json similarity index 93% rename from cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-a8c048656fcb1fb7324c.json rename to cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-47532c44014cf30e75ae.json index e71fbaa..624b9e6 100644 --- a/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-a8c048656fcb1fb7324c.json +++ b/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-47532c44014cf30e75ae.json @@ -39,7 +39,7 @@ { "directoryIndex" : 0, "id" : "yo_dwm::@6890427a1f51a3e7e1df", - "jsonFile" : "target-yo_dwm-Debug-619ca603d9f8a027e9c4.json", + "jsonFile" : "target-yo_dwm-Debug-631731075c5f906219d9.json", "name" : "yo_dwm", "projectIndex" : 0 } diff --git a/cmake-build-debug/.cmake/api/v1/reply/index-2022-10-31T05-03-24-0067.json b/cmake-build-debug/.cmake/api/v1/reply/index-2022-10-31T08-02-25-0393.json similarity index 88% rename from cmake-build-debug/.cmake/api/v1/reply/index-2022-10-31T05-03-24-0067.json rename to cmake-build-debug/.cmake/api/v1/reply/index-2022-10-31T08-02-25-0393.json index 7e23547..6a3d687 100644 --- a/cmake-build-debug/.cmake/api/v1/reply/index-2022-10-31T05-03-24-0067.json +++ b/cmake-build-debug/.cmake/api/v1/reply/index-2022-10-31T08-02-25-0393.json @@ -26,7 +26,7 @@ "objects" : [ { - "jsonFile" : "codemodel-v2-a8c048656fcb1fb7324c.json", + "jsonFile" : "codemodel-v2-47532c44014cf30e75ae.json", "kind" : "codemodel", "version" : { @@ -44,7 +44,7 @@ } }, { - "jsonFile" : "cmakeFiles-v1-ad9218d2c69b47be0e82.json", + "jsonFile" : "cmakeFiles-v1-10ab7de84491b2ad21c0.json", "kind" : "cmakeFiles", "version" : { @@ -76,7 +76,7 @@ }, "cmakeFiles-v1" : { - "jsonFile" : "cmakeFiles-v1-ad9218d2c69b47be0e82.json", + "jsonFile" : "cmakeFiles-v1-10ab7de84491b2ad21c0.json", "kind" : "cmakeFiles", "version" : { @@ -86,7 +86,7 @@ }, "codemodel-v2" : { - "jsonFile" : "codemodel-v2-a8c048656fcb1fb7324c.json", + "jsonFile" : "codemodel-v2-47532c44014cf30e75ae.json", "kind" : "codemodel", "version" : { diff --git a/cmake-build-debug/.cmake/api/v1/reply/target-yo_dwm-Debug-619ca603d9f8a027e9c4.json b/cmake-build-debug/.cmake/api/v1/reply/target-yo_dwm-Debug-631731075c5f906219d9.json similarity index 81% rename from cmake-build-debug/.cmake/api/v1/reply/target-yo_dwm-Debug-619ca603d9f8a027e9c4.json rename to cmake-build-debug/.cmake/api/v1/reply/target-yo_dwm-Debug-631731075c5f906219d9.json index 294975f..994b70f 100644 --- a/cmake-build-debug/.cmake/api/v1/reply/target-yo_dwm-Debug-619ca603d9f8a027e9c4.json +++ b/cmake-build-debug/.cmake/api/v1/reply/target-yo_dwm-Debug-631731075c5f906219d9.json @@ -11,6 +11,7 @@ "commands" : [ "add_executable", + "target_link_libraries", "include_directories" ], "files" : @@ -31,23 +32,29 @@ { "command" : 1, "file" : 0, + "line" : 31, + "parent" : 0 + }, + { + "command" : 2, + "file" : 0, "line" : 6, "parent" : 0 }, { - "command" : 1, + "command" : 2, "file" : 0, "line" : 7, "parent" : 0 }, { - "command" : 1, + "command" : 2, "file" : 0, "line" : 8, "parent" : 0 }, { - "command" : 1, + "command" : 2, "file" : 0, "line" : 9, "parent" : 0 @@ -69,19 +76,19 @@ "includes" : [ { - "backtrace" : 2, + "backtrace" : 3, "path" : "/home/anas/suckless_utils/yo-dwm/." }, { - "backtrace" : 3, + "backtrace" : 4, "path" : "/home/anas/suckless_utils/yo-dwm/src" }, { - "backtrace" : 4, + "backtrace" : 5, "path" : "/home/anas/suckless_utils/yo-dwm/src/keys" }, { - "backtrace" : 5, + "backtrace" : 6, "path" : "/home/anas/suckless_utils/yo-dwm/src/layouts" } ], @@ -106,7 +113,8 @@ 13, 14, 15, - 16 + 16, + 18 ] } ], @@ -122,6 +130,21 @@ { "fragment" : "", "role" : "flags" + }, + { + "backtrace" : 2, + "fragment" : "-lX11", + "role" : "libraries" + }, + { + "backtrace" : 2, + "fragment" : "-lXft", + "role" : "libraries" + }, + { + "backtrace" : 2, + "fragment" : "-lXinerama", + "role" : "libraries" } ], "language" : "C" @@ -149,7 +172,8 @@ 13, 14, 15, - 16 + 16, + 18 ] }, { @@ -162,7 +186,10 @@ 9, 10, 12, - 17 + 17, + 19, + 20, + 21 ] } ], @@ -268,6 +295,27 @@ "backtrace" : 1, "path" : "src/util.h", "sourceGroupIndex" : 1 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "src/keys/mouse.c", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "path" : "src/keys/mouse.h", + "sourceGroupIndex" : 1 + }, + { + "backtrace" : 1, + "path" : "src/keys/functions.h", + "sourceGroupIndex" : 1 + }, + { + "backtrace" : 1, + "path" : "src/dwm.h", + "sourceGroupIndex" : 1 } ], "type" : "EXECUTABLE" diff --git a/cmake-build-debug/CMakeFiles/clion-log.txt b/cmake-build-debug/CMakeFiles/clion-log.txt index 97fad1f..5a7bccc 100644 --- a/cmake-build-debug/CMakeFiles/clion-log.txt +++ b/cmake-build-debug/CMakeFiles/clion-log.txt @@ -1,10 +1,4 @@ /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/ninja/linux/ninja -G Ninja -S /home/anas/suckless_utils/yo-dwm -B /home/anas/suckless_utils/yo-dwm/cmake-build-debug --- The C compiler identification is GNU 12.2.0 --- Detecting C compiler ABI info --- Detecting C compiler ABI info - done --- Check for working C compiler: /usr/bin/cc - skipped --- Detecting C compile features --- Detecting C compile features - done -- Configuring done -- Generating done -- Build files have been written to: /home/anas/suckless_utils/yo-dwm/cmake-build-debug diff --git a/cmake-build-debug/Testing/Temporary/LastTest.log b/cmake-build-debug/Testing/Temporary/LastTest.log index 41d54c1..e68b9d6 100644 --- a/cmake-build-debug/Testing/Temporary/LastTest.log +++ b/cmake-build-debug/Testing/Temporary/LastTest.log @@ -1,3 +1,3 @@ -Start testing: Oct 31 07:03 EET +Start testing: Oct 31 10:02 EET ---------------------------------------------------------- -End testing: Oct 31 07:03 EET +End testing: Oct 31 10:02 EET diff --git a/cmake-build-debug/build.ninja b/cmake-build-debug/build.ninja index 50c850b..77e310c 100644 --- a/cmake-build-debug/build.ninja +++ b/cmake-build-debug/build.ninja @@ -55,8 +55,6 @@ build CMakeFiles/yo_dwm.dir/src/keys/keys.c.o: C_COMPILER__yo_dwm_Debug /home/an INCLUDES = -I/home/anas/suckless_utils/yo-dwm/. -I/home/anas/suckless_utils/yo-dwm/src -I/home/anas/suckless_utils/yo-dwm/src/keys -I/home/anas/suckless_utils/yo-dwm/src/layouts OBJECT_DIR = CMakeFiles/yo_dwm.dir OBJECT_FILE_DIR = CMakeFiles/yo_dwm.dir/src/keys - TARGET_COMPILE_PDB = CMakeFiles/yo_dwm.dir/ - TARGET_PDB = yo_dwm.pdb build CMakeFiles/yo_dwm.dir/src/layouts/centeredmaster.c.o: C_COMPILER__yo_dwm_Debug /home/anas/suckless_utils/yo-dwm/src/layouts/centeredmaster.c || cmake_object_order_depends_target_yo_dwm DEP_FILE = CMakeFiles/yo_dwm.dir/src/layouts/centeredmaster.c.o.d @@ -64,8 +62,6 @@ build CMakeFiles/yo_dwm.dir/src/layouts/centeredmaster.c.o: C_COMPILER__yo_dwm_D INCLUDES = -I/home/anas/suckless_utils/yo-dwm/. -I/home/anas/suckless_utils/yo-dwm/src -I/home/anas/suckless_utils/yo-dwm/src/keys -I/home/anas/suckless_utils/yo-dwm/src/layouts OBJECT_DIR = CMakeFiles/yo_dwm.dir OBJECT_FILE_DIR = CMakeFiles/yo_dwm.dir/src/layouts - TARGET_COMPILE_PDB = CMakeFiles/yo_dwm.dir/ - TARGET_PDB = yo_dwm.pdb build CMakeFiles/yo_dwm.dir/src/layouts/fibonacci.c.o: C_COMPILER__yo_dwm_Debug /home/anas/suckless_utils/yo-dwm/src/layouts/fibonacci.c || cmake_object_order_depends_target_yo_dwm DEP_FILE = CMakeFiles/yo_dwm.dir/src/layouts/fibonacci.c.o.d @@ -73,8 +69,6 @@ build CMakeFiles/yo_dwm.dir/src/layouts/fibonacci.c.o: C_COMPILER__yo_dwm_Debug INCLUDES = -I/home/anas/suckless_utils/yo-dwm/. -I/home/anas/suckless_utils/yo-dwm/src -I/home/anas/suckless_utils/yo-dwm/src/keys -I/home/anas/suckless_utils/yo-dwm/src/layouts OBJECT_DIR = CMakeFiles/yo_dwm.dir OBJECT_FILE_DIR = CMakeFiles/yo_dwm.dir/src/layouts - TARGET_COMPILE_PDB = CMakeFiles/yo_dwm.dir/ - TARGET_PDB = yo_dwm.pdb build CMakeFiles/yo_dwm.dir/src/layouts/grid.c.o: C_COMPILER__yo_dwm_Debug /home/anas/suckless_utils/yo-dwm/src/layouts/grid.c || cmake_object_order_depends_target_yo_dwm DEP_FILE = CMakeFiles/yo_dwm.dir/src/layouts/grid.c.o.d @@ -82,8 +76,6 @@ build CMakeFiles/yo_dwm.dir/src/layouts/grid.c.o: C_COMPILER__yo_dwm_Debug /home INCLUDES = -I/home/anas/suckless_utils/yo-dwm/. -I/home/anas/suckless_utils/yo-dwm/src -I/home/anas/suckless_utils/yo-dwm/src/keys -I/home/anas/suckless_utils/yo-dwm/src/layouts OBJECT_DIR = CMakeFiles/yo_dwm.dir OBJECT_FILE_DIR = CMakeFiles/yo_dwm.dir/src/layouts - TARGET_COMPILE_PDB = CMakeFiles/yo_dwm.dir/ - TARGET_PDB = yo_dwm.pdb build CMakeFiles/yo_dwm.dir/src/layouts/monocle.c.o: C_COMPILER__yo_dwm_Debug /home/anas/suckless_utils/yo-dwm/src/layouts/monocle.c || cmake_object_order_depends_target_yo_dwm DEP_FILE = CMakeFiles/yo_dwm.dir/src/layouts/monocle.c.o.d @@ -91,8 +83,6 @@ build CMakeFiles/yo_dwm.dir/src/layouts/monocle.c.o: C_COMPILER__yo_dwm_Debug /h INCLUDES = -I/home/anas/suckless_utils/yo-dwm/. -I/home/anas/suckless_utils/yo-dwm/src -I/home/anas/suckless_utils/yo-dwm/src/keys -I/home/anas/suckless_utils/yo-dwm/src/layouts OBJECT_DIR = CMakeFiles/yo_dwm.dir OBJECT_FILE_DIR = CMakeFiles/yo_dwm.dir/src/layouts - TARGET_COMPILE_PDB = CMakeFiles/yo_dwm.dir/ - TARGET_PDB = yo_dwm.pdb build CMakeFiles/yo_dwm.dir/src/layouts/tile.c.o: C_COMPILER__yo_dwm_Debug /home/anas/suckless_utils/yo-dwm/src/layouts/tile.c || cmake_object_order_depends_target_yo_dwm DEP_FILE = CMakeFiles/yo_dwm.dir/src/layouts/tile.c.o.d @@ -100,8 +90,6 @@ build CMakeFiles/yo_dwm.dir/src/layouts/tile.c.o: C_COMPILER__yo_dwm_Debug /home INCLUDES = -I/home/anas/suckless_utils/yo-dwm/. -I/home/anas/suckless_utils/yo-dwm/src -I/home/anas/suckless_utils/yo-dwm/src/keys -I/home/anas/suckless_utils/yo-dwm/src/layouts OBJECT_DIR = CMakeFiles/yo_dwm.dir OBJECT_FILE_DIR = CMakeFiles/yo_dwm.dir/src/layouts - TARGET_COMPILE_PDB = CMakeFiles/yo_dwm.dir/ - TARGET_PDB = yo_dwm.pdb build CMakeFiles/yo_dwm.dir/src/drw.c.o: C_COMPILER__yo_dwm_Debug /home/anas/suckless_utils/yo-dwm/src/drw.c || cmake_object_order_depends_target_yo_dwm DEP_FILE = CMakeFiles/yo_dwm.dir/src/drw.c.o.d @@ -109,8 +97,6 @@ build CMakeFiles/yo_dwm.dir/src/drw.c.o: C_COMPILER__yo_dwm_Debug /home/anas/suc INCLUDES = -I/home/anas/suckless_utils/yo-dwm/. -I/home/anas/suckless_utils/yo-dwm/src -I/home/anas/suckless_utils/yo-dwm/src/keys -I/home/anas/suckless_utils/yo-dwm/src/layouts OBJECT_DIR = CMakeFiles/yo_dwm.dir OBJECT_FILE_DIR = CMakeFiles/yo_dwm.dir/src - TARGET_COMPILE_PDB = CMakeFiles/yo_dwm.dir/ - TARGET_PDB = yo_dwm.pdb build CMakeFiles/yo_dwm.dir/src/dwm.c.o: C_COMPILER__yo_dwm_Debug /home/anas/suckless_utils/yo-dwm/src/dwm.c || cmake_object_order_depends_target_yo_dwm DEP_FILE = CMakeFiles/yo_dwm.dir/src/dwm.c.o.d @@ -118,8 +104,6 @@ build CMakeFiles/yo_dwm.dir/src/dwm.c.o: C_COMPILER__yo_dwm_Debug /home/anas/suc INCLUDES = -I/home/anas/suckless_utils/yo-dwm/. -I/home/anas/suckless_utils/yo-dwm/src -I/home/anas/suckless_utils/yo-dwm/src/keys -I/home/anas/suckless_utils/yo-dwm/src/layouts OBJECT_DIR = CMakeFiles/yo_dwm.dir OBJECT_FILE_DIR = CMakeFiles/yo_dwm.dir/src - TARGET_COMPILE_PDB = CMakeFiles/yo_dwm.dir/ - TARGET_PDB = yo_dwm.pdb build CMakeFiles/yo_dwm.dir/src/movestack.c.o: C_COMPILER__yo_dwm_Debug /home/anas/suckless_utils/yo-dwm/src/movestack.c || cmake_object_order_depends_target_yo_dwm DEP_FILE = CMakeFiles/yo_dwm.dir/src/movestack.c.o.d @@ -127,8 +111,6 @@ build CMakeFiles/yo_dwm.dir/src/movestack.c.o: C_COMPILER__yo_dwm_Debug /home/an INCLUDES = -I/home/anas/suckless_utils/yo-dwm/. -I/home/anas/suckless_utils/yo-dwm/src -I/home/anas/suckless_utils/yo-dwm/src/keys -I/home/anas/suckless_utils/yo-dwm/src/layouts OBJECT_DIR = CMakeFiles/yo_dwm.dir OBJECT_FILE_DIR = CMakeFiles/yo_dwm.dir/src - TARGET_COMPILE_PDB = CMakeFiles/yo_dwm.dir/ - TARGET_PDB = yo_dwm.pdb build CMakeFiles/yo_dwm.dir/src/transient.c.o: C_COMPILER__yo_dwm_Debug /home/anas/suckless_utils/yo-dwm/src/transient.c || cmake_object_order_depends_target_yo_dwm DEP_FILE = CMakeFiles/yo_dwm.dir/src/transient.c.o.d @@ -136,8 +118,6 @@ build CMakeFiles/yo_dwm.dir/src/transient.c.o: C_COMPILER__yo_dwm_Debug /home/an INCLUDES = -I/home/anas/suckless_utils/yo-dwm/. -I/home/anas/suckless_utils/yo-dwm/src -I/home/anas/suckless_utils/yo-dwm/src/keys -I/home/anas/suckless_utils/yo-dwm/src/layouts OBJECT_DIR = CMakeFiles/yo_dwm.dir OBJECT_FILE_DIR = CMakeFiles/yo_dwm.dir/src - TARGET_COMPILE_PDB = CMakeFiles/yo_dwm.dir/ - TARGET_PDB = yo_dwm.pdb build CMakeFiles/yo_dwm.dir/src/util.c.o: C_COMPILER__yo_dwm_Debug /home/anas/suckless_utils/yo-dwm/src/util.c || cmake_object_order_depends_target_yo_dwm DEP_FILE = CMakeFiles/yo_dwm.dir/src/util.c.o.d @@ -145,8 +125,13 @@ build CMakeFiles/yo_dwm.dir/src/util.c.o: C_COMPILER__yo_dwm_Debug /home/anas/su INCLUDES = -I/home/anas/suckless_utils/yo-dwm/. -I/home/anas/suckless_utils/yo-dwm/src -I/home/anas/suckless_utils/yo-dwm/src/keys -I/home/anas/suckless_utils/yo-dwm/src/layouts OBJECT_DIR = CMakeFiles/yo_dwm.dir OBJECT_FILE_DIR = CMakeFiles/yo_dwm.dir/src - TARGET_COMPILE_PDB = CMakeFiles/yo_dwm.dir/ - TARGET_PDB = yo_dwm.pdb + +build CMakeFiles/yo_dwm.dir/src/keys/mouse.c.o: C_COMPILER__yo_dwm_Debug /home/anas/suckless_utils/yo-dwm/src/keys/mouse.c || cmake_object_order_depends_target_yo_dwm + DEP_FILE = CMakeFiles/yo_dwm.dir/src/keys/mouse.c.o.d + FLAGS = -g -std=gnu11 + INCLUDES = -I/home/anas/suckless_utils/yo-dwm/. -I/home/anas/suckless_utils/yo-dwm/src -I/home/anas/suckless_utils/yo-dwm/src/keys -I/home/anas/suckless_utils/yo-dwm/src/layouts + OBJECT_DIR = CMakeFiles/yo_dwm.dir + OBJECT_FILE_DIR = CMakeFiles/yo_dwm.dir/src/keys # ============================================================================= @@ -156,14 +141,14 @@ build CMakeFiles/yo_dwm.dir/src/util.c.o: C_COMPILER__yo_dwm_Debug /home/anas/su ############################################# # Link the executable yo_dwm -build yo_dwm: C_EXECUTABLE_LINKER__yo_dwm_Debug CMakeFiles/yo_dwm.dir/src/keys/keys.c.o CMakeFiles/yo_dwm.dir/src/layouts/centeredmaster.c.o CMakeFiles/yo_dwm.dir/src/layouts/fibonacci.c.o CMakeFiles/yo_dwm.dir/src/layouts/grid.c.o CMakeFiles/yo_dwm.dir/src/layouts/monocle.c.o CMakeFiles/yo_dwm.dir/src/layouts/tile.c.o CMakeFiles/yo_dwm.dir/src/drw.c.o CMakeFiles/yo_dwm.dir/src/dwm.c.o CMakeFiles/yo_dwm.dir/src/movestack.c.o CMakeFiles/yo_dwm.dir/src/transient.c.o CMakeFiles/yo_dwm.dir/src/util.c.o +build yo_dwm: C_EXECUTABLE_LINKER__yo_dwm_Debug CMakeFiles/yo_dwm.dir/src/keys/keys.c.o CMakeFiles/yo_dwm.dir/src/layouts/centeredmaster.c.o CMakeFiles/yo_dwm.dir/src/layouts/fibonacci.c.o CMakeFiles/yo_dwm.dir/src/layouts/grid.c.o CMakeFiles/yo_dwm.dir/src/layouts/monocle.c.o CMakeFiles/yo_dwm.dir/src/layouts/tile.c.o CMakeFiles/yo_dwm.dir/src/drw.c.o CMakeFiles/yo_dwm.dir/src/dwm.c.o CMakeFiles/yo_dwm.dir/src/movestack.c.o CMakeFiles/yo_dwm.dir/src/transient.c.o CMakeFiles/yo_dwm.dir/src/util.c.o CMakeFiles/yo_dwm.dir/src/keys/mouse.c.o FLAGS = -g + LINK_LIBRARIES = -lX11 -lXft -lXinerama OBJECT_DIR = CMakeFiles/yo_dwm.dir POST_BUILD = : PRE_LINK = : - TARGET_COMPILE_PDB = CMakeFiles/yo_dwm.dir/ TARGET_FILE = yo_dwm - TARGET_PDB = yo_dwm.pdb + TARGET_PDB = yo_dwm.dbg ############################################# @@ -209,14 +194,14 @@ build all: phony yo_dwm ############################################# # Re-run CMake if any of its inputs changed. -build build.ninja: RERUN_CMAKE | ../CMakeLists.txt /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeCCompiler.cmake.in /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeCCompilerABI.c /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeCInformation.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeCommonLanguageInclude.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeCompilerIdDetection.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeDetermineCCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeDetermineCompileFeatures.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeDetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeDetermineCompilerABI.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeDetermineCompilerId.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeDetermineSystem.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeFindBinUtils.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeGenericSystem.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeInitializeConfigs.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeLanguageInformation.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeParseImplicitIncludeInfo.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeParseImplicitLinkInfo.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeParseLibraryArchitecture.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeSystem.cmake.in /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeSystemSpecificInformation.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeSystemSpecificInitialize.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeTestCCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeTestCompilerCommon.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/ADSP-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/ARMCC-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/ARMClang-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/AppleClang-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Borland-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Bruce-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/CMakeCommonCompilerMacros.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Clang-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Clang-DetermineCompilerInternal.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Compaq-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Cray-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Embarcadero-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Fujitsu-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/FujitsuClang-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/GHS-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/GNU-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/GNU-C.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/GNU-FindBinUtils.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/GNU.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/HP-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/IAR-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/IBMClang-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Intel-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/IntelLLVM-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/LCC-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/MSVC-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/NVHPC-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/NVIDIA-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/PGI-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/PathScale-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/SCO-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/SDCC-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/SunPro-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/TI-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Watcom-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/XL-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/XLClang-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/zOS-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Internal/FeatureTesting.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Platform/Linux-GNU-C.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Platform/Linux-GNU.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Platform/Linux.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Platform/UnixPaths.cmake CMakeCache.txt CMakeFiles/3.23.2/CMakeCCompiler.cmake CMakeFiles/3.23.2/CMakeSystem.cmake +build build.ninja: RERUN_CMAKE | ../CMakeLists.txt /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeCInformation.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeCommonLanguageInclude.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeGenericSystem.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeInitializeConfigs.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeLanguageInformation.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeSystemSpecificInformation.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeSystemSpecificInitialize.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/CMakeCommonCompilerMacros.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/GNU-C.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/GNU.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Platform/Linux-GNU-C.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Platform/Linux-GNU.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Platform/Linux.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Platform/UnixPaths.cmake CMakeCache.txt CMakeFiles/3.23.2/CMakeCCompiler.cmake CMakeFiles/3.23.2/CMakeSystem.cmake pool = console ############################################# # A missing CMake input file is not an error. -build ../CMakeLists.txt /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeCCompiler.cmake.in /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeCCompilerABI.c /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeCInformation.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeCommonLanguageInclude.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeCompilerIdDetection.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeDetermineCCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeDetermineCompileFeatures.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeDetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeDetermineCompilerABI.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeDetermineCompilerId.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeDetermineSystem.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeFindBinUtils.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeGenericSystem.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeInitializeConfigs.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeLanguageInformation.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeParseImplicitIncludeInfo.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeParseImplicitLinkInfo.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeParseLibraryArchitecture.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeSystem.cmake.in /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeSystemSpecificInformation.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeSystemSpecificInitialize.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeTestCCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeTestCompilerCommon.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/ADSP-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/ARMCC-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/ARMClang-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/AppleClang-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Borland-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Bruce-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/CMakeCommonCompilerMacros.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Clang-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Clang-DetermineCompilerInternal.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Compaq-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Cray-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Embarcadero-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Fujitsu-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/FujitsuClang-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/GHS-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/GNU-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/GNU-C.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/GNU-FindBinUtils.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/GNU.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/HP-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/IAR-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/IBMClang-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Intel-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/IntelLLVM-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/LCC-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/MSVC-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/NVHPC-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/NVIDIA-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/PGI-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/PathScale-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/SCO-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/SDCC-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/SunPro-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/TI-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/Watcom-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/XL-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/XLClang-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/zOS-C-DetermineCompiler.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Internal/FeatureTesting.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Platform/Linux-GNU-C.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Platform/Linux-GNU.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Platform/Linux.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Platform/UnixPaths.cmake CMakeCache.txt CMakeFiles/3.23.2/CMakeCCompiler.cmake CMakeFiles/3.23.2/CMakeSystem.cmake: phony +build ../CMakeLists.txt /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeCInformation.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeCommonLanguageInclude.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeGenericSystem.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeInitializeConfigs.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeLanguageInformation.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeSystemSpecificInformation.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/CMakeSystemSpecificInitialize.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/CMakeCommonCompilerMacros.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/GNU-C.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Compiler/GNU.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Platform/Linux-GNU-C.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Platform/Linux-GNU.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Platform/Linux.cmake /home/anas/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/222.4345.21/bin/cmake/linux/share/cmake-3.23/Modules/Platform/UnixPaths.cmake CMakeCache.txt CMakeFiles/3.23.2/CMakeCCompiler.cmake CMakeFiles/3.23.2/CMakeSystem.cmake: phony ############################################# diff --git a/src/colors.h b/src/colors.h index 4d61eed..a90bd08 100644 --- a/src/colors.h +++ b/src/colors.h @@ -1,11 +1,6 @@ #ifndef colors_H #define colors_H -// #define wal "/home/anas/.cache/wal/colors-wal-dwm.h" - -// #if __has_include(wal) -// #include wal -// #else static const char norm_fg[] = "#e4ded4"; static const char norm_bg[] = "#191b1f"; static const char norm_border[] = "#282c34"; @@ -18,12 +13,11 @@ static const char urg_fg[] = "#e4ded4"; static const char urg_bg[] = "#313036"; static const char urg_border[] = "#312e36"; -static const char *colors[][3] = { - /* fg bg border */ - [SchemeNorm] = { norm_fg, norm_bg, norm_border }, // unfocused wins - [SchemeSel] = { sel_fg, sel_bg, sel_border }, // the focused win - [SchemeUrg] = { urg_fg, urg_bg, urg_border }, +static const char *colors[][3] = { + /* fg bg border */ + [SchemeNorm] = {norm_fg, norm_bg, norm_border}, // unfocused wins + [SchemeSel] = {sel_fg, sel_bg, sel_border}, // the focused win + [SchemeUrg] = {urg_fg, urg_bg, urg_border}, }; -// #endif -#endif // !colors.h +#endif // colors_H diff --git a/src/config.h b/src/config.h index 7f19e6c..87aebcf 100644 --- a/src/config.h +++ b/src/config.h @@ -20,9 +20,7 @@ static const char *fonts[] = {"monospace:size=7", "Noto Color Emoji:size=8", static const char dmenufont[] = "monospace:size=8"; #ifndef STDDEF_H - #include - #endif #include "colors.h" diff --git a/src/dwm.c b/src/dwm.c index f038b85..1c58283 100644 --- a/src/dwm.c +++ b/src/dwm.c @@ -44,6 +44,7 @@ #include "drw.h" #include "util.h" +#include "dwm.h" /* macros */ #define BUTTONMASK (ButtonPressMask|ButtonReleaseMask) @@ -71,327 +72,6 @@ #define VERSION_MINOR 0 #define XEMBED_EMBEDDED_VERSION (VERSION_MAJOR << 16) | VERSION_MINOR -/* enums */ -enum { - CurNormal, CurResize, CurMove, CurLast -}; /* cursor */ -enum { - SchemeNorm, SchemeSel, SchemeUrg -}; /* color schemes */ -enum { - NetSupported, NetWMName, NetWMState, NetWMCheck, - NetSystemTray, NetSystemTrayOP, NetSystemTrayOrientation, NetSystemTrayOrientationHorz, - NetWMFullscreen, NetActiveWindow, NetWMWindowType, - NetWMWindowTypeDialog, NetClientList, NetLast -}; /* EWMH atoms */ -enum { - Manager, Xembed, XembedInfo, XLast -}; /* Xembed atoms */ -enum { - WMProtocols, WMDelete, WMState, WMTakeFocus, WMLast -}; /* default atoms */ -enum { - ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, - ClkClientWin, ClkRootWin, ClkLast -}; /* clicks */ - -typedef union { - int i; - unsigned int ui; - float f; - const void *v; -} Arg; - -typedef struct { - unsigned int click; - unsigned int mask; - unsigned int button; - - void (*func)(const Arg *arg); - - const Arg arg; -} Button; - -typedef struct Monitor Monitor; -typedef struct Client Client; -struct Client { - char name[256]; - float mina, maxa; - int x, y, w, h; - int oldx, oldy, oldw, oldh; - int basew, baseh, incw, inch, maxw, maxh, minw, minh, hintsvalid; - int bw, oldbw; - unsigned int tags; - int isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen, issticky; - Client *next; - Client *snext; - Monitor *mon; - Window win; -}; - -typedef struct { - unsigned int mod; - KeySym chain; - KeySym keysym; - - void (*func)(const Arg *); - - const Arg arg; -} Key; - -typedef struct { - const char *symbol; - - void (*arrange)(Monitor *); -} Layout; - -typedef struct Pertag Pertag; -struct Monitor { - char ltsymbol[16]; - float mfact; - int nmaster; - int num; - int by; /* bar geometry */ - int mx, my, mw, mh; /* screen size */ - int wx, wy, ww, wh; /* window area */ - unsigned int seltags; - unsigned int sellt; - unsigned int tagset[2]; - int showbar; - int topbar; - Client *clients; - Client *sel; - Client *stack; - Monitor *next; - Window barwin; - const Layout *lt[2]; - Pertag *pertag; -}; - -typedef struct { - const char *class; - const char *instance; - const char *title; - unsigned int tags; - int isfloating; - int monitor; -} Rule; - -typedef struct Systray Systray; -struct Systray { - Window win; - Client *icons; -}; - -/* function declarations */ -static void applyrules(Client *c); - -static int applysizehints(Client *c, int *x, int *y, int *w, int *h, int interact); - -static void arrange(Monitor *m); - -static void arrangemon(Monitor *m); - -static void attach(Client *c); - -static void attachstack(Client *c); - -static void buttonpress(XEvent *e); - -static void checkotherwm(void); - -static void cleanup(void); - -static void cleanupmon(Monitor *mon); - -static void clientmessage(XEvent *e); - -static void configure(Client *c); - -static void configurenotify(XEvent *e); - -static void configurerequest(XEvent *e); - -static Monitor *createmon(void); - -static void destroynotify(XEvent *e); - -static void detach(Client *c); - -static void detachstack(Client *c); - -static Monitor *dirtomon(int dir); - -static void drawbar(Monitor *m); - -static void drawbars(void); - -static void enternotify(XEvent *e); - -static void expose(XEvent *e); - -static void focus(Client *c); - -static void focusin(XEvent *e); - -static void focusmon(const Arg *arg); - -static void focusstack(const Arg *arg); - -static Atom getatomprop(Client *c, Atom prop); - -static int getrootptr(int *x, int *y); - -static long getstate(Window w); - -static unsigned int getsystraywidth(); - -static int gettextprop(Window w, Atom atom, char *text, unsigned int size); - -static void grabbuttons(Client *c, int focused); - -static void grabkeys(void); - -static void incnmaster(const Arg *arg); - -static void keypress(XEvent *e); - -static void killclient(const Arg *arg); - -static void manage(Window w, XWindowAttributes *wa); - -static void mappingnotify(XEvent *e); - -static void maprequest(XEvent *e); - -static void monocle(Monitor *m); - -static void motionnotify(XEvent *e); - -static void movemouse(const Arg *arg); - -static Client *nexttiled(Client *c); - -static void pop(Client *); - -static void propertynotify(XEvent *e); - -static void quit(const Arg *arg); - -static Monitor *recttomon(int x, int y, int w, int h); - -static void removesystrayicon(Client *i); - -static void resize(Client *c, int x, int y, int w, int h, int interact); - -static void resizebarwin(Monitor *m); - -static void resizeclient(Client *c, int x, int y, int w, int h); - -static void resizemouse(const Arg *arg); - -static void resizerequest(XEvent *e); - -static void restack(Monitor *m); - -static void run(void); - -static void scan(void); - -static int sendevent(Window w, Atom proto, int m, long d0, long d1, long d2, long d3, long d4); - -static void sendmon(Client *c, Monitor *m); - -static void setclientstate(Client *c, long state); - -static void setfocus(Client *c); - -static void setfullscreen(Client *c, int fullscreen); - -static void fullscreen(const Arg *arg); - -static void setlayout(const Arg *arg); - -static void setmfact(const Arg *arg); - -static void setup(void); - -static void seturgent(Client *c, int urg); - -static void showhide(Client *c); - -static void sigchld(int unused); - -static void spawn(const Arg *arg); - -static Monitor *systraytomon(Monitor *m); - -static void tag(const Arg *arg); - -static void tagmon(const Arg *arg); - -static void tile(Monitor *); - -static void togglebar(const Arg *arg); - -static void togglefloating(const Arg *arg); - -static void togglesticky(const Arg *arg); - -static void toggletag(const Arg *arg); - -static void toggleview(const Arg *arg); - -static void unfocus(Client *c, int setfocus); - -static void unmanage(Client *c, int destroyed); - -static void unmapnotify(XEvent *e); - -static void updatebarpos(Monitor *m); - -static void updatebars(void); - -static void updateclientlist(void); - -static int updategeom(void); - -static void updatenumlockmask(void); - -static void updatesizehints(Client *c); - -static void updatestatus(void); - -static void updatesystray(void); - -static void updatesystrayicongeom(Client *i, int w, int h); - -static void updatesystrayiconstate(Client *i, XPropertyEvent *ev); - -static void updatetitle(Client *c); - -static void updatewindowtype(Client *c); - -static void updatewmhints(Client *c); - -static void view(const Arg *arg); - -static Client *wintoclient(Window w); - -static Monitor *wintomon(Window w); - -static Client *wintosystrayicon(Window w); - -static int xerror(Display *dpy, XErrorEvent *ee); - -static int xerrordummy(Display *dpy, XErrorEvent *ee); - -static int xerrorstart(Display *dpy, XErrorEvent *ee); - -static void zoom(const Arg *arg); - -static void autostart_exec(void); - /* variables */ static Systray *systray = NULL; static const char broken[] = "broken"; @@ -440,6 +120,8 @@ static KeySym keychain = -1; #include "movestack.c" /* Keys bindings */ #include "keys/keys.h" +/* Mouse bindings */ +#include "keys/mouse.h" struct Pertag { unsigned int curtag, prevtag; /* current and previous tag */ diff --git a/src/dwm.h b/src/dwm.h new file mode 100644 index 0000000..b8baaf9 --- /dev/null +++ b/src/dwm.h @@ -0,0 +1,272 @@ +// +// Created by anas on 10/31/22. +// + +#ifndef DWM_H +#define DWM_H + +/* enums */ +enum { + CurNormal, CurResize, CurMove, CurLast +}; /* cursor */ +enum { + SchemeNorm, SchemeSel, SchemeUrg +}; /* color schemes */ +enum { + NetSupported, NetWMName, NetWMState, NetWMCheck, + NetSystemTray, NetSystemTrayOP, NetSystemTrayOrientation, NetSystemTrayOrientationHorz, + NetWMFullscreen, NetActiveWindow, NetWMWindowType, + NetWMWindowTypeDialog, NetClientList, NetLast +}; /* EWMH atoms */ +enum { + Manager, Xembed, XembedInfo, XLast +}; /* Xembed atoms */ +enum { + WMProtocols, WMDelete, WMState, WMTakeFocus, WMLast +}; /* default atoms */ + +typedef union { + int i; + unsigned int ui; + float f; + const void *v; +} Arg; + +typedef struct Monitor Monitor; +typedef struct Client Client; +struct Client { + char name[256]; + float mina, maxa; + int x, y, w, h; + int oldx, oldy, oldw, oldh; + int basew, baseh, incw, inch, maxw, maxh, minw, minh, hintsvalid; + int bw, oldbw; + unsigned int tags; + int isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen, issticky; + Client *next; + Client *snext; + Monitor *mon; + Window win; +}; + + +typedef struct { + const char *symbol; + + void (*arrange)(Monitor *); +} Layout; + +typedef struct Pertag Pertag; +struct Monitor { + char ltsymbol[16]; + float mfact; + int nmaster; + int num; + int by; /* bar geometry */ + int mx, my, mw, mh; /* screen size */ + int wx, wy, ww, wh; /* window area */ + unsigned int seltags; + unsigned int sellt; + unsigned int tagset[2]; + int showbar; + int topbar; + Client *clients; + Client *sel; + Client *stack; + Monitor *next; + Window barwin; + const Layout *lt[2]; + Pertag *pertag; +}; + +typedef struct { + const char *class; + const char *instance; + const char *title; + unsigned int tags; + int isfloating; + int monitor; +} Rule; + +typedef struct Systray Systray; +struct Systray { + Window win; + Client *icons; +}; + +/* function declarations */ +static void applyrules(Client *c); + +static int applysizehints(Client *c, int *x, int *y, int *w, int *h, int interact); + +static void arrange(Monitor *m); + +static void arrangemon(Monitor *m); + +static void attach(Client *c); + +static void attachstack(Client *c); + +static void buttonpress(XEvent *e); + +static void checkotherwm(void); + +static void cleanup(void); + +static void cleanupmon(Monitor *mon); + +static void clientmessage(XEvent *e); + +static void configure(Client *c); + +static void configurenotify(XEvent *e); + +static void configurerequest(XEvent *e); + +static Monitor *createmon(void); + +static void destroynotify(XEvent *e); + +static void detach(Client *c); + +static void detachstack(Client *c); + +static Monitor *dirtomon(int dir); + +static void drawbar(Monitor *m); + +static void drawbars(void); + +static void enternotify(XEvent *e); + +static void expose(XEvent *e); + +static void focus(Client *c); + +static void focusin(XEvent *e); + +static Atom getatomprop(Client *c, Atom prop); + +static int getrootptr(int *x, int *y); + +static long getstate(Window w); + +static unsigned int getsystraywidth(); + +static int gettextprop(Window w, Atom atom, char *text, unsigned int size); + +static void grabbuttons(Client *c, int focused); + +static void grabkeys(void); + +static void keypress(XEvent *e); + +static void manage(Window w, XWindowAttributes *wa); + +static void mappingnotify(XEvent *e); + +static void maprequest(XEvent *e); + +static void monocle(Monitor *m); + +static void motionnotify(XEvent *e); + +static Client *nexttiled(Client *c); + +static void pop(Client *); + +static void propertynotify(XEvent *e); + +static Monitor *recttomon(int x, int y, int w, int h); + +static void removesystrayicon(Client *i); + +static void resize(Client *c, int x, int y, int w, int h, int interact); + +static void resizebarwin(Monitor *m); + +static void resizeclient(Client *c, int x, int y, int w, int h); + +static void resizemouse(const Arg *arg); + +static void resizerequest(XEvent *e); + +static void restack(Monitor *m); + +static void run(void); + +static void scan(void); + +static int sendevent(Window w, Atom proto, int m, long d0, long d1, long d2, long d3, long d4); + +static void sendmon(Client *c, Monitor *m); + +static void setclientstate(Client *c, long state); + +static void setfocus(Client *c); + +static void setfullscreen(Client *c, int fullscreen); + +static void setup(void); + +static void seturgent(Client *c, int urg); + +static void showhide(Client *c); + +static void sigchld(int unused); + +static Monitor *systraytomon(Monitor *m); + +static void tile(Monitor *); + +static void toggletag(const Arg *arg); + +static void toggleview(const Arg *arg); + +static void unfocus(Client *c, int setfocus); + +static void unmanage(Client *c, int destroyed); + +static void unmapnotify(XEvent *e); + +static void updatebarpos(Monitor *m); + +static void updatebars(void); + +static void updateclientlist(void); + +static int updategeom(void); + +static void updatenumlockmask(void); + +static void updatesizehints(Client *c); + +static void updatestatus(void); + +static void updatesystray(void); + +static void updatesystrayicongeom(Client *i, int w, int h); + +static void updatesystrayiconstate(Client *i, XPropertyEvent *ev); + +static void updatetitle(Client *c); + +static void updatewindowtype(Client *c); + +static void updatewmhints(Client *c); + +static Client *wintoclient(Window w); + +static Monitor *wintomon(Window w); + +static Client *wintosystrayicon(Window w); + +static int xerror(Display *dpy, XErrorEvent *ee); + +static int xerrordummy(Display *dpy, XErrorEvent *ee); + +static int xerrorstart(Display *dpy, XErrorEvent *ee); + +static void autostart_exec(void); + +#endif //DWM_H diff --git a/src/keys/functions.h b/src/keys/functions.h new file mode 100644 index 0000000..8eb2d7a --- /dev/null +++ b/src/keys/functions.h @@ -0,0 +1,46 @@ +// +// Created by anas on 10/31/22. +// + +#ifndef FUNCTIONS_H +#define FUNCTIONS_H + +#include "../dwm.h" + +static void spawn(const Arg *arg); + +static void focusmon(const Arg *arg); + +static void fullscreen(const Arg *arg); + +static void focusstack(const Arg *arg); + +static void tagmon(const Arg *arg); + +static void incnmaster(const Arg *arg); + +static void killclient(const Arg *arg); + +static void movemouse(const Arg *arg); + +static void togglebar(const Arg *arg); + +static void togglesticky(const Arg *arg); + +static void togglefloating(const Arg *arg); + +static void setmfact(const Arg *arg); + +static void view(const Arg *arg); + +static void movestack(const Arg *arg); + +static void setlayout(const Arg *arg); + +static void tag(const Arg *arg); + +static void zoom(const Arg *arg); + +static void quit(const Arg *arg); + +#endif //FUNCTIONS_H diff --git a/src/keys/keys.c b/src/keys/keys.c index 88d3db3..508b471 100644 --- a/src/keys/keys.c +++ b/src/keys/keys.c @@ -1,15 +1,11 @@ #include "../config.h" #include "keys.h" +#include "functions.h" +#include "../layouts/layouts.h" +// X11 keysym definitions +#include // req (libxinerama1 and libxinerama-dev) -/* key definitions */ -#define MODKEY Mod4Mask // win/super key - -#define TAGKEYS(CHAIN, KEY, TAG) \ - { MODKEY, CHAIN, KEY, view, {.ui = 1 << TAG} }, \ - { MODKEY|ControlMask, CHAIN, KEY, toggleview, {.ui = 1 << TAG} }, \ - { MODKEY|ShiftMask, CHAIN, KEY, tag, {.ui = 1 << TAG} }, \ - { MODKEY|ControlMask|ShiftMask, CHAIN, KEY, toggletag, {.ui = 1 << TAG} }, - +#include static Key keys[] = { /* modifier chain key key function argument */ @@ -84,8 +80,8 @@ static Key keys[] = { {MODKEY, -1, XK_i, incnmaster, {.i = +1}}, {MODKEY, -1, XK_d, incnmaster, {.i = -1}}, // Change the focus window size (in the tile mode) - {MODKEY, -1, XK_h, setmfact, {.f = -0.05}}, - {MODKEY, -1, XK_l, setmfact, {.f = +0.05}}, + {MODKEY, -1, XK_h, setmfact, {.f = -0.05f}}, + {MODKEY, -1, XK_l, setmfact, {.f = +0.05f}}, // { MODKEY, XK_Return, zoom, {0} }, {MODKEY, -1, XK_Tab, view, {0}}, @@ -171,20 +167,4 @@ static Key keys[] = { // { MODKEY|ShiftMask|Mod1Mask, -1, XK_q, quit, {0} }, }; -/* button definitions */ -/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ -static Button buttons[] = { - /* click event mask button function argument */ - {ClkTagBar, MODKEY, Button1, tag, {0}}, - {ClkTagBar, MODKEY, Button3, toggletag, {0}}, - {ClkWinTitle, 0, Button2, zoom, {0}}, - {ClkStatusText, 0, Button2, spawn, {.v = termcmd}}, - {ClkClientWin, MODKEY, Button1, movemouse, {0}}, - {ClkClientWin, MODKEY, Button2, togglefloating, {0}}, - {ClkClientWin, MODKEY, Button3, resizemouse, {0}}, - {ClkTagBar, 0, Button1, view, {0}}, - {ClkTagBar, 0, Button3, toggleview, {0}}, - {ClkTagBar, MODKEY, Button1, tag, {0}}, - {ClkTagBar, MODKEY, Button3, toggletag, {0}}, -}; diff --git a/src/keys/keys.c.orig b/src/keys/keys.c.orig deleted file mode 100644 index ed0e3af..0000000 --- a/src/keys/keys.c.orig +++ /dev/null @@ -1,442 +0,0 @@ -/* helper for spawning shell commands in the pre dwm-5.0 fashion */ -#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } - -/* commands */ -static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ -static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", norm_bg, - "-nf", norm_fg, "-sb", sel_bg, "-sf", sel_fg, NULL }; -static const char *termcmd[] = { TERMINAL, NULL }; - -/* key definitions */ -#define MODKEY Mod4Mask // win/super key - -#define TAGKEYS(KEY,TAG) \ - { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ - { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ - { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ - { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, - -// X11 keysym definitions -#include // req (libxinerama1 and libxinerama-dev) -static Key keys[] = { - /* modifier key function argument */ - /* ---------------------------------- Apps Keys ---------------------------------- */ - // Dmenu (launcher) - { MODKEY|ShiftMask, XK_d, spawn, {.v = dmenucmd } }, - // Rofi launcher (small) - { MODKEY|ShiftMask|ControlMask, XK_d, spawn, SHCMD("rofi -show drun") }, - // Start the main terminal - { MODKEY, XK_Return, spawn, {.v = termcmd } }, - // Start the alacritty terminal -<<<<<<< HEAD -// {2, {{MODKEY, XK_t}, {0, XK_a}}, spawn, SHCMD("alacritty") }, -// // Start the alacritty terminal with tmux -// {2, {{MODKEY, XK_t}, {ShiftMask, XK_a}}, spawn, SHCMD("alacritty -e tmux") }, -// // kitty -// {2, {{MODKEY, XK_t}, {0, XK_k}}, spawn, SHCMD("kitty") }, -// // kitty with tmux -// {2, {{MODKEY, XK_t}, {ShiftMask, XK_k}}, spawn, SHCMD("kitty -e tmux") }, -// /************************************* File browsers *************************************/ -// // GUI filebrowser (pcmanfm) -// {2, {{MODKEY|ShiftMask, XK_f}, {0, XK_g}}, spawn, SHCMD(GUI_FILEMANAGER) }, -// // Rofi file browser (small) -// {2, {{MODKEY|ShiftMask, XK_f}, {0, XK_f}}, spawn, SHCMD("rofi -show filebrowser") }, -// // ranger -// {2, {{MODKEY|ShiftMask, XK_f}, {0, XK_r}}, spawn, SHCMD(TERMINAL " -e ranger") }, -// /************************************* Start the web browers *************************************/ -// // Google chrome stable -// {2, {{MODKEY, XK_w}, {0, XK_g}}, spawn, SHCMD(WEBBROWSER) }, -// // Tor brower -// {2, {{MODKEY, XK_w}, {0, XK_t}}, spawn, SHCMD("tor-browser") }, -// /************************************* Start the caht/email/\* apps *************************************/ -// // Discord -// {2, {{MODKEY, XK_c}, {0, XK_d}}, spawn, SHCMD("discord") }, -// // Obsidian -// {2, {{MODKEY, XK_c}, {0, XK_o}}, spawn, SHCMD("obsidian") }, -// /************************************* Start the dev apps *************************************/ -// // Jetbrains toolbox -// {2, {{MODKEY, XK_a}, {0, XK_j}}, spawn, SHCMD("jetbrains-toolbox") }, -// // NeoVim -// {2, {{MODKEY, XK_a}, {0, XK_n}}, spawn, SHCMD(TERMINAL " -e nvim") }, -// // Vim -// {2, {{MODKEY, XK_a}, {0, XK_v}}, spawn, SHCMD(TERMINAL " -e vim") }, -// // emacs -// {2, {{MODKEY, XK_a}, {0, XK_e}}, spawn, SHCMD("emacs") }, -// /************************************* Start personalize apps *************************************/ -// // nitrogen -// {2, {{MODKEY, XK_p}, {0, XK_b}}, spawn, SHCMD("nitrogen") }, -// // nm-connection-editor -// {2, {{MODKEY, XK_p}, {0, XK_n}}, spawn, SHCMD("nm-connection-editor") }, -// /************************************* Start multi media apps *************************************/ -// // cmus -// {2, {{MODKEY, XK_m}, {0, XK_c}}, spawn, SHCMD("sh -c \"" TERMINAL " -e cmus\" & sh -c \"cmus-rpc --link\"") }, -// // vlc -// {2, {{MODKEY, XK_m}, {0, XK_v}}, spawn, SHCMD("vlc") }, -// // vlc in the main terminal -// {2, {{MODKEY, XK_m}, {ShiftMask, XK_v}}, spawn, SHCMD(TERMINAL "nvlc") }, -// /************************************* Start the emoji piker apps *************************************/ -// // Emoji selector (rofi) -// {1, {{Mod4Mask, XK_e}}, spawn, SHCMD("rofi -show emoji") }, -// /************************************* dwm keys *************************************/ -// // Full screen mode -// {1, {{MODKEY, XK_f}}, fullscreen, {0} }, -// // Toggle the slstatus bar (hide/show) -// {1, {{MODKEY, XK_b}}, togglebar, {0} }, -// // Change the focus -// {1, {{MODKEY, XK_j}}, focusstack, {.i = +1 } }, -// {1, {{MODKEY, XK_k}}, focusstack, {.i = -1 } }, -// // Change the stack layout (horizontal/virtecal) -// {1, {{MODKEY, XK_i}}, incnmaster, {.i = +1 } }, -// {1, {{MODKEY, XK_d}}, incnmaster, {.i = -1 } }, -// // Change the focus window size (in the tile mode) -// {1, {{MODKEY, XK_h}}, setmfact, {.f = -0.05} }, -// {1, {{MODKEY, XK_l}}, setmfact, {.f = +0.05} }, -// // { MODKEY, XK_Return, zoom, {0} }, -// {1, {{MODKEY, XK_Tab}}, view, {0} }, -// -// {1, {{MODKEY|ShiftMask, XK_j}}, movestack, {.i = +1 } }, -// {1, {{MODKEY|ShiftMask, XK_k}}, movestack, {.i = -1 } }, -// // Toogle styky mode -// {1, {{MODKEY|ShiftMask, XK_s}}, togglesticky, {0} }, -// -// // Quit from the foucsed window (kill) -// {2, {{MODKEY, XK_q}, {0, XK_q}}, killclient, {0} }, -// /************************* Switch between layouts *************************/ -// // Tiled layout -// {2, {{MODKEY, XK_s}, {0, XK_t}}, setlayout, {.v = &layouts[0]} }, -// // Floating layout -// {2, {{MODKEY, XK_s}, {0, XK_f}}, setlayout, {.v = &layouts[1]} }, -// // Monocle layout -// {2, {{MODKEY, XK_s}, {0, XK_m}}, setlayout, {.v = &layouts[2]} }, -// // Grid layout -// {2, {{MODKEY, XK_s}, {0, XK_g}}, setlayout, {.v = &layouts[3]} }, -// // Spiral layout -// {2, {{MODKEY, XK_s}, {0, XK_r}}, setlayout, {.v = &layouts[4]} }, -// // Dwindle layout -// {2, {{MODKEY, XK_s}, {ShiftMask, XK_r}}, setlayout, {.v = &layouts[5]} }, -// // Centerd master layout -// {2, {{MODKEY, XK_s}, {0, XK_c}}, setlayout, {.v = &layouts[6]} }, -// // Centerd floating master layout -// {2, {{MODKEY, XK_s}, {ShiftMask, XK_c}}, setlayout, {.v = &layouts[7]} }, -// -// // Toggle between current layout and tile layout -// {2, {{MODKEY, XK_s}, {0, XK_space}}, setlayout, {0} }, -// // Toggle floating window -// {1, {{MODKEY|Mod1Mask, XK_f}}, togglefloating, {0} }, -// // View all tags -// {1, {{MODKEY, XK_0}}, view, {.ui = ~0 } }, -// // Mirror the current tagg in all tags -// {1, {{MODKEY|ShiftMask, XK_0}}, tag, {.ui = ~0 } }, -// // I don't know -// {1, {{MODKEY, XK_comma}}, focusmon, {.i = -1 } }, -// {1, {{MODKEY, XK_period}}, focusmon, {.i = +1 } }, -// {1, {{MODKEY|ShiftMask, XK_comma}}, tagmon, {.i = -1 } }, -// {1, {{MODKEY|ShiftMask, XK_period}}, tagmon, {.i = +1 } }, -||||||| 95139f7 - {2, {{MODKEY, XK_t}, {0, XK_a}}, spawn, SHCMD("alacritty") }, - // Start the alacritty terminal with tmux - {2, {{MODKEY, XK_t}, {ShiftMask, XK_a}}, spawn, SHCMD("alacritty -e tmux") }, - // kitty - {2, {{MODKEY, XK_t}, {0, XK_k}}, spawn, SHCMD("kitty") }, - // kitty with tmux - {2, {{MODKEY, XK_t}, {ShiftMask, XK_k}}, spawn, SHCMD("kitty -e tmux") }, - /************************************* File browsers *************************************/ - // GUI filebrowser (pcmanfm) - {2, {{MODKEY|ShiftMask, XK_f}, {0, XK_g}}, spawn, SHCMD(GUI_FILEMANAGER) }, - // Rofi file browser (small) - {2, {{MODKEY|ShiftMask, XK_f}, {0, XK_f}}, spawn, SHCMD("rofi -show filebrowser") }, - // ranger - {2, {{MODKEY|ShiftMask, XK_f}, {0, XK_r}}, spawn, SHCMD(TERMINAL " -e ranger") }, - /************************************* Start the web browers *************************************/ - // Google chrome stable - {2, {{MODKEY, XK_w}, {0, XK_g}}, spawn, SHCMD(WEBBROWSER) }, - // Tor brower - {2, {{MODKEY, XK_w}, {0, XK_t}}, spawn, SHCMD("tor-browser") }, - /************************************* Start the caht/email/\* apps *************************************/ - // Discord - {2, {{MODKEY, XK_c}, {0, XK_d}}, spawn, SHCMD("discord") }, - // Obsidian - {2, {{MODKEY, XK_c}, {0, XK_o}}, spawn, SHCMD("obsidian") }, - /************************************* Start the dev apps *************************************/ - // Jetbrains toolbox - {2, {{MODKEY, XK_a}, {0, XK_j}}, spawn, SHCMD("jetbrains-toolbox") }, - // NeoVim - {2, {{MODKEY, XK_a}, {0, XK_n}}, spawn, SHCMD(TERMINAL " -e nvim") }, - // Vim - {2, {{MODKEY, XK_a}, {0, XK_v}}, spawn, SHCMD(TERMINAL " -e vim") }, - // emacs - {2, {{MODKEY, XK_a}, {0, XK_e}}, spawn, SHCMD("emacs") }, - /************************************* Start personalize apps *************************************/ - // nitrogen - {2, {{MODKEY, XK_p}, {0, XK_b}}, spawn, SHCMD("nitrogen") }, - // nm-connection-editor - {2, {{MODKEY, XK_p}, {0, XK_n}}, spawn, SHCMD("nm-connection-editor") }, - /************************************* Start multi media apps *************************************/ - // cmus - {2, {{MODKEY, XK_m}, {0, XK_c}}, spawn, SHCMD("sh -c \"" TERMINAL " -e cmus\" & sh -c \"cmus-rpc --link\"") }, - // vlc - {2, {{MODKEY, XK_m}, {0, XK_v}}, spawn, SHCMD("vlc") }, - // vlc in the main terminal - {2, {{MODKEY, XK_m}, {ShiftMask, XK_v}}, spawn, SHCMD(TERMINAL "nvlc") }, - /************************************* Start the emoji piker apps *************************************/ - // Emoji selector (rofi) - {1, {{Mod4Mask, XK_e}}, spawn, SHCMD("rofi -show emoji") }, - /************************************* dwm keys *************************************/ - // Full screen mode - {1, {{MODKEY, XK_f}}, fullscreen, {0} }, - // Toggle the slstatus bar (hide/show) - {1, {{MODKEY, XK_b}}, togglebar, {0} }, - // Change the focus - {1, {{MODKEY, XK_j}}, focusstack, {.i = +1 } }, - {1, {{MODKEY, XK_k}}, focusstack, {.i = -1 } }, - // Change the stack layout (horizontal/virtecal) - {1, {{MODKEY, XK_i}}, incnmaster, {.i = +1 } }, - {1, {{MODKEY, XK_d}}, incnmaster, {.i = -1 } }, - // Change the focus window size (in the tile mode) - {1, {{MODKEY, XK_h}}, setmfact, {.f = -0.05} }, - {1, {{MODKEY, XK_l}}, setmfact, {.f = +0.05} }, -// { MODKEY, XK_Return, zoom, {0} }, - {1, {{MODKEY, XK_Tab}}, view, {0} }, - - {1, {{MODKEY|ShiftMask, XK_j}}, movestack, {.i = +1 } }, - {1, {{MODKEY|ShiftMask, XK_k}}, movestack, {.i = -1 } }, - // Toogle styky mode - {1, {{MODKEY|ShiftMask, XK_s}}, togglesticky, {0} }, - - // Quit from the foucsed window (kill) - {2, {{MODKEY, XK_q}, {0, XK_q}}, killclient, {0} }, - /************************* Switch between layouts *************************/ - // Tiled layout - {2, {{MODKEY, XK_s}, {0, XK_t}}, setlayout, {.v = &layouts[0]} }, - // Floating layout - {2, {{MODKEY, XK_s}, {0, XK_f}}, setlayout, {.v = &layouts[1]} }, - // Monocle layout - {2, {{MODKEY, XK_s}, {0, XK_m}}, setlayout, {.v = &layouts[2]} }, - // Grid layout - {2, {{MODKEY, XK_s}, {0, XK_g}}, setlayout, {.v = &layouts[3]} }, - // Spiral layout - {2, {{MODKEY, XK_s}, {0, XK_r}}, setlayout, {.v = &layouts[4]} }, - // Dwindle layout - {2, {{MODKEY, XK_s}, {ShiftMask, XK_r}}, setlayout, {.v = &layouts[5]} }, - // Centerd master layout - {2, {{MODKEY, XK_s}, {0, XK_c}}, setlayout, {.v = &layouts[6]} }, - // Centerd floating master layout - {2, {{MODKEY, XK_s}, {ShiftMask, XK_c}}, setlayout, {.v = &layouts[7]} }, - - // Toggle between current layout and tile layout - {2, {{MODKEY, XK_s}, {0, XK_space}}, setlayout, {0} }, - // Toggle floating window - {1, {{MODKEY|Mod1Mask, XK_f}}, togglefloating, {0} }, - // View all tags - {1, {{MODKEY, XK_0}}, view, {.ui = ~0 } }, - // Mirror the current tagg in all tags - {1, {{MODKEY|ShiftMask, XK_0}}, tag, {.ui = ~0 } }, - // I don't know - {1, {{MODKEY, XK_comma}}, focusmon, {.i = -1 } }, - {1, {{MODKEY, XK_period}}, focusmon, {.i = +1 } }, - {1, {{MODKEY|ShiftMask, XK_comma}}, tagmon, {.i = -1 } }, - {1, {{MODKEY|ShiftMask, XK_period}}, tagmon, {.i = +1 } }, -======= - {2, {{MODKEY, XK_t}, {0, XK_a}}, spawn, SHCMD("alacritty") }, - // Start the alacritty terminal with tmux - {2, {{MODKEY, XK_t}, {ShiftMask, XK_a}}, spawn, SHCMD("alacritty -e tmux") }, - // kitty - {2, {{MODKEY, XK_t}, {0, XK_k}}, spawn, SHCMD("kitty") }, - // kitty with tmux - {2, {{MODKEY, XK_t}, {ShiftMask, XK_k}}, spawn, SHCMD("kitty -e tmux") }, - /************************************* File browsers *************************************/ - // GUI filebrowser (pcmanfm) - {2, {{MODKEY|ShiftMask, XK_f}, {0, XK_g}}, spawn, SHCMD(GUI_FILEMANAGER) }, - // Rofi file browser (small) - {2, {{MODKEY|ShiftMask, XK_f}, {0, XK_f}}, spawn, SHCMD("rofi -show filebrowser") }, - // Terminal file manager (ranger) - {2, {{MODKEY|ShiftMask, XK_f}, {0, XK_t}}, spawn, SHCMD(TERMINAL " -e ranger") }, - /************************************* Start the web browers *************************************/ - // Google chrome stable - {2, {{MODKEY, XK_w}, {0, XK_g}}, spawn, SHCMD(WEBBROWSER) }, - // Tor brower - {2, {{MODKEY, XK_w}, {0, XK_t}}, spawn, SHCMD("tor-browser") }, - /************************************* Start the caht/email/\* apps *************************************/ - // Discord - {2, {{MODKEY, XK_c}, {0, XK_d}}, spawn, SHCMD("discord") }, - // Obsidian - {2, {{MODKEY, XK_c}, {0, XK_o}}, spawn, SHCMD("obsidian") }, - /************************************* Start the dev apps *************************************/ - // Jetbrains toolbox - {2, {{MODKEY, XK_a}, {0, XK_j}}, spawn, SHCMD("jetbrains-toolbox") }, - // NeoVim - {2, {{MODKEY, XK_a}, {0, XK_n}}, spawn, SHCMD(TERMINAL " -e nvim") }, - // Vim - {2, {{MODKEY, XK_a}, {0, XK_v}}, spawn, SHCMD(TERMINAL " -e vim") }, - // emacs - {2, {{MODKEY, XK_a}, {0, XK_e}}, spawn, SHCMD("emacs") }, - /************************************* Start personalize apps *************************************/ - // nitrogen - {2, {{MODKEY, XK_p}, {0, XK_b}}, spawn, SHCMD("nitrogen") }, - // nm-connection-editor - {2, {{MODKEY, XK_p}, {0, XK_n}}, spawn, SHCMD("nm-connection-editor") }, - /************************************* Start multi media apps *************************************/ - // cmus - {2, {{MODKEY, XK_m}, {0, XK_c}}, spawn, SHCMD("sh -c \"" TERMINAL " -e cmus\" & sh -c \"cmus-rpc --link\"") }, - // vlc - {2, {{MODKEY, XK_m}, {0, XK_v}}, spawn, SHCMD("vlc") }, - // vlc in the main terminal - {2, {{MODKEY, XK_m}, {ShiftMask, XK_v}}, spawn, SHCMD(TERMINAL "nvlc") }, - /************************************* Start the emoji piker apps *************************************/ - // Emoji selector (rofi) - {1, {{Mod4Mask, XK_e}}, spawn, SHCMD("rofimoji") }, - /************************************* dwm keys *************************************/ - // Full screen mode - {1, {{MODKEY, XK_f}}, fullscreen, {0} }, - // Toggle the slstatus bar (hide/show) - {1, {{MODKEY, XK_b}}, togglebar, {0} }, - // Change the focus - {1, {{MODKEY, XK_j}}, focusstack, {.i = +1 } }, - {1, {{MODKEY, XK_k}}, focusstack, {.i = -1 } }, - // Change the stack layout (horizontal/virtecal) - {1, {{MODKEY, XK_i}}, incnmaster, {.i = +1 } }, - {1, {{MODKEY, XK_d}}, incnmaster, {.i = -1 } }, - // Change the focus window size (in the tile mode) - {1, {{MODKEY, XK_h}}, setmfact, {.f = -0.05} }, - {1, {{MODKEY, XK_l}}, setmfact, {.f = +0.05} }, -// { MODKEY, XK_Return, zoom, {0} }, - {1, {{MODKEY, XK_Tab}}, view, {0} }, - - {1, {{MODKEY|ShiftMask, XK_j}}, movestack, {.i = +1 } }, - {1, {{MODKEY|ShiftMask, XK_k}}, movestack, {.i = -1 } }, - // Toogle styky mode - {1, {{MODKEY|ShiftMask, XK_s}}, togglesticky, {0} }, - - // Quit from the foucsed window (kill) - {2, {{MODKEY, XK_q}, {0, XK_q}}, killclient, {0} }, - /************************* Switch between layouts *************************/ - // Tiled layout - {2, {{MODKEY, XK_s}, {0, XK_t}}, setlayout, {.v = &layouts[0]} }, - // Floating layout - {2, {{MODKEY, XK_s}, {0, XK_f}}, setlayout, {.v = &layouts[1]} }, - // Monocle layout - {2, {{MODKEY, XK_s}, {0, XK_m}}, setlayout, {.v = &layouts[2]} }, - // Grid layout - {2, {{MODKEY, XK_s}, {0, XK_g}}, setlayout, {.v = &layouts[3]} }, - // Spiral layout - {2, {{MODKEY, XK_s}, {0, XK_r}}, setlayout, {.v = &layouts[4]} }, - // Dwindle layout - {2, {{MODKEY, XK_s}, {ShiftMask, XK_r}}, setlayout, {.v = &layouts[5]} }, - // Centerd master layout - {2, {{MODKEY, XK_s}, {0, XK_c}}, setlayout, {.v = &layouts[6]} }, - // Centerd floating master layout - {2, {{MODKEY, XK_s}, {ShiftMask, XK_c}}, setlayout, {.v = &layouts[7]} }, - - // Toggle between current layout and tile layout - {2, {{MODKEY, XK_s}, {0, XK_space}}, setlayout, {0} }, - // Toggle floating window - {1, {{MODKEY|Mod1Mask, XK_f}}, togglefloating, {0} }, - // View all tags - {1, {{MODKEY, XK_0}}, view, {.ui = ~0 } }, - // Mirror the current tagg in all tags - {1, {{MODKEY|ShiftMask, XK_0}}, tag, {.ui = ~0 } }, - // I don't know - {1, {{MODKEY, XK_comma}}, focusmon, {.i = -1 } }, - {1, {{MODKEY, XK_period}}, focusmon, {.i = +1 } }, - {1, {{MODKEY|ShiftMask, XK_comma}}, tagmon, {.i = -1 } }, - {1, {{MODKEY|ShiftMask, XK_period}}, tagmon, {.i = +1 } }, ->>>>>>> update-stuff - /************************* Tag keys *************************/ - TAGKEYS( XK_1, 0) - TAGKEYS( XK_2, 1) - TAGKEYS( XK_3, 2) - TAGKEYS( XK_4, 3) - TAGKEYS( XK_5, 4) - TAGKEYS( XK_6, 5) - TAGKEYS( XK_7, 6) - TAGKEYS( XK_8, 7) - TAGKEYS( XK_9, 8) - TAGKEYS( XK_semicolon, 9) - /* ---------------------------------- Control Keys ---------------------------------- */ -<<<<<<< HEAD - // // Brightness controllers (requires xbacklight) - // {1, {{0, XF86XK_MonBrightnessUp}}, spawn, SHCMD("xbacklight -inc 5") }, - // {1, {{0, XF86XK_MonBrightnessDown}}, spawn, SHCMD("xbacklight -dec 5") }, - // // Sound controllers (requires pamixer) - // {1, {{0, XF86XK_AudioRaiseVolume}}, spawn, SHCMD("pamixer --allow-boost -i 4") }, - // {1, {{0, XF86XK_AudioLowerVolume}}, spawn, SHCMD("pamixer --allow-boost -d 4") }, - // {1, {{0, XF86XK_AudioMute}}, spawn, SHCMD("pamixer -t") }, - // // Media controls (requires playerctl) - // {1, {{0, XF86XK_AudioPlay}}, spawn, SHCMD("playerctl play-pause") }, - // {1, {{0, XF86XK_AudioStop}}, spawn, SHCMD("playerctl stop") }, - // {1, {{0, XF86XK_AudioNext}}, spawn, SHCMD("playerctl next") }, - // {1, {{0, XF86XK_AudioPrev}}, spawn, SHCMD("playerctl previous") }, - // // Mute and unmute mic - // {1, {{0, XF86XK_AudioMicMute}}, spawn, SHCMD("pactl set-source-mute @DEFAULT_SOURCE@ toggle") }, - // // Take a screenshot - // {1, {{0, XK_Print}}, spawn, SHCMD(SCREENSHOT) }, - // /* ---------------------------------- lock Keys ---------------------------------- */ - // // Lock the screen - // {1, {{MODKEY|ShiftMask, XK_x}}, spawn, SHCMD("betterlockscreen -l dim") }, - // // Kill dwm (super + shift + alt + q) - // {1, {{MODKEY|ShiftMask|Mod1Mask, XK_q}}, quit, {0} }, -||||||| 95139f7 - // Brightness controllers (requires xbacklight) - {1, {{0, XF86XK_MonBrightnessUp}}, spawn, SHCMD("xbacklight -inc 5") }, - {1, {{0, XF86XK_MonBrightnessDown}}, spawn, SHCMD("xbacklight -dec 5") }, - // Sound controllers (requires pamixer) - {1, {{0, XF86XK_AudioRaiseVolume}}, spawn, SHCMD("pamixer --allow-boost -i 4") }, - {1, {{0, XF86XK_AudioLowerVolume}}, spawn, SHCMD("pamixer --allow-boost -d 4") }, - {1, {{0, XF86XK_AudioMute}}, spawn, SHCMD("pamixer -t") }, - // Media controls (requires playerctl) - {1, {{0, XF86XK_AudioPlay}}, spawn, SHCMD("playerctl play-pause") }, - {1, {{0, XF86XK_AudioStop}}, spawn, SHCMD("playerctl stop") }, - {1, {{0, XF86XK_AudioNext}}, spawn, SHCMD("playerctl next") }, - {1, {{0, XF86XK_AudioPrev}}, spawn, SHCMD("playerctl previous") }, - // Mute and unmute mic - {1, {{0, XF86XK_AudioMicMute}}, spawn, SHCMD("pactl set-source-mute @DEFAULT_SOURCE@ toggle") }, - // Take a screenshot - {1, {{0, XK_Print}}, spawn, SHCMD(SCREENSHOT) }, - /* ---------------------------------- lock Keys ---------------------------------- */ - // Lock the screen - {1, {{MODKEY|ShiftMask, XK_x}}, spawn, SHCMD("betterlockscreen -l dim") }, - // Kill dwm (super + shift + alt + q) - {1, {{MODKEY|ShiftMask|Mod1Mask, XK_q}}, quit, {0} }, -======= - // Brightness controllers (requires xbacklight) - {1, {{0, XF86XK_MonBrightnessUp}}, spawn, SHCMD("xbacklight -inc 5") }, - {1, {{0, XF86XK_MonBrightnessDown}}, spawn, SHCMD("xbacklight -dec 5") }, - // Sound controllers (requires pamixer) - {1, {{0, XF86XK_AudioRaiseVolume}}, spawn, SHCMD("pamixer --allow-boost -i 4") }, - {1, {{0, XF86XK_AudioLowerVolume}}, spawn, SHCMD("pamixer --allow-boost -d 4") }, - {1, {{0, XF86XK_AudioMute}}, spawn, SHCMD("pamixer -t") }, - // Media controls (requires playerctl) - {1, {{0, XF86XK_AudioPlay}}, spawn, SHCMD("playerctl play-pause") }, - {1, {{0, XF86XK_AudioStop}}, spawn, SHCMD("playerctl stop") }, - {1, {{0, XF86XK_AudioNext}}, spawn, SHCMD("playerctl next") }, - {1, {{0, XF86XK_AudioPrev}}, spawn, SHCMD("playerctl previous") }, - // Mute and unmute mic - {1, {{0, XF86XK_AudioMicMute}}, spawn, SHCMD("pactl set-source-mute @DEFAULT_SOURCE@ toggle") }, - // Take a screenshot - {1, {{0, XK_Print}}, spawn, SHCMD(SCREENSHOT) }, - /* ---------------------------------- lock Keys ---------------------------------- */ - // Lock the screen - {1, {{MODKEY|ShiftMask, XK_x}}, spawn, SHCMD("betterlockscreen -l dim") }, - {1, {{0, XF86XK_Suspend}}, spawn, SHCMD("betterlockscreen -l dim") }, - // Kill dwm (super + shift + alt + q) - // {1, {{MODKEY|ShiftMask|Mod1Mask, XK_q}}, quit, {0} }, ->>>>>>> update-stuff -}; - -/* button definitions */ -/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ -static Button buttons[] = { - /* click event mask button function argument */ - { ClkTagBar, MODKEY, Button1, tag, {0} }, - { ClkTagBar, MODKEY, Button3, toggletag, {0} }, - { ClkWinTitle, 0, Button2, zoom, {0} }, - { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, - { ClkClientWin, MODKEY, Button1, movemouse, {0} }, - { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, - { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, - { ClkTagBar, 0, Button1, view, {0} }, - { ClkTagBar, 0, Button3, toggleview, {0} }, - { ClkTagBar, MODKEY, Button1, tag, {0} }, - { ClkTagBar, MODKEY, Button3, toggletag, {0} }, -}; - diff --git a/src/keys/keys.h b/src/keys/keys.h index 7318bed..2361298 100644 --- a/src/keys/keys.h +++ b/src/keys/keys.h @@ -1,12 +1,31 @@ -#ifndef keys_H -#define keys_H +#ifndef KEYS_H +#define KEYS_H -// X11 keysym definitions -#include // req (libxinerama1 and libxinerama-dev) - -#include #include +#include "../dwm.h" +typedef struct { + unsigned int mod; + KeySym chain; + KeySym keysym; + + void (*func)(const Arg *); + + const Arg arg; +} Key; + +/* key definitions */ +#define MODKEY Mod4Mask // win/super key + +#define TAGKEYS(CHAIN, KEY, TAG) \ + { MODKEY, CHAIN, KEY, view, {.ui = 1 << TAG} }, \ + { MODKEY|ControlMask, CHAIN, KEY, toggleview, {.ui = 1 << TAG} }, \ + { MODKEY|ShiftMask, CHAIN, KEY, tag, {.ui = 1 << TAG} }, \ + { MODKEY|ControlMask|ShiftMask, CHAIN, KEY, toggletag, {.ui = 1 << TAG} }, + +// Include all the key bindings +#ifndef KEYS_C #include "keys.c" +#endif #endif // keys_H diff --git a/src/keys/mouse.c b/src/keys/mouse.c new file mode 100644 index 0000000..6eb59d8 --- /dev/null +++ b/src/keys/mouse.c @@ -0,0 +1,23 @@ +// +// Created by anas on 10/31/22. +// + +#include "mouse.h" +#include "keys.h" + +/* button definitions */ +/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ +static Button buttons[] = { + /* click event mask button function argument */ + {ClkTagBar, MODKEY, Button1, tag, {0}}, + {ClkTagBar, MODKEY, Button3, toggletag, {0}}, + {ClkWinTitle, 0, Button2, zoom, {0}}, + {ClkStatusText, 0, Button2, spawn, {.v = termcmd}}, + {ClkClientWin, MODKEY, Button1, movemouse, {0}}, + {ClkClientWin, MODKEY, Button2, togglefloating, {0}}, + {ClkClientWin, MODKEY, Button3, resizemouse, {0}}, + {ClkTagBar, 0, Button1, view, {0}}, + {ClkTagBar, 0, Button3, toggleview, {0}}, + {ClkTagBar, MODKEY, Button1, tag, {0}}, + {ClkTagBar, MODKEY, Button3, toggletag, {0}}, +}; diff --git a/src/keys/mouse.h b/src/keys/mouse.h new file mode 100644 index 0000000..75c4c58 --- /dev/null +++ b/src/keys/mouse.h @@ -0,0 +1,29 @@ +// +// Created by anas on 10/31/22. +// + +#ifndef MOUSE_H +#define MOUSE_H + +#include + +typedef struct { + unsigned int click; + unsigned int mask; + unsigned int button; + + void (*func)(const Arg *arg); + + const Arg arg; +} Button; + +enum { + ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, + ClkClientWin, ClkRootWin, ClkLast +}; /* clicks */ + +#ifndef MOUSE_C +#include "mouse.c" +#endif + +#endif //MOUSE_H diff --git a/src/layouts/layouts.h b/src/layouts/layouts.h index 1313517..c5f4568 100644 --- a/src/layouts/layouts.h +++ b/src/layouts/layouts.h @@ -10,15 +10,15 @@ // Layouts array static const Layout layouts[] = { - /* symbol arrange function */ - { "[]=", tile }, /* first entry is default */ - { "><>", NULL }, /* no layout function means floating behavior */ - { "[M]", monocle }, // 2 - { "HHH", grid }, // 3 - { "[@]", spiral }, // 4 - { "[\\]", dwindle }, // 5 - { "|M|", centeredmaster }, // 6 - { ">M>", centeredfloatingmaster }, // 7 + /* symbol arrange function */ + {"[]=", tile}, /* first entry is default */ + {"><>", NULL}, /* no layout function means floating behavior */ + {"[M]", monocle}, // 2 + {"HHH", grid}, // 3 + {"[@]", spiral}, // 4 + {"[\\]", dwindle}, // 5 + {"|M|", centeredmaster}, // 6 + {">M>", centeredfloatingmaster}, // 7 }; -#endif // !layouts.h +#endif // layouts_H diff --git a/src/movestack.c b/src/movestack.c index 520f4ae..4b4f6af 100644 --- a/src/movestack.c +++ b/src/movestack.c @@ -1,4 +1,4 @@ -void +static void movestack(const Arg *arg) { Client *c = NULL, *p = NULL, *pc = NULL, *i;