update
This commit is contained in:
parent
0eb0b520d2
commit
e7320da31c
@ -2,8 +2,26 @@ import subprocess
|
||||
|
||||
|
||||
def play_alarm_sound():
|
||||
subprocess.run(["paplay", "/usr/share/sounds/freedesktop/stereo/alarm-clock-elapsed.oga"])
|
||||
subprocess.run(
|
||||
["paplay", "/usr/share/sounds/freedesktop/stereo/alarm-clock-elapsed.oga"]
|
||||
)
|
||||
|
||||
|
||||
def play_alarm_sound2():
|
||||
subprocess.run(
|
||||
[
|
||||
"amixer",
|
||||
"-D",
|
||||
"pulse",
|
||||
"sset",
|
||||
"Master",
|
||||
"50%",
|
||||
]
|
||||
)
|
||||
subprocess.run(
|
||||
["paplay", "/usr/share/sounds/freedesktop/stereo/alarm-clock-elapsed.oga"]
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
play_alarm_sound()
|
||||
play_alarm_sound2()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user