summaryrefslogtreecommitdiff
path: root/.config/i3
diff options
context:
space:
mode:
authorRoger Gonzalez <rogergonzalez21@gmail.com>2020-01-04 10:51:19 -0300
committerRoger Gonzalez <rogergonzalez21@gmail.com>2020-01-04 10:51:19 -0300
commitbf2f31b88027c80048cdc17f655adee0fe0c51e7 (patch)
tree25b3c50c6faadf0534b8a14532d1cc3a614f6f57 /.config/i3
parenta14eb00e34e3f7a39bd53d05686f6f170c5bb126 (diff)
Added more i3gaps settings, added new resize mode
Diffstat (limited to '.config/i3')
-rw-r--r--.config/i3/config59
1 files changed, 20 insertions, 39 deletions
diff --git a/.config/i3/config b/.config/i3/config
index fa4977c4..20548606 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -49,8 +49,15 @@ for_window [class=".*"] border pixel 0
# Use gaps
smart_gaps on
-gaps inner 5
-gaps outer 5
+gaps inner 15
+gaps outer 15
+
+bindsym $mod+Shift+t gaps inner current set 15; gaps outer current set 15
+bindsym $mod+s gaps inner current plus 5
+bindsym $mod+Shift+s gaps inner current minus 5
+bindsym $mod+Shift+d gaps inner current set 0; gaps outer current set 0
+bindsym $mod+z gaps outer current plus 5
+bindsym $mod+Shift+z gaps outer current minus 5
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
@@ -88,17 +95,19 @@ bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
-# split in horizontal orientation
-bindsym $mod+o split v
+# resize windows
+bindsym $mod+Shift+y resize shrink width 10 px or 10 ppt
+bindsym $mod+Shift+u resize grow height 10 px or 10 ppt
+bindsym $mod+Shift+i resize shrink height 10 px or 10 ppt
+bindsym $mod+Shift+o resize grow width 10 px or 10 ppt
-# split in vertical orientation
-bindsym $mod+v split h
+# toggle split orientation
+bindsym $mod+t split toggle
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
-bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
@@ -174,34 +183,6 @@ mode "$mode_system" {
bindsym $mod+Shift+e mode "$mode_system"
-
-# 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 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
-
- # 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 or $mod+r
- bindsym Return mode "default"
- bindsym Escape mode "default"
- bindsym $mod+r mode "default"
-}
-
-bindsym $mod+r mode "resize"
-
# Start Polybar
exec_always --no-startup-id .config/polybar/launch.sh
@@ -209,15 +190,16 @@ exec_always --no-startup-id .config/polybar/launch.sh
bindsym $aux+f exec termite -e ~/.config/vifm/scripts/vifmrun
bindsym $aux+t exec ./.telegram/Telegram
bindsym $aux+v exec feh ~/.vim-cheatsheet.gif --auto-zoom
-## Languages
+
+# Languages
bindsym $aux+Shift+e exec setxkbmap es
bindsym $aux+Shift+u exec setxkbmap us
-## Screnshots
+
+# Screnshots
bindsym Print exec escrotum "~/Imágenes/%Y-%m-%d-%H%M%S.png"
bindsym Ctrl+Print exec escrotum -s "~/Imágenes/%Y-%m-%d-%H%M%S.png"
bindsym Ctrl+Shift+Print exec escrotum -s -C
-
# Disable focus follows
focus_follows_mouse no
@@ -241,7 +223,6 @@ for_window [class="Galculator"] floating enable border pixel 1
for_window [class="GParted"] floating enable border normal
for_window [class="Nitrogen"] floating enable sticky enable border normal
-
# Autostarts
exec --no-startup-id i3-msg 'exec /usr/bin/minetime'
exec --no-startup-id i3-msg 'exec /usr/bin/mailspring'