diff --git a/.chezmoi.yaml.tmpl b/.chezmoi.yaml.tmpl index 5041b61..f247ab5 100644 --- a/.chezmoi.yaml.tmpl +++ b/.chezmoi.yaml.tmpl @@ -22,6 +22,7 @@ data: xsane: {{ and $desktop (promptBool "xsane" false) }} vpn: {{ and $desktop (promptBool "vpn" false) }} seafile: {{ and $desktop (promptBool "seafile" false) }} + activitywatch: {{ and $desktop (promptBool "activitywatch" false) }} conky_alias: {{ if $desktop -}}{{ (promptString "conky" "none") }}{{ else }}none{{ end }} rofi_alias: {{ if $desktop -}}{{ (promptString "rofi-alias" "none") }}{{ else }}none{{ end }} development: diff --git a/dot_bin/executable_aw-start b/dot_bin/executable_aw-start new file mode 100644 index 0000000..31ab2e6 --- /dev/null +++ b/dot_bin/executable_aw-start @@ -0,0 +1,7 @@ +#! /usr/bin/env bash + +# start activity watch without QT + +/usr/bin/aw-server & +/usr/bin/aw-watcher-afk & +/usr/bin/aw-watcher-window & diff --git a/dot_bin/executable_aw-stop b/dot_bin/executable_aw-stop new file mode 100644 index 0000000..b138bbb --- /dev/null +++ b/dot_bin/executable_aw-stop @@ -0,0 +1,5 @@ +#! /usr/bin/env bash + +# kill all activity-watch deamons + +pkill aw- diff --git a/dot_config/X11/xinitrc.tmpl b/dot_config/X11/xinitrc.tmpl index 4350666..43f368c 100644 --- a/dot_config/X11/xinitrc.tmpl +++ b/dot_config/X11/xinitrc.tmpl @@ -34,6 +34,9 @@ emacs-start & {{ if .features.seafile -}} seafile-applet > /dev/null 2>&1 & {{- end }} +{{ if .features.activitywatch -}} +aw-start > /dev/null 2>&1 & +{{- end }} flameshot > /dev/null 2>&1 & rofi-bw -d 3600 &