51-disable-suspension.lua 339 B

12345678910111213141516
  1. table.insert (alsa_monitor.rules, {
  2. matches = {
  3. {
  4. -- Matches all sources.
  5. { "node.name", "matches", "alsa_input.*" },
  6. },
  7. {
  8. -- Matches all sinks.
  9. { "node.name", "matches", "alsa_output.*" },
  10. },
  11. },
  12. apply_properties = {
  13. ["session.suspend-timeout-seconds"] = 0, -- 0 disables suspend
  14. },
  15. })