diff --git a/tasks/eralitex.yaml b/tasks/eralitex.yaml index cdf0f3f..616462b 100644 --- a/tasks/eralitex.yaml +++ b/tasks/eralitex.yaml @@ -88,11 +88,6 @@ src: "{{eralitex_profile}}" state: link -- name: points counter - copy: - content: 0 - dest: "{{eralitex_directory}}/points" - force: no - name: background image directory file: diff --git a/tasks/main.yaml b/tasks/main.yaml index fb1d377..7e3cee5 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -7,6 +7,8 @@ - import_tasks: pulseaudio.yaml - import_tasks: git.yaml +- import_tasks: points.yaml + - import_tasks: eralitex.yaml when: home_eralitex - import_tasks: x11.yaml diff --git a/tasks/points.yaml b/tasks/points.yaml new file mode 100644 index 0000000..f2edf78 --- /dev/null +++ b/tasks/points.yaml @@ -0,0 +1,7 @@ +--- + +- name: points counter + copy: + content: 0 + dest: "{{eralitex_directory}}/points" + force: no diff --git a/templates/i3.config.j2 b/templates/i3.config.j2 index 2f30c54..aed96d5 100644 --- a/templates/i3.config.j2 +++ b/templates/i3.config.j2 @@ -96,11 +96,11 @@ bindsym $mod+r mode resize bindsym $mod+x exec xkill # points -bindsym $mod+minus exec {{eralitex_points_down_command}} -bindsym $mod+plus exec {{eralitex_points_up_command}} +bindsym $mod+minus exec {{points_down_command}} +bindsym $mod+plus exec {{points_up_command}} # unlearn -#exec {{eralitex_points_down_command}} +#exec {{points_down_command}} ## stuff that is available in default and remote mode diff --git a/vars/main.yaml b/vars/main.yaml index 1e62b63..4ff76c0 100644 --- a/vars/main.yaml +++ b/vars/main.yaml @@ -112,8 +112,8 @@ eralitex_letter_workspace_keymaps: - keysym: ssharp workspace: 52:ß -eralitex_points_up_command: fish -c "echo (expr (cat ~/.eralitex/points) + 1 > ~/.eralitex/points) (i3-nagbar -m (cat ~/.eralitex/points)\ €)" -eralitex_points_down_command: fish -c "echo (expr (cat ~/.eralitex/points) - 1 > ~/.eralitex/points) (i3-nagbar -m (cat ~/.eralitex/points)\ €)" +points_up_command: fish -c "echo (expr (cat ~/.eralitex/points) + 1 > ~/.eralitex/points) (i3-nagbar -m (cat ~/.eralitex/points)\ Ω)" +points_down_command: fish -c "echo (expr (cat ~/.eralitex/points) - 1 > ~/.eralitex/points) (i3-nagbar -m (cat ~/.eralitex/points)\ Ω)" eralitex_background_image_path: "{{eralitex_directory}}/backgrounds/{{eralitex_background_image|basename}}" eralitex_background_command: feh --no-fehbg --bg-fill {{eralitex_background_image_path}}