diff --git a/files/bin/on-space-shortcut b/files/bin/on-space-shortcut index 369e8ed..f1c8291 100644 --- a/files/bin/on-space-shortcut +++ b/files/bin/on-space-shortcut @@ -4,5 +4,5 @@ set ws (i3-msg -t get_workspaces | jq --raw-output '.[]|select(.focused == true) set script ~/.workspaces/$ws.space if type -q $script - $script + systemctl --user restart workspace-app@$ws.service end diff --git a/tasks/vnc.yaml b/tasks/vnc.yaml index 8676edd..08faf3d 100644 --- a/tasks/vnc.yaml +++ b/tasks/vnc.yaml @@ -6,6 +6,12 @@ state: directory mode: 0700 +- name: vnc server config + template: + src: vnc/vnc.conf.j2 + dest: ~/.vnc/vnc.conf + mode: 0644 + - name: vnc passwd copy: content: "{{ lookup('pipe','pwgen 24 1' )}}" diff --git a/templates/vnc/vnc.conf.j2 b/templates/vnc/vnc.conf.j2 new file mode 100644 index 0000000..390d58b --- /dev/null +++ b/templates/vnc/vnc.conf.j2 @@ -0,0 +1,4 @@ +{{ ansible_managed | comment }} + +$desktopName = "{{inventory_hostname}}$ENV{DISPLAY}"; +$geometry = "1920x1200";