summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.h2
-rw-r--r--mainbin0 -> 445152 bytes
-rw-r--r--makefile31
-rw-r--r--readme.org5
4 files changed, 23 insertions, 15 deletions
diff --git a/config.h b/config.h
index 8f9897d..0b66419 100644
--- a/config.h
+++ b/config.h
@@ -37,7 +37,7 @@ void kill(const KeyArg arg);
void changeWS(const KeyArg arg);
const char* alacritty[] = {"alacritty", NULL};
-const char* rofi[] = {"rofi", "-i", "-show" "drun", NULL};
+const char* rofi[] = {"rofi", "-i", "-show", "drun", NULL};
#define WSKEY(K, X) \
{K, mod, changeWS, {.num = X - 1}},
diff --git a/main b/main
new file mode 100644
index 0000000..58d0e1e
--- /dev/null
+++ b/main
Binary files differ
diff --git a/makefile b/makefile
index abd3e2b..6c294d3 100644
--- a/makefile
+++ b/makefile
@@ -1,19 +1,24 @@
+.PHONY: clean
+CXX := g++
CXXFLAGS := -g `pkg-config --cflags x11`
-LDFLAGS := `pkg-config --libs x11`
+LINKFLAGS := `pkg-config --libs x11`
+OBJS_DIR := .
+OUT_DIR := .
+SOURCE_DIR := .
+EXEC := main
+SOURCE_FILES := $(wildcard $(SOURCE_DIR)/*.cpp)
+SOURCE_HEADERS := $(wildcard $(SOURCE_DIR)/*.h)
+OBJS := $(subst $(SOURCE_DIR),$(OBJS_DIR), $(patsubst %.cpp,%.o,$(SOURCE_FILES)))
-all: YATwm
+$(EXEC): $(OBJS)
+ $(CXX) $(OBJS) $(CXXFLAGS) $(LINKFLAGS) -o $(OUT_DIR)/$(EXEC)
-HEADERS = \
- config.h \
- structs.h \
- util.h
-SOURCES = \
- main.cpp
-OBJECTS = $(SOURCES:.cpp=.o)
+$(OBJS_DIR)/%.o : $(SOURCE_DIR)/%.cpp
+ $(CXX) $(CXXFLAGS) -c $< -o $@
-YATwm: $(HEADERS) $(OBJECTS)
- $(CXX) -o $@ $(OBJECTS) $(LDFLAGS)
+#Files to be compiled
+$(OBJS_DIR)/main.o: $(SOURCE_FILES) $(SOURCE_HEADERS)
-.PHONY: clean
clean:
- rm -f YATwm $(OBJECTS)
+ rm $(OBJS_DIR)/*.o
+ rm $(OUT_DIR)/$(EXEC)
diff --git a/readme.org b/readme.org
index 337225a..7067774 100644
--- a/readme.org
+++ b/readme.org
@@ -4,7 +4,7 @@
* [WIP]
* Disclaimer: This is still very much before even beta or even a working state (it barely functions)
-It currently barely works (only reason this is public is because others may want to see for reference.
+It currently barely works (only reason this is public is because others may want to see for reference)
I wouldn't suggest using this at all and it may undergo heavy changes as the code currently isn't very clean or good.
* For people that have brain damage (anyone who wants to use it *while it is unfinished*)
@@ -14,6 +14,8 @@ Add a bash command to the ~startup~ string in config.h and it will execute on st
*** General
You can change either the inner gaps (padding around each window - so double it for space between windows), or the outer gaps (padding around the display - add to inner gaps to get space between window and screen edges).
They can be changed with the integers ~gaps~ and ~outerGaps~ in the config.h file.
+
+You can change the number of workspaces by editing ~numWS~ in the config.h file. You can think of workspaces as virtual desktops.
*** Keybinds
Current keybinds:
- mod1 + enter : alacritty
@@ -21,6 +23,7 @@ Current keybinds:
- mod1 + t : change next tile direction
- mod1 + e : exit
- mod1 + q : quit focused window
+- mod1 + (num) : switch to workspace (num) - currently only for 1-5 but you can add more
(mod1 is alt)
Add new keybinds reffering to the pre existing ones - more docs coming later