sway: add mode to move workspace between outputs

This commit is contained in:
Konstantin Koslowski 2022-05-01 11:15:06 +02:00
parent 64e549d533
commit e6355b12ad

17
config
View file

@ -120,9 +120,6 @@ bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
# Move the focused workspace to another monitor
bindsym $mod+o move workspace to output right
bindsym $mod+Shift+o move workspace to output left
#
# Resize
#
@ -298,8 +295,22 @@ mode "mark" {
bindsym Return exec notify-send "mode: default"; mode "default"
bindsym Escape exec notify-send "mode: default"; mode "default"
}
# Move the focused workspace to another monitor
mode "move-workspace" {
bindsym h move workspace to output left
bindsym j move workspace to output down
bindsym k move workspace to output up
bindsym l move workspace to output right
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
bindsym Return exec notify-send "mode: default"; mode "default"
bindsym Escape exec notify-send "mode: default"; mode "default"
}
bindsym $mod+m exec notify-send "mode: move"; mode "move"
bindsym $mod+Shift+a exec notify-send "mode: mark"; mode "mark"
bindsym $mod+o exec notify-send "mode: move-workspace"; mode "move-workspace"
#
# Window Rules: