Browse Source

desktop apps configurable

timer
parent
commit
985b799425
2 changed files with 13 additions and 10 deletions
  1. +6
    -0
      defaults/main.yaml
  2. +7
    -10
      tasks/desktop-apps.yaml

+ 6
- 0
defaults/main.yaml View File

@@ -51,3 +51,9 @@ mail_command: thunderbird


background_image: false background_image: false
home_copy_all_background_images: false home_copy_all_background_images: false

home_autostart_terminal: true
home_autostart_nm_applet: "{{ home_profile != 'vdesk' }}"
home_autostart_blueman_applet: "{{ home_profile != 'vdesk' }}"
home_autostart_pasystray: "{{ home_profile != 'vdesk' }}"
home_autostart_unclutter: "{{ home_profile == 'presentation' }}"

+ 7
- 10
tasks/desktop-apps.yaml View File

@@ -10,33 +10,30 @@
- name: autostart terminal - name: autostart terminal
systemd: systemd:
name: desktop-app@{{default_terminal}}.service name: desktop-app@{{default_terminal}}.service
enabled: true
enabled: "{{ home_autostart_terminal }}"
scope: user scope: user


- name: autostart nm-applet - name: autostart nm-applet
systemd: systemd:
name: desktop-app@nm-applet.service name: desktop-app@nm-applet.service
enabled: true
enabled: "{{ home_autostart_nm_applet }}"
scope: user scope: user
when: home_profile != "vdesk"


- name: autostart blueman-applet - name: autostart blueman-applet
systemd: systemd:
name: desktop-app@blueman-applet.service name: desktop-app@blueman-applet.service
enabled: true
enabled: "{{ home_autostart_blueman_applet }}"
scope: user scope: user
when: home_profile != "vdesk"


- name: autostart pasystray - name: autostart pasystray
systemd: systemd:
name: desktop-app@pasystray.service name: desktop-app@pasystray.service
enabled: true
enabled: "{{ home_autostart_pasystray }}"
scope: user scope: user
when: home_profile != "vdesk"
when:


- name: do not autostart unclutter
- name: autostart unclutter
systemd: systemd:
name: desktop-app@unclutter.service name: desktop-app@unclutter.service
enabled: false
enabled: "{{ home_autostart_unclutter }}"
scope: user scope: user
when: home_profile == "presentation"