aboutsummaryrefslogtreecommitdiff
path: root/dot_config/sway/config.d
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dot_config/sway/config.d/20_swaysome64
-rw-r--r--dot_config/sway/config.d/30_clipboard6
-rw-r--r--dot_config/sway/config.d/40_keyboards16
3 files changed, 86 insertions, 0 deletions
diff --git a/dot_config/sway/config.d/20_swaysome b/dot_config/sway/config.d/20_swaysome
new file mode 100644
index 0000000..f928bba
--- /dev/null
+++ b/dot_config/sway/config.d/20_swaysome
@@ -0,0 +1,64 @@
+bindsym --to-code {
+ # Change focus between workspaces
+ $mod+1 exec "swaysome focus 1"
+ $mod+2 exec "swaysome focus 2"
+ $mod+3 exec "swaysome focus 3"
+ $mod+4 exec "swaysome focus 4"
+ $mod+5 exec "swaysome focus 5"
+ $mod+6 exec "swaysome focus 6"
+ $mod+7 exec "swaysome focus 7"
+ $mod+8 exec "swaysome focus 8"
+ $mod+9 exec "swaysome focus 9"
+ $mod+0 exec "swaysome focus 0"
+
+ # Move containers between workspaces
+ $mod+Shift+1 exec "swaysome move 1"
+ $mod+Shift+2 exec "swaysome move 2"
+ $mod+Shift+3 exec "swaysome move 3"
+ $mod+Shift+4 exec "swaysome move 4"
+ $mod+Shift+5 exec "swaysome move 5"
+ $mod+Shift+6 exec "swaysome move 6"
+ $mod+Shift+7 exec "swaysome move 7"
+ $mod+Shift+8 exec "swaysome move 8"
+ $mod+Shift+9 exec "swaysome move 9"
+ $mod+Shift+0 exec "swaysome move 0"
+
+ # Focus workspace groups
+ $mod+Alt+1 exec "swaysome focus-group 1"
+ $mod+Alt+2 exec "swaysome focus-group 2"
+ $mod+Alt+3 exec "swaysome focus-group 3"
+ $mod+Alt+4 exec "swaysome focus-group 4"
+ $mod+Alt+5 exec "swaysome focus-group 5"
+ $mod+Alt+6 exec "swaysome focus-group 6"
+ $mod+Alt+7 exec "swaysome focus-group 7"
+ $mod+Alt+8 exec "swaysome focus-group 8"
+ $mod+Alt+9 exec "swaysome focus-group 9"
+ $mod+Alt+0 exec "swaysome focus-group 0"
+
+ # Move containers to other workspace groups
+ $mod+Alt+Shift+1 exec "swaysome move-to-group 1"
+ $mod+Alt+Shift+2 exec "swaysome move-to-group 2"
+ $mod+Alt+Shift+3 exec "swaysome move-to-group 3"
+ $mod+Alt+Shift+4 exec "swaysome move-to-group 4"
+ $mod+Alt+Shift+5 exec "swaysome move-to-group 5"
+ $mod+Alt+Shift+6 exec "swaysome move-to-group 6"
+ $mod+Alt+Shift+7 exec "swaysome move-to-group 7"
+ $mod+Alt+Shift+8 exec "swaysome move-to-group 8"
+ $mod+Alt+Shift+9 exec "swaysome move-to-group 9"
+ $mod+Alt+Shift+0 exec "swaysome move-to-group 0"
+
+ # Move focused container to next output
+ $mod+o exec "swaysome next-output"
+ # Move focused container to previous output
+ $mod+Shift+o exec "swaysome prev-output"
+
+ # Move focused workspace group to next output
+ $mod+Alt+o exec "swaysome workspace-group-next-output"
+ # Move focused workspace group to previous output
+ $mod+Alt+Shift+o exec "swaysome workspace-group-prev-output"
+}
+
+# Init workspaces for every screen
+exec "swaysome init 1"
+
+# vim:set ft=swayconfig:
diff --git a/dot_config/sway/config.d/30_clipboard b/dot_config/sway/config.d/30_clipboard
new file mode 100644
index 0000000..eca377b
--- /dev/null
+++ b/dot_config/sway/config.d/30_clipboard
@@ -0,0 +1,6 @@
+exec wl-paste --watch cliphist store
+
+bindsym --to-code $mod+y exec cliphist list | wofi -d | cliphist decode | wl-copy
+bindsym --to-code $mod+Shift+y exec cliphist clear
+
+# vim:set ft=swayconfig:
diff --git a/dot_config/sway/config.d/40_keyboards b/dot_config/sway/config.d/40_keyboards
new file mode 100644
index 0000000..524147d
--- /dev/null
+++ b/dot_config/sway/config.d/40_keyboards
@@ -0,0 +1,16 @@
+input type:keyboard {
+ xkb_layout "icd,ru"
+ xkb_variant "icd,"
+}
+# built-in Thinkpad keyboard
+input "1:1:AT_Translated_Set_2_keyboard" {
+ xkb_options "nbsp:level3n,lalt_meta:lalt_meta,caps:swapescape,grp:shifts_toggle,lv3:ralt_switch_multikey"
+}
+input "kinesis????" {
+ xkb_options "nbsp:level3n,lalt_meta:lalt_meta,caps:swapescape,grp:shifts_toggle,lv3:switch"
+}
+input "ergodox????" {
+ xkb_options "nbsp:level3n,lalt_meta:lalt_meta,caps:swapescape,grp:shifts_toggle,lv3:switch"
+}
+
+# vim:set ft=swayconfig: