瀏覽代碼

vnc server config

timer
父節點
當前提交
77e7a62186
共有 3 個文件被更改,包括 11 次插入1 次删除
  1. +1
    -1
      files/bin/on-space-shortcut
  2. +6
    -0
      tasks/vnc.yaml
  3. +4
    -0
      templates/vnc/vnc.conf.j2

+ 1
- 1
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

+ 6
- 0
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' )}}"


+ 4
- 0
templates/vnc/vnc.conf.j2 查看文件

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

$desktopName = "{{inventory_hostname}}$ENV{DISPLAY}";
$geometry = "1920x1200";