setup ActivityWatch

This commit is contained in:
Smirnov Oleksandr 2024-04-19 03:41:12 +03:00
parent 2ef648e77e
commit 490d5d43d6
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,20 @@
[server]
host = "localhost"
port = 5600
[awatcher]
idle-timeout-seconds=120
poll-time-idle-seconds=5
poll-time-window-seconds=1
[[awatcher.filters]]
match-app-id = "Spotify"
replace-app-id = "Spotify"
[[awatcher.filters]]
match-app-id = "org.pwmt.zathura"
replace-app-id = "Zathura"
[[awatcher.filters]]
match-app-id = "Brave-browser"
replace-title = "Brave"

View file

@ -18,6 +18,9 @@ exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESK
exec-once = swayidle -w timeout 120 '$lock' timeout 1200 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep '$lock'
exec-once = wlsunset -S 10:00 -s 19:00
exec-once = ~/.config/hypr/bat.sh
exec-once = /home/olex/code/awatcher/target/release/awatcher
exec-once = /home/olex/code/awatcher/target/release/aw-server
# }}}
# inputs {{{
input {