Selaa lähdekoodia

new timer setup

timer
vanhempi
commit
85c761bf69
4 muutettua tiedostoa jossa 21 lisäystä ja 3 poistoa
  1. +1
    -0
      tasks/main.yaml
  2. +16
    -0
      tasks/timer.yaml
  3. +2
    -3
      templates/i3/i3.config.j2
  4. +2
    -0
      vars/main.yaml

+ 1
- 0
tasks/main.yaml Näytä tiedosto

@@ -8,6 +8,7 @@
- import_tasks: pulseaudio.yaml
- import_tasks: screensaver.yaml
- import_tasks: git.yaml
- import_tasks: timer.yaml

- import_tasks: kanboard.yaml



+ 16
- 0
tasks/timer.yaml Näytä tiedosto

@@ -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

+ 2
- 3
templates/i3/i3.config.j2 Näytä tiedosto

@@ -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


+ 2
- 0
vars/main.yaml Näytä tiedosto

@@ -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