Markus Katharina Brechtel пре 3 година
родитељ
комит
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";