Não considerar o tempo decorrido com o monitor desligado.

Asked by Vinin

Gostaria que essa função fosse implementada no programa. Ou que pudessem me ajudar a fazer isso.

Obrigado.

Question information

Language:
Brazilian Portuguese Edit question
Status:
Solved
For:
timekpr-revived Edit question
Assignee:
No assignee Edit question
Solved by:
Vinin
Solved:
Last query:
Last reply:
Revision history for this message
Vinin (maquiavelho) said :
#1

Eu tentei este script.

 #!/bin/bash

u=`who -u | cut -d" " -f 1 -s`
STATUS=`xset -q | grep 'Monitor is Off'`
if [ "$STATUS" == " Monitor is Off" ]
then
let TIME="$(cat /var/lib/timekpr/$u.time)"
#echo $TIME
TIME="`expr $TIME - 60`"
#echo $TIME
$(echo $TIME> /var/lib/timekpr/$u.time)
fi

Revision history for this message
Eduards Bezverhijs (mjasnik) said :
#2

As I mentioned in announcement, screen lock time or time session is inactive will not be counted in next major version I'm working on right now.
No ETA yet, though.

Revision history for this message
Vinin (maquiavelho) said :
#3

Thank you. Long life the project.