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