summaryrefslogtreecommitdiff
path: root/ar
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-02 18:04:13 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-02 18:04:13 +0900
commitd792cee50c79e29299a33031809dea6020e3c979 (patch)
tree58b54ab655ab2f7382d5bf0cacfbae04febb2617 /ar
parentbbc67617dedb6ac1da68af0d0778d9e41695f967 (diff)
modified statusbar/sb-clock
Diffstat (limited to 'ar')
-rwxr-xr-xar/.local/bin/statusbar/sb-clock4
1 files changed, 2 insertions, 2 deletions
diff --git a/ar/.local/bin/statusbar/sb-clock b/ar/.local/bin/statusbar/sb-clock
index e0e8c53..e3ec9a4 100755
--- a/ar/.local/bin/statusbar/sb-clock
+++ b/ar/.local/bin/statusbar/sb-clock
@@ -1,9 +1,9 @@
#!/bin/sh
# Get current hour and minute
+calendar="🗓️"
hour=$(date '+%I')
minute=$(date '+%M')
-calendar="🗓️"
# Determine the icon based on hour and minute
if crontab -l 2>/dev/null | grep -q '^[^#[:space:]]'; then
@@ -43,7 +43,7 @@ else
fi
# Shows the current moon phase.
-moonfile="${XDG_DATA_HOME:-${HOME}/.local/share}/moonphase"
+moonfile="${XDG_DATA_HOME:-${HOME}/.local/share}/wallpapers/moonphase"
[ -s "$moonfile" ] && [ "$(stat -c %y "$moonfile" 2>/dev/null | cut -d' ' -f1)" = "$(date '+%Y-%m-%d')" ] ||
{ curl -sf "wttr.in/?format=%m" >"$moonfile" || exit 1; }