Przeglądaj źródła

workspace app service

timer
rodzic
commit
6cafdfb01d
3 zmienionych plików z 21 dodań i 2 usunięć
  1. +7
    -0
      tasks/workspaces.yaml
  2. +2
    -2
      templates/i3/i3.config.j2
  3. +12
    -0
      templates/workspaces/workspace-app.service.j2

+ 7
- 0
tasks/workspaces.yaml Wyświetl plik

@@ -1,5 +1,12 @@
---

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

- name: workspaces directory
file:
path: ~/.workspaces


+ 2
- 2
templates/i3/i3.config.j2 Wyświetl plik

@@ -401,10 +401,10 @@ assign [class="^thunderbird$"] → mail
# vncviewer workspaces
{% for workspace in workspaces|dict2items|json_query("[?value.type=='vncviewer'].key") %}
{% set ws = workspaces[workspace] %}
assign [class="^(?:Tiger)?V[Nn][Cc] ?[Vv]iewer$" title="^{{ws.host}}:"] → {{workspace}}
assign [class="^(?:Tiger)?V[Nn][Cc] ?[Vv]iewer$" title="^{{ws.host}}:{{ws.display|default(home_vncserver_display_number)}}"] → {{workspace}}
{% endfor %}

### Autostart
### Autostart.display|default(home_vncserver_display_number)

#exec "{{default_terminal}}"



+ 12
- 0
templates/workspaces/workspace-app.service.j2 Wyświetl plik

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

[Unit]
Description=workspace app
PartOf=graphical-session.target
After=xsession-reload.service

[Service]
ExecStart=%h/.workspaces/%i.space

[Install]
WantedBy=graphical-session.target