From 9e4b07bbff756adc8983829932a0fab51825c298 Mon Sep 17 00:00:00 2001 From: OdiousImp2604 <74424076+OdiousImp2604@users.noreply.github.com> Date: Fri, 12 Feb 2021 10:18:20 +0000 Subject: [PATCH] keyboard detected automatically! --- .config/sway/config.d/input | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.config/sway/config.d/input b/.config/sway/config.d/input index d3acc99..8194fa6 100644 --- a/.config/sway/config.d/input +++ b/.config/sway/config.d/input @@ -12,15 +12,12 @@ input type:touchpad { # Read `man 5 sway-input` for more information about this section. # -# Keyboard - Uncomment to Pick - Defualt is ENGLISH (US) -# -# All langauges and varinats in keyboard.conf -# -# input * xkb_layout "gb" -# input * xkb_layout "de" -# input * xkb_layout "nl" -input * xkb_layout "us" - +input type:keyboard xkb_layout "us" + +exec { + 'swaymsg input type:keyboard xkb_layout "$(localectl status | grep "X11 Layout" | sed -e "s/^.*X11 Layout://")"' + 'swaymsg input type:keyboard xkb_variant "$(localectl status | grep "X11 Variant" | sed -e "s/^.*X11 Variant://")"' +}