From 9dab60356f63a23e74da20b075dd839cf07e7c29 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Mon, 14 Oct 2019 09:04:40 +0100 Subject: [PATCH] Set X11 keyboard layout --- roles/distro/files/keyboard-gb.conf | 5 +++++ roles/distro/tasks/freebsd.yml | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 roles/distro/files/keyboard-gb.conf diff --git a/roles/distro/files/keyboard-gb.conf b/roles/distro/files/keyboard-gb.conf new file mode 100644 index 0000000..196e601 --- /dev/null +++ b/roles/distro/files/keyboard-gb.conf @@ -0,0 +1,5 @@ +Section "InputClass" + Identifier "keyboard-gb" + MatchIsKeyboard "on" + Option "XkbLayout" "gb" +EndSection diff --git a/roles/distro/tasks/freebsd.yml b/roles/distro/tasks/freebsd.yml index e7bf177..83f6f8b 100644 --- a/roles/distro/tasks/freebsd.yml +++ b/roles/distro/tasks/freebsd.yml @@ -49,3 +49,8 @@ path: /etc/ttys regexp: '^ttyv8 .*' line: 'ttyv8 "/usr/local/bin/xdm -nodaemon" xterm on secure' +- name: Set xorg keyboard layout + become: true + copy: + src: keyboard-gb.conf + dest: /usr/local/etc/X11/xorg.conf.d/keyboard-gb.conf