|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
From aba2b3e0135f332892afa389037862e43ed5a8cf Mon Sep 17 00:00:00 2001
|
|
|
|
|
From 578895f88a593933ad169535b71403dec3ad2c95 Mon Sep 17 00:00:00 2001
|
|
|
|
|
From: bakkeby <bakkeby@gmail.com>
|
|
|
|
|
Date: Mon, 20 Jul 2020 15:17:52 +0200
|
|
|
|
|
Subject: [PATCH 2/2] Adding status2d module
|
|
|
|
@ -6,11 +6,11 @@ Subject: [PATCH 2/2] Adding status2d module
|
|
|
|
|
---
|
|
|
|
|
config.def.h | 2 +-
|
|
|
|
|
dwm.c | 6 +-
|
|
|
|
|
patch/bar_status2d.c | 221 +++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
|
patch/bar_status2d.c | 222 +++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
|
patch/bar_status2d.h | 13 +++
|
|
|
|
|
patch/include.c | 5 +-
|
|
|
|
|
patch/include.h | 5 +-
|
|
|
|
|
6 files changed, 244 insertions(+), 8 deletions(-)
|
|
|
|
|
6 files changed, 245 insertions(+), 8 deletions(-)
|
|
|
|
|
create mode 100644 patch/bar_status2d.c
|
|
|
|
|
create mode 100644 patch/bar_status2d.h
|
|
|
|
|
|
|
|
|
@ -60,10 +60,10 @@ index 03dccfb..49eaccb 100644
|
|
|
|
|
/* init bars */
|
|
|
|
|
diff --git a/patch/bar_status2d.c b/patch/bar_status2d.c
|
|
|
|
|
new file mode 100644
|
|
|
|
|
index 0000000..3759d2f
|
|
|
|
|
index 0000000..998bae6
|
|
|
|
|
--- /dev/null
|
|
|
|
|
+++ b/patch/bar_status2d.c
|
|
|
|
|
@@ -0,0 +1,221 @@
|
|
|
|
|
@@ -0,0 +1,222 @@
|
|
|
|
|
+int
|
|
|
|
|
+width_status2d(Bar *bar, BarWidthArg *a)
|
|
|
|
|
+{
|
|
|
|
@ -124,8 +124,8 @@ index 0000000..3759d2f
|
|
|
|
|
+ char *text;
|
|
|
|
|
+ char *p;
|
|
|
|
|
+
|
|
|
|
|
+ len = strlen(stext) + 1;
|
|
|
|
|
+ if (!(text = (char*) malloc(sizeof(char)*len)))
|
|
|
|
|
+ len = strlen(stext);
|
|
|
|
|
+ if (!(text = (char*) malloc(sizeof(char)*(len + 1))))
|
|
|
|
|
+ die("malloc");
|
|
|
|
|
+ p = text;
|
|
|
|
|
+ #if BAR_STATUSCMD_PATCH
|
|
|
|
@ -214,6 +214,7 @@ index 0000000..3759d2f
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ text = text + i + 1;
|
|
|
|
|
+ len -= i + 1;
|
|
|
|
|
+ i=-1;
|
|
|
|
|
+ isCode = 0;
|
|
|
|
|
+ }
|
|
|
|
|