first commit

This commit is contained in:
2026-03-30 14:53:09 -06:00
commit fbec1a6ade
81 changed files with 4479 additions and 0 deletions

22
timer_module.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
STATE_FILE="/tmp/waybar_timer"
if [ ! -f "$STATE_FILE" ]; then
exit 0
fi
end_time=$(cat "$STATE_FILE")
now=$(date +%s)
remaining=$((end_time - now))
if [ "$remaining" -le 0 ]; then
exit 0
fi
# Formateamos tiempo como MM:SS
minutes=$((remaining / 60))
seconds=$((remaining % 60))
printf '{"text": "⏳ %02d:%02d", "tooltip": "Timer"}\n' "$minutes" "$seconds"