From 2314d90c2ceba8059461cc08e7ccdd34f2a63b88 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Sun, 10 Jan 2021 07:34:32 +0100 Subject: [PATCH] screenlayout --- tasks/main.yaml | 1 + tasks/screenlayout.yaml | 14 ++++++++++++++ templates/screenlayout/screenlayout.service.j2 | 14 ++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 tasks/screenlayout.yaml create mode 100644 templates/screenlayout/screenlayout.service.j2 diff --git a/tasks/main.yaml b/tasks/main.yaml index 8b52008..b1bdad9 100644 --- a/tasks/main.yaml +++ b/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 diff --git a/tasks/screenlayout.yaml b/tasks/screenlayout.yaml new file mode 100644 index 0000000..d1a4241 --- /dev/null +++ b/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 diff --git a/templates/screenlayout/screenlayout.service.j2 b/templates/screenlayout/screenlayout.service.j2 new file mode 100644 index 0000000..22eee07 --- /dev/null +++ b/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