From 59c5fa867eb94699e155520f77f69c7841e1418e Mon Sep 17 00:00:00 2001 From: BossCode45 Date: Wed, 1 Feb 2023 21:23:59 +1300 Subject: added stuff that for some reason didn't get added with -a --- compile_commands.json | 24 +++++++ config.toml | 187 ++++++++++++++++++++++++++++++++++++++++++++++++++ error.h | 17 +++++ 3 files changed, 228 insertions(+) create mode 100644 compile_commands.json create mode 100644 config.toml create mode 100644 error.h diff --git a/compile_commands.json b/compile_commands.json new file mode 100644 index 0000000..6e04525 --- /dev/null +++ b/compile_commands.json @@ -0,0 +1,24 @@ +[ + { + "arguments": [ + "/usr/bin/g++", + "-std=c++17", + "-Iinclude", + "-I/usr/include/gdk-pixbuf-2.0", + "-I/usr/include/glib-2.0", + "-I/usr/lib/glib-2.0/include", + "-I/usr/include/sysprof-4", + "-I/usr/include/libpng16", + "-I/usr/include/libmount", + "-I/usr/include/blkid", + "-pthread", + "-c", + "-o", + "main.o", + "main.cpp" + ], + "directory": "/home/boss/Documents/Coding/WM/YATwm", + "file": "/home/boss/Documents/Coding/WM/YATwm/main.cpp", + "output": "/home/boss/Documents/Coding/WM/YATwm/main.o" + } +] diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..be0354f --- /dev/null +++ b/config.toml @@ -0,0 +1,187 @@ +[Startup] +startupBash = [ +# "emacs --daemon" +] + +[Main] +gaps = 3 +outerGaps = 3 +logFile = "/tmp/yatlog.txt" + +[Workspaces] +numWS = 10 +workspaceNames = ["1: ", "2: 拾", "3: ", "4: ", "5: ", "6: ", "7: 拾", "8: ", "9: ", "10: "] +maxMonitors = 2 +screenPreferences = [[0], [0], [0], [0], [0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0]] + +[Keybinds] +swapSuperAlt = false + +# All the keybinds + +#General +[[Keybinds.key]] +bind = "mod+e" +func = "exit" +[[Keybinds.key]] +bind = "mod+t" +func = "toggle" +[[Keybinds.key]] +bind = "mod+q" +func = "kill" +[[Keybinds.key]] +bind = "mod+shift+r" +func = "reload" + +#Focus +[[Keybinds.key]] +bind = "mod+h" +func = "focChange" +args = "Left" +[[Keybinds.key]] +bind = "mod+j" +func = "focChange" +args = "Down" +[[Keybinds.key]] +bind = "mod+k" +func = "focChange" +args = "Up" +[[Keybinds.key]] +bind = "mod+l" +func = "focChange" +args = "Right" +[[Keybinds.key]] +bind = "alt+Tab" +func = "nextMonitor" + +#Window moving +[[Keybinds.key]] +bind = "mod+shift+h" +func = "wMove" +args = "Left" +[[Keybinds.key]] +bind = "mod+shift+j" +func = "wMove" +args = "Down" +[[Keybinds.key]] +bind = "mod+shift+k" +func = "wMove" +args = "Up" +[[Keybinds.key]] +bind = "mod+shift+l" +func = "wMove" +args = "Right" + + +#Spawning +[[Keybinds.key]] +bind = "mod+Return" +func = "spawn" +args = "alacritty" +[[Keybinds.key]] +bind = "mod+d" +func = "spawn" +args = "rofi -i -show drun" +[[Keybinds.key]] +bind = "mod+c" +func = "spawn" +args = "firefox" +[[Keybinds.key]] +bind = "mod+x" +func = "spawn" +args = "i3lock" +[[Keybinds.key]] +bind = "mod+shift+x" +func = "spawn" +args = "i3lock" +[[Keybinds.key]] +bind = "mod+shift+x" +func = "spawn" +args = "systemctl suspend" + +#Testing +[[Keybinds.key]] +bind = "mod+p" +func = "wsDump" + +# Workspace changing +[[Keybinds.key]] +bind = "mod+1" +func = "changeWS" +args = 1 +[[Keybinds.key]] +bind = "mod+1" +func = "wToWS" +args = 1 +[[Keybinds.key]] +bind = "mod+2" +func = "changeWS" +args = 2 +[[Keybinds.key]] +bind = "mod+2" +func = "wToWS" +args = 2 +[[Keybinds.key]] +bind = "mod+3" +func = "changeWS" +args = 3 +[[Keybinds.key]] +bind = "mod+3" +func = "wToWS" +args = 3 +[[Keybinds.key]] +bind = "mod+4" +func = "changeWS" +args = 4 +[[Keybinds.key]] +bind = "mod+4" +func = "wToWS" +args = 4 +[[Keybinds.key]] +bind = "mod+5" +func = "changeWS" +args = 5 +[[Keybinds.key]] +bind = "mod+5" +func = "wToWS" +args = 5 +[[Keybinds.key]] +bind = "mod+6" +func = "changeWS" +args = 6 +[[Keybinds.key]] +bind = "mod+6" +func = "wToWS" +args = 6 +[[Keybinds.key]] +bind = "mod+7" +func = "changeWS" +args = 7 +[[Keybinds.key]] +bind = "mod+7" +func = "wToWS" +args = 7 +[[Keybinds.key]] +bind = "mod+8" +func = "changeWS" +args = 8 +[[Keybinds.key]] +bind = "mod+8" +func = "wToWS" +args = 8 +[[Keybinds.key]] +bind = "mod+9" +func = "changeWS" +args = 9 +[[Keybinds.key]] +bind = "mod+9" +func = "wToWS" +args = 9 +[[Keybinds.key]] +bind = "mod+0" +func = "changeWS" +args = 10 +[[Keybinds.key]] +bind = "mod+0" +func = "wToWS" +args = 10 diff --git a/error.h b/error.h new file mode 100644 index 0000000..b70085f --- /dev/null +++ b/error.h @@ -0,0 +1,17 @@ +#pragma once + +#include + +typedef unsigned int ErrCode; + +#define NOERR 0 +#define ERR_NON_FATAL 110 +#define ERR_FATAL 120 +#define ERR_CFG_NON_FATAL 210 +#define ERR_CFG_FATAL 220 + +struct Err +{ + ErrCode code; + std::string errorMessage; +}; -- cgit v1.2.3