summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2020-04-17 23:44:22 -0500
committerDanny Holman <dholman@gymli.org>2020-04-17 23:44:22 -0500
commit596de9befbc4db2438421d21037a38c0236b5139 (patch)
tree84783c3b1caffdddc7c9f0699cf53d4699a63dec /.config
parent7fdff57d86cafd6b7c32bf80d46322428746264a (diff)
General updates
Update everything in this folder to be current with my setup.
Diffstat (limited to '.config')
-rw-r--r--.config/i3/config36
1 files changed, 11 insertions, 25 deletions
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