aboutsummaryrefslogtreecommitdiff
path: root/config/sway/bindsym-layout
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-07-11 10:34:34 +0200
committerKarel Kočí <cynerd@email.cz>2022-07-11 10:34:34 +0200
commit413e2a4d18c877cc2c163d11b97fc1fef111df4a (patch)
tree6d55eee7bcb682610f3b9c9b46e8ccedb6953304 /config/sway/bindsym-layout
parent30ebc83f8fe76da61ee9cbc6b7cd5f1f1cfc18e0 (diff)
downloadmyconfigs-413e2a4d18c877cc2c163d11b97fc1fef111df4a.tar.gz
myconfigs-413e2a4d18c877cc2c163d11b97fc1fef111df4a.tar.bz2
myconfigs-413e2a4d18c877cc2c163d11b97fc1fef111df4a.zip
sway: move layout back to bindsim as we need mod to be defined
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..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