From 70d64b2423cd9f93c3e41ea51b895820e0a370b1 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Tue, 30 Jun 2020 17:06:57 +0200 Subject: [PATCH] points unit sign --- tasks/eralitex.yaml | 5 ----- tasks/main.yaml | 2 ++ tasks/points.yaml | 7 +++++++ templates/i3.config.j2 | 6 +++--- vars/main.yaml | 4 ++-- 5 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 tasks/points.yaml 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}}