Implement toggling between layout variants
This commit is contained in:
parent
9ed5201160
commit
9d4f446784
4 changed files with 14 additions and 22 deletions
|
|
@ -169,3 +169,10 @@ bindsym $mod+r mode "resize"
|
|||
bindsym $mod+Alt+l exec swaylock
|
||||
|
||||
bindsym $mod+p exec cliphist list | wofi -S dmenu | cliphist decode | wl-copy
|
||||
|
||||
mode "keyboard_layout" {
|
||||
bindsym c mode "default", exec swaymsg input type:keyboard xkb_variant colemak && notify-send "Layout Change" "colemak"
|
||||
bindsym q mode "default", exec swaymsg input type:keyboard xkb_variant '""' && notify-send "Layout Change" "qwerty"
|
||||
}
|
||||
|
||||
bindsym $mod+t mode keyboard_layout
|
||||
|
|
|
|||
|
|
@ -29,7 +29,13 @@ input type:touchpad {
|
|||
}
|
||||
|
||||
input type:keyboard {
|
||||
xkb_layout gb(colemak),gb,us(colemak),us
|
||||
xkb_layout gb
|
||||
xkb_variant colemak
|
||||
xkb_options ctrl:nocaps
|
||||
}
|
||||
input 1241:36:HOLDCHIP_USB_Keyboard {
|
||||
xkb_layout us
|
||||
xkb_variant colemak
|
||||
xkb_options ctrl:nocaps
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue