worktimer
1.0.0
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 啟動計時器後,它將以JSON格式記錄到${HOME}/.config/worktimer 。時間是以時間切片的形式記錄的:
[
{
"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(即移動鼠標或鍵入)或添加音符來中斷不活動。守護程序將當前時間寫為每小時磁盤,或者關閉時。