-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautoaudio.yaml.sample
52 lines (52 loc) · 1.63 KB
/
autoaudio.yaml.sample
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
40
41
42
43
44
45
46
47
48
49
50
51
52
general:
notifier: notify-send
profiles:
# Profile names are unordered.
# Each profile should have a list of rules, and each rule has a list of commands with arguments.
# The rules are searched in order, and in each rule autoaudio tries to run the list of commands, until one rule
# fully succeeds.
# profile_name:
# - rule1:
# - command1: arguments
# - command2: arguments
# - rule2:
# - command1: arguments
# - command2: arguments
# Available commands: if_have_card, set_profile, set_default_sink, set_default_source, exec
# The easiest way to populate this, is to run `autoaudio.py --capture` and paste here what you get!
music:
- bose:
- if_have_card: ...
- set_profile:
card: ...
profile: "a2dp_sink"
- set_default_sink: ...
- jabra:
- if_have_card: ...
- set_profile:
card: ...
profile: a2dp_sink
- set_default_sink: ...
- audient:
- if_have_card: ...
- set_profile:
card: ...
profile: ...
- set_default_sink: ...
- exec: amixer -c 3 set Speaker playback rear 0% >/dev/null # I personally use these to force this surround card to be stereo
- exec: amixer -c 3 set Speaker playback front 100% >/dev/null
calls:
- bose:
- if_have_card: ...
- set_profile:
card: ...
profile: "headset_head_unit"
- set_default_sink: ...
- set_default_source: ...
- jabra:
- if_have_card: ...
- set_profile:
card: ...
profile: headset_head_unit
- set_default_sink: ...
- set_default_source: ...