summaryrefslogtreecommitdiff
path: root/roles/cron/tasks/main.yml
blob: 74726b9adcd0389f6da4ac2041ea6bbf788989ef (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
35
36
37
38
39
---
- name: environment variables
  block:
    - name: xdg runtime env
      cron:
        name: XDG_RUNTIME_DIR
        env: true
        job: "{{ lookup('env', 'XDG_RUNTIME_DIR') }}"
    - name: xdg data env
      cron:
        name: XDG_DATA_HOME
        env: true
        job: "{{ lookup('env', 'XDG_DATA_HOME') }}"
    - 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 $XDG_DATA_HOME/backgrounds/* | shuf -n 1`'