From 9d55582b57f981a18207b631a837ddddf979359f Mon Sep 17 00:00:00 2001 From: histalek Date: Sat, 30 Oct 2021 11:20:43 +0200 Subject: [PATCH] sway: Add keyboard layout options --- .config/sway/config | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index 6aaab1b..3dd3d6c 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -27,7 +27,6 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill # # You can get the names of your outputs by running: swaymsg -t get_outputs - ### Idle configuration # # Example configuration: @@ -43,31 +42,24 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill ### Input configuration # -# Example configuration: -# -# input "2:14:SynPS/2_Synaptics_TouchPad" { -# dwt enabled -# tap enabled -# natural_scroll enabled -# middle_emulation enabled -# } -# # You can get the names of your inputs by running: swaymsg -t get_inputs # Read `man 5 sway-input` for more information about this section. +input "type:keyboard" { + xkb_layout de + xkb_variant ,nodeadkeys + xkb_options caps:escape + } ### Key bindings # # Basics: # - # Start a terminal bindsym $mod+Return exec $term + bindsym $mod+d exec $menu # Kill focused window bindsym $mod+Shift+q kill - # Start your launcher - bindsym $mod+d exec $menu - # Drag floating windows by holding down $mod and left mouse button. # Resize them with right mouse button + $mod. # Despite the name, also works for non-floating windows. @@ -129,8 +121,7 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill bindsym $mod+Shift+8 move container to workspace number 8 bindsym $mod+Shift+9 move container to workspace number 9 bindsym $mod+Shift+0 move container to workspace number 10 - # Note: workspaces can have any name you want, not just numbers. - # We just use 1-10 as the default. + # # Layout stuff: #