Skip to content

Instantly share code, notes, and snippets.

@adamnejm
Created August 8, 2022 00:58
Show Gist options
  • Save adamnejm/c3274742f3f5537306d60316b1f82552 to your computer and use it in GitHub Desktop.
Save adamnejm/c3274742f3f5537306d60316b1f82552 to your computer and use it in GitHub Desktop.
[WirePlumber] Disable SUSPEND on a specific device
-- Replace `alsa_output.pci-0000_2d_00.4.analog-stereo` with your device name (`pactl list sinks short`)
-- Script location: $XDG_CONFIG_HOME/wireplumber/main.lua.d/60-disable-speaker-suspend.lua
local rule = {
matches = {
{
{ "node.name", "equals", "alsa_output.pci-0000_2d_00.4.analog-stereo" },
}
},
apply_properties = {
["session.suspend-timeout-seconds"] = 0
}
}
table.insert(alsa_monitor.rules, rule)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment