diff --git a/Manual.org b/Manual.org index f03cbdb..0353973 100644 --- a/Manual.org +++ b/Manual.org @@ -1590,6 +1590,21 @@ b'\xde\xad\xbe\xef' template: src: roles/yavdr-xorg/templates/systemd/user/tmux.service.j2 dest: '{{ vdr.home }}/.config/systemd/user/tmux.service' + +- name: create detect-second-display.service for the session + template: + src: templates/systemd/user/detect-second-display.service.j2 + dest: '{{ vdr.home }}/.config/systemd/user/detect-second-display.service' + +- name: create openbox-second.service for the session + template: + src: templates/systemd/user/openbox-second.service.j2 + dest: '{{ vdr.home }}/.config/systemd/user/openbox-second.service' + +- name: create osd2web.service for the session + template: + src: templates/systemd/user/osd2web.service.j2 + dest: '{{ vdr.home }}/.config/systemd/user/osd2web.service' #+END_SRC *** templates **** xorg diff --git a/roles/yavdr-xorg/tasks/desktop-session.yml b/roles/yavdr-xorg/tasks/desktop-session.yml index ad272eb..4af462d 100644 --- a/roles/yavdr-xorg/tasks/desktop-session.yml +++ b/roles/yavdr-xorg/tasks/desktop-session.yml @@ -70,3 +70,18 @@ template: src: roles/yavdr-xorg/templates/systemd/user/tmux.service.j2 dest: '{{ vdr.home }}/.config/systemd/user/tmux.service' + +- name: create detect-second-display.service for the session + template: + src: templates/systemd/user/detect-second-display.service.j2 + dest: '{{ vdr.home }}/.config/systemd/user/detect-second-display.service' + +- name: create openbox-second.service for the session + template: + src: templates/systemd/user/openbox-second.service.j2 + dest: '{{ vdr.home }}/.config/systemd/user/openbox-second.service' + +- name: create osd2web.service for the session + template: + src: templates/systemd/user/osd2web.service.j2 + dest: '{{ vdr.home }}/.config/systemd/user/osd2web.service' diff --git a/roles/yavdr-xorg/tasks/main.yml b/roles/yavdr-xorg/tasks/main.yml index 3efa34f..077c2c0 100644 --- a/roles/yavdr-xorg/tasks/main.yml +++ b/roles/yavdr-xorg/tasks/main.yml @@ -19,6 +19,11 @@ src: templates/vdr-xorg.conf dest: /etc/systemd/system/vdr.service.d/vdr-xorg.conf +- name: load environment file for vdr.service + template: + src: templates/systemd/vdr-environ.j2 + dest: /etc/systemd/system/vdr.service.d/load-environ.conf + - name: set a login shell for the user vdr user: name: '{{ vdr.user }}' @@ -28,12 +33,6 @@ groups: '{{ vdr.group }}' append: yes - -- name: add environment file for vdr.service - template: - src: templates/systemd/vdr-environ.j2 - dest: /etc/systemd/system/vdr.service.d/load-environ.conf - - name: install packages for xorg apt: name: '{{ item }}'