added simple resizing command ctrl+arrow keys

This commit is contained in:
tomit4 2022-05-23 19:33:57 -07:00
parent c9f240d85b
commit 5981db910e

View file

@ -5,7 +5,6 @@
# #
# i3 config file (v4) # i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference! # Please see https://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4 set $mod Mod4
@ -240,52 +239,57 @@ bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session) # exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
#resize windows without need for resize mode
bindsym Ctrl+Right resize shrink width 1 px or 1 ppt
bindsym Ctrl+Up resize grow height 1 px or 1 ppt
bindsym Ctrl+Down resize shrink height 1 px or 1 ppt
bindsym Ctrl+Left resize grow width 1 px or 1 ppt
# resize window (you can also use the mouse for that) # resize window (you can also use the mouse for that)
mode "resize" { # mode "resize" {
# These bindings trigger as soon as you enter the resize mode # # These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the windows width. # # Pressing left will shrink the windows width.
# Pressing right will grow the windows width. # # Pressing right will grow the windows width.
# Pressing up will shrink the windows height. # # Pressing up will shrink the windows height.
# Pressing down will grow the windows height. # # Pressing down will grow the windows height.
bindsym h resize shrink width 10 px or 10 ppt # bindsym h resize shrink width 10 px or 10 ppt
bindsym j resize grow height 10 px or 10 ppt # bindsym j resize grow height 10 px or 10 ppt
bindsym k resize shrink height 10 px or 10 ppt # bindsym k resize shrink height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt # bindsym l resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys # # same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt # bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt # bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt # bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt # bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape or $mod+r # # back to normal: Enter or Escape or $mod+r
bindsym Return mode "default" # bindsym Return mode "default"
bindsym Escape mode "default" # bindsym Escape mode "default"
bindsym $mod+r mode "default" # bindsym $mod+r mode "default"
} # }
bindsym $mod+r mode "resize" # bindsym $mod+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status # Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available) # finds out, if available)
bar { # bar {
mode hide # mode hide
hidden_state hide # hidden_state hide
modifier Mod1 # modifier Mod1
workspace_buttons no # workspace_buttons no
status_command i3status # status_command i3status
separator_symbol " :: " # separator_symbol " :: "
i3bar_command i3bar --transparency # i3bar_command i3bar --transparency
font_size 20 # font_size 20
tray_padding 0 # tray_padding 0
colors { # colors {
background #323b4d # background #323b4d
statusline #87afd7 # statusline #87afd7
separator #87afd7 # separator #87afd7
} # }
} # }
# NotoSans-Bold