Browse Source

screenlayout

timer
parent
commit
2314d90c2c
3 changed files with 29 additions and 0 deletions
  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 View File

@@ -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 View File

@@ -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 View File

@@ -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