Skip to content

Commit

Permalink
gjs: add workarounds for AstalWp
Browse files Browse the repository at this point in the history
  • Loading branch information
kotontrion committed Nov 26, 2024
1 parent b7af61d commit 12fa0fb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lang/gjs/src/overrides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,18 @@ await suppress(import("gi://AstalNotifd"), ({ Notifd, Notification }) => {
await suppress(import("gi://AstalPowerProfiles"), ({ PowerProfiles }) => {
patch(PowerProfiles.prototype, "actions")
})

await suppress(import("gi://AstalWp"), ({ Wp, Audio, Video }) => {
patch(Wp.prototype, "endpoints")
patch(Wp.prototype, "devices")
patch(Audio.prototype, "streams")
patch(Audio.prototype, "recorders")
patch(Audio.prototype, "microphones")
patch(Audio.prototype, "speakers")
patch(Audio.prototype, "devices")
patch(Video.prototype, "streams")
patch(Video.prototype, "recorders")
patch(Video.prototype, "sinks")
patch(Video.prototype, "sources")
patch(Video.prototype, "devices")
})

0 comments on commit 12fa0fb

Please sign in to comment.