]> git.sur5r.net Git - i3/i3/blob - i3.config
Add cursor keys for focussing, moving, snapping to the default config
[i3/i3] / i3.config
1 # This configuration uses Mod1 and Mod3. Make sure they are mapped properly using xev(1)
2 # and xmodmap(1). Usually, Mod1 is Alt (Alt_L) and Mod3 is Windows (Super_L)
3
4 # Tell i3 about your preferred terminal. You can refer to this as $terminal
5 # later. It is recommended to set this option to allow i3 to open a terminal
6 # containing the introduction on first start.
7 terminal /usr/bin/urxvt
8
9 # ISO 10646 = Unicode
10 font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
11
12 # Use Mouse+Mod1 to drag floating windows to their wanted position
13 floating_modifier Mod1
14
15 # Fullscreen (Mod1+f)
16 bind Mod1+41 f
17
18 # Stacking (Mod1+h)
19 bind Mod1+43 s
20
21 # Tabbed (Mod1+w)
22 bind Mod1+25 T
23
24 # Default (Mod1+e)
25 bind Mod1+26 d
26
27 # Toggle tiling/floating of the current window (Mod1+Shift+Space)
28 bind Mod1+Shift+65 t
29
30 # Go into the tiling layer / floating layer, depending on whether
31 # the current window is tiling / floating (Mod1+t)
32 bind Mod1+28 focus ft
33
34 # Focus (Mod1+j/k/l/;)
35 bind Mod1+44 h
36 bind Mod1+45 j
37 bind Mod1+46 k
38 bind Mod1+47 l
39 # (alternatively, you can use the cursor keys:)
40 bindsym Mod1+Left h
41 bindsym Mod1+Down j
42 bindsym Mod1+Up k
43 bindsym Mod1+Right l
44
45 # Focus Container (Mod3+j/k/l/;)
46 bind Mod3+44 wch
47 bind Mod3+45 wcj
48 bind Mod3+46 wck
49 bind Mod3+47 wcl
50 # (alternatively, you can use the cursor keys:)
51 bindsym Mod3+Left h
52 bindsym Mod3+Down j
53 bindsym Mod3+Up k
54 bindsym Mod3+Right l
55
56 # Snap (Mod1+Control+j/k/l/;)
57 bind Mod1+Control+44 sh
58 bind Mod1+Control+45 sj
59 bind Mod1+Control+46 sk
60 bind Mod1+Control+47 sl
61 # (alternatively, you can use the cursor keys:)
62 bindsym Mod1+Control+Left h
63 bindsym Mod1+Control+Down j
64 bindsym Mod1+Control+Up k
65 bindsym Mod1+Control+Right l
66
67 # Move (Mod1+Shift+j/k/l/;)
68 bind Mod1+Shift+44 mh
69 bind Mod1+Shift+45 mj
70 bind Mod1+Shift+46 mk
71 bind Mod1+Shift+47 ml
72 # (alternatively, you can use the cursor keys:)
73 bindsym Mod1+Shift+Left h
74 bindsym Mod1+Shift+Down j
75 bindsym Mod1+Shift+Up k
76 bindsym Mod1+Shift+Right l
77
78 # Move Container (Mod3+Shift+j/k/l/;)
79 bind Mod3+Shift+44 wcmh
80 bind Mod3+Shift+45 wcmj
81 bind Mod3+Shift+46 wcmk
82 bind Mod3+Shift+47 wcml
83
84 # Workspaces (Mod1+1/2/…)
85 bind Mod1+10 1
86 bind Mod1+11 2
87 bind Mod1+12 3
88 bind Mod1+13 4
89 bind Mod1+14 5
90 bind Mod1+15 6
91 bind Mod1+16 7
92 bind Mod1+17 8
93 bind Mod1+18 9
94 bind Mod1+19 10
95
96 # Move to Workspaces
97 bind Mod1+Shift+10 m1
98 bind Mod1+Shift+11 m2
99 bind Mod1+Shift+12 m3
100 bind Mod1+Shift+13 m4
101 bind Mod1+Shift+14 m5
102 bind Mod1+Shift+15 m6
103 bind Mod1+Shift+16 m7
104 bind Mod1+Shift+17 m8
105 bind Mod1+Shift+18 m9
106 bind Mod1+Shift+19 m10
107
108 # Mod1+Enter starts a new terminal
109 bind Mod1+36 exec /usr/bin/urxvt
110
111 # Mod1+Shift+q kills the current client
112 bind Mod1+Shift+24 kill
113
114 # Mod1+v starts dmenu and launches the selected application
115 # for now, we don’t have an own launcher
116 bind Mod1+55 exec /usr/bin/dmenu_run
117
118 # Mod1+Shift+e exits i3
119 bind Mod1+Shift+26 exit
120
121 # Mod1+Shift+r restarts i3 inplace
122 bind Mod1+Shift+27 restart