]> git.sur5r.net Git - i3/i3/blob - i3.config.keycodes
Merge branch 'fix-dump-log-errmsg'
[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 container to workspace 1
92 bindcode $mod+Shift+11 move container to workspace 2
93 bindcode $mod+Shift+12 move container to workspace 3
94 bindcode $mod+Shift+13 move container to workspace 4
95 bindcode $mod+Shift+14 move container to workspace 5
96 bindcode $mod+Shift+15 move container to workspace 6
97 bindcode $mod+Shift+16 move container to workspace 7
98 bindcode $mod+Shift+17 move container to workspace 8
99 bindcode $mod+Shift+18 move container to workspace 9
100 bindcode $mod+Shift+19 move container to 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         # Pressing left will shrink the window’s width.
114         # Pressing right will grow the window’s width.
115         # Pressing up will shrink the window’s height.
116         # Pressing down will grow the window’s height.
117         bindcode 44 resize shrink width 10 px or 10 ppt
118         bindcode 45 resize grow height 10 px or 10 ppt
119         bindcode 46 resize shrink height 10 px or 10 ppt
120         bindcode 47 resize grow width 10 px or 10 ppt
121
122         # same bindings, but for the arrow keys
123         bindsym 113 resize shrink width 10 px or 10 ppt
124         bindsym 116 resize grow height 10 px or 10 ppt
125         bindsym 111 resize shrink height 10 px or 10 ppt
126         bindsym 114 resize grow width 10 px or 10 ppt
127
128         # back to normal: Enter or Escape
129         bindcode 36 mode "default"
130         bindcode 9 mode "default"
131 }
132
133 bindcode $mod+27 mode "resize"
134
135 # Start i3bar to display a workspace bar (plus the system information i3status
136 # finds out, if available)
137 bar {
138         status_command i3status
139 }