diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-02 18:04:13 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-02 18:04:13 +0900 |
| commit | d792cee50c79e29299a33031809dea6020e3c979 (patch) | |
| tree | 58b54ab655ab2f7382d5bf0cacfbae04febb2617 | |
| parent | bbc67617dedb6ac1da68af0d0778d9e41695f967 (diff) | |
modified statusbar/sb-clock
| -rwxr-xr-x | ar/.local/bin/statusbar/sb-clock | 4 |
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; } |
