Create desktop file
This commit is contained in:
11
awam.desktop
Normal file
11
awam.desktop
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Name=ActivityWatch Amazing Marvin Watcher
|
||||||
|
Comment=Tracks Amazing Marvin tasks in ActivityWatch
|
||||||
|
Exec=poetry run awam
|
||||||
|
Path=/home/felixm/dev/awam
|
||||||
|
Icon=activitywatch
|
||||||
|
StartupNotify=false
|
||||||
|
NoDisplay=true
|
||||||
|
X-GNOME-Autostart-enabled=true
|
||||||
|
Categories=System;Monitor;
|
||||||
@@ -79,7 +79,7 @@ def main() -> None:
|
|||||||
print("Press Ctrl+C to stop")
|
print("Press Ctrl+C to stop")
|
||||||
|
|
||||||
current_task_id = None
|
current_task_id = None
|
||||||
heartbeat_interval = 10 # seconds
|
heartbeat_interval = 30 # seconds
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with client:
|
with client:
|
||||||
@@ -99,9 +99,8 @@ def main() -> None:
|
|||||||
client.heartbeat(
|
client.heartbeat(
|
||||||
bucket_id,
|
bucket_id,
|
||||||
event,
|
event,
|
||||||
pulsetime=heartbeat_interval + 5,
|
pulsetime=int(heartbeat_interval * 1.5),
|
||||||
queued=True,
|
queued=True,
|
||||||
commit_interval=30.0,
|
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
if current_task_id is not None:
|
if current_task_id is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user