Преглед на файлове

desktop apps configurable

timer
Markus Katharina Brechtel преди 3 години
родител
ревизия
985b799425
променени са 2 файла, в които са добавени 13 реда и са изтрити 10 реда
  1. +6
    -0
      defaults/main.yaml
  2. +7
    -10
      tasks/desktop-apps.yaml

+ 6
- 0
defaults/main.yaml Целия файл

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

background_image: 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 Целия файл

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

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

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

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

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