]> git.sur5r.net Git - i3/i3/blob - i3.config.keycodes
generate-command-parser: support <number>s, state ID replacing and…
[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. Will also be used by the bar unless a different font
14 # is used in the bar {} block below. ISO 10646 = Unicode
15 font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
16 # The font above is very space-efficient, that is, it looks good, sharp and
17 # clear in small sizes. However, if you need a lot of unicode glyphs or
18 # right-to-left text rendering, you should instead use pango for rendering and
19 # chose an xft font, such as:
20 # font xft:DejaVu Sans Mono 10
21
22 # Use Mouse+$mod to drag floating windows to their wanted position
23 floating_modifier $mod
24
25 # start a terminal
26 bindcode $mod+36 exec i3-sensible-terminal
27
28 # kill focused window
29 bindcode $mod+Shift+24 kill
30
31 # start dmenu (a program launcher)
32 bindcode $mod+40 exec dmenu_run
33
34 # change focus
35 bindcode $mod+44 focus left
36 bindcode $mod+45 focus down
37 bindcode $mod+46 focus up
38 bindcode $mod+47 focus right
39
40 # alternatively, you can use the cursor keys:
41 bindcode $mod+113 focus left
42 bindcode $mod+116 focus down
43 bindcode $mod+111 focus up
44 bindcode $mod+114 focus right
45
46 # move focused window
47 bindcode $mod+Shift+44 move left
48 bindcode $mod+Shift+45 move down
49 bindcode $mod+Shift+46 move up
50 bindcode $mod+Shift+47 move right
51
52 # alternatively, you can use the cursor keys:
53 bindcode $mod+Shift+113 move left
54 bindcode $mod+Shift+116 move down
55 bindcode $mod+Shift+111 move up
56 bindcode $mod+Shift+114 move right
57
58 # split in horizontal orientation
59 bindcode $mod+43 split h
60
61 # split in vertical orientation
62 bindcode $mod+55 split v
63
64 # enter fullscreen mode for the focused container
65 bindcode $mod+41 fullscreen
66
67 # change container layout (stacked, tabbed, toggle split)
68 bindcode $mod+39 layout stacking
69 bindcode $mod+25 layout tabbed
70 bindcode $mod+26 layout toggle split
71
72 # toggle tiling / floating
73 bindcode $mod+Shift+65 floating toggle
74
75 # change focus between tiling / floating windows
76 bindcode $mod+65 focus mode_toggle
77
78 # focus the parent container
79 bindcode $mod+38 focus parent
80
81 # focus the child container
82 #bindcode $mod+d focus child
83
84 # switch to workspace
85 bindcode $mod+10 workspace 1
86 bindcode $mod+11 workspace 2
87 bindcode $mod+12 workspace 3
88 bindcode $mod+13 workspace 4
89 bindcode $mod+14 workspace 5
90 bindcode $mod+15 workspace 6
91 bindcode $mod+16 workspace 7
92 bindcode $mod+17 workspace 8
93 bindcode $mod+18 workspace 9
94 bindcode $mod+19 workspace 10
95
96 # move focused container to workspace
97 bindcode $mod+Shift+10 move container to workspace 1
98 bindcode $mod+Shift+11 move container to workspace 2
99 bindcode $mod+Shift+12 move container to workspace 3
100 bindcode $mod+Shift+13 move container to workspace 4
101 bindcode $mod+Shift+14 move container to workspace 5
102 bindcode $mod+Shift+15 move container to workspace 6
103 bindcode $mod+Shift+16 move container to workspace 7
104 bindcode $mod+Shift+17 move container to workspace 8
105 bindcode $mod+Shift+18 move container to workspace 9
106 bindcode $mod+Shift+19 move container to workspace 10
107
108 # reload the configuration file
109 bindcode $mod+Shift+54 reload
110 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
111 bindcode $mod+Shift+27 restart
112 # exit i3 (logs you out of your X session)
113 bindcode $mod+Shift+26 exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
114
115 # resize window (you can also use the mouse for that)
116 mode "resize" {
117         # These bindings trigger as soon as you enter the resize mode
118
119         # Pressing left will shrink the window’s width.
120         # Pressing right will grow the window’s width.
121         # Pressing up will shrink the window’s height.
122         # Pressing down will grow the window’s height.
123         bindcode 44 resize shrink width 10 px or 10 ppt
124         bindcode 45 resize grow height 10 px or 10 ppt
125         bindcode 46 resize shrink height 10 px or 10 ppt
126         bindcode 47 resize grow width 10 px or 10 ppt
127
128         # same bindings, but for the arrow keys
129         bindcode 113 resize shrink width 10 px or 10 ppt
130         bindcode 116 resize grow height 10 px or 10 ppt
131         bindcode 111 resize shrink height 10 px or 10 ppt
132         bindcode 114 resize grow width 10 px or 10 ppt
133
134         # back to normal: Enter or Escape
135         bindcode 36 mode "default"
136         bindcode 9 mode "default"
137 }
138
139 bindcode $mod+27 mode "resize"
140
141 # Start i3bar to display a workspace bar (plus the system information i3status
142 # finds out, if available)
143 bar {
144         status_command i3status
145 }