Add redshift with autostart to the available roles
This commit is contained in:
parent
383abb4458
commit
988411340e
23
roles/redshift/tasks/main.yml
Normal file
23
roles/redshift/tasks/main.yml
Normal 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
|
||||
|
12
roles/redshift/templates/redshift-gtk.desktop.j2
Normal file
12
roles/redshift/templates/redshift-gtk.desktop.j2
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user