From 74210dcea8616c41a27307d6926747cacd33f55f Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Thu, 11 Jun 2020 11:09:17 +0100 Subject: [PATCH] Add a launcher for the to-do list --- roles/home-gui/tasks/dotfiles.yml | 4 ++++ roles/home-gui/templates/todo.desktop | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 roles/home-gui/templates/todo.desktop diff --git a/roles/home-gui/tasks/dotfiles.yml b/roles/home-gui/tasks/dotfiles.yml index 0557d6f..6610473 100644 --- a/roles/home-gui/tasks/dotfiles.yml +++ b/roles/home-gui/tasks/dotfiles.yml @@ -31,3 +31,7 @@ src: "xrdb.desktop" dest: "{{ ansible_env.HOME }}/.config/autostart/xrdb.desktop" when: ansible_distribution == "Fedora" or ansible_distribution == "Debian" +- name: Add to-do list launcher + template: + src: todo.desktop + dest: "{{ ansible_env.HOME }}/.local/share/applications/todo.desktop" diff --git a/roles/home-gui/templates/todo.desktop b/roles/home-gui/templates/todo.desktop new file mode 100644 index 0000000..afc498a --- /dev/null +++ b/roles/home-gui/templates/todo.desktop @@ -0,0 +1,8 @@ +#!/usr/bin/env xdg-open + +[Desktop Entry] +Name=To-do list +Exec=/usr/bin/xdg-open {{ ansible_env.HOME }}/.todo.org +Icon=task-due +Type=Application +Categories=Office