Create desktop file

This commit is contained in:
2025-06-14 10:02:42 -04:00
parent ae05facc86
commit ba1d3cdec3
2 changed files with 13 additions and 3 deletions

11
awam.desktop Normal file
View 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;

View File

@@ -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: