diff --git a/packer/ansible/roles/windowmanager/files/bg.jpg b/packer/ansible/roles/windowmanager/files/bg.jpg new file mode 100644 index 0000000..45272f8 Binary files /dev/null and b/packer/ansible/roles/windowmanager/files/bg.jpg differ diff --git a/packer/ansible/roles/windowmanager/files/lightdm-gtk-greeter.conf b/packer/ansible/roles/windowmanager/files/lightdm-gtk-greeter.conf new file mode 100644 index 0000000..8ec51bb --- /dev/null +++ b/packer/ansible/roles/windowmanager/files/lightdm-gtk-greeter.conf @@ -0,0 +1,64 @@ +# LightDM GTK+ Configuration +# Available configuration options listed below. +# +# Appearance: +# theme-name = GTK+ theme to use +# icon-theme-name = Icon theme to use +# background = Background file to use, either an image path or a color (e.g. #772953) +# user-background = false|true ("true" by default) Display user background (if available) +# transition-duration = Length of time (in milliseconds) to transition between background images ("500" by default) +# transition-type = ease-in-out|linear|none ("ease-in-out" by default) +# +# Fonts: +# font-name = Font to use +# xft-antialias = false|true Whether to antialias Xft fonts +# xft-dpi = Resolution for Xft in dots per inch (e.g. 96) +# xft-hintstyle = none|slight|medium|hintfull What degree of hinting to use +# xft-rgba = none|rgb|bgr|vrgb|vbgr Type of subpixel antialiasing +# +# Login window: +# active-monitor = Monitor to display greeter window (name or number). Use #cursor value to display greeter at monitor with cursor. Can be a semicolon separated list +# position = x y ("50% 50%" by default) Login window position +# default-user-image = Image used as default user icon, path or #icon-name +# hide-user-image = false|true ("false" by default) +# +# Panel: +# panel-position = top|bottom ("top" by default) +# clock-format = strftime-format string, e.g. %H:%M +# indicators = semi-colon ";" separated list of allowed indicator modules. Built-in indicators include "~a11y", "~language", "~session", "~power", "~clock", "~host", "~spacer". Unity indicators can be represented by short name (e.g. "sound", "power"), service file name, or absolute path +# +# Accessibility: +# a11y-states = states of accessibility features: "name" - save state on exit, "-name" - disabled at start (default value for unlisted), "+name" - enabled at start. Allowed names: contrast, font, keyboard, reader. +# keyboard = command to launch on-screen keyboard (e.g. "onboard") +# keyboard-position = x y[;width height] ("50%,center -0;50% 25%" by default) Works only for "onboard" +# reader = command to launch screen reader (e.g. "orca") +# +# Security: +# allow-debugging = false|true ("false" by default) +# screensaver-timeout = Timeout (in seconds) until the screen blanks when the greeter is called as lockscreen +# +# Template for per-monitor configuration: +# [monitor: name] +# background = overrides default value +# user-background = overrides default value +# laptop = false|true ("false" by default) Marks monitor as laptop display +# transition-duration = overrides default value +# +[greeter] +background=/etc/lightdm/bg.jpg +#user-background= +#theme-name= +#icon-theme-name= +font-name=Roboto +#xft-antialias= +#xft-dpi= +#xft-hintstyle= +#xft-rgba= +hide-user-image=true +panel-position=bottom +#indicators= +clock-format=%H:%M:%S +#keyboard= +#reader= +#position= +#screensaver-timeout= diff --git a/packer/ansible/roles/windowmanager/tasks/lightdm.yml b/packer/ansible/roles/windowmanager/tasks/lightdm.yml index b09a4d7..dd15991 100644 --- a/packer/ansible/roles/windowmanager/tasks/lightdm.yml +++ b/packer/ansible/roles/windowmanager/tasks/lightdm.yml @@ -1,5 +1,19 @@ --- - name: install lightdm apt: - name: "lightdm" + name: "{{ item }}" state: present + with_items: + - lightdm + - lightdm-gtk-greeter + - fonts-roboto + +- name: get background image for lightdm + copy: + src: bg.jpg + dest: /etc/lightdm/bg.jpg + +- name: configure lightdm-gtk-greeter + copy: + src: lightdm-gtk-greeter.conf + dest: /etc/lightdm/lightdm-gtk-greeter.conf