summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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