blob: 72a11295bb8e0043ed04274483c226b0d6e571cf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# wake-pulse
Wake PulseAudio/PipeWire sinks from auto-suspend.
## Installation
```bash
make install
```
## Usage
```bash
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
```bash
make uninstall
```
|