From 325fe411e89cf7f6410d32dd637615b334a9b63c Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Sat, 9 Jan 2021 23:07:28 +0100 Subject: [PATCH] xsession reload service --- tasks/x11.yaml | 13 +++++++++++++ templates/x11/xsession-reload.service.j2 | 11 +++++++++++ 2 files changed, 24 insertions(+) create mode 100644 templates/x11/xsession-reload.service.j2 diff --git a/tasks/x11.yaml b/tasks/x11.yaml index 2d41d50..2e78101 100644 --- a/tasks/x11.yaml +++ b/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 diff --git a/templates/x11/xsession-reload.service.j2 b/templates/x11/xsession-reload.service.j2 new file mode 100644 index 0000000..c6aa5be --- /dev/null +++ b/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