feat(bt): auto connect speaker on boot
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
ab8bb48feb
commit
e62b607ac9
1 changed files with 9 additions and 0 deletions
|
@ -28,10 +28,19 @@ in {
|
||||||
systemd.user.services = {
|
systemd.user.services = {
|
||||||
pulseaudio.after = ["bluetooth.service"];
|
pulseaudio.after = ["bluetooth.service"];
|
||||||
spotifyd.after = ["pulseaudio.service"];
|
spotifyd.after = ["pulseaudio.service"];
|
||||||
|
ueboom = {
|
||||||
|
after = ["spotifyd.service"];
|
||||||
|
path = with pkgs; [bluez];
|
||||||
|
script = ''
|
||||||
|
sleep 60
|
||||||
|
exec bluetoothctl connect 88:C6:26:93:4B:77
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
systemd.user.targets.default.wants = [
|
systemd.user.targets.default.wants = [
|
||||||
"pulseaudio.service"
|
"pulseaudio.service"
|
||||||
"spotifyd.service"
|
"spotifyd.service"
|
||||||
|
"ueboom.service"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Allow pulseaudio to be managed by MPD
|
# Allow pulseaudio to be managed by MPD
|
||||||
|
|
Loading…
Reference in a new issue