ryzensun: add custom keybindings

This commit is contained in:
teutat3s 2021-10-25 00:30:11 +02:00
parent 6c0585edc7
commit 4b8c24df60
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1
3 changed files with 8 additions and 2 deletions

View file

@ -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

View file

@ -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

View file

@ -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;