aboutsummaryrefslogtreecommitdiffstats
path: root/i3
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2018-10-28 14:11:18 +0000
committerYann Herklotz <ymherklotz@gmail.com>2018-10-28 14:11:18 +0000
commite8e8ced09ab22a97ae3da86bf98b2be09e6a4f61 (patch)
treed1231de8ecaec807c2add739d12f77ee40e9f038 /i3
parent958e7a843e45d81302d592701920bc247fa22865 (diff)
downloaddotfiles-e8e8ced09ab22a97ae3da86bf98b2be09e6a4f61.tar.gz
dotfiles-e8e8ced09ab22a97ae3da86bf98b2be09e6a4f61.zip
Add easier resizing and open mode
Diffstat (limited to 'i3')
-rw-r--r--i3/config21
1 files changed, 17 insertions, 4 deletions
diff --git a/i3/config b/i3/config
index a2d1e77..19166d3 100644
--- a/i3/config
+++ b/i3/config
@@ -121,6 +121,19 @@ bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
+# App bindings to open
+set $open_mode Open: (e) Emacs, (f) Firefox
+mode "$open_mode" {
+ bindsym f exec firefox, mode "default"
+ bindsym e exec emacsclient -c -a "emacs", mode "default"
+
+ # back to normal: Enter or Escape
+ bindsym Return mode "default"
+ bindsym Escape mode "default"
+}
+
+bindsym $mod+o mode "$open_mode"
+
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
@@ -129,10 +142,10 @@ mode "resize" {
# 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 n resize shrink width 10 px or 10 ppt
- bindsym e resize grow height 10 px or 10 ppt
- bindsym u resize shrink height 10 px or 10 ppt
- bindsym i resize grow width 10 px or 10 ppt
+ bindsym n resize shrink width 25 px or 25 ppt
+ bindsym e resize grow height 25 px or 25 ppt
+ bindsym u resize shrink height 25 px or 25 ppt
+ bindsym i resize grow width 25 px or 25 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt