From 5224fd0978c9f954462c2a950263a9da9c56c63b Mon Sep 17 00:00:00 2001 From: developomp Date: Thu, 17 Nov 2022 17:27:31 +0900 Subject: [PATCH] add activitywatch setup - close #108 --- home/.config/autostart/activitywatch.desktop | 8 ++++++++ src/setup/apps/activitywatch.py | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 home/.config/autostart/activitywatch.desktop create mode 100644 src/setup/apps/activitywatch.py diff --git a/home/.config/autostart/activitywatch.desktop b/home/.config/autostart/activitywatch.desktop new file mode 100644 index 0000000..c164f97 --- /dev/null +++ b/home/.config/autostart/activitywatch.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Encoding=UTF-8 +Name=ActivityWatch +Comment=ActivityWatch +Terminal=false +Categories=Utility; +Exec=aw-qt diff --git a/src/setup/apps/activitywatch.py b/src/setup/apps/activitywatch.py new file mode 100644 index 0000000..3a4326e --- /dev/null +++ b/src/setup/apps/activitywatch.py @@ -0,0 +1,8 @@ +from src.util import paru_install, copy_file + +desc = "Local activity monitor" + + +def setup(): + paru_install("activitywatch-bin") + copy_file("home/.config/autostart/activitywatch.desktop")