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"