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