summaryrefslogtreecommitdiff
path: root/#config.h#
diff options
context:
space:
mode:
authorBossCode45 <human.cyborg42@gmail.com>2022-08-24 17:17:46 +1200
committerBossCode45 <human.cyborg42@gmail.com>2022-08-24 17:17:46 +1200
commit79e15de349c1b82780d0583cd6fdcec4db2382ca (patch)
treed4147448a0fc5c5920bb588378229b50799b7ad0 /#config.h#
parent0c9396c9f2e14c61f6082916df81e4251fa1d3ec (diff)
downloadYATwm-79e15de349c1b82780d0583cd6fdcec4db2382ca.tar.gz
YATwm-79e15de349c1b82780d0583cd6fdcec4db2382ca.zip
Added workspaces
Diffstat (limited to '#config.h#')
-rw-r--r--#config.h#62
1 files changed, 62 insertions, 0 deletions
diff --git a/#config.h# b/#config.h#
new file mode 100644
index 0000000..26e8004
--- /dev/null
+++ b/#config.h#
@@ -0,0 +1,62 @@
+#include <X11/keysym.h>
+#include <X11/Xlib.h>
+
+#include <vector>
+#include <string>
+
+//Startup
+std::string startup[] = {"picom -fD 3", "feh --bg-scale /usr/share/backgrounds/vapor_trails_blue.png"};
+
+//Main config
+int gaps = 10;
+int outerGaps = 30;
+
+//Keys
+//The types and perhaps functions likely to be moved to seperate header file later
+typedef union
+{
+ const int num;
+ const char** str;
+} KeyArg;
+
+struct Key
+{
+ KeySym keysym;
+ unsigned int modifiers;
+ void (*function)(const KeyArg arg);
+ const KeyArg arg;
+};
+
+//Keybind commands
+void exit(const KeyArg arg);
+void spawn(const KeyArg arg);
+void toggle(const KeyArg arg);
+void kill(const KeyArg arg);
+void changeWS(const KeyArg arg);
+
+const char* alacritty[] = {"alacritty", NULL};
+const char* rofi[] = {"rofi", "-i", "-show" "drun", NULL};
+
+#define WSKEY(K, X) \
+ {K, mod, changeWS, {.num = X - 1}},
+
+unsigned int mod = Mod1Mask;
+
+static struct Key keyBinds[] = {
+ //Key //Modifiers //Func //Args
+ {XK_E, mod, exit, {NULL}},
+ {XK_Return, mod, spawn, {.str = alacritty}},
+ {XK_D, mod, spawn, {.str = rofi}},
+ {XK_T, mod, toggle, {NULL}},
+ {XK_Q, mod, kill, {NULL}},
+ {XK_1, mod, changeWS, {NULL},
+ {XK_2, mod, changeWS, {NULL}},
+ {XK_3, mod, changeWS, {.num = 2}},
+ {XK_4, mod, changeWS, {.num = 3}},
+ {XK_5, mod, changeWS, {.num = 4}},
+ //WSKEY(XK_1, 1)
+ //WSKEY(XK_2, 2)
+ //WSKEY(XK_3, 3)
+ //WSKEY(XK_4, 4)
+ //WSKEY(XK_5, 5)
+};