]> git.immae.eu Git - perso/Immae/Config/Ansible.git/commitdiff
Move background files to XDG_DATA_HOME
authorIsmaël Bouya <ismael.bouya@fretlink.com>
Sun, 18 Nov 2018 12:14:52 +0000 (13:14 +0100)
committerIsmaël Bouya <ismael.bouya@fretlink.com>
Sun, 18 Nov 2018 12:20:49 +0000 (13:20 +0100)
roles/cron/tasks/main.yml

index b93c0b77764d36d869d900f0f792ff8857f4c56a..74726b9adcd0389f6da4ac2041ea6bbf788989ef 100644 (file)
@@ -6,6 +6,11 @@
         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
@@ -30,5 +35,5 @@
   cron:
     name: change wallpaper
     minute: 0
-    job: 'pcmanfm -w `ls -d -1 $HOME/Backgrounds/* | shuf -n 1`'
+    job: 'pcmanfm -w `ls -d -1 $XDG_DATA_HOME/backgrounds/* | shuf -n 1`'