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(即移动鼠标或键入)或添加音符来中断不活动。守护程序将当前时间写为每小时磁盘,或者关闭时。