浏览代码

Merge branch 'master' of git.thengo.net:ka/ansible-role-home

timer
父节点
当前提交
079fcbe746
共有 3 个文件被更改,包括 29 次插入0 次删除
  1. +1
    -0
      tasks/main.yaml
  2. +14
    -0
      tasks/screenlayout.yaml
  3. +14
    -0
      templates/screenlayout/screenlayout.service.j2

+ 1
- 0
tasks/main.yaml 查看文件

@@ -18,6 +18,7 @@
- import_tasks: workspaces.yaml
- import_tasks: background.yaml
- import_tasks: rofi.yaml
- import_tasks: screenlayout.yaml
- import_tasks: x11.yaml
- import_tasks: vnc.yaml
- import_tasks: desktop-apps.yaml


+ 14
- 0
tasks/screenlayout.yaml 查看文件

@@ -0,0 +1,14 @@
---

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

# - name: autoconfigure default screenlayout
# systemd:
# name: screenlayout@default.service
# enabled: true
# scope: user

+ 14
- 0
templates/screenlayout/screenlayout.service.j2 查看文件

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

[Unit]
Description=screenlayout service
PartOf=graphical-session.target

[Service]
Type=oneshot
ExecStart=%h/.screenlayout/%i.sh
Before=desktop-app@barrier.service
Before=xsession-reload.service

[Install]
WantedBy=graphical-session.target