Add redshift with autostart to the available roles

This commit is contained in:
Johanna Dorothea Reichmann 2019-05-02 20:03:49 +02:00
parent 383abb4458
commit 988411340e
Signed by: transcaffeine
GPG Key ID: 03624C433676E465
3 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,23 @@
---
- name: Install redshift
package:
name: redshift
state: present
- name: Ensure .config folder for redshift exists
file:
path: ~/.config/redshift
state: directory
- name: Template redshift config
template:
src: redshift.conf.j2
dest: ~/.config/redshift/redshift.conf
- name: Template redshift autostart file
template:
src: redshift-gtk.desktop.j2
dest: redshift-gtk.desktop

View File

@ -0,0 +1,12 @@
[Desktop Entry]
Version=1.0
Name=Redshift
Exec=redshift-gtk
Icon=redshift
Terminal=false
Type=Application
Categories=Utility;
StartupNotify=true
Hidden=false
X-GNOME-Autostart-enabled=true