This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
ka
/
ansible-role-home
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
vnc server config
timer
Markus Katharina Brechtel
3 years ago
parent
457366832b
commit
77e7a62186
3 changed files
with
11 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
files/bin/on-space-shortcut
+6
-0
tasks/vnc.yaml
+4
-0
templates/vnc/vnc.conf.j2
+ 1
- 1
files/bin/on-space-shortcut
View File
@@ -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
View File
@@ -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
View File
@@ -0,0 +1,4 @@
{{ ansible_managed | comment }}
$desktopName = "{{inventory_hostname}}$ENV{DISPLAY}";
$geometry = "1920x1200";