From 4a8e05141e7f2b89a6e9382430fa93f61abeba47 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Mon, 30 Sep 2019 09:38:34 +0100 Subject: [PATCH] Set keyboard layout for keyboards on barium --- states/sway/files/barium | 3 ++- states/sway/files/config.jinja | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/states/sway/files/barium b/states/sway/files/barium index e1c8786..39da4a7 100644 --- a/states/sway/files/barium +++ b/states/sway/files/barium @@ -69,7 +69,8 @@ workspace 3 output DP-1 font pango:Liberation Mono 10 -input type:keyboard { +# The built in keyboard of barium +input 1:1:AT_Translated_Set_2_keyboard { xkb_layout gb xkb_variant colemak xkb_options ctrl:nocaps diff --git a/states/sway/files/config.jinja b/states/sway/files/config.jinja index 536627f..86b9e21 100644 --- a/states/sway/files/config.jinja +++ b/states/sway/files/config.jinja @@ -188,6 +188,13 @@ exec swayidle \ resume 'swaymsg "output * dpms on" \ before-sleep "lock.nosmartcard" +# This keyboard has this layout on all machines: +input 1241:36:HOLDCHIP_USB_Keyboard { + xkb_layout us + xkb_variant colemak + xkb_options ctrl:nocaps +} + # host specific section {%- do salt.log.error('sway/files/' + host) -%} {% include 'sway/files/' + host %} -- 2.46.2