| Hash | Commit message | Author | Date | Files | + | - |
1 | commit 7ed43eee4f823debb6235077435fa1bceccacc6b |
2 | Author: Connor Etherington <[email protected]> |
3 | Date: Wed Mar 22 22:17:21 2023 +0200 |
4 | |
5 | Auto-Commit Update 22.03.2023 - 22:17:21 |
6 | --- |
7 | AutoLinux | Bin 110128 -> 110072 bytes |
8 | config.h | 9 +++++---- |
9 | patch/cust/bar_date.c | 6 +++--- |
10 | patch/cust/bar_time.c | 10 ---------- |
11 | patch/include.c | 1 + |
12 | patch/include.h | 1 + |
13 | 6 files changed, 10 insertions(+), 17 deletions(-) |
14 | |
15 | diff --git a/AutoLinux b/AutoLinux |
16 | index 5922e56..0d9013c 100755 |
17 | Binary files a/AutoLinux and b/AutoLinux differ |
18 | diff --git a/config.h b/config.h |
19 | index d772b0a..b5787b7 100644 |
20 | --- a/config.h |
21 | +++ b/config.h |
22 | @@ -59,10 +59,10 @@ static char timebordercolor[] = "#ff5782"; |
23 | static char timebgcolor[] = "#ff5782"; |
24 | static char activefgcolor[] = "#EFEFEF"; |
25 | static char activebordercolor[] = "#ff5782"; |
26 | -static char activebgcolor[] = "#1A2026"; |
27 | +static char activebgcolor[] = "#0077aa"; |
28 | static char inactivefgcolor[] = "#ff5782"; |
29 | static char inactivebordercolor[] = "#ff5782"; |
30 | -static char inactivebgcolor[] = "#1A2026"; |
31 | +static char inactivebgcolor[] = "#efeff0"; |
32 | |
33 | static char *colors[][3] = { |
34 | |
35 | @@ -118,8 +118,9 @@ static const BarRule barrules[] = { |
36 | /* { -1, 0, BAR_ALIGN_LEFT, width_tags, draw_tags, click_tags, "tags" }, */ |
37 | { -1, 0, BAR_ALIGN_CENTER, width_tags, draw_tags, click_tags, "tags" }, |
38 | { -1, 0, BAR_ALIGN_LEFT_LEFT, width_ltsymbol, draw_ltsymbol, click_ltsymbol, "layout" }, |
39 | - { 0, 0, BAR_ALIGN_RIGHT_RIGHT, width_time, draw_time, click_status, "time" }, |
40 | - { 1, 0, BAR_ALIGN_RIGHT_RIGHT, width_datetime, draw_datetime, click_status, "datetime" }, |
41 | + //{ 0, 0, BAR_ALIGN_RIGHT_RIGHT, width_time, draw_time, click_status, "time" }, |
42 | + { -1, 0, BAR_ALIGN_RIGHT_RIGHT, width_date, draw_date, click_status, "date" }, |
43 | + { -1, 0, BAR_ALIGN_RIGHT_RIGHT, width_time, draw_time, click_status, "time" }, |
44 | { 0, 0, BAR_ALIGN_LEFT, width_wintitle, draw_wintitle, click_wintitle, "wintitle" }, |
45 | }; |
46 | |
47 | diff --git a/patch/cust/bar_date.c b/patch/cust/bar_date.c |
48 | index 00f1128..c417129 100644 |
49 | --- a/patch/cust/bar_date.c |
50 | +++ b/patch/cust/bar_date.c |
51 | @@ -12,20 +12,20 @@ void get_date(char *time) { |
52 | } |
53 | |
54 | int |
55 | -width_time(Bar *bar, BarWidthArg *a) |
56 | +width_date(Bar *bar, BarWidthArg *a) |
57 | { |
58 | return TEXTW("DDD, DD MMM ") + lrpad; |
59 | } |
60 | |
61 | int |
62 | -draw_time(Bar *bar, BarDrawArg *a) |
63 | +draw_date(Bar *bar, BarDrawArg *a) |
64 | { |
65 | int boxs = drw->fonts->h / 9; |
66 | int boxw = drw->fonts->h / 6 + 2; |
67 | int x = a->x, w = a->w; |
68 | Monitor *m = bar->mon; |
69 | |
70 | - drw_setscheme(drw, scheme[m == selmon ? SchemeActive : SchemeInactive]); |
71 | + drw_setscheme(drw, scheme[m == selmon ? SchemeInactive : SchemeNorm]); |
72 | |
73 | char date[100]; |
74 | get_date(date); |
75 | diff --git a/patch/cust/bar_time.c b/patch/cust/bar_time.c |
76 | index ec7c771..a555e1a 100644 |
77 | --- a/patch/cust/bar_time.c |
78 | +++ b/patch/cust/bar_time.c |
79 | @@ -1,16 +1,6 @@ |
80 | |
81 | #define SH(cmd) (const char*[]){ "/bin/sh", "-c", cmd, NULL } |
82 | |
83 | -// get current time once a second |
84 | -void get_date(char *time) { |
85 | - FILE *fp; |
86 | - char buf[100]; |
87 | - fp = popen("date '+%a, %d %b '", "r"); |
88 | - fgets(buf, 100, fp); |
89 | - pclose(fp); |
90 | - strcpy(time, buf); |
91 | -} |
92 | - |
93 | void get_time(char *time) { |
94 | FILE *fp; |
95 | char buf[100]; |
96 | diff --git a/patch/include.c b/patch/include.c |
97 | index f2fa000..b04c267 100644 |
98 | --- a/patch/include.c |
99 | +++ b/patch/include.c |
100 | @@ -5,3 +5,4 @@ |
101 | #include "bar_wintitle.c" |
102 | #include "cust/bar_time.c" |
103 | #include "cust/bar_datetime.c" |
104 | +#include "cust/bar_date.c" |
105 | diff --git a/patch/include.h b/patch/include.h |
106 | index 4c8b723..a7e761c 100644 |
107 | --- a/patch/include.h |
108 | +++ b/patch/include.h |
109 | @@ -5,3 +5,4 @@ |
110 | #include "bar_wintitle.h" |
111 | #include "cust/bar_time.h" |
112 | #include "cust/bar_datetime.h" |
113 | +#include "cust/bar_date.h" |