Skip to content

feat: Show the time left on the sleep timer beside the playback controls - #175

Merged
abusch merged 1 commit into
mainfrom
sleep-timer-indicator
Oct 16, 2026
Merged

abusch merged 1 commit into
mainfrom
sleep-timer-indicator

Conversation

@abusch

@abusch abusch commented Oct 16, 2026

Copy link
Copy Markdown
Owner

Shows the time left on the selected group's sleep timer on the main screen, to the right of the playback controls:

shuffle   prev   ⏸   next   repeat   🌙 14:59
  • It only shows while a timer is set, counts down live, and uses the colour of the play modes that are on.
  • It's drawn beside the controls rather than as part of them, so they stay centred and the volume slider keeps its width. It's left out when there is no room, e.g. with the group panel open in a narrow terminal.
  • The screen now redraws while any timer is running, not just while the playback menu is open.
  • The menu and the main screen share sleep_timer_text to format the time left.

Tried on a real speaker: set a 15-minute timer, checked the main screen, then cancelled it.

🤖 Generated with Claude Code

It shows on the right of the controls while a timer is set, without moving
them, when there is room for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@abusch
abusch merged commit fb6d15c into main Oct 16, 2026
1 check passed
@abusch
abusch deleted the sleep-timer-indicator branch October 16, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant