summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2024-01-08 16:44:46 +0100
committerErich Eckner <git@eckner.net>2024-01-08 16:44:46 +0100
commitf7abb0843f00ee666ea54f4a6fa48164d09b9f54 (patch)
tree1c0ee7bb4a48d057dd186881d910f434380d9cc0
parent1a5819201a5ae656e97f1e9b202d9c1f57aff395 (diff)
downloadcomputer-time-limit-f7abb0843f00ee666ea54f4a6fa48164d09b9f54.tar.xz
alle Ansagen 30 Sekunden eher
-rwxr-xr-xcomputer-time-limit10
1 files 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