From: Maximilian Friedersdorff Date: Mon, 30 Sep 2019 08:38:34 +0000 (+0100) Subject: Set keyboard layout for keyboards on barium X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=4a8e05141e7f2b89a6e9382430fa93f61abeba47;p=max%2Fsaltfiles.git Set keyboard layout for keyboards on barium --- 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 %}