-
Notifications
You must be signed in to change notification settings - Fork 6
/
config
497 lines (399 loc) · 16.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
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
496
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
# colors
set $bg-color #2f343f
set $inactive-bg-color #3d4351
set $text-color #f3f4f5
set $inactive-text-color #676E7D
set $urgent-bg-color #E53935
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:System San Francisco Display 8
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8
# Before i3 v4.8, we used to recommend this one as the default:
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, its unicode glyph coverage is limited, the old
# X core fonts rendering does not support right-to-left and this being a bitmap
# font, it doesn’t scale on retina/hidpi displays.
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
#bindsym $mod+Return exec i3-sensible-terminal
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
#bindsym $mod+d exec dmenu_run
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# Custom dmenu
bindsym $mod+d exec dmenu_run -nb "$bg-color" -nf "$text-color" -sb "$urgent-bg-color" -sf "$text-color"
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+ccedilla focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+ccedilla move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# move focused workspace
bindsym $mod+control+Left move workspace to output left
bindsym $mod+control+Down move workspace to output down
bindsym $mod+control+Up move workspace to output up
bindsym $mod+control+Right move workspace to output right
# split in horizontal orientation
bindsym $mod+h split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+z focus parent
# focus the child container
bindsym $mod+x focus child
set $ws1 "1: "
set $ws2 "2: >_ "
set $ws3 "3: "
set $ws4 "4: "
set $ws5 "5: 5"
set $ws6 "6: 6"
set $ws7 "7: 7"
set $ws8 "8: 8"
set $ws9 "9: 9"
set $ws0 "10: "
set $wsf1 "1: "
set $wsf2 "2: "
set $wsf3 "3: F3"
set $wsf4 "4: F4"
set $wsf5 "5: F5"
set $wsf6 "6: F6"
set $wsf7 "7: F7"
set $wsf8 "8: F8"
set $wsf9 "9: F9"
set $wsf10 "10: F10"
set $wsf11 "11: F11"
set $wsf12 "12: F12"
# switch to workspace
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws0
bindsym $mod+F1 workspace $wsf1
bindsym $mod+F2 workspace $wsf2
bindsym $mod+F3 workspace $wsf3
bindsym $mod+F4 workspace $wsf4
bindsym $mod+F5 workspace $wsf5
bindsym $mod+F6 workspace $wsf6
bindsym $mod+F7 workspace $wsf7
bindsym $mod+F8 workspace $wsf8
bindsym $mod+F9 workspace $wsf9
bindsym $mod+F10 workspace $wsf10
bindsym $mod+F11 workspace $wsf11
bindsym $mod+F12 workspace $wsf12
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws0
bindsym $mod+Shift+F1 move container to workspace $wsf1
bindsym $mod+Shift+F2 move container to workspace $wsf2
bindsym $mod+Shift+F3 move container to workspace $wsf3
bindsym $mod+Shift+F4 move container to workspace $wsf4
bindsym $mod+Shift+F5 move container to workspace $wsf5
bindsym $mod+Shift+F6 move container to workspace $wsf6
bindsym $mod+Shift+F7 move container to workspace $wsf7
bindsym $mod+Shift+F8 move container to workspace $wsf8
bindsym $mod+Shift+F9 move container to workspace $wsf9
bindsym $mod+Shift+F10 move container to workspace $wsf10
bindsym $mod+Shift+F11 move container to workspace $wsf11
bindsym $mod+Shift+F12 move container to workspace $wsf12
# Assign app to a workspace
# to find the class use xprop
#assign [class="google-chrome"] $ws1
#assign [class="Atom"] $ws3
#assign [class="jetbrains-idea-ce"] $ws3
#assign [class="jetbrains-studio"] $ws4
assign [class="Rhythmbox"] $ws0
assign [class="Slack"] $wsf1
# workspace default monitors
workspace $ws1 output LVDS1
workspace $ws2 output LVDS1
workspace $ws3 output VGA1
workspace $ws4 output VGA1
workspace $ws5 output VGA1
workspace $ws6 output VGA1
workspace $ws7 output VGA1
workspace $ws8 output VGA1
workspace $ws9 output VGA1
workspace $ws0 output VGA1
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+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'"
# resize window (you can also use the mouse for that)
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.
bindsym j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
bindsym ccedilla resize grow width 10 px or 10 ppt
# 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"
}
bindsym $mod+r mode "resize"
# window colors
# border background text indicator
client.focused $bg-color $bg-color $text-color #00ff00
client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color #00ff00
client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color #00ff00
client.urgent $urgent-bg-color $urgent-bg-color $text-color #00ff00
hide_edge_borders both
new_window none
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
position top
#status_command i3status --config ~/.config/i3/bar.conf | ~/.config/i3/bar/i3wsbar -c "dzen2 -x %x -dock"
status_command i3blocks -c ~/.config/i3/i3blocks.conf
font pango:Anonymous Pro for Powerline Regular 8
strip_workspace_numbers yes
tray_output LVDS1
tray_padding 0
colors {
background $bg-color
separator #757575
# border background text
focused_workspace $bg-color $bg-color $text-color
inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
urgent_workspace $urgent-bg-color $urgent-bg-color $text-color
}
}
#bar {
# position top
# status_command i3blocks -c ~/.config/i3/i3blocks.bottom.conf
# font pango:Anonymous Pro for Powerline Regular 8
# strip_workspace_numbers yes
# mode hide
## hidden_state hide
# modifier Mod4
## workspace_buttons false
#
# tray_output LVDS1
# tray_padding 0
#
# colors {
# background $bg-color
# separator #757575
# # border background text
# focused_workspace $bg-color $bg-color $text-color
# inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
# urgent_workspace $urgent-bg-color $urgent-bg-color $text-color
# }
#}
# Network Manager
exec --no-startup-id nm-applet
# exec --no-startup-id wicd
set $images ~/Pictures
set $wallpapers ~/Pictures/Wallpapers
set $lock_image ~/Pictures/face_circle.png
set $print_path ~/Pictures/Screenshots/
# Wallpaper
#exec_always feh --bg-fill $wallpapers/jetpack-eye.jpg
exec_always ~/.config/i3/background $wallpapers/
#exec_always watch -n60 ~/.config/i3/background $wallpapers/
exec while true; do ~/.config/i3/background $wallpapers/ ; sleep 60; done
bindsym $mod+shift+b exec ~/.config/i3/background $wallpapers
# make the focus follows the mouse
#focus_follows_mouse yes
# If you run some problem with audio, run these two commands.
#for x in `amixer controls | grep layback` ; do amixer cset "${x}" on ; amixer cset "${x}" 100% ; done
# Toggle bar visibility
bindsym $mod+b bar mode toggle
# terminal
bindsym $mod+Return exec i3-sensible-terminal zsh
# Lockscreen
## bindsym $mod+shift+x exec ~/.config/i3/i3lock-extra -p 5 -m pixelize $lock_image
bindsym $mod+shift+x exec ~/.config/i3/i3lock-simple $lock_image
## bindsym $mod+control+x exec ~/.config/i3/i3lock-simple $lock_image && sudo pm-hibernate
# Printscreen / screenshoot
## Print
bindsym Print exec scrot -e 'mv $f $print_path'
bindsym --release control+Print exec scrot -e 'mv $f /tmp/ && gimp /tmp/$f'
## Print selected area
bindsym --release Shift+Print exec scrot -s -e 'mv $f $print_path'
bindsym --release control+Shift+Print exec scrot -s -e 'mv $f /tmp/ && gimp /tmp/$f'
## Print current window
bindsym --release $mod+Print exec scrot -u -e 'mv $f $print_path'
bindsym --release control+$mod+Print exec scrot -u -e 'mv $f /tmp/ && gimp /tmp/$f'
## ColorPicker
bindsym --release $mod+Insert exec java -jar colorpicker.jar
# Pulse Audio controls
bindsym XF86AudioRaiseVolume exec --no-startup-id ~/.config/i3/volume +5% #increase sound volume
bindsym XF86AudioLowerVolume exec --no-startup-id ~/.config/i3/volume -5% #decrease sound volume
bindsym XF86AudioMute exec --no-startup-id ~/.config/i3/volume mute_toggle # mute sound
# Sreen brightness controls
## bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
## bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
bindsym --release XF86MonBrightnessUp exec ~/.config/i3/backlight -inc 10 # increase screen brightness
bindsym --release XF86MonBrightnessDown exec ~/.config/i3/backlight -dec 10 # decrease screen brightness
# Screen color brightness
set $DISPLAY $(xrandr --verbose | grep -Po "([\w-]+)\s(?=connected)(?=.*primary)")
bindsym --release $mod+XF86TouchpadToggle exec ~/.config/i3/color-brightness $DISPLAY -set 1.0
bindsym --release $mod+XF86MonBrightnessUp exec ~/.config/i3/color-brightness $DISPLAY -inc 0.05
bindsym --release $mod+XF86MonBrightnessDown exec ~/.config/i3/color-brightness $DISPLAY -dec 0.05
set $HDMI $(xrandr | grep -m 1 -Po "(HDMI[\w-]+)")
set $MONITOR_MENU "[↑|↓|←|→] hdmi position | [O]ff hdmi"
bindsym $mod+m mode $MONITOR_MENU
mode $MONITOR_MENU {
# bindsym e exec xrandr --output $DISPLAY --auto, mode "default"
bindsym Up exec xrandr --output $HDMI --auto --above $DISPLAY, mode "default"
bindsym Down exec xrandr --output $HDMI --auto --below $DISPLAY, mode "default"
bindsym Left exec xrandr --output $HDMI --auto --left-of $DISPLAY, mode "default"
bindsym Right exec xrandr --output $HDMI --auto --right-of $DISPLAY, mode "default"
bindsym o exec xrandr --output $HDMI --off, mode "default"
bindsym --release m exec ~/.config/i3/display_mirror.kts $DISPLAY $HDMI, mode "default"
bindsym Return mode "default"
bindsym Escape mode "default"
}
set $SOUND $(pactl list cards | grep -Po "Name:\s(.+)" | cut -d' ' -f2)
set $SOUND_MENU "[A]nalog | [H]dmi "
bindsym $mod+n mode $SOUND_MENU
mode $SOUND_MENU {
bindsym a exec pactl set-card-profile $SOUND output:analog-stereo+input:analog-stereo, mode "default"
bindsym h exec pactl set-card-profile $SOUND output:hdmi-stereo+input:analog-stereo, mode "default"
bindsym Return mode "default"
bindsym Escape mode "default"
}
# Media player controls
bindsym XF86AudioPlay exec playerctl play
bindsym XF86AudioPause exec playerctl pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
#bindsym $mod+p exec --no-startup-id i3-input -F 'exec "%s"' -P 'run> '
set $MENU "[A]ndroid Studio | [I]ntelliJ Idea | A[r]duino | [G]enyMotion"
bindsym $mod+Shift+d mode $MENU
mode $MENU {
bindsym a exec android-studio/bin/studio.sh, mode "default"
bindsym g exec genyMotion/genymotion/genymotion, mode "default"
bindsym r exec sudo arduino-1.6.4./arduino, mode "default"
bindsym i exec intellij-idea/bin/idea.sh, mode "default"
bindsym Return mode "default"
bindsym Escape mode "default"
}
# Mouse
bindsym $mod+c exec xdotool click 1
set $MOUSE_MODE "Mouse: [↑|↓|←|→] move | [a|s|d] click"
bindsym $mod+Shift+m mode $MOUSE_MODE
mode $MOUSE_MODE {
# set your three speeds here
set $slow 1
set $quick 10
set $fast 50
set $mod2 Mod1 # alt
# Mouse movement (slow/fine-tuned) -- vim keybindings
bindsym h exec xdotool mousemove_relative -- -$slow 0
bindsym j exec xdotool mousemove_relative 0 $slow
bindsym k exec xdotool mousemove_relative -- 0 -$slow
bindsym l exec xdotool mousemove_relative $slow 0
# Mouse movement (slow/fine-tuned) -- arrow keys
bindsym Left exec xdotool mousemove_relative -- -$slow 0
bindsym Down exec xdotool mousemove_relative 0 $slow
bindsym Up exec xdotool mousemove_relative -- 0 -$slow
bindsym Right exec xdotool mousemove_relative $slow 0
# Mouse movement (quicker) -- vim keybindings
bindsym Shift+h exec xdotool mousemove_relative -- -$quick 0
bindsym Shift+j exec xdotool mousemove_relative 0 $quick
bindsym Shift+k exec xdotool mousemove_relative -- 0 -$quick
bindsym Shift+l exec xdotool mousemove_relative $quick 0
# Mouse movement (quicker) -- arrow keys
bindsym Shift+Left exec xdotool mousemove_relative -- -$quick 0
bindsym Shift+Down exec xdotool mousemove_relative 0 $quick
bindsym Shift+Up exec xdotool mousemove_relative -- 0 -$quick
bindsym Shift+Right exec xdotool mousemove_relative $quick 0
# Mouse movement (fast) -- vim keybindings
bindsym Shift+$mod2+h exec xdotool mousemove_relative -- -$fast 0
bindsym Shift+$mod2+j exec xdotool mousemove_relative 0 $fast
bindsym Shift+$mod2+k exec xdotool mousemove_relative -- 0 -$fast
bindsym Shift+$mod2+l exec xdotool mousemove_relative $fast 0
# Mouse movement (fast) -- arrow keys
bindsym Shift+$mod2+Left exec xdotool mousemove_relative -- -$fast 0
bindsym Shift+$mod2+Down exec xdotool mousemove_relative 0 $fast
bindsym Shift+$mod2+Up exec xdotool mousemove_relative -- 0 -$fast
bindsym Shift+$mod2+Right exec xdotool mousemove_relative $fast 0
# Left Click
bindsym a exec xdotool click 1
# Middle Click
bindsym s exec xdotool click 2
# Right Click
bindsym d exec xdotool click 3
# Left Click-and-drag
bindsym Shift+a exec xdotool mousedown 1
# Middle Click-and-drag
bindsym Shift+s exec xdotool mousedown 2
# Right Click-and-drag
bindsym Shift+d exec xdotool mousedown 3
# Left Drag release
bindsym $mod2+a exec xdotool mouseup 1
# Middle Drag release
bindsym $mod2+s exec xdotool mouseup 2
# Right Drag release
bindsym $mod2+d exec xdotool mouseup 3
# exit
bindsym Escape mode "default"
}