From 596de9befbc4db2438421d21037a38c0236b5139 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Fri, 17 Apr 2020 23:44:22 -0500 Subject: General updates Update everything in this folder to be current with my setup. --- .config/i3/config | 36 +++++++++++------------------------- 1 file changed, 11 insertions(+), 25 deletions(-) (limited to '.config/i3') diff --git a/.config/i3/config b/.config/i3/config index 4b4263a..7df77ba 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -75,25 +75,13 @@ bindsym $mod+Shift+c reload bindsym $mod+Shift+r restart # resize window (you can also use the mouse for that) -mode "resize" { - # These bindings trigger as soon as you enter the resize mode - - # Pressing left will shrink the window’s width. - # Pressing right will grow the window’s width. - # Pressing up will shrink the window’s height. - # Pressing down will grow the window’s height. - bindsym j resize shrink width 10 px or 10 ppt - bindsym k resize grow height 10 px or 10 ppt - bindsym l resize shrink height 10 px or 10 ppt - bindsym semicolon resize grow width 10 px or 10 ppt - - # same bindings, but for the arrow keys - bindsym Left resize shrink width 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 Right resize grow width 10 px or 10 ppt - - # back to normal: Enter or Escape +set $mode_resize Resize window +mode "$mode_resize" { + bindsym h resize shrink width 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 l resize grow width 10 px or 10 ppt + bindsym Return mode "default" bindsym Escape mode "default" } @@ -112,16 +100,11 @@ mode "$mode_system" { bindsym Escape mode "default" } -# Resize windows -bindsym $mod+Shift+k resize grow height 10 px or 10 ppt -bindsym $mod+Shift+j resize shrink height 10 px or 10 ppt -bindsym $mod+Shift+l resize grow width 10 px or 10 ppt -bindsym $mod+Shift+h resize shrink width 10 px or 10 ppt - # Volume bindsym $mod+Shift+greater exec --no-startup-id amixer sset Master 5%+ bindsym $mod+Shift+less exec --no-startup-id amixer sset Master 5%- bindsym $mod+Shift+m exec --no-startup-id amixer sset Master toggle +bindsym $mod+Shift+t exec --no-startup-id amixer sset Front toggle bindsym XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 5%+ bindsym XF86AudioLowerVolume exec --no-startup-id amixer sset Master 5%- bindsym XF86AudioMute exec --no-startup-id amixer sset Master toggle @@ -136,6 +119,9 @@ bindsym $mod+Print exec --no-startup-id scrot # System menu bindsym $mod+Shift+s mode "$mode_system" +# Resize +bindsym $mod+r mode "$mode_resize" + # Cycle focused workspace bindsym $mod+Tab workspace next bindsym $mod+Shift+Tab workspace prev -- cgit v1.2.3