-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathi3-configuration
executable file
·495 lines (326 loc) · 13.6 KB
/
i3-configuration
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
# i3 configuration #
# references ///////////////////////////////////////////////////////////////////
# modifier references
# A - name
# B - call
# C - code
# [ A ] [ B ] [ C ]
# esc Escape 0x1b
# enter Return 0x0d
# shift right Shift_R 0x3e
# shift left Shift_L 0x32
# lock Caps_Lock 0x42
# control left Control_L 0x69
# control right Control_R 0x25
# mod1 Alt_L 0x40
# Alt_R 0x6c
# Meta_L 0xcd
# mod2 Num_Lock 0x4d
# mod3
# mod4 Super_L 0x85
# Super_R 0x86
# Super_L 0xce
# Hyper_L 0xcf
# mod5 ISO_Level3_Shift 0x5c
# Mode_switch 0xcb
# variables ////////////////////////////////////////////////////////////////////
set $font_name Monospace
set $font_size 10
set $modifier Mod1
set $windows Mod4
set $execute exec --no-startup-id
set $file_manager ranger
set $image "${HOME}"/.dextop/dextop-grey.svg
set $launcher i3-dmenu-desktop
set $lookup dmenu_run
set $status i3status
set $editor i3-sensible-editor
set $pager i3-sensible-pager
set $terminal i3-sensible-terminal
set $workspace1 "1"
set $workspace2 "2"
set $workspace3 "3"
set $workspace4 "4"
set $workspace5 "5"
set $workspace6 "6"
set $workspace7 "7"
set $workspace8 "8"
set $mode_gaps Gaps: [o]uter / [i]nner / [h]orizontal / [v]ertical / [t]op / [l]eft / [b]ottom / [r]ight
set $mode_gaps_outer Outer Gaps: + | - | 0 [local] / Shift + + | - | 0 [global]
set $mode_gaps_inner Inner Gaps: + | - | 0 [local] / Shift + + | - | 0 [global]
set $mode_gaps_horizontal Horizontal Gaps: + | - | 0 [local] / Shift + + | - | 0 [global]
set $mode_gaps_vertical Vertical Gaps: + | - | 0 [local] / Shift + + | - | 0 [global]
set $mode_gaps_top Top Gaps: + | - | 0 [local] / Shift + + | - | 0 [global]
set $mode_gaps_left Left Gaps: + | - | 0 [local] / Shift + + | - | 0 [global]
set $mode_gaps_bottom Bottom Gaps: + | - | 0 [local] / Shift + + | - | 0 [global]
set $mode_gaps_right Right Gaps: + | - | 0 [local] / Shift + + | - | 0 [global]
# startup //////////////////////////////////////////////////////////////////////
# background
$execute feh --no-fehbg --bg-center $image
# lock screen
# $execute i3lock --color 000000
# settings /////////////////////////////////////////////////////////////////////
# colors
# A - border
# B - background
# C - text
# D - indicator
# E - child border
# color class [ A ] [ B ] [ C ] [ D ] [ E ]
client.focused #000000 #000000 #FFFFFF #FFFFFF #000000
client.focused_inactive #000000 #000000 #666666 #666666 #000000
client.unfocused #000000 #666666 #000000 #000000 #000000
client.urgent #000000 #000000 #FF0000 #FF0000 #000000
client.placeholder #000000 #000000 #815FA3 #815FA3 #000000
client.background #000000
# fonts
font pango:$font_name $font_size
# windows
# window border
new_window normal 0
# window title alignment - left | center | right
title_align center
# window size - floating
floating_minimum_size 800 x 600
floating_maximum_size -1 x -1
# window modifier - floating - mouse drag
floating_modifier $modifier
# gaps
gaps inner 10px
gaps outer 10px
gaps horizontal 10px
gaps vertical 10px
smart_gaps inverse_outer
# bindings - applications //////////////////////////////////////////////////////
# launch
bindsym $modifier+space $execute i3-launch
# lookup
bindsym $modifier+l $execute i3-lookup
# shortcuts
bindsym $modifier+Shift+i $execute i3-shortcuts
# backgrounds
bindsym $modifier+g $execute i3-backgrounds
# files
bindsym $modifier+m $execute i3-file-manager
# manuals
bindsym $modifier+q $execute i3-manual
# navigation
bindsym $modifier+a $execute i3-navigation
# notes
bindsym $modifier+n $execute i3-notes
# processes
bindsym $modifier+e $execute i3-processes
# terminal
bindsym $modifier+t $execute $terminal
# terminate
bindsym $modifier+x kill
# kill
bindsym $modifier+Shift+x xkill
# bindings - windows ///////////////////////////////////////////////////////////
# change focus
bindsym $modifier+Up focus up
bindsym $modifier+Left focus left
bindsym $modifier+Down focus down
bindsym $modifier+Right focus right
# move focused window
bindsym $modifier+Shift+Up move up
bindsym $modifier+Shift+Left move left
bindsym $modifier+Shift+Down move down
bindsym $modifier+Shift+Right move right
# toggle [f]ullscreen
bindsym $modifier+f fullscreen toggle
# toggle floating
bindsym $modifier+w floating toggle
# change [w]indow focus - tiling / floating
bindsym $modifier+Shift+w focus mode_toggle
# bindings - containers ////////////////////////////////////////////////////////
# change container layout - [s]plit / stac[k] / ta[b]
bindsym $modifier+s layout toggle split
bindsym $modifier+k layout stacking
bindsym $modifier+b layout tabbed
# split container - [h]orizontal layout
bindsym $modifier+v split h
# split container - [v]ertical layout
bindsym $modifier+h split v
# focus [p]arent container
bindsym $modifier+p focus parent
# focus [c]hild container
bindsym $modifier+c focus child
# move floating container to [a]bsolute center
bindsym $modifier+Shift+a move absolute position center
# move container to current [m]ouse cursor position
bindsym $modifier+Shift+m move position mouse
# bindings - resize mode ///////////////////////////////////////////////////////
# window resize:
# bindings are activated when entering resize mode
# mouse can also be used
# enter resi[z]e mode
bindsym $modifier+z mode "resize"
mode "resize" {
# reset window to configured size
bindsym $modifier+Shift+z resize set 800 px 600 px
# shrink window width by 10 px
bindsym Left resize shrink width 10 px
# shrink window height by 10 px
bindsym Up resize shrink height 10 px
# grow window height by 10 px
bindsym Down resize grow height 10 px
# grow window width by 10 px
bindsym Right resize grow width 10 px
# exit resi[z]e mode
bindsym $modifier+z mode "default"
}
# bindings - workspaces ////////////////////////////////////////////////////////
# switch to workspace [n]
bindsym $modifier+1 workspace number $workspace1
bindsym $modifier+2 workspace number $workspace2
bindsym $modifier+3 workspace number $workspace3
bindsym $modifier+4 workspace number $workspace4
bindsym $modifier+5 workspace number $workspace5
bindsym $modifier+6 workspace number $workspace6
bindsym $modifier+7 workspace number $workspace7
bindsym $modifier+8 workspace number $workspace8
# move container to workspace [n]
bindsym $modifier+Shift+1 move container to workspace number $workspace1
bindsym $modifier+Shift+2 move container to workspace number $workspace2
bindsym $modifier+Shift+3 move container to workspace number $workspace3
bindsym $modifier+Shift+4 move container to workspace number $workspace4
bindsym $modifier+Shift+5 move container to workspace number $workspace5
bindsym $modifier+Shift+6 move container to workspace number $workspace6
bindsym $modifier+Shift+7 move container to workspace number $workspace7
bindsym $modifier+Shift+8 move container to workspace number $workspace8
# bindings - gaps //////////////////////////////////////////////////////////////
# gaps management:
# bindings are activated when entering resize mode
# mouse can also be used
bindsym $modifier+Shift+g mode "$mode_gaps"
mode "$mode_gaps" {
bindsym o mode "$mode_gaps_outer"
bindsym i mode "$mode_gaps_inner"
bindsym h mode "$mode_gaps_horizontal"
bindsym v mode "$mode_gaps_vertical"
bindsym t mode "$mode_gaps_top"
bindsym l mode "$mode_gaps_left"
bindsym b mode "$mode_gaps_bottom"
bindsym r mode "$mode_gaps_right"
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_outer" {
bindsym plus gaps outer current plus 5
bindsym minus gaps outer current minus 5
bindsym 0 gaps outer current set 0
bindsym Shift+plus gaps outer all plus 5
bindsym Shift+minus gaps outer all minus 5
bindsym Shift+0 gaps outer all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_inner" {
bindsym plus gaps inner current plus 5
bindsym minus gaps inner current minus 5
bindsym 0 gaps inner current set 0
bindsym Shift+plus gaps inner all plus 5
bindsym Shift+minus gaps inner all minus 5
bindsym Shift+0 gaps inner all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_horizontal" {
bindsym plus gaps horizontal current plus 5
bindsym minus gaps horizontal current minus 5
bindsym 0 gaps horizontal current set 0
bindsym Shift+plus gaps horizontal all plus 5
bindsym Shift+minus gaps horizontal all minus 5
bindsym Shift+0 gaps horizontal all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_vertical" {
bindsym plus gaps vertical current plus 5
bindsym minus gaps vertical current minus 5
bindsym 0 gaps vertical current set 0
bindsym Shift+plus gaps vertical all plus 5
bindsym Shift+minus gaps vertical all minus 5
bindsym Shift+0 gaps vertical all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_top" {
bindsym plus gaps top current plus 5
bindsym minus gaps top current minus 5
bindsym 0 gaps top current set 0
bindsym Shift+plus gaps top all plus 5
bindsym Shift+minus gaps top all minus 5
bindsym Shift+0 gaps top all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_left" {
bindsym plus gaps left current plus 5
bindsym minus gaps left current minus 5
bindsym 0 gaps left current set 0
bindsym Shift+plus gaps left all plus 5
bindsym Shift+minus gaps left all minus 5
bindsym Shift+0 gaps left all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_bottom" {
bindsym plus gaps bottom current plus 5
bindsym minus gaps bottom current minus 5
bindsym 0 gaps bottom current set 0
bindsym Shift+plus gaps bottom all plus 5
bindsym Shift+minus gaps bottom all minus 5
bindsym Shift+0 gaps bottom all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_right" {
bindsym plus gaps right current plus 5
bindsym minus gaps right current minus 5
bindsym 0 gaps right current set 0
bindsym Shift+plus gaps right all plus 5
bindsym Shift+minus gaps right all minus 5
bindsym Shift+0 gaps right all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
# bindings - session ///////////////////////////////////////////////////////////
# i3 session - reload configuration
bindsym $modifier+r reload
# i3 session - restart
bindsym $modifier+Shift+r restart
# i3 session - exit
bindsym $modifier+Shift+e $execute i3-exit
# bar //////////////////////////////////////////////////////////////////////////
bar {
status_command i3-status
font pango:$font_name $font_size
binding_mode_indicator yes
mode hide
hidden_state hide
modifier $modifier
position bottom
separator_symbol " // "
tray_output primary
tray_padding 0
workspace_buttons yes
workspace_min_width 20
strip_workspace_name no
strip_workspace_numbers no
colors {
# A - border
# B - background
# C - text
# color class [ A ] [ B ] [ C ]
background #000000
statusline #FFFFFF
separator #666666
focused_workspace #000000 #000000 #FFFFFF
active_workspace #666666 #FFFFFF #FFFFFF
inactive_workspace #000000 #000000 #666666
urgent_workspace #000000 #000000 #FF0000
binding_mode #000000 #000000 #666666
}
}