]> git.sur5r.net Git - i3/i3/blob - i3.config
Merge branch 'master' into next
[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. Will also be used by the bar unless a different font
13 # is used in the bar {} block below. ISO 10646 = Unicode
14 font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
15 # The font above is very space-efficient, that is, it looks good, sharp and
16 # clear in small sizes. However, if you need a lot of unicode glyphs or
17 # right-to-left text rendering, you should instead use pango for rendering and
18 # chose a FreeType font, such as:
19 # font pango:DejaVu Sans Mono 10
20
21 # use Mouse+Mod1 to drag floating windows to their wanted position
22 floating_modifier Mod1
23
24 # start a terminal
25 bindsym Mod1+Return exec i3-sensible-terminal
26
27 # kill focused window
28 bindsym Mod1+Shift+q kill
29
30 # start dmenu (a program launcher)
31 bindsym Mod1+d exec dmenu_run
32 # There also is the (new) i3-dmenu-desktop which only displays applications
33 # shipping a .desktop file. It is a wrapper around dmenu, so you need that
34 # installed.
35 # bindsym Mod1+d exec --no-startup-id i3-dmenu-desktop
36
37 # change focus
38 bindsym Mod1+j focus left
39 bindsym Mod1+k focus down
40 bindsym Mod1+l focus up
41 bindsym Mod1+semicolon focus right
42
43 # alternatively, you can use the cursor keys:
44 bindsym Mod1+Left focus left
45 bindsym Mod1+Down focus down
46 bindsym Mod1+Up focus up
47 bindsym Mod1+Right focus right
48
49 # move focused window
50 bindsym Mod1+Shift+j move left
51 bindsym Mod1+Shift+k move down
52 bindsym Mod1+Shift+l move up
53 bindsym Mod1+Shift+semicolon move right
54
55 # alternatively, you can use the cursor keys:
56 bindsym Mod1+Shift+Left move left
57 bindsym Mod1+Shift+Down move down
58 bindsym Mod1+Shift+Up move up
59 bindsym Mod1+Shift+Right move right
60
61 # split in horizontal orientation
62 bindsym Mod1+h split h
63
64 # split in vertical orientation
65 bindsym Mod1+v split v
66
67 # enter fullscreen mode for the focused container
68 bindsym Mod1+f fullscreen
69
70 # change container layout (stacked, tabbed, toggle split)
71 bindsym Mod1+s layout stacking
72 bindsym Mod1+w layout tabbed
73 bindsym Mod1+e layout toggle split
74
75 # toggle tiling / floating
76 bindsym Mod1+Shift+space floating toggle
77
78 # change focus between tiling / floating windows
79 bindsym Mod1+space focus mode_toggle
80
81 # focus the parent container
82 bindsym Mod1+a focus parent
83
84 # focus the child container
85 #bindsym Mod1+d focus child
86
87 # switch to workspace
88 bindsym Mod1+1 workspace 1
89 bindsym Mod1+2 workspace 2
90 bindsym Mod1+3 workspace 3
91 bindsym Mod1+4 workspace 4
92 bindsym Mod1+5 workspace 5
93 bindsym Mod1+6 workspace 6
94 bindsym Mod1+7 workspace 7
95 bindsym Mod1+8 workspace 8
96 bindsym Mod1+9 workspace 9
97 bindsym Mod1+0 workspace 10
98
99 # move focused container to workspace
100 bindsym Mod1+Shift+1 move container to workspace 1
101 bindsym Mod1+Shift+2 move container to workspace 2
102 bindsym Mod1+Shift+3 move container to workspace 3
103 bindsym Mod1+Shift+4 move container to workspace 4
104 bindsym Mod1+Shift+5 move container to workspace 5
105 bindsym Mod1+Shift+6 move container to workspace 6
106 bindsym Mod1+Shift+7 move container to workspace 7
107 bindsym Mod1+Shift+8 move container to workspace 8
108 bindsym Mod1+Shift+9 move container to workspace 9
109 bindsym Mod1+Shift+0 move container to workspace 10
110
111 # reload the configuration file
112 bindsym Mod1+Shift+c reload
113 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
114 bindsym Mod1+Shift+r restart
115 # exit i3 (logs you out of your X session)
116 bindsym Mod1+Shift+e 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'"
117
118 # resize window (you can also use the mouse for that)
119 mode "resize" {
120         # These bindings trigger as soon as you enter the resize mode
121
122         # Pressing left will shrink the window’s width.
123         # Pressing right will grow the window’s width.
124         # Pressing up will shrink the window’s height.
125         # Pressing down will grow the window’s height.
126         bindsym j           resize shrink width 10 px or 10 ppt
127         bindsym k           resize grow height 10 px or 10 ppt
128         bindsym l           resize shrink height 10 px or 10 ppt
129         bindsym semicolon   resize grow width 10 px or 10 ppt
130
131         # same bindings, but for the arrow keys
132         bindsym Left        resize shrink width 10 px or 10 ppt
133         bindsym Down        resize grow height 10 px or 10 ppt
134         bindsym Up          resize shrink height 10 px or 10 ppt
135         bindsym Right       resize grow width 10 px or 10 ppt
136
137         # back to normal: Enter or Escape
138         bindsym Return mode "default"
139         bindsym Escape mode "default"
140 }
141
142 bindsym Mod1+r mode "resize"
143
144 # Start i3bar to display a workspace bar (plus the system information i3status
145 # finds out, if available)
146 bar {
147         status_command i3status
148 }
149
150 #######################################################################
151 # automatically start i3-config-wizard to offer the user to create a
152 # keysym-based config which used his favorite modifier (alt or windows)
153 #
154 # i3-config-wizard will not launch if there already is a config file
155 # in ~/.i3/config.
156 #
157 # Please remove the following exec line:
158 #######################################################################
159 exec i3-config-wizard