Repository navigation
Description
Problem
The Amphetamine package's duration slider runs from 15 to 240 minutes in 15-minute steps, both in its hover controls and in its popup. It can't start an indefinite session. Only the popup's separate Keep awake indefinitely row can, and the popup opens only when the package's Click the bar widget to setting is controls. With the default, toggle, the hover slider is the only control, so an indefinite session is out of reach from the bar.
A slider block can't express this today. It is a native Slider with an evenly stepped min…max range. A package could add one more step, say 255, and treat it as "indefinitely". But that step looks like any other, nothing on the track shows where the timed range ends, and the value beside the slider comes from the script, so it can't read ∞ while you drag.
Proposal
- An optional
endStoponsliderblocks, in popups and inhoverLayout:"endStop": { "value": 0, "label": "∞" }. - The slider draws its steps from
mintomaxas today. Then come a notch (a short gap with a hairline) and a short last stretch of track for the end stop. Under the end stop, the label takes the place of a step dot. - Dragging past
maxholds the knob atmaxuntil the pointer is a few points past the notch. Then it snaps onto the end stop, with the alignment haptic that edit mode already plays. Dragging back returns it tomax. - Releasing on the end stop runs
onChangewith the end stop'svalueinVALUE. Whenvalues[source]equals that value, the knob sits on the end stop. - The arrow keys step from
maxonto the end stop, and VoiceOver reads its label. - This needs the schema, the
sliderrow in Popups and tests.
Then, in Seb-GRAF/stablebar-packages, after a StableBar release with this:
- Amphetamine's two sliders use
"endStop": { "value": 0, "label": "∞" }. Amphetamine itself starts an indefinite session with duration 0. - For 0, the scripts start an indefinite session, the value reads ∞, and the popup's start row reads Keep awake indefinitely.
- The separate Keep awake indefinitely row goes away.
Possible today
Partly. Setting Click the bar widget to to controls gives the popup's Keep awake indefinitely row, but then a click no longer toggles the session. A package can also add an unmarked extra step past max, with the limits above.
Related
- feat: reveal hover controls smoothly beside widgets #189 added
hoverLayoutwith Amphetamine's inline slider. Show hover controls in a standard, animated tooltip instead of widening the widget #287 / feat: show hover controls in an animated tooltip instead of widening the widget #292 moved hover controls into a tooltip. Neither changed what a slider can show. - feat: add inline duration controls to Amphetamine stablebar-packages#19 added the 15–240 duration slider and kept indefinite sessions in the popup.
Triaged by Claude Code (Claude Opus 5.5).

Activity
chore(release): 0.10.0 [skip ci]
stablebar-releases commentedon Nov 2, 2026
🎉 This issue has been resolved in version 0.10.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀