diff options
| author | BossCode45 <human.cyborg42@gmail.com> | 2023-02-01 21:23:59 +1300 |
|---|---|---|
| committer | BossCode45 <human.cyborg42@gmail.com> | 2023-02-01 21:27:04 +1300 |
| commit | 59c5fa867eb94699e155520f77f69c7841e1418e (patch) | |
| tree | 3f51d09b70ebf1e80b30663e90c22676d3983e50 | |
| parent | 93410601e0a9c49f3e7f9a5560054c8fd46fc154 (diff) | |
| download | YATwm-59c5fa867eb94699e155520f77f69c7841e1418e.tar.gz YATwm-59c5fa867eb94699e155520f77f69c7841e1418e.zip | |
added stuff that for some reason didn't get added with -a
| -rw-r--r-- | compile_commands.json | 24 | ||||
| -rw-r--r-- | config.toml | 187 | ||||
| -rw-r--r-- | error.h | 17 |
3 files changed, 228 insertions, 0 deletions
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 @@ -0,0 +1,17 @@ +#pragma once + +#include <string> + +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; +}; |
