From 681625b060bb5f3c29719fbeb54c4f9ed602e5b3 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Thu, 3 Oct 2019 21:41:37 +0100 Subject: [PATCH] Enable redshift-gtk at login --- roles/home/files/redshift-gtk.desktop | 16 ++++++++++++++++ roles/home/tasks/dirs.yml | 4 ++++ roles/home/tasks/dotfiles.yml | 6 +++++- 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 roles/home/files/redshift-gtk.desktop diff --git a/roles/home/files/redshift-gtk.desktop b/roles/home/files/redshift-gtk.desktop new file mode 100644 index 0000000..4cc1775 --- /dev/null +++ b/roles/home/files/redshift-gtk.desktop @@ -0,0 +1,16 @@ +[Desktop Entry] +Version=1.0 +Name=Redshift +Name[en_GB]=Redshift +GenericName=Color temperature adjustment +GenericName[en_GB]=Colour temperature adjustment +Comment=Color temperature adjustment tool +Comment[en_GB]=Colour temperature adjustment tool +Exec=redshift-gtk +Icon=redshift +Terminal=false +Type=Application +Categories=Utility; +StartupNotify=true +Hidden=false +X-GNOME-Autostart-enabled=true diff --git a/roles/home/tasks/dirs.yml b/roles/home/tasks/dirs.yml index b78aa89..1f01bec 100644 --- a/roles/home/tasks/dirs.yml +++ b/roles/home/tasks/dirs.yml @@ -15,3 +15,7 @@ file: path: "{{ ansible_env.HOME }}/.local/share/applications" state: directory +- name: Create user autostart directory + file: + path: "{{ ansible_env.HOME }}/.config/autostart" + state: directory diff --git a/roles/home/tasks/dotfiles.yml b/roles/home/tasks/dotfiles.yml index bee187d..f2af432 100644 --- a/roles/home/tasks/dotfiles.yml +++ b/roles/home/tasks/dotfiles.yml @@ -23,7 +23,11 @@ copy: src: tmux.conf dest: "{{ ansible_env.HOME }}/.tmux.conf" -- name: Copy redshift.con +- name: Copy redshift.conf copy: src: redshift.conf dest: "{{ ansible_env.HOME }}/.config/redshift.conf" +- name: Auto start redshift-gtk + copy: + src: redshift-gtk.desktop + dest: "{{ ansible_env.HOME }}/.config/autostart/redshift-gtk.desktop"