summaryrefslogtreecommitdiff
path: root/roles/cron/tasks/main.yml
blob: b93c0b77764d36d869d900f0f792ff8857f4c56a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
- name: environment variables
  block:
    - name: xdg runtime env
      cron:
        name: XDG_RUNTIME_DIR
        env: true
        job: "{{ lookup('env', 'XDG_RUNTIME_DIR') }}"
    - name: xdg current desktop env
      cron:
        name: XDG_CURRENT_DESKTOP
        env: true
        job: LXDE
    - name: desktop session env
      cron:
        name: DESKTOP_SESSION
        env: true
        job: LXDE
    - name: display env
      cron:
        name: DISPLAY
        env: true
        job: ":0"
    - name: xauthority env
      cron:
        name: XAUTHORITY
        env: true
        job: "{{ lookup('env', 'XDG_RUNTIME_DIR') }}/Xauthority"
- name: change wallpaper
  cron:
    name: change wallpaper
    minute: 0
    job: 'pcmanfm -w `ls -d -1 $HOME/Backgrounds/* | shuf -n 1`'