aboutsummaryrefslogtreecommitdiffstats

wake-pulse

Wake PulseAudio/PipeWire sinks from auto-suspend.

Installation

make install

Usage

wake-pulse                    # Wake default sink, exit when awake
wake-pulse -c                 # Keep default sink awake continuously
wake-pulse -s sink_name       # Wake specific sink
wake-pulse -s sink_name -c    # Keep specific sink awake continuously

Options

  • -s, --sink NAME - Sink name to keep awake (default: system default sink)
  • -c, --continuous - Keep sink awake continuously (default: exit once awake)
  • -h, --help - Show help message

Dependencies

  • bash
  • pulseaudio-utils (pactl, paplay)

How It Works

The script generates a silent WAV file and plays it on loop to prevent the audio sink from suspending. It monitors sink state changes via pactl subscribe and exits (or continues) based on the mode selected.

Uninstall

make uninstall