]> git.sur5r.net Git - i3/i3/blob - i3.config
default config: add resize mode
[i3/i3] / i3.config
1 # i3 config file (v4)
2 #
3 # This configuration file was written for the NEO layout. If you are using a
4 # different layout, you should change it.
5
6 # font for window titles. ISO 10646 = Unicode
7 font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
8
9 # use Mouse+Mod1 to drag floating windows to their wanted position
10 floating_modifier Mod1
11
12 # start a terminal
13 bindsym Mod1+Return exec /usr/bin/urxvt
14
15 # kill focused window
16 bindsym Mod1+c kill
17
18 # start dmenu (a program launcher)
19 bindsym Mod1+p exec /usr/bin/dmenu_run
20
21 # change focus
22 bindsym Mod1+n focus left
23 bindsym Mod1+r focus down
24 bindsym Mod1+t focus up
25 bindsym Mod1+d focus right
26
27 # alternatively, you can use the cursor keys:
28 bindsym Mod1+Left focus left
29 bindsym Mod1+Down focus down
30 bindsym Mod1+Up focus up
31 bindsym Mod1+Right focus right
32
33 # move focused window
34 bindsym Mod1+Shift+n move left
35 bindsym Mod1+Shift+r move down
36 bindsym Mod1+Shift+t move up
37 bindsym Mod1+Shift+d move right
38
39 # alternatively, you can use the cursor keys:
40 bindsym Mod1+Shift+Left move left
41 bindsym Mod1+Shift+Right move right
42 bindsym Mod1+Shift+Down move down
43 bindsym Mod1+Shift+Up move up
44
45 # split in horizontal orientation
46 bindsym Mod1+h split h
47
48 # split in vertical orientation
49 bindsym Mod1+v split v
50
51 # enter fullscreen mode for the focused container
52 bindsym Mod1+f fullscreen
53
54 # change container layout (stacked, tabbed, default)
55 bindsym Mod1+s layout stacking
56 bindsym Mod1+w layout tabbed
57 bindsym Mod1+l layout default
58
59 # toggle tiling / floating
60 bindsym Mod1+Shift+space floating toggle
61
62 # change focus between tiling / floating windows
63 bindsym Mod1+space focus mode_toggle
64
65 # focus the parent container
66 bindsym Mod1+u focus parent
67
68 # focus the child container
69 #bindsym Mod1+d focus child
70
71 # switch to workspace
72 bindsym Mod1+1 workspace 1
73 bindsym Mod1+2 workspace 2
74 bindsym Mod1+3 workspace 3
75 bindsym Mod1+4 workspace 4
76 bindsym Mod1+5 workspace 5
77 bindsym Mod1+6 workspace 6
78 bindsym Mod1+7 workspace 7
79 bindsym Mod1+8 workspace 8
80 bindsym Mod1+9 workspace 9
81 bindsym Mod1+0 workspace 10
82
83 # move focused container to workspace
84 bindsym Mod1+Shift+1 move workspace 1
85 bindsym Mod1+Shift+2 move workspace 2
86 bindsym Mod1+Shift+3 move workspace 3
87 bindsym Mod1+Shift+4 move workspace 4
88 bindsym Mod1+Shift+5 move workspace 5
89 bindsym Mod1+Shift+6 move workspace 6
90 bindsym Mod1+Shift+7 move workspace 7
91 bindsym Mod1+Shift+8 move workspace 8
92 bindsym Mod1+Shift+9 move workspace 9
93 bindsym Mod1+Shift+0 move workspace 10
94
95 # reload the configuration file
96 bindsym Mod1+Shift+j reload
97 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
98 bindsym Mod1+Shift+c restart
99 # exit i3 (logs you out of your X session)
100 bindsym Mod1+Shift+l exit
101
102 # resize window (you can also use the mouse for that)
103 mode "resize" {
104         # These bindings trigger as soon as you enter the resize mode
105
106         # They resize the border in the direction you pressed, e.g.
107         # when pressing left, the window is resized so that it has
108         # more space on its left
109
110         bindsym n       resize shrink left 10 px or 10 ppt
111         bindsym Shift+n resize grow   left 10 px or 10 ppt
112
113         bindsym r       resize shrink down 10 px or 10 ppt
114         bindsym Shift+r resize grow   down 10 px or 10 ppt
115
116         bindsym t       resize shrink up 10 px or 10 ppt
117         bindsym Shift+t resize grow   up 10 px or 10 ppt
118
119         bindsym d       resize shrink right 10 px or 10 ppt
120         bindsym Shift+d resize grow   right 10 px or 10 ppt
121
122         bindsym Return mode "default"
123         bindsym Escape mode "default"
124 }
125
126 bindsym Mod1+r mode "resize"