aboutsummaryrefslogtreecommitdiff
path: root/config/sway/bindsym-layout
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-01-20 15:40:35 +0100
committerKarel Kočí <cynerd@email.cz>2022-01-20 15:40:35 +0100
commitaa974af1819b418500a8b94a531086b170972eac (patch)
tree00e3d83e5a8a8d16c36d9086ee59e316d673a57d /config/sway/bindsym-layout
parent8fae57dbeab4e49ca2ef8e0806ef9a25789d5157 (diff)
downloadmyconfigs-aa974af1819b418500a8b94a531086b170972eac.tar.gz
myconfigs-aa974af1819b418500a8b94a531086b170972eac.tar.bz2
myconfigs-aa974af1819b418500a8b94a531086b170972eac.zip
sway: split config file
Diffstat (limited to 'config/sway/bindsym-layout')
-rw-r--r--config/sway/bindsym-layout13
1 files changed, 13 insertions, 0 deletions
diff --git a/config/sway/bindsym-layout b/config/sway/bindsym-layout
new file mode 100644
index 0000000..ef14ead
--- /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 --skin-tone neutral
+bindsym --to-code $mod+Shift+period exec rofimoji --skin-tone neutral --action copy