From d962800e931f9f161230a2e616ef619e477d8305 Mon Sep 17 00:00:00 2001 From: Alexis Jhon Gaspar Date: Mon, 18 Sep 2023 19:06:23 +0800 Subject: [PATCH] Fix statusbar --- dwm-flexipatch/patches.def.h | 2 +- scripts/dwmblocks/sb-date | 2 +- scripts/dwmblocks/sb-loadavg | 2 +- scripts/dwmblocks/sb-memory | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dwm-flexipatch/patches.def.h b/dwm-flexipatch/patches.def.h index 065759b..be45361 100644 --- a/dwm-flexipatch/patches.def.h +++ b/dwm-flexipatch/patches.def.h @@ -51,7 +51,7 @@ * Patch: https://gist.github.com/danbyl/54f7c1d57fc6507242a95b71c3d8fdea * https://dwm.suckless.org/patches/statuscmd/ */ -#define BAR_DWMBLOCKS_SIGUSR1_PATCH 1 +#define BAR_DWMBLOCKS_SIGUSR1_PATCH 0 /* This patch shows the titles of all visible windows in the status bar * (as opposed to showing only the selected one). diff --git a/scripts/dwmblocks/sb-date b/scripts/dwmblocks/sb-date index 0d4aca5..6e40987 100755 --- a/scripts/dwmblocks/sb-date +++ b/scripts/dwmblocks/sb-date @@ -2,7 +2,7 @@ # Displays the current time in HH:MM:SS (AM|PM) notify() { - notify-send -i office-calendar-symbolic \ + notify-send -a Calendar -i office-calendar-symbolic \ -h string:x-canonical-private-synchronous:"$1" "$@" } diff --git a/scripts/dwmblocks/sb-loadavg b/scripts/dwmblocks/sb-loadavg index ca242ab..2dc39cd 100755 --- a/scripts/dwmblocks/sb-loadavg +++ b/scripts/dwmblocks/sb-loadavg @@ -10,4 +10,4 @@ load=$(cut -d' ' -f1 /proc/loadavg) . sb-theme [ 1 -eq "$(echo "$load > $threshold" | bc)" ] && color=9 -display " $load" "$color" +display " $load" "$color" diff --git a/scripts/dwmblocks/sb-memory b/scripts/dwmblocks/sb-memory index 1a0cbd5..8767922 100755 --- a/scripts/dwmblocks/sb-memory +++ b/scripts/dwmblocks/sb-memory @@ -6,4 +6,4 @@ case $BLOCK_BUTTON in esac . sb-theme -display " $(free --mebi | awk 'NR==2 {printf ("%2.2fGiB\n", ($3 / 1024))}')" +display " $(free --mebi | awk 'NR==2 {printf ("%2.2fGiB\n", ($3 / 1024))}')"