Skip to content

Set the volume, mute and Wi-Fi power from popup controls without a command #705

Closed

Description

@Seb-GRAF

Problem

A popup slider or toggle changes something only through its onChange shell command. Setting the volume, muting, or turning Wi-Fi on or off therefore needs osascript or networksetup, and a widgets package can't run commands, so a Store package can show these values but not change them. The Sound widget already sets the volume natively from its hover slider (#158). The audio provider also gives no volume percentage to show beside a slider.

Proposal

  • slider and toggle accept set instead of onChange, naming what they change natively:
    • "set": "volume" on a slider: the default output's volume, 0–1, as the Sound widget's slider sets it.
    • "set": "muted" on a toggle: mutes or unmutes the default output.
    • "set": "wifiPower" on a toggle: turns Wi-Fi on or off through CoreWLAN, which needs no permission.
  • A control has either set or onChange, not both. set runs no shell, so widgets packages can use it.
  • The audio provider adds fields.volume, the volume as a whole percentage, such as 64.
{ "type": "slider", "title": "Volume", "source": "volume", "set": "volume" }

Possible today

Only in a configuration of your own, with osascript -e "set volume output volume …" or networksetup -setairportpower. Not in a package.

Related

Triaged by Claude Code via T3 Code (Claude Opus 5.5).

Activity

  1. added
    enhancement
    on Nov 16, 2026
  2. stablebar-releases commented on Nov 16, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.17.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions