(Scripts)~Prefix every notify-send with script creating it

This commit is contained in:
2023-10-18 20:01:26 +01:00
parent 84fb1be64c
commit fd22305dac
4 changed files with 9 additions and 7 deletions

View File

@@ -8,7 +8,7 @@ def speak(text: str, volume=100, word_gap=20):
system(f'espeak -a {volume} -g {word_gap} -k 20 "{text}"')
def alert(text:str):
run(["notify-send", text])
run(["notify-send", "timer: " + text])
def beep(time):
system(f"play -q -n synth {time} sin 880")