]> git.sur5r.net Git - i3/i3/blob - i3.config
52c4a7e16044a3c267614715e83246b85e089a76
[i3/i3] / i3.config
1 # i3 config file (v4)
2 #
3 # Please see http://i3wm.org/docs/userguide.html for a complete reference!
4 #
5 # This config file uses keycodes (bindsym) and was written for the QWERTY
6 # layout.
7 #
8 # To get a config file with the same key positions, but for your current
9 # layout, use the i3-config-wizard
10 #
11
12 # font for window titles. ISO 10646 = Unicode
13 font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
14
15 # use Mouse+Mod1 to drag floating windows to their wanted position
16 floating_modifier Mod1
17
18 # start a terminal
19 bindsym Mod1+Return exec urxvt
20
21 # kill focused window
22 bindsym Mod1+Shift+q kill
23
24 # start dmenu (a program launcher)
25 bindsym Mod1+d exec dmenu_run
26
27 # change focus
28 bindsym Mod1+j focus left
29 bindsym Mod1+k focus down
30 bindsym Mod1+l focus up
31 bindsym Mod1+semicolon focus right
32
33 # alternatively, you can use the cursor keys:
34 bindsym Mod1+Left focus left
35 bindsym Mod1+Down focus down
36 bindsym Mod1+Up focus up
37 bindsym Mod1+Right focus right
38
39 # move focused window
40 bindsym Mod1+Shift+j move left
41 bindsym Mod1+Shift+k move down
42 bindsym Mod1+Shift+l move up
43 bindsym Mod1+Shift+semicolon move right
44
45 # alternatively, you can use the cursor keys:
46 bindsym Mod1+Shift+Left move left
47 bindsym Mod1+Shift+Down move down
48 bindsym Mod1+Shift+Up move up
49 bindsym Mod1+Shift+Right move right
50
51 # split in horizontal orientation
52 bindsym Mod1+h split h
53
54 # split in vertical orientation
55 bindsym Mod1+v split v
56
57 # enter fullscreen mode for the focused container
58 bindsym Mod1+f fullscreen
59
60 # change container layout (stacked, tabbed, default)
61 bindsym Mod1+s layout stacking
62 bindsym Mod1+w layout tabbed
63 bindsym Mod1+e layout default
64
65 # toggle tiling / floating
66 bindsym Mod1+Shift+space floating toggle
67
68 # change focus between tiling / floating windows
69 bindsym Mod1+space focus mode_toggle
70
71 # focus the parent container
72 bindsym Mod1+a focus parent
73
74 # focus the child container
75 #bindsym Mod1+d focus child
76
77 # switch to workspace
78 bindsym Mod1+1 workspace 1
79 bindsym Mod1+2 workspace 2
80 bindsym Mod1+3 workspace 3
81 bindsym Mod1+4 workspace 4
82 bindsym Mod1+5 workspace 5
83 bindsym Mod1+6 workspace 6
84 bindsym Mod1+7 workspace 7
85 bindsym Mod1+8 workspace 8
86 bindsym Mod1+9 workspace 9
87 bindsym Mod1+0 workspace 10
88
89 # move focused container to workspace
90 bindsym Mod1+Shift+1 move workspace 1
91 bindsym Mod1+Shift+2 move workspace 2
92 bindsym Mod1+Shift+3 move workspace 3
93 bindsym Mod1+Shift+4 move workspace 4
94 bindsym Mod1+Shift+5 move workspace 5
95 bindsym Mod1+Shift+6 move workspace 6
96 bindsym Mod1+Shift+7 move workspace 7
97 bindsym Mod1+Shift+8 move workspace 8
98 bindsym Mod1+Shift+9 move workspace 9
99 bindsym Mod1+Shift+0 move workspace 10
100
101 # reload the configuration file
102 bindsym Mod1+Shift+c reload
103 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
104 bindsym Mod1+Shift+r restart
105 # exit i3 (logs you out of your X session)
106 bindsym Mod1+Shift+e exit
107
108 # resize window (you can also use the mouse for that)
109 mode "resize" {
110         # These bindings trigger as soon as you enter the resize mode
111
112         # They resize the border in the direction you pressed, e.g.
113         # when pressing left, the window is resized so that it has
114         # more space on its left
115
116         bindsym j               resize shrink left 10 px or 10 ppt
117         bindsym Shift+j         resize grow   left 10 px or 10 ppt
118
119         bindsym k               resize shrink down 10 px or 10 ppt
120         bindsym Shift+k         resize grow   down 10 px or 10 ppt
121
122         bindsym l               resize shrink up 10 px or 10 ppt
123         bindsym Shift+l         resize grow   up 10 px or 10 ppt
124
125         bindsym semicolon       resize shrink right 10 px or 10 ppt
126         bindsym Shift+semicolon resize grow   right 10 px or 10 ppt
127
128         # same bindings, but for the arrow keys
129         bindsym Left        resize shrink left 10 px or 10 ppt
130         bindsym Shift+Left  resize grow   left 10 px or 10 ppt
131
132         bindsym Down        resize shrink down 10 px or 10 ppt
133         bindsym Shift+Down  resize grow   down 10 px or 10 ppt
134
135         bindsym Up          resize shrink up 10 px or 10 ppt
136         bindsym Shift+Up    resize grow   up 10 px or 10 ppt
137
138         bindsym Right       resize shrink right 10 px or 10 ppt
139         bindsym Shift+Right resize grow   right 10 px or 10 ppt
140
141         # back to normal: Enter or Escape
142         bindsym Return mode "default"
143         bindsym Escape mode "default"
144 }
145
146 bindsym Mod1+r mode "resize"
147
148 # Start i3bar to display a workspace bar (plus the system information i3status
149 # finds out, if available)
150 exec i3status | i3bar -d
151
152 #######################################################################
153 # automatically start i3-config-wizard to offer the user to create a
154 # keysym-based config which used his favorite modifier (alt or windows)
155 #
156 # i3-config-wizard will not launch if there already is a config file
157 # in ~/.i3/config.
158 #
159 # Please remove the following exec line:
160 #######################################################################
161 exec i3-config-wizard