Fixed typo/bug in systray patch; fixed cpu block
This commit is contained in:
parent
def465d760
commit
e433881824
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
case "$1" in
|
case "$1" in
|
||||||
1) exec "$TERMINAL" -e "htop -s PERCENT_CPU" ;;
|
1) exec "$TERMINAL" -e htop -s PERCENT_CPU ;;
|
||||||
2) exec "$TERMINAL" -e "htop" ;;
|
2) exec "$TERMINAL" -e htop ;;
|
||||||
3) exec "$TERMINAL" -e "htop -s PERCENT_MEM" ;;
|
3) exec "$TERMINAL" -e htop -s PERCENT_MEM ;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
#define DELIMITERENDCHAR 10
|
#define DELIMITERENDCHAR 10
|
||||||
|
|
||||||
/* delimiter specified as an array of characters
|
/* delimiter specified as an array of characters
|
||||||
* don't remove DELIMITERENDCHAR at the end */
|
* (don't remove DELIMITERENDCHAR at the end) */
|
||||||
static const char delimiter[] = { ' ', ' ', ' ', DELIMITERENDCHAR };
|
static const char delimiter[] = { ' ', ' ', ' ', DELIMITERENDCHAR };
|
||||||
|
|
||||||
#include "block.h"
|
#include "block.h"
|
||||||
|
|
|
@ -43,7 +43,7 @@ diff -ruN dwm-6.2-ori/config.def.h dwm-6.2/config.def.h
|
||||||
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
|
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
|
||||||
diff -ruN dwm-6.2-ori/dwm.c dwm-6.2/dwm.c
|
diff -ruN dwm-6.2-ori/dwm.c dwm-6.2/dwm.c
|
||||||
--- dwm-6.2-ori/dwm.c 2020-08-17 23:51:19.057243495 +0530
|
--- dwm-6.2-ori/dwm.c 2020-08-17 23:51:19.057243495 +0530
|
||||||
+++ dwm-6.2/dwm.c 2021-08-03 19:19:36.009135193 +0530
|
+++ dwm-6.2/dwm.c 2021-08-20 20:59:38.894111552 +0530
|
||||||
@@ -40,6 +40,7 @@
|
@@ -40,6 +40,7 @@
|
||||||
#include <X11/extensions/Xinerama.h>
|
#include <X11/extensions/Xinerama.h>
|
||||||
#endif /* XINERAMA */
|
#endif /* XINERAMA */
|
||||||
|
@ -427,11 +427,11 @@ diff -ruN dwm-6.2-ori/dwm.c dwm-6.2/dwm.c
|
||||||
+ else
|
+ else
|
||||||
+ *(sts++) = *rst;
|
+ *(sts++) = *rst;
|
||||||
+ *stp = *stc = *sts = '\0';
|
+ *stp = *stc = *sts = '\0';
|
||||||
+ wstext = TEXTW(stextp) + LSPAD + RSPAD;
|
+ wstext = TTEXTW(stextp) + LSPAD + RSPAD;
|
||||||
+ } else {
|
+ } else {
|
||||||
+ strcpy(stextc, "dwm-"VERSION);
|
+ strcpy(stextc, "dwm-"VERSION);
|
||||||
+ strcpy(stexts, stextc);
|
+ strcpy(stexts, stextc);
|
||||||
+ wstext = TEXTW(stextc) + LSPAD + RSPAD;
|
+ wstext = TTEXTW(stextc) + LSPAD + RSPAD;
|
||||||
+ }
|
+ }
|
||||||
+ drawbar(selmon);
|
+ drawbar(selmon);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue