This repository has been archived by the owner on May 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig
391 lines (316 loc) · 10.7 KB
/
config
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
#--------------------------------------
# Секция настройки шрифтов
#--------------------------------------
font pango: Roboto Condensed 9
#--------------------------------------
# Секция переменных
#--------------------------------------
# Доступная палитра
# #EF5571 #8BABB6 #8BB3CC #E59757
# #C0A2BA #85B988 #C4BE67 #EE6555
# #DEDEDE #626262 #D64937 #21252E
# Цвета классы
set $cbfocol #F2EBC7
set $cbgfocol #F2EBC7
set $ctfocol #F2EBC7
set $cifocol #F2EBC7
set $cbficol #348899
set $cbgficol #348899
set $ctficol #21252E
set $cificol #21252E
set $cbuncol #6C6C6C
set $cbguncol #6C6C6C
set $ctuncol #F2EBC7
set $ciuncol #F2EBC7
set $cburcol #AC4344
set $cbgurcol #AC4344
set $cturcol #F2EBC7
set $ciurcol #F2EBC7
set $cbplcol #FBD977
set $cbgplcol #FBD977
set $ctplcol #21252E
set $ciplcol #21252E
# цвета ws
set $wbgcolor #21252E
set $wstcolor #F2EBC7
set $wspcolor #F2EBC7
set $fwbcolor #769070
set $fwbgcolor #769070
set $fwtcolor #F2EBC7
set $awbcolor #F2EBC7
set $awbgcolor #F2EBC7
set $awtcolor #21252E
set $iwbcolor #21252E
set $iwbgcolor #21252E
set $iwtcolor #F2EBC7
set $uwbcolor #AC4344
set $uwbgcolor #AC4344
set $uwtcolor #F2EBC7
# gaps
set $gaps_inner 4
set $gaps_outer 0
# Путь до папки с конфигом
# Config folder path
set $home /home/la/.config/i3/
# Клавиша windows
set $mod Mod4
# l
set $up 46
# k
set $down 45
# j
set $left 44
# ;
set $right 47
# воркспейсы
set $ws1 1:
set $ws2 2:
set $ws3 3:
set $ws4 4:
set $ws5 5:
set $ws6 6:
set $ws7 7:
set $ws8 8:
set $ws9 9:
set $ws10 10:
#--------------------------------------
# Бинд секция
#--------------------------------------
# Терминал
bindsym $mod+Return exec --no-startup-id urxvt
#bindsym $mod+Shift+Return exec --no-startup-id terminology
# Закрыть окно mod + q
bindcode $mod+24 kill
# launcher louncher mod + d
bindcode $mod+40 exec --no-startup-id rofi -show combi
# Mod + Ctrl + w
bindcode $mod+Ctrl+25 exec --no-startup-id rofi -show window
# Mod + Ctrl + s
# bindcode $mod+Ctrl+39 exec --no-startup-id rofi -show ssh
# hud menu @see https://github.com/LightAir/hud-menu
bindcode $mod+58 exec --no-startup-id $home/bin/hud-menu.py
# Система
# mod + ctrl + r
bindcode $mod+Ctrl+27 exec shutdown -r now
# mod + ctrl + o
bindcode $mod+Ctrl+32 exec shutdown -h now
# Перечитать файл конфига
# Mod + shift + c
bindcode $mod+Shift+54 reload
# Перезапуск wm. (Сохраняет лэйаут)
# Mod + shift + r
bindcode $mod+Shift+27 restart
# Выход (из X сессии)
# Mod + shift + e
bindcode $mod+Shift+26 exec "i3-nagbar -t warning -m 'Вы действительно хотите выйти?' -b 'Выход' 'i3-msg exit'"
# Lock Mod + shift + l
bindcode $mod+Ctrl+46 exec "xautolock -locknow"
# Раскладки
bindsym $mod+Ctrl+semicolon exec --no-startup-id $home/bin/set-dvorak.sh
bindsym $mod+Ctrl+s exec --no-startup-id $home/bin/set-default.sh
# фокус стрелками
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# Фокус
bindcode $mod+$left focus left
bindcode $mod+$down focus down
bindcode $mod+$up focus up
bindcode $mod+$right focus right
# Перемещение окон стрелками
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# Перемещение окон
bindcode $mod+Shift+$left move left
bindcode $mod+Shift+$down move down
bindcode $mod+Shift+$up move up
bindcode $mod+Shift+$right move right
# Разбить окно по горизонтали Mod + h
bindcode $mod+43 split h
# Разбить окно по вертикали Mod + v
bindcode $mod+55 split v
# Окно в фулскрин Mod + f
bindcode $mod+41 fullscreen
# Лайаут stacked, tabbed, toggle split
# Mod + s
bindcode $mod+39 layout stacking
# Mod + w
bindcode $mod+25 layout tabbed
# Mod + e
bindcode $mod+26 layout toggle split
# tiling / floating
bindsym $mod+Shift+space floating toggle
# фокус между tiling / floating
bindsym $mod+space focus mode_toggle
# Фокус родителя
# Mod + a
bindcode $mod+38 focus parent
# Фокус детей
#bindsym $mod+d focus child
# изменение бордюра
# Mod + t
bindcode $mod+28 border normal
# Mod + y
bindcode $mod+29 border 1pixel
# Mod + u
bindcode $mod+30 border none
# Переключение по воркспейсам
# Mod + z
bindcode $mod+52 workspace prev
# Mod + x
bindcode $mod+53 workspace next
# Mod + c
bindcode $mod+54 workspace back_and_forth
# Обои
# Mod + n
bindcode $mod+57 exec nitrogen --sort=time
# Браузер
# Mod + b
bindcode $mod+56 exec $home/bin/apprun/browser.sh
# IDE
# Mod + i
bindcode $mod+31 exec $home/bin/apprun/ide.sh
# Функциональные клавиши
## скриншотим
bindsym $mod+F3 exec scrot
## яркость
bindsym $mod+F4 exec --no-startup-id $home/bin/br-down.sh
#bindsym XF86MonBrightnessDown exec --no-startup-id $home/bin/br-down.sh
bindsym $mod+F5 exec --no-startup-id $home/bin/br-up.sh
#bindsym XF86MonBrightnessUp exec --no-startup-id $home/i3/bin/br-up.sh
## громкость
bindsym $mod+F7 exec --no-startup-id $home/bin/vol-down.sh
bindsym $mod+F8 exec --no-startup-id $home/bin/vol-up.sh
## плейер
bindsym $mod+F9 exec --no-startup-id mpc toggle
bindsym $mod+F10 exec --no-startup-id mpc stop
bindsym $mod+F11 exec --no-startup-id mpc prev
bindsym $mod+F12 exec --no-startup-id mpc next
## Настройка окон
for_window [class="(i?)ktorrent"] floating enable
for_window [class="Nitrogen"] floating enable
for_window [window_role="pop-up"] floating enable
for_window [class="xpad"] floating enable
# окно в scratchpad Mod + shift + -
bindcode $mod+Shift+20 move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# Mod + -
bindcode $mod+20 scratchpad show
# Переключение по воркспейсам
# Mod + 1..9, 0
bindcode $mod+10 workspace $ws1
bindcode $mod+11 workspace $ws2
bindcode $mod+12 workspace $ws3
bindcode $mod+13 workspace $ws4
bindcode $mod+14 workspace $ws5
bindcode $mod+15 workspace $ws6
bindcode $mod+16 workspace $ws7
bindcode $mod+17 workspace $ws8
bindcode $mod+18 workspace $ws9
bindcode $mod+19 workspace $ws10
# Перемещение в воркспейс
# Mod + shift + 1..9, 0
bindcode $mod+Shift+10 move container to workspace $ws1
bindcode $mod+Shift+11 move container to workspace $ws2
bindcode $mod+Shift+12 move container to workspace $ws3
bindcode $mod+Shift+13 move container to workspace $ws4
bindcode $mod+Shift+14 move container to workspace $ws5
bindcode $mod+Shift+15 move container to workspace $ws6
bindcode $mod+Shift+16 move container to workspace $ws7
bindcode $mod+Shift+17 move container to workspace $ws8
bindcode $mod+Shift+18 move container to workspace $ws9
bindcode $mod+Shift+19 move container to workspace $ws10
# Mod + shift + r
bindcode $mod+27 mode "resize"
# Ресайз окна (Можно юзать мышь)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the window’s width.
# Pressing right will grow the window’s width.
# Pressing up will shrink the window’s height.
# Pressing down will grow the window’s height.
bindcode $left resize shrink width 10 px or 10 ppt
bindcode $down resize grow height 10 px or 10 ppt
bindcode $up resize shrink height 10 px or 10 ppt
bindcode $right resize grow width 10 px or 10 pptbindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 -- +10% && killall -SIGUSR1 i3status
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
#--------------------------------------
# Секция assign
#--------------------------------------
# Раскидываем по воркспейсам
assign [class="(?i)ktorrent"] → $ws2
assign [class="(?i)skypeforlinux"] → $ws2
assign [class="(?i)firefox"] → $ws3
assign [class="(?i)chromium"] → $ws3
assign [class="(?i)smplayer"] $ws4
assign [class="(?i)atom"] → $ws5
assign [class="(?i)ristretto"] → $ws6
assign [class="(?i)gwenview"] → $ws6
assign [class="(?i)okular"] → $ws6
assign [class="Viewnior"] $ws6
assign [class="(?i)libreoffice"] → $ws7
assign [class="(?i)gimp"] → $ws8
assign [class="(?i)inkscape"] → $ws8
assign [class="(?i)blender"] → $ws8
assign [class="(?i)nitrogen"] → $ws10
#--------------------------------------
# Другие параметры
#--------------------------------------
# Mouse+$mod для перемещения плавающего окна
floating_modifier $mod
gaps inner $gaps_inner
gaps outer $gaps_outer
# Поребрик =)
new_window none
new_float pixel 2
default_border 1pixel
hide_edge_borders both
# Красим окна
# class border backgr. text indicator
client.focused $cbfocol $cbgfocol $ctfocol $cifocol
client.focused_inactive $cbficol $cbgficol $ctficol $cificol
client.unfocused $cbuncol $cbguncol $ctuncol $ciuncol
client.urgent $cburcol $cbgurcol $cturcol $ciurcol
client.placeholder $cbplcol $cbgplcol $ctplcol $ciplcol
client.background #ffffff
#--------------------------------------
# Автозагрузка
#--------------------------------------
exec --no-startup-id $home/bin/autostart.sh
exec --no-startup-id $home/bin/hud-menu-service.py
#--------------------------------------
# Бар
#--------------------------------------
bar {
font pango: Roboto Condensed 9
# for luastatus
status_command cd ~/.config/i3/luastatus && exec luastatus-i3-wrapper -B no_separators fs.lua cpu-usage.lua mem-free.lua time-date.lua alsa.lua xkb.lua battery.lua
#status_command i3status -c $home/i3status
position top
workspace_buttons yes
# tray
tray_output primary
tray_padding 2
separator_symbol ""
colors {
background $wbgcolor
statusline $wstcolor
separator $wspcolor
# ws border bg text
focused_workspace $fwbcolor $fwbgcolor $fwtcolor
active_workspace $awbcolor $awbgcolor $awtcolor
inactive_workspace $iwbcolor $iwbgcolor $iwtcolor
urgent_workspace $uwbcolor $uwbgcolor $uwtcolor
}
}