Kaynağa Gözat

workspace app service

timer
ebeveyn
işleme
6cafdfb01d
3 değiştirilmiş dosya ile 21 ekleme ve 2 silme
  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 Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

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