/
config
1041 lines (769 loc) · 33.4 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
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
###########################################################################
############ Original Settings for Reference Material #################
###########################################################################
# 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
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
#font pango:monospace 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+A 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
# change focus
#bindsym $mod+j focus left
#bindsym $mod+k focus down
#bindsym $mod+l focus up
#bindsym $mod+m 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+M 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
# 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+z 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+q focus parent
# focus the child container
#bindsym $mod+d focus child
# switch to workspace
#bindsym $mod+ampersand workspace 1
#bindsym $mod+eacute workspace 2
#bindsym $mod+quotedbl workspace 3
#bindsym $mod+apostrophe workspace 4
#bindsym $mod+parenleft workspace 5
#bindsym $mod+section workspace 6
#bindsym $mod+egrave workspace 7
#bindsym $mod+exclam workspace 8
#bindsym $mod+ccedilla workspace 9
#bindsym $mod+agrave workspace 10
# move focused container to workspace
#bindsym $mod+Shift+1 move container to workspace 1
#bindsym $mod+Shift+eacute move container to workspace 2
#bindsym $mod+Shift+3 move container to workspace 3
#bindsym $mod+Shift+4 move container to workspace 4
#bindsym $mod+Shift+5 move container to workspace 5
#bindsym $mod+Shift+section move container to workspace 6
#bindsym $mod+Shift+egrave move container to workspace 7
#bindsym $mod+Shift+8 move container to workspace 8
#bindsym $mod+Shift+ccedilla move container to workspace 9
#bindsym $mod+Shift+agrave move container to workspace 10
# 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 m 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"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
#bar {
# status_command i3status
#}
###### all settings above have been commented out
###### it is there as reference material and can be deleted at some point
###########################################################################
###########################################################################
################ Start of all the settings #################
###########################################################################
###########################################################################
# KEY DEFINITIONS TO REMEMBER
# $Mod = WINDOWS key or Super key or Mod4
# Mod1 = ALT key
# Control = CTRL key
# Shift = SHIFT key
# Escape = ESCAPE key
# Return = ENTER or RETURN key
# Pause = PAUSE key
# Print = PRINT key
# Tab = TAB key
# Key to rule them all : windows or Alt key?
# Mod4 = windows key on keyboard or super key
# Alt key is Mod1 if you want to change the $mod key
set $mod Mod4
################### STOPPING A PROGRAM #########################
# kill focused window
bindsym $mod+Shift+q kill
################### MOVING AROUND ##############################
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+m 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+m 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
################### SCRATCHPAD ##############################
# move the currently focused window to the scratchpad
# bindsym Mod1+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
# bindsym Mod1+minus scratchpad show
################### TILING PARAMETERS ##############################
# orientation for new workspaces
default_orientation horizontal
# 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+z layout tabbed
bindsym $mod+e layout toggle split
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+q focus parent
# focus the child container
#bindsym $mod+d focus child
################### RELOAD AND EXIT #####################
# 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 ##############################
# resize window (you can also use the mouse for that)
bindsym $mod+r 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.
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 m 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"
}
################### FONTS ######################
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
# choose your font
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# font -misc-fixed-bold-r-normal-*-15-140-75-75-c-90-iso10646-1
# font pango:DejaVu Sans Mono 12
# font pango:DejaVu Sans Mono, Terminus Bold Semi-Condensed 11
# font pango:Droid Sans Mono Dotted 12
# font pango:hermit 12
# font pango:Inconsolata 15
# font pango:monospace 12
# font pango:SourceCodePro-SemiBold 11
# font pango:Source Code Pro for Powerline, FontAwesome Regular, Icons 9
# font pango:Terminus 14px
# font pango:UbuntuMono-regular 12
# from ttf-chromeos-fonts
# font pango:Cousine 13
# font pango:Arimo 11
# font pango:Sans 13
# font pango:Noto Mono Regular 13
# font pango:DroidSansMono 13
font pango:Noto Mono Regular 13
################### MENU ######################
# start dmenu
bindsym $mod+d exec dmenu_run -fn 'NotoMonoRegular:bold:pixelsize=18'
# start j4-dmenu (based on desktop files in /usr/share/applications)
# https://github.com/enkore/j4-dmenu-desktop
bindsym $mod+shift+d exec j4-dmenu-desktop --dmenu="dmenu -fn 'DroidSansMono:bold:pixelsize=16' -nb '#fdf6e3' -nf '#586c75' -sf '#fdf6e3' -sb '#FFAF00'"
#bindsym $mod+shift+d exec j4-dmenu-desktop --dmenu="dmenu -fn 'monospace:bold:pixelsize=15'"
# start up i3-dmenu-desktop
bindsym $mod+mod1+d exec --no-startup-id i3-dmenu-desktop --dmenu="dmenu -fn 'Inconsolata:bold:pixelsize=20S'"
################### DUAL SCREEN ######################
# setting variables for later use
# use xrandr and/or arandr to know the names of your monitors
# use this line to tell which monitor is on the right
# xrandr --output DVI-I-2 --right-of DVI-I-1 --auto
# my current setup
set $firstMonitor DVI-I-1
set $secondMonitor DVI-I-2
#set $firstMonitor LVDS1
#set $secondMonitor LVDS1
#set $firstMonitor DVI-I-2
#set $secondMonitor VGA-0
#set $firstMonitor DVI-I-2
#set $secondMonitor DVI-I-3
#set $firstMonitor DVI-0
#set $secondMonitor DVI-1
workspace 1 output $firstMonitor
workspace 2 output $firstMonitor
workspace 3 output $firstMonitor
workspace 4 output $firstMonitor
workspace 5 output $firstMonitor
workspace 6 output $secondMonitor
workspace 7 output $secondMonitor
workspace 8 output $secondMonitor
workspace 9 output $secondMonitor
workspace 10 output $secondMonitor
# switch to workspace
bindsym $mod+ampersand workspace 1
bindsym $mod+eacute workspace 2
bindsym $mod+quotedbl workspace 3
bindsym $mod+apostrophe workspace 4
bindsym $mod+parenleft workspace 5
bindsym $mod+section workspace 6
bindsym $mod+egrave workspace 7
bindsym $mod+exclam workspace 8
bindsym $mod+ccedilla workspace 9
bindsym $mod+agrave workspace 10
# move focused container to workspace
bindsym $mod+Shift+ampersand move container to workspace 1; workspace 1
bindsym $mod+Shift+eacute move container to workspace 2; workspace 2
bindsym $mod+Shift+quotedbl move container to workspace 3; workspace 3
bindsym $mod+Shift+apostrophe move container to workspace 4; workspace 4
bindsym $mod+Shift+5 move container to workspace 5; workspace 5
bindsym $mod+Shift+section move container to workspace 6; workspace 6
bindsym $mod+Shift+egrave move container to workspace 7; workspace 7
bindsym $mod+Shift+exclam move container to workspace 8; workspace 8
bindsym $mod+Shift+ccedilla move container to workspace 9; workspace 9
bindsym $mod+Shift+agrave move container to workspace 10; workspace 10
################### MOUSE ######################
# mouse settings
# The middle button over a titlebar kills the window
# bindsym --release button2 kill
# The middle button and a modifer over any part of the window kills the window
# bindsym --whole-window $mod+button2 kill
# The right button toggles floating
# bindsym button3 floating toggle
# bindsym $mod+button3 floating toggle
# The side buttons move the window around
# bindsym button9 move left
# bindsym button8 move right
################### ASSIGN ######################
# Assign application to start on a specific workspace
# you can find the class with the program xprop
assign [class="Firefox|Vivaldi-stable|Opera"] → 1
assign [class="sublime-text|sublime_text|Sublime_text|subl|Subl|subl3|Subl3"] → 2
assign [class="Xed|xed|Brackets|Atom|Code"] → 2
assign [class="Inkscape"] → 3
assign [class="Gimp"] → 4
assign [class="ristretto|Ristretto|shotwell|Shotwell|Xviewer"] → 5
assign [class="Meld"] → 5
assign [class="feh|gthumb|Gthumb|eog|Eog|Pinta|pixeluvo|Pixeluvo"] → 5
assign [class="Vlc|vlc"] → 6
assign [class="Vmplayer|VirtualBox"] → 7
assign [class="Nemo|Thunar|Caja|nautilus|Nautilus"] → 8
assign [class="Geary|Evolution"] → 9
assign [class="Spotify|spotify"] → 10
#fix for spotify not moving to workspace 10
for_window [class="Spotify"] move to workspace 10
################### EXECUTE ######################
# TRAY APPLICATIONS
# num lock activated
exec_always --no-startup-id numlockx on
# dropbox
exec dropbox start
# insync
exec insync start
# volume
exec pasystray
#exec volti
#exec volumeicon
#variety
exec variety
# clipit
exec clipit
# USER APPLICATIONS
#distro dependent applications are at bottom of config like filemanager ...
#browsers
exec firefox
for_window [class="Firefox"] focus
#Mail clients
#exec evolution
#Music
exec --no-startup-id spotify
for_window [class="Spotify"] focus
#Conky
#exec ~/.config/i3/start-conkys.sh
#exec --no-startup-id evolution
#exec --no-startup-id conky
################### SHORTCUTS APPLICATIONS ######################
#mod1 = ALT
#workspace 1 related
bindsym $mod+F1 exec firefox;workspace 1;focus
bindsym control+mod1+f exec firefox;workspace 1; focus
bindsym control+mod1+v exec vivaldi-stable;workspace 1; focus
#workspace 2 related
#sublime text see at bottom distro dependent
#workspace 3 related
bindsym $mod+F3 exec inkscape;workspace 3;focus
bindsym control+mod1+i exec inkscape;workspace 3;focus
#workspace 4 related
bindsym $mod+F4 exec gimp;workspace 4;focus
bindsym control+mod1+g exec gimp;workspace 4;focus
#workspace 5 related
bindsym $mod+F5 exec meld;workspace 5;focus
bindsym control+mod1+m exec meld;workspace 5;focus
#workspace 6 related
bindsym $mod+F6 exec vlc;workspace 6;focus
#workspace 7 related
#workspace 8 related
# filemanagers see at bottom distro dependent
#workspace 9 related
bindsym $mod+F9 exec evolution;workspace 9;focus
bindsym control+mod1+e exec evolution;workspace 9;focus
#bindsym $mod+F9 exec geary;workspace 9;focus
#bindsym control+mod1+e exec geary;workspace 9;focus
#workspace 10 related
bindsym $mod+F10 exec spotify;workspace 10;focus
bindsym control+mod1+s exec spotify;workspace 10;focus
#catfish
bindsym control+mod1+c exec catfish;focus
################### SHORTCUTS WORKSPACES ######################
# next/previous workspace
bindsym Mod1+Tab workspace next
bindsym Mod1+Shift+Tab workspace prev
bindsym $mod+Tab workspace back_and_forth
#navigate workspaces next / previous
bindsym Mod1+Ctrl+Right workspace next
bindsym Mod1+Ctrl+Left workspace prev
# switch to workspace with urgent window automatically
for_window [urgent=latest] focus
################### SCREENSHOTS ######################
bindsym Print exec scrot '%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f ~/Pictures/'
#bindsym Print exec scrot '%Y-%m-%d-%H-%M-%S.jpg' -e 'mv $f ~/Pictures/' && sleep 1 && exec notify-send 'screenshot has been saved in ~/Pictures'
bindsym Control+Print exec gnome-screenshot -i
#bindsym shift+Print exec shutter
#bindsym control+Print exec xfce4-screenshooter
################### FLOATING OR TILED ######################
#floating enabled from some programs - find with xprop
#for_window [class="Gnome-disks"] floating enable
for_window [class="^Skype$"] floating enable
for_window [class="^Gnome-font-viewer$"] floating enable
for_window [class="^Gpick$"] floating enable
#for_window [class="^Vlc$"] floating enable
#for_window [class="^Spotify$"] floating enable workspace 10
#for_window [instance="gimp"] floating enable
for_window [window_role="^gimp-toolbox-color-dialog$"] floating enable
#for_window [instance="variety"] floating enable
#for_window [class="Gnome-system-monitor"] floating enable
#for_window [class="Mate-system-monitor"] floating enable
#for_window [class="Xfce4-taskmanager"] floating enable
#for_window [class="Brasero"] floating enable
#for_window [class="Xfburn"] floating enable
for_window [class="Xfce4-appfinder"] floating enable
#for_window [class="Wine"] floating enable
for_window [class="Pavucontrol"] floating enable
for_window [window_role="pop-up"] floating enable
for_window [window_role="^Preferences$"] floating enable
for_window [window_role="setup"] floating enable
for_window [title="^Terminator Preferences$"] floating enable
#for_window [class="Font-manager"] floating enable
for_window [class="System-config-printer.py"] floating enable
for_window [class="Nitrogen"] floating enable
for_window [title="Copying"] floating enable
for_window [title="Deleting"] floating enable
for_window [title="Moving"] floating enable
for_window [class="Unetbootin.elf"] floating enable
for_window [class="Galculator"] floating enable
for_window [class="Usb-creator-gtk"] floating enable
for_window [instance="script-fu"] border normal
for_window [class="Imagewriter"] floating enable
#for_window [class="MintUpdate.py"] floating enable
#for_window [class="Bleachbit"] floating enable
#for_window [class="Hexchat"] floating disable
for_window [class="Xfce4-settings-manager"] floating disable
for_window [class="Gnome-control-center"] floating disable
for_window [class="Gnome-terminal"] focus
#Popups during fullscreen mode
popup_during_fullscreen smart
################### VARIETY ######################
#Variety keybindings mod1 = ALT
# trash wallpaper
bindsym mod1+t exec variety -t
# next wallpaper
bindsym mod1+n exec variety -n
bindsym mod1+Right exec variety -n
# previous wallpaper
bindsym mod1+p exec variety -p
bindsym mod1+Left exec variety -p
# favorite wallpaper
bindsym mod1+f exec variety -f
# pause wallpaper
bindsym mod1+Up exec variety --pause
# resume wallpaper
bindsym mod1+Down exec variety --resume
################### MODE_SYSTEM ######################
bindsym $mod+Pause mode "$mode_system"
set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
mode "$mode_system" {
bindsym l exec --no-startup-id ~/.config/i3/scripts/i3exit.sh lock, mode "default"
bindsym e exec --no-startup-id ~/.config/i3/scripts/i3exit.sh logout, mode "default"
bindsym s exec --no-startup-id ~/.config/i3/scripts/i3exit.sh suspend, mode "default"
bindsym h exec --no-startup-id ~/.config/i3/scripts/i3exit.sh hibernate, mode "default"
bindsym r exec --no-startup-id ~/.config/i3/scripts/i3exit.sh reboot, mode "default"
bindsym Shift+s exec --no-startup-id ~/.config/i3/scripts/i3exit.sh shutdown, mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
################### AUDIO ######################
bindsym XF86AudioRaiseVolume exec "amixer -D pulse sset Master '5%+'"
bindsym XF86AudioLowerVolume exec "amixer -D pulse sset Master '5%-'"
bindsym XF86AudioMute exec "amixer -D pulse set Master toggle"
#https://github.com/acrisci/playerctl/
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
bindsym XF86AudioStop exec playerctl stop
#bindsym XF86AudioPlay exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
#bindsym XF86AudioNext exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next"
#bindsym XF86AudioPrev exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous"
#bindsym XF86AudioStop exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop"
################### BAR ######################
# bar toggle, hide or show
bindsym $mod+b bar mode toggle
################### BORDER ######################
# Border control
hide_edge_borders both
bindsym $mod+shift+b exec i3-msg border toggle
#changing border style
bindsym $mod+t border normal
bindsym $mod+y border 1pixel
bindsym $mod+u border none
#new_window pixel 1
new_window normal
#new_window none
#new_float pixel 1
new_float normal
#new_float none
################### KEYBOARD ##############################
# AZERTY KEYBOARD
# Change this if you use qwerty
exec setxkbmap be
################### UNCLUTTER ##############################
# get the mouse out of the way with unclutter
exec unclutter
################### BAR APPEARANCE ######################
bar {
height 25
workspace_buttons yes
# font pango:DroidSansMono 13
font pango:Noto Sans 14
#you can change the place via xrandr
#output DVI-0
# OPTION 1 : i3status
# type status_command i3status without the config file and
# you will get the standard i3status bar
# this is the standard statusbar with my personal settings
#status_command i3status
#status_command i3status -c ~/.config/i3/i3status.conf
# OPTION 2 : i3blocks
# https://github.com/vivien/i3blocks
# another way to provide text in the statusbar
# put hastag in front if not installed
#status_command i3blocks
status_command i3blocks -c ~/.config/i3/i3blocks.conf
#status_command i3blocks -c ~/.config/i3/i3blocks-original.conf
#status_command i3blocks -c ~/.config/i3/i3blocks-awesome.conf
# OPTION 3 : conky
# You can also replace the istatus bar with a conky
# be sure to install conky
# start-conky-i3statusbar.sh is started and conky will follow
# documentation : https://i3wm.org/docs/user-contributed/conky-i3bar.html
# conky configuration is in conky-i3statusbar
#status_command ~/.config/i3/start-conky-i3statusbar.sh
colors {
background #2F2F2F
statusline #eeeeee
separator #666666
# border backgr. text
focused_workspace #a9a9a9 #222222 #a9a9a9
active_workspace #a9a9a9 #222222 #a9a9a9
inactive_workspace #a9a9a9 #5f676a #a9a9a9
urgent_workspace #4A4A4A #4A4A4A #a9a9a9
}
}
# DarkGrey background with white text - not focus grey background - black text
# Windows decoration colors
# class border backgr. text indicator
client.placeholder #242424 #242424 #242424
client.background #242424 #242424 #242424
client.focused #4A4A4A #4A4A4A #e5e5e5 #4A4A4A
client.unfocused #222222 #222222 #aaaaaa #222222
client.focused_inactive #222222 #222222 #a9a9a9 #222222
client.urgent #4A4A4A #4A4A4A #f7f7f7 #4A4A4A
#################################################################
################### BAR APPEARANCE ARCHIVE ######################
#################################################################
# Orange background with black text - not focus grey background - white text
# Windows decoration colors
# class border backgr. text indicator
# client.background color #222222
# client.focused #FFAF00 #FFAF00 #333333 #00AA00
# client.unfocused #222222 #222222 #aaaaaa #2e9ef4
# client.focused_inactive #333333 #5f676a #ffffff #484e50
# client.urgent #2f343a #900000 #ffffff #900000
# DarkGrey background with white text - not focus grey background - black text
# Windows decoration colors
# https://i3wm.org/docs/userguide.html#_changing_colors
# client.background color
# class border backgr. text indicator
# client.focused #4c7899 #285577 #ffffff #2e9ef4
# client.focused_inactive #333333 #5f676a #ffffff #484e50
# client.unfocused #333333 #222222 #888888 #292d2e
# client.urgent #2f343a #900000 #ffffff #900000
# client.placeholder #000000 #0c0c0c #ffffff #000000
# colors {
# background #222222
# statusline #eeeeee
# separator #666666
# border backgr. text
# focused_workspace #4c7899 #285577 #ffffff
# active_workspace #333333 #5f676a #ffffff
# inactive_workspace #333333 #222222 #888888
# urgent_workspace #2f343a #900000 #ffffff
# }
# Alternatives
# BLue and grey Colors
# https://github.com/Gravemind/ArchLinux/blob/master/.i3/config
# class border backgr. text indicator
# client.focused #000000 #285577 #dddddd #0099ff
# client.focused_inactive #000000 #333333 #888888 #484e50
# client.unfocused #000000 #000000 #555555 #292d2e
# client.urgent #2f343a #900000 #ffffff #900000
# blue background with white text
# Windows decoration colors
# class border backgr. text indicator
# client.background color #222222
# client.focused #4c7899 #285577 #ffffff #2e9ef4
# client.focused_inactive #333333 #5f676a #ffffff #484e50
# client.unfocused #333333 #222222 #888888 #292d2e
# client.urgent #2f343a #900000 #ffffff #900000
# Blue-green background - orange text
# Windows decoration colors
# http://www.fastlinux.eu/_archiv/index.php?page=linux047
# class border backgr. text
# client.focused #2B6473 #2B6473 #FFA000
# client.focused_inactive #004050 #004050 #FFA000
# client.unfocused #004050 #004050 #cccccc
# client.urgent #900000 #900000 #ffffff
# Red background - black text
# Windows decoration colors
# https://github.com/Blueblur/dotfiles/blob/master/.i3/config
# class border backgr. text indicator
# client.focused #d64937 #d64937 #2D2D2D #2e9ef4
# client.focused_inactive #2d2d2d #2d2d2d #dcdcdc #484e50
# client.unfocused #2D2D2D #2d2d2d #dcdcdc #292d2e
# client.urgent #2D2D2D #2D2D2D #dcdcdc #900000
###########################################################################
################### I 3 G A P S N E X T ##############################
###########################################################################
# Settings for I3 next gap git
# https://github.com/Airblader/i3/tree/gaps-next
# Archlinux via aur installation
# http://dotx.me/snippets-i3-gaps/
# delete or uncomment the following lines if you do not have it or do not
# want it
# packer i3-gaps-next-git --noedit
for_window [class="^.*"] border pixel 5
gaps inner 10
gaps outer 5
#smart_gaps on
#smart_borders on
###########################################################################
################### I3 GAPS CHANGE ##############################
###########################################################################
set $mode_gaps Gaps: (o) outer, (i) inner
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
bindsym $mod+Shift+g mode "$mode_gaps"
mode "$mode_gaps" {
bindsym o mode "$mode_gaps_outer"
bindsym i mode "$mode_gaps_inner"
bindsym Return mode "default"
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 "default"
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 "default"
bindsym Escape mode "default"
}
###########################################################################
################### C O M P T O N ##############################
###########################################################################
#if you want transparency on non-focused windows
exec_always compton --config ~/.config/i3/compton.conf
###########################################################
################### DISTRO DEPENDENT ######################
###########################################################
#terminal
# only in need you can figure out hidden settings on your distro with dconf-editor
# gsettings set org.cinnamon.desktop.default-applications.terminal exec /usr/bin/terminator
# gsettings set org.cinnamon.desktop.default-applications.terminal exec /usr/bin/gnome-terminal
bindsym $mod+Return exec gnome-terminal;focus
#bindsym $mod+Return exec i3-sensible-terminal;focus
#bindsym $mod+Return exec terminator;focus
#bindsym $mod+Return exec mate-terminal;focus
#bindsym $mod+Return exec xfce4-terminal;focus
bindsym control+mod1+t exec gnome-terminal; focus
#bindsym control+mod1+t exec terminator;focus
#bindsym control+mod1+t exec mate-terminal; focus
#bindsym control+mod1+t exec xfce4-terminal; focus
#System monitor
bindsym control+Shift+Escape exec gnome-system-monitor;focus
#bindsym control+Shift+Escape exec mate-system-monitor;focus
#bindsym control+Shift+Escape exec xfce4-taskmanager;focus
#settings
#bindsym control+mod1+n exec cinnamon-settings
#bindsym control+mod1+n exec gnome-control-center
#bindsym control+mod1+n exec mate-control-center
#bindsym control+mod1+n exec xfce4-settings-manager
#workspace 2 related
#bindsym $mod+F2 exec subl;workspace 2;focus
#bindsym control+mod1+w exec subl;workspace 2;focus
bindsym $mod+F2 exec subl3;workspace 2;focus
bindsym control+mod1+w exec subl3;workspace 2;focus
#workspace 8 related
bindsym $mod+F8 exec nemo --no-desktop;workspace 8;focus
#bindsym $mod+F8 exec nautilus --no-desktop;workspace 8;focus
#bindsym $mod+F8 exec caja;workspace 8;focus
#bindsym $mod+F8 exec thunar;workspace 8;focus
#file managers
exec nemo --no-desktop
#exec nautilus --no-desktop
#exec caja
#exec thunar
#filemanager focus
for_window [class="Nemo"] focus
for_window [class="Nautilus"] focus
for_window [class="Caja"] focus
for_window [class="Thunar"] focus
bindsym $mod+Shift+Return exec nemo --no-desktop; workspace 8;focus
#bindsym $mod+Shift+Return exec nautilus --no-desktop; workspace 8;focus