aboutsummaryrefslogtreecommitdiffstats
path: root/i3
diff options
context:
space:
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