diff --git a/hosts/ryzensun/.config/sway/config.d/custom-keybindings.conf b/hosts/ryzensun/.config/sway/config.d/custom-keybindings.conf new file mode 100644 index 00000000..7e48b82d --- /dev/null +++ b/hosts/ryzensun/.config/sway/config.d/custom-keybindings.conf @@ -0,0 +1,2 @@ +# switch keyboard input language +bindsym $mod+tab exec swaymsg input "1118:1896:Microsoft_Microsoft___SiderWinderTM_X4_Keyboard_Consumer_Control" xkb_switch_layout next diff --git a/hosts/ryzensun/.config/sway/config.d/input-defaults.conf b/hosts/ryzensun/.config/sway/config.d/input-defaults.conf index b37a429e..965ee6ab 100644 --- a/hosts/ryzensun/.config/sway/config.d/input-defaults.conf +++ b/hosts/ryzensun/.config/sway/config.d/input-defaults.conf @@ -3,10 +3,13 @@ # 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 * { +input "type:keyboard" { xkb_layout us,de xkb_options ctrl:nocaps - natural_scroll disabled +} + +input "type:touchpad" { + natural_scroll enabled } # Touchpad controls diff --git a/hosts/ryzensun/ryzensun.nix b/hosts/ryzensun/ryzensun.nix index a9af3b27..e7419a7b 100644 --- a/hosts/ryzensun/ryzensun.nix +++ b/hosts/ryzensun/ryzensun.nix @@ -15,6 +15,7 @@ in pub-solar.virtualisation.enable = true; home-manager.users."${psCfg.user.name}".xdg.configFile = mkIf psCfg.sway.enable { + "sway/config.d/10-custom-keybindings.conf".source = ./.config/sway/config.d/custom-keybindings.conf; "sway/config.d/autostart.conf".source = ./.config/sway/config.d/autostart.conf; "sway/config.d/input-defaults.conf".source = ./.config/sway/config.d/input-defaults.conf; "sway/config.d/screens.conf".source = ./.config/sway/config.d/screens.conf;