sway: Try using tab to swap containers instead of switching ws

It's more usable to have a master-layout like feeling where we swap
position of focused windows with last in use.
This commit is contained in:
Patrick Wadström 2024-09-22 20:17:50 +02:00
parent 8c36e586dc
commit bb494c7f99
No known key found for this signature in database
GPG Key ID: CC0281C09CD6713D

View File

@ -71,6 +71,11 @@ 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 window to other stacks
bindsym $mod+Tab mark --add new_last ; [con_mark=last] mark --add focused ; swap container with mark last ; [con_mark=new_last] mark --add last ; [con_mark=focused] focus
bindsym $mod+Shift+Tab mark last
#
# Workspaces:
#
@ -85,8 +90,8 @@ bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
bindsym $mod+Tab workspace next
bindsym $mod+Shift+Tab workspace prev
#bindsym $mod+Tab workspace next
#bindsym $mod+Shift+Tab workspace prev
# Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2