diff --git a/.config/sway/config b/.config/sway/config index 11cf6fe..7a40065 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -39,14 +39,17 @@ bindsym $mod+h splith bindsym $mod+v splitv # toggle fullscreen mode -bindsym $mod+c fullscreen toggle +bindsym $mod+c fullscreen # change container layout (stacked, tabbed, toggle split) bindsym $mod+s layout stacking bindsym $mod+w layout tabbed bindsym $mod+e layout toggle split -# toggle tiling / floating +# toggle the current focus between tiling and floating mode +bindsym $mod+Shift+space floating toggle + +# swap focus between the tiling area and the floating area bindsym $mod+space focus mode_toggle # focus the parent container @@ -65,11 +68,11 @@ bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. # You can send windows there and get them back later. # Move the currently focused window to the scratchpad -bindsym $mod+Shift+minus move scratchpad +bindsym $mod+delete move scratchpad # Show the next scratchpad window or hide the focused scratchpad window. # If there are multiple scratchpad windows, this command cycles through them. -bindsym $mod+minus scratchpad show +bindsym $mod+insert scratchpad show # # Moving around: diff --git a/.config/sway/config.d/10-workspaces.conf b/.config/sway/config.d/10-workspaces.conf index 4560d67..41f3b7f 100644 --- a/.config/sway/config.d/10-workspaces.conf +++ b/.config/sway/config.d/10-workspaces.conf @@ -1,5 +1,5 @@ # -# Workspace setup +# Setup workspaces # set $ws0 "0" set $ws1 "1" @@ -15,6 +15,21 @@ set $ws10 "10" set $ws11 "11" set $ws12 "12" +# Bin workspaces to specific screens +workspace $ws0 output $screen0 +workspace $ws1 output $screen0 +workspace $ws2 output $screen0 +workspace $ws3 output $screen0 +workspace $ws4 output $screen0 +workspace $ws5 output $screen0 +workspace $ws6 output $screen1 +workspace $ws7 output $screen1 +workspace $ws8 output $screen1 +workspace $ws9 output $screen1 +workspace $ws10 output $screen1 +workspace $ws11 output $screen1 +workspace $ws12 output $screen1 + # Switch to workspace bindsym $mod+grave workspace number $ws0 bindsym $mod+1 workspace number $ws1