浏览代码

xsession reload service

systemd-xsession
父节点
当前提交
325fe411e8
共有 2 个文件被更改,包括 24 次插入0 次删除
  1. +13
    -0
      tasks/x11.yaml
  2. +11
    -0
      templates/x11/xsession-reload.service.j2

+ 13
- 0
tasks/x11.yaml 查看文件

@@ -22,6 +22,19 @@
dest: ~/.xsession.reload.fish
mode: 0755

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

- name: xsession reload service enabled
systemd:
name: xsession-reload.service
enabled: true
scope: user

- name: xsession systemd target
template:
src: x11/xsession.target.j2


+ 11
- 0
templates/x11/xsession-reload.service.j2 查看文件

@@ -0,0 +1,11 @@
[Unit]
Description=X session reload settings
PartOf=graphical-session.target

[Service]
ExecStart=%h/.xsession.reload.fish
#Restart=always
#RestartSec=60s

[Install]
WantedBy=graphical-session.target