commit 01525c85248551c6fae2a2f8e30a16fa000c46cf
parent 11fb96b501598f4704a10938b0cb8e54f7a58d4b
Author: regexghost <dev@regexghost.com>
Date: Tue, 28 Jul 2026 22:34:23 +0100
bug fixes in lemonbar-bar.sh
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/panel-scripts/lemonbar-bar.sh b/panel-scripts/lemonbar-bar.sh
@@ -23,6 +23,9 @@ stream_live_colour="%{F#${GREEN}}"
stream_not_live_colour="%{F#${YELLOW}}"
stream_error_colour="%{F#${RED}}"
+trap "echo not loaded yet" "RTMIN"
+trap "echo not loaded yet" "RTMIN+1"
+
update_time () {
current_time="$(date +"%a %d %b - %H:%M")"
}
diff --git a/panel-scripts/metoffice.sh b/panel-scripts/metoffice.sh
@@ -10,7 +10,7 @@ lat=$(cat "$curLocationFile" | cut -d "|" -f 1)
lon=$(cat "$curLocationFile" | cut -d "|" -f 2)
geohash=$(geohash $lat $lon 9)
today_string="$(date "+%Y-%m-%d")"
-if date --version | grep -q "GNU coreutils"; then
+if date --version 2>1 | grep -q "GNU coreutils" > /dev/null; then
tomorrow_string="$(date -d @$(($(date +%s)+86400)) "+%Y-%m-%d")"
second_day_string="$(date -d @$(($(date +%s)+86400+86400)) "+%Y-%m-%d")"
else