3 # Please see http://i3wm.org/docs/userguide.html for a complete reference!
5 # This config file uses keycodes (bindsym) and was written for the QWERTY
8 # To get a config file with the same key positions, but for your current
9 # layout, use the i3-config-wizard
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.
24 # use these keys for focus, movement, and resize directions when reaching for
25 # the arrows is not convenient
31 # use Mouse+Mod1 to drag floating windows to their wanted position
32 floating_modifier Mod1
35 bindsym Mod1+Return exec i3-sensible-terminal
38 bindsym Mod1+Shift+q kill
40 # start dmenu (a program launcher)
41 bindsym Mod1+d exec dmenu_run
42 # There also is the (new) i3-dmenu-desktop which only displays applications
43 # shipping a .desktop file. It is a wrapper around dmenu, so you need that
45 # bindsym Mod1+d exec --no-startup-id i3-dmenu-desktop
48 bindsym Mod1+$left focus left
49 bindsym Mod1+$down focus down
50 bindsym Mod1+$up focus up
51 bindsym Mod1+$right focus right
53 # alternatively, you can use the cursor keys:
54 bindsym Mod1+Left focus left
55 bindsym Mod1+Down focus down
56 bindsym Mod1+Up focus up
57 bindsym Mod1+Right focus right
60 bindsym Mod1+Shift+$left move left
61 bindsym Mod1+Shift+$down move down
62 bindsym Mod1+Shift+$up move up
63 bindsym Mod1+Shift+$right move right
65 # alternatively, you can use the cursor keys:
66 bindsym Mod1+Shift+Left move left
67 bindsym Mod1+Shift+Down move down
68 bindsym Mod1+Shift+Up move up
69 bindsym Mod1+Shift+Right move right
71 # split in horizontal orientation
72 bindsym Mod1+h split h
74 # split in vertical orientation
75 bindsym Mod1+v split v
77 # enter fullscreen mode for the focused container
78 bindsym Mod1+f fullscreen toggle
80 # change container layout (stacked, tabbed, toggle split)
81 bindsym Mod1+s layout stacking
82 bindsym Mod1+w layout tabbed
83 bindsym Mod1+e layout toggle split
85 # toggle tiling / floating
86 bindsym Mod1+Shift+space floating toggle
88 # change focus between tiling / floating windows
89 bindsym Mod1+space focus mode_toggle
91 # focus the parent container
92 bindsym Mod1+a focus parent
94 # focus the child container
95 #bindsym Mod1+d focus child
97 # move the currently focused window to the scratchpad
98 bindsym Mod1+Shift+minus move scratchpad
100 # Show the next scratchpad window or hide the focused scratchpad window.
101 # If there are multiple scratchpad windows, this command cycles through them.
102 bindsym Mod1+minus scratchpad show
104 # switch to workspace
105 bindsym Mod1+1 workspace 1
106 bindsym Mod1+2 workspace 2
107 bindsym Mod1+3 workspace 3
108 bindsym Mod1+4 workspace 4
109 bindsym Mod1+5 workspace 5
110 bindsym Mod1+6 workspace 6
111 bindsym Mod1+7 workspace 7
112 bindsym Mod1+8 workspace 8
113 bindsym Mod1+9 workspace 9
114 bindsym Mod1+0 workspace 10
116 # move focused container to workspace
117 bindsym Mod1+Shift+1 move container to workspace 1
118 bindsym Mod1+Shift+2 move container to workspace 2
119 bindsym Mod1+Shift+3 move container to workspace 3
120 bindsym Mod1+Shift+4 move container to workspace 4
121 bindsym Mod1+Shift+5 move container to workspace 5
122 bindsym Mod1+Shift+6 move container to workspace 6
123 bindsym Mod1+Shift+7 move container to workspace 7
124 bindsym Mod1+Shift+8 move container to workspace 8
125 bindsym Mod1+Shift+9 move container to workspace 9
126 bindsym Mod1+Shift+0 move container to workspace 10
128 # reload the configuration file
129 bindsym Mod1+Shift+c reload
130 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
131 bindsym Mod1+Shift+r restart
132 # exit i3 (logs you out of your X session)
133 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'"
135 # resize window (you can also use the mouse for that)
137 # These bindings trigger as soon as you enter the resize mode
139 # Pressing left will shrink the window’s width.
140 # Pressing right will grow the window’s width.
141 # Pressing up will shrink the window’s height.
142 # Pressing down will grow the window’s height.
143 bindsym $left resize shrink width 10 px or 10 ppt
144 bindsym $down resize grow height 10 px or 10 ppt
145 bindsym $up resize shrink height 10 px or 10 ppt
146 bindsym $right resize grow width 10 px or 10 ppt
148 # same bindings, but for the arrow keys
149 bindsym Left resize shrink width 10 px or 10 ppt
150 bindsym Down resize grow height 10 px or 10 ppt
151 bindsym Up resize shrink height 10 px or 10 ppt
152 bindsym Right resize grow width 10 px or 10 ppt
154 # back to normal: Enter or Escape
155 bindsym Return mode "default"
156 bindsym Escape mode "default"
159 bindsym Mod1+r mode "resize"
161 # Start i3bar to display a workspace bar (plus the system information i3status
162 # finds out, if available)
164 status_command i3status
167 #######################################################################
168 # automatically start i3-config-wizard to offer the user to create a
169 # keysym-based config which used his favorite modifier (alt or windows)
171 # i3-config-wizard will not launch if there already is a config file
174 # Please remove the following exec line:
175 #######################################################################
176 exec i3-config-wizard