From 413e2a4d18c877cc2c163d11b97fc1fef111df4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 11 Jul 2022 10:34:34 +0200 Subject: sway: move layout back to bindsim as we need mod to be defined --- config/sway/bindsym-layout | 13 +++++++++++++ config/sway/inputs | 14 -------------- 2 files changed, 13 insertions(+), 14 deletions(-) create mode 100644 config/sway/bindsym-layout (limited to 'config') diff --git a/config/sway/bindsym-layout b/config/sway/bindsym-layout new file mode 100644 index 0000000..5b075ac --- /dev/null +++ b/config/sway/bindsym-layout @@ -0,0 +1,13 @@ +# vim: ft=swayconfig +set $mode_layout Set keyboard layout (u)s or (c)z +mode "$mode_layout" { + bindsym u input type:keyboard xkb_layout us, mode "default" + bindsym c input type:keyboard xkb_layout cz_qwerty, mode "default" + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym --to-code $mod+slash mode "$mode_layout" + +# Type emoji +bindsym --to-code $mod+period exec rofimoji --selector wofi --skin-tone neutral +bindsym --to-code $mod+Shift+period exec rofimoji --selector wofi --skin-tone neutral --action copy diff --git a/config/sway/inputs b/config/sway/inputs index 3569df9..235105e 100644 --- a/config/sway/inputs +++ b/config/sway/inputs @@ -17,20 +17,6 @@ seat '*' { hide_cursor when-typing disable } -## Layout switching ############################################################ -set $mode_layout Set keyboard layout (u)s or (c)z -mode "$mode_layout" { - bindsym u input type:keyboard xkb_layout us, mode "default" - bindsym c input type:keyboard xkb_layout cz_qwerty, mode "default" - bindsym Return mode "default" - bindsym Escape mode "default" -} -bindsym --to-code $mod+slash mode "$mode_layout" - -# Type emoji -bindsym --to-code $mod+period exec rofimoji --selector wofi --skin-tone neutral -bindsym --to-code $mod+Shift+period exec rofimoji --selector wofi --skin-tone neutral --action copy - ## Susan inputs ################################################################ input '9610:33:HAILUCK_CO.,LTD_USB_KEYBOARD_Mouse' { middle_emulation enabled -- cgit v1.2.3