/usr/share/wireplumber/scripts/device
NameSizeModeActions
apply-profile.lua18240644editdlrm
apply-routes.lua34870644editdlrm
automute-alsa-routes.lua72550644editdlrm
autoswitch-bluetooth-profile.lua153260644editdlrm
find-best-profile.lua22680644editdlrm
find-best-routes.lua25500644editdlrm
find-preferred-profile.lua21400644editdlrm
find-voice-call-profile.lua21700644editdlrm
select-profile.lua7200644editdlrm
select-routes.lua50210644editdlrm
state-profile.lua42090644editdlrm
state-routes.lua118890644editdlrm
Edit: /usr/share/wireplumber/scripts/device/select-profile.lua (720B)
-- WirePlumber -- -- Copyright © 2022 Collabora Ltd. -- -- SPDX-License-Identifier: MIT -- look for new devices and raise select-profile event. cutils = require ("common-utils") log = Log.open_topic ("s-device") SimpleEventHook { name = "device/select-profile", interests = { EventInterest { Constraint { "event.type", "=", "device-added" }, }, EventInterest { Constraint { "event.type", "=", "device-params-changed" }, Constraint { "event.subject.param-id", "=", "EnumProfile" }, }, }, execute = function (event) local source = event:get_source () local device = event:get_subject () source:call ("push-event", "select-profile", device, nil) end }:register()