Procházet zdrojové kódy

workspace app service

timer
rodič
revize
6cafdfb01d
3 změnil soubory, kde provedl 21 přidání a 2 odebrání
  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 Zobrazit soubor

@@ -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 - name: workspaces directory
file: file:
path: ~/.workspaces path: ~/.workspaces


+ 2
- 2
templates/i3/i3.config.j2 Zobrazit soubor

@@ -401,10 +401,10 @@ assign [class="^thunderbird$"] → mail
# vncviewer workspaces # vncviewer workspaces
{% for workspace in workspaces|dict2items|json_query("[?value.type=='vncviewer'].key") %} {% for workspace in workspaces|dict2items|json_query("[?value.type=='vncviewer'].key") %}
{% set ws = workspaces[workspace] %} {% 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 %} {% endfor %}


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


#exec "{{default_terminal}}" #exec "{{default_terminal}}"




+ 12
- 0
templates/workspaces/workspace-app.service.j2 Zobrazit soubor

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