diff --git a/tasks/i3.yaml b/tasks/i3.yaml index c3dc585..3600d97 100644 --- a/tasks/i3.yaml +++ b/tasks/i3.yaml @@ -26,6 +26,12 @@ state: directory notify: i3 reload +- name: i3blocks config + template: + src: i3/i3blocks.config.j2 + dest: ~/.config/i3blocks/config + notify: i3 reload + - name: i3wm graphical-session service template: src: i3/i3wm.service.j2 diff --git a/templates/i3/i3blocks.config.j2 b/templates/i3/i3blocks.config.j2 index 32e4fe7..96367b9 100644 --- a/templates/i3/i3blocks.config.j2 +++ b/templates/i3/i3blocks.config.j2 @@ -30,13 +30,12 @@ command=/usr/share/i3blocks/$BLOCK_NAME separator_block_width=15 markup=none -{% if with_activity %} # activity [activity] -command=/opt/activity/i3blocks-activity -interval=persist +command=cat ~/.timer/activity.i3blocks +interval=once markup=pango -{% endif %} +signal=1 # hostinfo [hostinfo]