bugfix after several pkg updates. new alias introduced.

This commit is contained in:
2026-03-23 00:19:48 +08:00
parent f789134483
commit 8b9589c8c9
3 changed files with 12 additions and 6 deletions

View File

@@ -18,10 +18,10 @@ from os import getenv
from subprocess import run as start_process
# region config
AUD_OUT_EMB = ( # my laptop embedded speaker
"alsa_output.pci-0000_00_1f"
".3-platform-skl_hda_dsp_generic.HiFi__Speaker__sink"
)
# AUD_OUT_EMB = ( # my laptop embedded speaker
# "alsa_output.pci-0000_00_1f"
# ".3-platform-skl_hda_dsp_generic.HiFi__Speaker__sink"
# )
# better searched by editor like VSCode.
AUD_FILE = "~/.local/share/.low_power.wav".replace("~", getenv("HOME"), 1)
# endregion config
@@ -186,6 +186,6 @@ if __name__ == "__main__":
if low_power_detected:
start_process([
"pw-play",
f"--target={AUD_OUT_EMB}",
# f"--target={AUD_OUT_EMB}",
AUD_FILE
])