aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/statusbar/sb-clock
diff options
context:
space:
mode:
authorawy <awy@awy.one>2025-07-30 20:38:16 +0300
committerawy <awy@awy.one>2025-07-30 20:38:16 +0300
commit34885f77bffd7ffb9e7b6cc12b4ab9fc2e1aff45 (patch)
tree7f14a5a35d591f8ab385e22759447826fc6e7591 /.local/bin/statusbar/sb-clock
parentecf709e88196ff339beb3d6ebb53175ceeaf1cb7 (diff)
downloadhyprdots-34885f77bffd7ffb9e7b6cc12b4ab9fc2e1aff45.tar.gz
clock module
Diffstat (limited to '.local/bin/statusbar/sb-clock')
-rwxr-xr-x.local/bin/statusbar/sb-clock18
1 files changed, 1 insertions, 17 deletions
diff --git a/.local/bin/statusbar/sb-clock b/.local/bin/statusbar/sb-clock
index d23af8d..3cac79c 100755
--- a/.local/bin/statusbar/sb-clock
+++ b/.local/bin/statusbar/sb-clock
@@ -2,22 +2,6 @@
clock=$(date '+%I')
-case "$clock" in
- "00") icon="🕛" ;;
- "01") icon="🕐" ;;
- "02") icon="🕑" ;;
- "03") icon="🕒" ;;
- "04") icon="🕓" ;;
- "05") icon="🕔" ;;
- "06") icon="🕕" ;;
- "07") icon="🕖" ;;
- "08") icon="🕗" ;;
- "09") icon="🕘" ;;
- "10") icon="🕙" ;;
- "11") icon="🕚" ;;
- "12") icon="🕛" ;;
-esac
-
case $BLOCK_BUTTON in
1) notify-send "This Month" "$(cal | sed "s/\<$(date +'%e'|tr -d ' ')\>/<b><span color='red'>&<\/span><\/b>/")" && notify-send "Appointments" "$(calcurse -d3)" ;;
2) setsid -f "$TERMINAL" -e calcurse >/dev/null 2>&1 ;;
@@ -26,4 +10,4 @@ case $BLOCK_BUTTON in
8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 ;;
esac
-date "+%Y %b %d (%a) $icon%H:%M"
+date "+%Y-%m-%d %H:%M:%S"