Fixed typo/bug in systray patch; fixed cpu block

This commit is contained in:
Ashish Kumar Yadav 2021-08-20 21:01:44 +05:30
parent def465d760
commit e433881824
3 changed files with 7 additions and 7 deletions

View file

@ -1,6 +1,6 @@
#!/bin/sh
case "$1" in
1) exec "$TERMINAL" -e "htop -s PERCENT_CPU" ;;
2) exec "$TERMINAL" -e "htop" ;;
3) exec "$TERMINAL" -e "htop -s PERCENT_MEM" ;;
1) exec "$TERMINAL" -e htop -s PERCENT_CPU ;;
2) exec "$TERMINAL" -e htop ;;
3) exec "$TERMINAL" -e htop -s PERCENT_MEM ;;
esac

View file

@ -16,7 +16,7 @@
#define DELIMITERENDCHAR 10
/* 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 };
#include "block.h"

View file

@ -43,7 +43,7 @@ diff -ruN dwm-6.2-ori/config.def.h dwm-6.2/config.def.h
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
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/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 @@
#include <X11/extensions/Xinerama.h>
#endif /* XINERAMA */
@ -427,11 +427,11 @@ diff -ruN dwm-6.2-ori/dwm.c dwm-6.2/dwm.c
+ else
+ *(sts++) = *rst;
+ *stp = *stc = *sts = '\0';
+ wstext = TEXTW(stextp) + LSPAD + RSPAD;
+ wstext = TTEXTW(stextp) + LSPAD + RSPAD;
+ } else {
+ strcpy(stextc, "dwm-"VERSION);
+ strcpy(stexts, stextc);
+ wstext = TEXTW(stextc) + LSPAD + RSPAD;
+ wstext = TTEXTW(stextc) + LSPAD + RSPAD;
+ }
+ drawbar(selmon);
}