worktimer บันทึกชั่วโมงที่ใช้งานอยู่ใน x11 เพื่อให้แผ่นเวลาการเขียนน้อยลงของความเจ็บปวดในตูด
ทำงานบน Linux ด้วย X11 เท่านั้น
คุณต้องติดตั้ง X11 LIBS
makeสร้างจากแหล่งที่มาหรือดาวน์โหลดไบนารีก่อน
sudo make installสร้างจากแหล่งที่มาหรือดาวน์โหลดไบนารีก่อน
make redeploy-service
อีกทางเลือกหนึ่งคว้าไฟล์บริการจากส่วนการเปิดตัวและเริ่มด้วยตนเอง
ใช้ worktimer help เพื่อดูความช่วยเหลือ ใช้ worktimer help [COMMAND] เพื่อดูความช่วยเหลือสำหรับคำสั่งใด ๆ
เหล่านี้เป็นคำสั่งที่ใช้กันมากที่สุด:
worktimer start # Starts recording times
worktimer stop # Stops recording times
worktimer note " Some text " # Records a note in the current time slice so you know what you did at that time
worktimer status # Prints the status of the timer
worktimer report YYYY-MM-DD # Outputs stats for a given day เมื่อตัวจับเวลาเริ่มต้นจะบันทึกเวลาเป็น ${HOME}/.config/worktimer ในรูปแบบ JSON เวลาจะถูกบันทึกในรูปแบบของเวลา:
[
{
"Started" : "2022-05-09T20:09:58.753476314+02:00" ,
"Ended" : "2022-05-09T20:10:02.008421633+02:00" ,
"Duration" : 3254945309 ,
"Notes" : null ,
"StartedBy" : "Manual start" ,
"EndedBy" : "X11 idle"
} ,
{
"Started" : "2022-05-09T20:10:36.579078677+02:00" ,
"Ended" : "2022-05-09T20:11:51.624152165+02:00" ,
"Duration" : 75045073468 ,
"Notes" : null ,
"StartedBy" : "X11 activity" ,
"EndedBy" : "X11 idle"
} ,
{
"Started" : "2022-05-09T20:11:52.997820441+02:00" ,
"Ended" : "2022-05-09T20:11:55.20356786+02:00" ,
"Duration" : 2205747419 ,
"Notes" : [
"Did a thing"
] ,
"StartedBy" : "Note added" ,
"EndedBy" : "Manual stop"
}
]ทุกครั้งที่ผู้ใช้หยุดทำงานหรือผู้ใช้ไม่ได้ใช้งานเป็นเวลา 5 นาทีจะมีการบันทึกชิ้นเวลา การไม่ใช้งานถูกขัดจังหวะโดยใช้ X11 (เช่นการย้ายเมาส์หรือการพิมพ์ของคุณ) หรือโดยการเพิ่มบันทึกย่อ Daemon เขียนเวลาปัจจุบันไปที่ดิสก์ทุกชั่วโมงหรือเมื่อมันปิด