summaryrefslogtreecommitdiff
path: root/dwm/patch/stacker.h
diff options
context:
space:
mode:
authorcoasteen <coasteen@proton.me>2026-07-09 10:42:28 +0330
committercoasteen <coasteen@proton.me>2026-07-09 10:42:28 +0330
commit8cbadb61604667b407b53ee1258433994fa4765a (patch)
tree97765fb29418fd6278fcb4cbb9760893afaf7a58 /dwm/patch/stacker.h
Diffstat (limited to 'dwm/patch/stacker.h')
-rwxr-xr-xdwm/patch/stacker.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/dwm/patch/stacker.h b/dwm/patch/stacker.h
new file mode 100755
index 0000000..ee420bd
--- /dev/null
+++ b/dwm/patch/stacker.h
@@ -0,0 +1,11 @@
+#define GETINC(X) ((X) - 2000)
+#define INC(X) ((X) + 2000)
+#define ISINC(X) ((X) > 1000 && (X) < 3000)
+#define PREVSEL 3000
+#define MOD(N,M) ((N)%(M) < 0 ? (N)%(M) + (M) : (N)%(M))
+#define TRUNC(X,A,B) (MAX((A), MIN((X), (B))))
+
+static void focusstack(const Arg *arg);
+static void pushstack(const Arg *arg);
+static int stackpos(const Arg *arg);
+