From f7abb0843f00ee666ea54f4a6fa48164d09b9f54 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 8 Jan 2024 16:44:46 +0100 Subject: alle Ansagen 30 Sekunden eher --- computer-time-limit | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/computer-time-limit b/computer-time-limit index 78bb2a1..85e8974 100755 --- a/computer-time-limit +++ b/computer-time-limit @@ -74,31 +74,31 @@ check_time() { sende_msg stop loginctl session-status | sed -n 's/ .*$//;1p' | xargs -r loginctl terminate-session fi - if [ "${noch}" -lt 3600 ] && [ "${noch}" -gt 3540 ]; then + if [ "${noch}" -lt 3630 ] && [ "${noch}" -gt 3570 ]; then espeak-ng -vde -w /tmp/stunde.wav 'noch eine Stunde' xmessage -nearmouse 'Noch 1 Stunde' & play /tmp/stunde.wav sleep 1m fi - if [ "${noch}" -lt 1800 ] && [ "${noch}" -gt 1740 ]; then + if [ "${noch}" -lt 1830 ] && [ "${noch}" -gt 1770 ]; then espeak-ng -vde -w /tmp/halbe_stunde.wav 'noch eine halbe Stunde' xmessage -nearmouse 'Noch 1/2 Stunde' & play /tmp/halbe_stunde.wav sleep 1m fi - if [ "${noch}" -lt 600 ] && [ "${noch}" -gt 540 ]; then + if [ "${noch}" -lt 630 ] && [ "${noch}" -gt 570 ]; then espeak-ng -vde -w /tmp/zehn.wav 'noch zehn Minuten' xmessage -nearmouse 'Noch 10 Minuten' & play /tmp/zehn.wav sleep 1m fi - if [ "${noch}" -lt 300 ] && [ "${noch}" -gt 240 ]; then + if [ "${noch}" -lt 330 ] && [ "${noch}" -gt 270 ]; then espeak-ng -vde -w /tmp/fuenf.wav 'noch fünf Minuten' xmessage -nearmouse 'Noch 5 Minuten' & play /tmp/fuenf.wav sleep 1m fi - if [ "${noch}" -lt 60 ] && [ "${noch}" -gt 30 ]; then + if [ "${noch}" -lt 90 ] && [ "${noch}" -gt 30 ]; then espeak-ng -vde -w /tmp/eins.wav 'noch eine Minute' xmessage -nearmouse 'Noch 1 Minute' & play /tmp/eins.wav -- cgit v1.2.3-70-g09d2