Ver código fonte

desktop-apps

timer
pai
commit
38881a3b77
5 arquivos alterados com 43 adições e 8 exclusões
  1. +0
    -8
      tasks/apps.yaml
  2. +7
    -0
      tasks/clean.yaml
  3. +24
    -0
      tasks/desktop-apps.yaml
  4. +1
    -0
      tasks/main.yaml
  5. +11
    -0
      templates/desktop-apps/desktop-app.service.j2

+ 0
- 8
tasks/apps.yaml Ver arquivo

@@ -1,8 +0,0 @@
# {% if home_profile != "vdesk" %}
# blueman-applet &
# pasystray &
# nm-applet &
# {% endif %}
# {% if home_profile == "presentation" %}
# unclutter &
# {% endif %}

+ 7
- 0
tasks/clean.yaml Ver arquivo

@@ -39,6 +39,13 @@
scope: user
failed_when: false

- name: autostart terminal
systemd:
name: autostart-desktop-app@{{default_terminal}}.service
enabled: false
scope: user
failed_when: false

- name: remove vdesk user service
file:
path: ~/.config/systemd/user/vdesk@.service


+ 24
- 0
tasks/desktop-apps.yaml Ver arquivo

@@ -0,0 +1,24 @@
---

- name: desktop app service
template:
src: desktop-apps/desktop-app.service.j2
dest: ~/.config/systemd/user/desktop-app@.service
mode: 0755
notify: systemd daemon-reload

- name: autostart terminal
systemd:
name: desktop-app@{{default_terminal}}.service
enabled: true
scope: user

# {% if home_profile != "vdesk" %}
# blueman-applet
# pasystray
# nm-applet
# {% endif %}

# {% if home_profile == "presentation" %}
# unclutter
# {% endif %}

+ 1
- 0
tasks/main.yaml Ver arquivo

@@ -20,6 +20,7 @@
- import_tasks: rofi.yaml
- import_tasks: x11.yaml
- import_tasks: vnc.yaml
- import_tasks: desktop-apps.yaml
when: home_desktop

- name: flush handlers


+ 11
- 0
templates/desktop-apps/desktop-app.service.j2 Ver arquivo

@@ -0,0 +1,11 @@
{{ ansible_managed | comment }}

[Unit]
Description=desktop app
PartOf=graphical-session.target

[Service]
ExecStart=%i

[Install]
WantedBy=graphical-session.target