From a349c8c99264f810ce9d5d3675143b85f3c8e2d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Wadstr=C3=B6m?= Date: Sun, 22 Sep 2024 09:47:55 +0200 Subject: [PATCH] sway: add mark mod and restore colors --- .config/sway/config | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index c0f8906..0eebb83 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -112,7 +112,7 @@ bindsym $mod+Mod1+$down move workspace to output down # You can "split" the current object of your focus with # $mod+b or $mod+v, for horizontal and vertical splits # respectively. - bindsym $mod+s splith + bindsym $mod+b splith bindsym $mod+v splitv # Switch the current container between different layout styles @@ -127,7 +127,7 @@ bindsym $mod+Mod1+$down move workspace to output down bindsym $mod+Shift+space floating toggle # Swap focus between the tiling area and the floating area - #bindsym $mod+space focus mode_toggle + bindsym $mod+Mod1+space focus mode_toggle # Move focus to the parent container bindsym $mod+a focus parent @@ -168,6 +168,28 @@ mode "resize" { } bindsym $mod+r mode "resize" +mode "mark" { + # Retain moving focus + bindsym $mod+$left focus left + bindsym $mod+$down focus down + bindsym $mod+$up focus up + bindsym $mod+$right focus right + + # Numbers now mark + bindsym $mod+1 mark one + bindsym $mod+2 mark two + bindsym $mod+3 mark three + + # Shift numbers now swap current focus with marked window + bindsym $mod+Shift+1 swap container with mark one + bindsym $mod+Shift+2 swap container with mark two + bindsym $mod+Shift+3 swap container with mark three + + # Return to default mode + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+m mode "mark" # # Status Bar: # @@ -233,10 +255,10 @@ hide_edge_borders smart # Colors #93cee9 # # class border backgr. text indicator child_border - client.focused #5e81ac #2e3440 #d8dee9 #5e81ac #5e81ac - client.focused_inactive #3b4252 #3b4252 #d8dee9 #4c566a #4c566a - client.unfocused #434c5e #434c5e #d8dee9 #4c566a #4c566a - client.urgent #bf616a #bf616a #d8dee9 #d08770 #d08770 +# client.focused #5e81ac #2e3440 #d8dee9 #5e81ac #5e81ac +# client.focused_inactive #3b4252 #3b4252 #d8dee9 #4c566a #4c566a +# client.unfocused #434c5e #434c5e #d8dee9 #4c566a #4c566a +# client.urgent #bf616a #bf616a #d8dee9 #d08770 #d08770 # --------------------------------------------------- #