From 89963fa35b72a10c234a4581666f4d5d5b402b9d Mon Sep 17 00:00:00 2001 From: Alexander Grothe Date: Sun, 17 Dec 2017 15:06:45 +0100 Subject: [PATCH] Add .Xresources for user vdr --- Manual.org | 28 ++++++++++++++++++++++ roles/yavdr-xorg/tasks/desktop-session.yml | 8 +++++++ roles/yavdr-xorg/templates/.Xresources.j2 | 16 +++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 roles/yavdr-xorg/templates/.Xresources.j2 diff --git a/Manual.org b/Manual.org index 119a4c1..6f195e1 100644 --- a/Manual.org +++ b/Manual.org @@ -1662,6 +1662,14 @@ b'\xde\xad\xbe\xef' owner: '{{ vdr.user }}' group: '{{ vdr.group }}' +- name: "expand template for vdr's .Xresources" + template: + src: 'templates/.Xresources.j2' + dest: '{{ vdr.home }}/.Xresources' + mode: 0644 + owner: '{{ vdr.user }}' + group: '{{ vdr.group }}' + - name: expand template for openbox autostart template: src: 'templates/openbox/autostart.j2' @@ -2097,6 +2105,26 @@ Section "Screen" EndSection {% endif %} #+END_SRC +***** .Xresources + +#+BEGIN_SRC shell :tangle roles/yavdr-xorg/templates/.Xresources.j2 :mkdirp yes :padline no +xterm*background: Black +xterm*foreground: grey +XTerm*locale: true +XTerm*metaSendsEscape: true +XTerm*eightBitInput: false +XTerm*backarrowKey: false +XTerm*ttyModes: erase ^? +Xterm*saveLines: 4096 +XTerm.vt100.metaSendsEscape: true +XTerm.vt100.geometry: 80x32 +XTerm.vt100.renderFont: true +xterm*faceName: xft:DejaVu Sans Mono +xterm*faceSize: 14 +xterm*renderFont: true +XTerm.vt100.faceName: xft:DejaVu Sans Mono:size=12:antialias=false +XTerm.vt100.font: 7x13 +#+END_SRC **** vdr #+BEGIN_SRC conf :tangle roles/yavdr-xorg/templates/systemd/vdr-environ.j2 [Service] diff --git a/roles/yavdr-xorg/tasks/desktop-session.yml b/roles/yavdr-xorg/tasks/desktop-session.yml index 8f771c5..9c764e8 100644 --- a/roles/yavdr-xorg/tasks/desktop-session.yml +++ b/roles/yavdr-xorg/tasks/desktop-session.yml @@ -21,6 +21,14 @@ owner: '{{ vdr.user }}' group: '{{ vdr.group }}' +- name: "expand template for vdr's .Xresources" + template: + src: 'templates/.Xresources.j2' + dest: '{{ vdr.home }}/.Xresources' + mode: 0644 + owner: '{{ vdr.user }}' + group: '{{ vdr.group }}' + - name: expand template for openbox autostart template: src: 'templates/openbox/autostart.j2' diff --git a/roles/yavdr-xorg/templates/.Xresources.j2 b/roles/yavdr-xorg/templates/.Xresources.j2 new file mode 100644 index 0000000..74479d4 --- /dev/null +++ b/roles/yavdr-xorg/templates/.Xresources.j2 @@ -0,0 +1,16 @@ +xterm*background: Black +xterm*foreground: grey +XTerm*locale: true +XTerm*metaSendsEscape: true +XTerm*eightBitInput: false +XTerm*backarrowKey: false +XTerm*ttyModes: erase ^? +Xterm*saveLines: 4096 +XTerm.vt100.metaSendsEscape: true +XTerm.vt100.geometry: 80x32 +XTerm.vt100.renderFont: true +xterm*faceName: xft:DejaVu Sans Mono +xterm*faceSize: 14 +xterm*renderFont: true +XTerm.vt100.faceName: xft:DejaVu Sans Mono:size=12:antialias=false +XTerm.vt100.font: 7x13