From 0f4249c84402d6763b66d42a1600a08d065a4401 Mon Sep 17 00:00:00 2001 From: finga Date: Sun, 26 Jan 2025 14:36:15 +0100 Subject: [PATCH 1/4] Fix scratchpad keybindings When they were introduced due to the switch to sway, they conflicted with the workspace setup. --- .config/sway/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index 11cf6fe..0f2afed 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -65,11 +65,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: From 6bd589e725f8f0e23cd3e9510fe8fdc257ebca11 Mon Sep 17 00:00:00 2001 From: finga Date: Sun, 26 Jan 2025 14:38:25 +0100 Subject: [PATCH 2/4] Update fullscreen toggling of windows keybinding --- .config/sway/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/sway/config b/.config/sway/config index 0f2afed..7f11138 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -39,7 +39,7 @@ 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 From ae8de34f698a30ca93910626800b6fb0fbf71b19 Mon Sep 17 00:00:00 2001 From: finga Date: Sun, 26 Jan 2025 14:39:53 +0100 Subject: [PATCH 3/4] Extend keybindings for handling tiling/floating modes --- .config/sway/config | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/sway/config b/.config/sway/config index 7f11138..7a40065 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -46,7 +46,10 @@ 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 From 02a9c369407a6365b68d12f272052a947918dbe3 Mon Sep 17 00:00:00 2001 From: finga Date: Sun, 26 Jan 2025 14:40:42 +0100 Subject: [PATCH 4/4] workspaces: Set output screen of workspaces --- .config/sway/config.d/10-workspaces.conf | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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