From 1704a66812d432c615eeb9c5ba6fe68bc05e90c1 Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Wed, 2 Mar 2022 16:37:24 +0800 Subject: [PATCH] Changed resize mode bind and resize increment. --- .config/i3/config | 22 +++++++++++----------- .config/sway/config | 18 +++++++++--------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index d5f0cd7..63c3db4 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -186,22 +186,22 @@ mode "resize" { # right will grow the containers width # up will shrink the containers height # down will grow the containers height - bindsym $left resize shrink width 10px - bindsym $down resize grow height 10px - bindsym $up resize shrink height 10px - bindsym $right resize grow width 10px + bindsym $left resize shrink width 20px + bindsym $down resize grow height 20px + bindsym $up resize shrink height 20px + bindsym $right resize grow width 20px # Ditto, with arrow keys - bindsym Left resize shrink width 10px - bindsym Down resize grow height 10px - bindsym Up resize shrink height 10px - bindsym Right resize grow width 10px + bindsym Left resize shrink width 20px + bindsym Down resize grow height 20px + bindsym Up resize shrink height 20px + bindsym Right resize grow width 20px # Return to default mode bindsym Return mode "default" bindsym Escape mode "default" } -bindsym $mod+Control+Return mode "resize" +bindsym $mod+Shift+Return mode "resize" mode "gaming" { bindsym $mod+g mode "default" @@ -245,7 +245,7 @@ client.background $base03 bindsym $mod+Control+h gaps horizontal current plus 100 bindsym $mod+Control+l gaps horizontal current minus 100 -bindsym $mod+shift+f gaps horizontal current toggle 400 +bindsym $mod+Shift+f gaps horizontal current toggle 400 smart_gaps inverse_outer @@ -255,7 +255,7 @@ default_border pixel 3 exec alacritty exec firefox -exec discord +exec com.discordapp.Discord assign [class="firefox"] 2:r assign [class="discord"] 3:s diff --git a/.config/sway/config b/.config/sway/config index 6bf80a2..6b84c96 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -237,22 +237,22 @@ mode "resize" { # right will grow the containers width # up will shrink the containers height # down will grow the containers height - bindsym $left resize shrink width 10px - bindsym $down resize grow height 10px - bindsym $up resize shrink height 10px - bindsym $right resize grow width 10px + bindsym $left resize shrink width 10ppt + bindsym $down resize grow height 10ppt + bindsym $up resize shrink height 10ppt + bindsym $right resize grow width 10ppt # Ditto, with arrow keys - bindsym Left resize shrink width 10px - bindsym Down resize grow height 10px - bindsym Up resize shrink height 10px - bindsym Right resize grow width 10px + bindsym Left resize shrink width 10ppt + bindsym Down resize grow height 10ppt + bindsym Up resize shrink height 10ppt + bindsym Right resize grow width 10ppt # Return to default mode bindsym Return mode "default" bindsym Escape mode "default" } -bindsym $mod+Control+Return mode "resize" +bindsym $mod+Shift+Return mode "resize" mode "gaming" { bindsym $mod+g mode "default"