From 85c761bf696598632dd7cf195f838e23bd880ad1 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Sat, 16 Jan 2021 20:42:24 +0100 Subject: [PATCH] new timer setup --- tasks/main.yaml | 1 + tasks/timer.yaml | 16 ++++++++++++++++ templates/i3/i3.config.j2 | 5 ++--- vars/main.yaml | 2 ++ 4 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 tasks/timer.yaml diff --git a/tasks/main.yaml b/tasks/main.yaml index b1bdad9..842ee6c 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -8,6 +8,7 @@ - import_tasks: pulseaudio.yaml - import_tasks: screensaver.yaml - import_tasks: git.yaml +- import_tasks: timer.yaml - import_tasks: kanboard.yaml diff --git a/tasks/timer.yaml b/tasks/timer.yaml new file mode 100644 index 0000000..b40e821 --- /dev/null +++ b/tasks/timer.yaml @@ -0,0 +1,16 @@ +--- + +- name: timer directory + file: + path: "{{timer_folder}}" + state: directory + +- name: timer activity timeclock directory + file: + path: "{{timer_folder}}/activity.timeclock.d" + state: directory + +- name: timer activity list directory + file: + path: "{{timer_folder}}/activity.lists" + state: directory diff --git a/templates/i3/i3.config.j2 b/templates/i3/i3.config.j2 index e07de08..2745f0d 100644 --- a/templates/i3/i3.config.j2 +++ b/templates/i3/i3.config.j2 @@ -217,9 +217,8 @@ mode "session" { ### Timer mode "timer" { - bindsym a exec "~/bin/timer activity"; mode "default"; {{on_focus_workspace}} - bindsym e exec "~/bin/timer end"; mode "default"; {{on_focus_workspace}} - bindsym r exec "~/bin/timer update"; mode "default"; {{on_focus_workspace}} + bindsym a exec "~/bin/timer select_activity"; mode "default"; {{on_focus_workspace}} + bindsym e exec "~/bin/timer end_activity"; mode "default"; {{on_focus_workspace}} bindsym u exec "~/bin/timer uniklinik"; mode "default"; {{on_focus_workspace}} # back to normal: Escape diff --git a/vars/main.yaml b/vars/main.yaml index f4f39db..0208702 100644 --- a/vars/main.yaml +++ b/vars/main.yaml @@ -130,3 +130,5 @@ points_down_command: fish -c "echo (expr (cat ~/.points) - 1 > ~/.points) (rofi background_image_path: ~/.backgrounds/{{background_image|basename}} background_command: feh --no-fehbg --bg-fill {{background_image_path}} + +timer_folder: ~/.timer