feat(audio-switcher): migrate to widget.actions and fix mute status logic (#200)

* refactor(audio-switcher): remove unused translation key

* feat(audio-switcher)!: migrate scroll handling to widget actions

* feat(audio-switcher): migrate click handling to widget actions

* refactor(audio-switcher): migrate to openSettings

* fix(audio-switcher): fix incorrect mute status check for input and output
This commit is contained in:
HiImKobeAnd
2026-08-05 17:33:35 -04:00
committed by GitHub
parent 88168f3b32
commit 718ccfc451
5 changed files with 13 additions and 88 deletions
+9 -12
View File
@@ -1,7 +1,7 @@
id = "blackbartblues/audio-switcher"
name = "Audio Switcher"
version = "0.3.0"
plugin_api = 9
version = "0.4.0"
plugin_api = 15
author = "blackbartblues"
license = "MIT"
icon = "switch-horizontal"
@@ -30,20 +30,17 @@ label_key = "settings.show_actions_in_tooltip.label"
description_key = "settings.show_actions_in_tooltip.description"
default = true
[[setting]]
key = "scroll_step"
type = "int"
label_key = "settings.scroll_step.label"
description_key = "settings.scroll_step.description"
default = 5
min = 1
max = 25
step = 1
[[widget]]
id = "widget"
entry = "widget.luau"
[widget.actions]
scroll_up = "volume-up"
scroll_down = "volume-down"
left = "panel-toggle blackbartblues/audio-switcher:audio-switcher"
right = "plugin blackbartblues/audio-switcher:service all cycle-output"
middle = "plugin blackbartblues/audio-switcher:service all cycle-input"
[[panel]]
id = "audio-switcher"
entry = "panel.luau"