-
Notifications
You must be signed in to change notification settings - Fork 0
/
config
837 lines (666 loc) · 29.6 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
# I3 SETUP FROM SCRATCH:
#
# steps for UBUNTU:
# - sudo apt install feh [set background]
exec_always --no-startup-id sleep1; /usr/bin/feh --bg-scale ~/.config/i3/wallpapers/BAK-AC.png
# - sudo apt install playerctl [play/pause/next/prev]
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioPause exec playerctl play-pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
# sudo apt install light [brightness]
# sudo chmod +s /usr/bin/light
bindsym XF86MonBrightnessUp exec light -A 5
bindsym XF86MonBrightnessDown exec light -U 5
# should be pre-installed [volume]
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +4000
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -4000
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
# pip install --user bumblebee-status
# sudo apt install blueman
# sudo add-apt-repository -y ppa:regolith-linux/stable
# sudo apt install i3-gaps
# follow this for sexy status bar
# https://github.com/addy-dclxvi/i3-starterpack
# sudo apt install rofi
bindsym $mod+slash exec rofi -show run
bindsym $mod+d exec ~/.config/i3/rofi/bin/launcher -show run
###############################################################################
# AUTOSTART APPLICAITONS
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec --no-startup-id copyq
# exec --no-startup-id nitrogen --restore; sleep 1; picom -b
#exec --no-startup-id manjaro-hello
exec --no-startup-id nm-applet
exec --no-startup-id xfce4-power-manager
exec --no-startup-id pamac-tray
exec --no-startup-id clipit
exec --no-startup-id blueman-applet
exec --no-startup-id optimus-manager-qt
exec --no-startup-id mailspring
# exec_always --no-startup-id sbxkb
# exec --no-startup-id start_conky_maia
# exec --no-startup-id start_conky_green
# exec --no-startup-id xautolock -time 100 -locker blurlock
exec_always --no-startup-id ff-theme-util
exec_always --no-startup-id fix_xcursor
exec_always --no-startup-id unclutter
exec_always picom
# exec --no-startup-id spotify __scratchpad
# exec --no-startup-id rambox
# for_window [instance="__scratchpad"] move scratchpad
# exec --no-startup-id i3-msg 'workspace 4; exec --no-startup-id spotify'
# bindsym $mod+i exec --no-startup-id alacritty -name __scratchpad -e spotify
exec --no-startup-id albert
# exec --no-startup-id thunderbird
###############################################################################
# i3 config file (v4)
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
# Set mod key (Mod1=<Alt>, Mod4=<Super>)
set $mod Mod1
# Configure keyboard repeat speed
exec_always --no-startup-id sleep1; xset r rate 200 40
# auto connect bluetooth
exec_always --no-startup-id sleep1; bluetooth-autoconnect
# set screen resolution on Dell XPS 17
exec_always --no-startup-id bash ~/.config/i3/i3_startup.sh
# set default desktop layout (default is tiling)
# workspace_layout tabbed <stacking|tabbed>
# Configure border style <normal|1pixel|pixel xx|none|pixel>
default_border pixel 3
default_floating_border normal
# Hide borders
hide_edge_borders none
# background opacity
# exec --no-startup-id picom -CGb
# change borders
# bindsym $mod+u border none
# bindsym $mod+y border pixel 1
# bindsym $mod+n border normal
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font xft:URWGothic-Book 11
# Use Mouse+$mod to drag floating windows
floating_modifier $mod
# start a terminal
# bindsym $mod+Return exec terminal
# bindsym $mod+Return exec alacritty
# bindsym $mod+Return exec gnome-terminal
# kill focused window
bindsym $mod+Shift+q kill
# start program launcher
# bindsym $mod+slash exec --no-startup-id dmenu_recency
# bindsym $mod+slash exec dmenu_run
# bindsym $mod+d exec dmenu_run
# launch categorized menu
# bindsym $mod+Shift+slash exec --no-startup-id morc_menu
################################################################################################
## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ##
################################################################################################
# exec --no-startup-id volumeicon
#exec --no-startup-id pulseaudio
exec --no-startup-id pa-applet
# bindsym $mod+Ctrl+m exec pavucontrol
################################################################################################
# Screen brightness controls
# bindsym XF86MonBrightnessUp exec "xbacklight -inc 10; notify-send 'brightness up'"
# bindsym XF86MonBrightnessDown exec "xbacklight -dec 10; notify-send 'brightness down'"
# Start Applications
# bindsym $mod+Ctrl+b exec terminal -e 'bmenu'
# bindsym $mod+F2 exec palemoon
# bindsym $mod+Shift+Return exec microsoft-edge-dev
bindsym $mod+Shift+Return exec firefox
bindsym $mod+Ctrl+m exec terminal -e 'alsamixer'
bindsym $mod+F1 exec pcmanfm
bindsym $mod+F2 exec rambox
# bindsym $mod+Shift+F2 exec "killall rambox; exec 'rambox'"
bindsym $mod+Shift+F2 exec killall 'rambox'
bindsym $mod+F3 exec alacritty -e 'ncpamixer'
bindsym $mod+F4 exec mate-control-center
# bindsym $mod+F9 exec alacritty --hold -e 'neofetch'
# bindsym $mod+F3 exec ncpamixer
# bindsym $mod+F3 exec ranger
# bindsym $mod+Shift+F3 exec pcmanfm_pkexec
# bindsym $mod+F5 exec terminal -e 'mocp'
# bindsym $mod+t exec --no-startup-id pkill picom
# bindsym $mod+Ctrl+t exec --no-startup-id picom -b
# bindsym $mod+Shift+d --release exec "killall dunst; exec notify-send 'restart dunst'"
# bindsym Print exec --no-startup-id i3-scrot
# bindsym $mod+Print --release exec --no-startup-id i3-scrot -w
# bindsym $mod+Shift+Print --release exec --no-startup-id i3-scrot -s
# bindsym $mod+Shift+h exec xdg-open /usr/share/doc/manjaro/i3_help.pdf
# bindsym $mod+Ctrl+x --release exec --no-startup-id xkill
# focus_follows_mouse no
# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l 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+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l 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
# workspace back and forth (with/without active container)
workspace_auto_back_and_forth yes
bindsym $mod+b workspace back_and_forth
bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth
# split orientation
# bindsym $mod+h split h;exec notify-send 'tile horizontally'
# bindsym $mod+v split v;exec notify-send 'tile vertically'
bindsym $mod+semicolon split horizontal
bindsym $mod+Shift+semicolon split vertical
# bindsym $mod+q split toggle
# toggle 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
bindsym $mod+Shift+s exec deepin-screenshot
# toggle sticky
# bindsym $mod+Shift+s sticky toggle
# focus the parent container
bindsym $mod+a focus parent
# move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad
bindsym $mod+minus scratchpad show
# FIREFOX DEFAULT LOAD
# for_window [instance="scratchpads"] move window to scratchpad, scratchpad show
# bindsym $mod+Shift+m exec --no-startup-id firefox -name scratchpads -e ncmpcpp
# exec_always --no-startup-id sleep1; firefox "https://mindstash.io/home" -name scratchpads; move scratchpad
# for_window [instance="scratchpads"] move window to scratchpad, scratchpad show
# bindsym $mod+Shift+m exec --no-startup-id firefox [instance=taskWiki] scratchpad show
# for_window [instance=taskWiki] move scratchpad, border pixel 2, scratchpad show
# exec_always --no-startup-id exec firefox --class="asdfasdf_fire"
# bindsym $mod+Shift+m exec firefox --class="otehrasdfasdf"
# for_window [class=asdfasdf_fire] move scratchpad
# exec_always --no-startup-id exec firefox; move firefox to workspace 2; workspace $ws2
# firefox on startup
# exec --no-startup-id sleep1; i3-msg 'workspace 2; exec firefox;'
# for_window [class=asdfasdf_fire] move scratchpad
# bindsym $mod+Shift+m exec firefox --class="otehrasdfasdf"
# bindsym $mod+Shift+minus exec sublime-text.subl -title scratch
# bindsym $mod+minus scratchpad show
# for_window [class="sublime-text.subl"] floating enable, move scratchpad
# exec --no-startup-id sublime-text.subl -title scratch &
# for_window [instance="__scratchpad"] move scratchpad
# exec --no-startup-id sublime-text.subl -name __scratchpad
#navigate workspaces next / previous
bindsym $mod+Ctrl+Right workspace next
bindsym $mod+Ctrl+Left workspace prev
# Workspace names
# to display names or symbols instead of plain workspace numbers you can use
# something like: set $ws1 1:mail
# set $ws2 2:
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
# 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
# Move focused container to workspace
# bindsym $mod+Ctrl+1 move container to workspace $ws1
# bindsym $mod+Ctrl+2 move container to workspace $ws2
# bindsym $mod+Ctrl+3 move container to workspace $ws3
# bindsym $mod+Ctrl+4 move container to workspace $ws4
# bindsym $mod+Ctrl+5 move container to workspace $ws5
# bindsym $mod+Ctrl+6 move container to workspace $ws6
# bindsym $mod+Ctrl+7 move container to workspace $ws7
# bindsym $mod+Ctrl+8 move container to workspace $ws8
# Move to workspace with focused container
bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9; workspace $ws9
# Open applications on specific workspaces
# assign [class="Thunderbird"] $ws1
# assign [class="Pale moon"] $ws2
# assign [class="Pcmanfm"] $ws3
# assign [class="Skype"] $ws5
# switch to workspace with urgent window automatically
for_window [urgent=latest] focus
# 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'"
# Set shut down, restart and locking features
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'"
bindsym $mod+0 mode "$mode_system"
set $mode_system (l)ock, (Shift+e)xit
mode "$mode_system" {
bindsym l exec --no-startup-id i3lock, mode "default"
# bindsym s exec --no-startup-id i3exit suspend, mode "default"
# bindsym u exec --no-startup-id i3exit switch_user, mode "default"
bindsym Shift+e exec --no-startup-id i3-msg exit, mode "default"
# bindsym h exec --no-startup-id i3exit hibernate, mode "default"
# bindsym r exec --no-startup-id i3exit reboot, mode "default"
# bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"
# bindsym Shift+s exec --no-startup-id i3-msg exit, mode "default"
# exit system mode: "Enter" or "Escape"
bindsym Return mode "default"
bindsym Escape mode "default"
}
# 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 h resize shrink width 5 px or 5 ppt
bindsym j resize grow height 5 px or 5 ppt
bindsym k resize shrink height 5 px or 5 ppt
bindsym l resize grow width 5 px or 5 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
# exit resize mode: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym space mode "default"
}
# Lock screen
# bindsym $mod+9 exec --no-startup-id blurlock
# Color palette used for the terminal ( ~/.Xresources file )
# Colors are gathered based on the documentation:
# https://i3wm.org/docs/userguide.html#xresources
# Change the variable name at the place you want to match the color
# of your terminal like this:
# [example]
# If you want your bar to have the same background color as your
# terminal background change the line 362 from:
# background #14191D
# to:
# background $term_background
# Same logic applied to everything else.
set_from_resource $term_background background
set_from_resource $term_foreground foreground
set_from_resource $term_color0 color0
set_from_resource $term_color1 color1
set_from_resource $term_color2 color2
set_from_resource $term_color3 color3
set_from_resource $term_color4 color4
set_from_resource $term_color5 color5
set_from_resource $term_color6 color6
set_from_resource $term_color7 color7
set_from_resource $term_color8 color8
set_from_resource $term_color9 color9
set_from_resource $term_color10 color10
set_from_resource $term_color11 color11
set_from_resource $term_color12 color12
set_from_resource $term_color13 color13
set_from_resource $term_color14 color14
set_from_resource $term_color15 color15
# speedtest thunderbird playerctl bluetooth2
# bar {
# status_command /home/noah/.local/bin/bumblebee-status \
# -m memory amixer load battery date time \
# -p date.format="%m/%d - %B" \
# time.format="%H:%M" \
# amixer.device="'PGA3.1 3 Master',0"
# # pulseaudio.autostart="true"
# position top
# bindsym button4 nop
# bindsym button5 nop
# strip_workspace_numbers yes
# colors {
# background #2f343f
# statusline #2f343f
# separator #4b5262
# # colour of border, background, and text
# focused_workspace #2f343f #bf616a #d8dee8
# active_workspace #2f343f #2f343f #d8dee8
# inactive_workspace #2f343f #2f343f #d8dee8
# urgent_workspacei #2f343f #ebcb8b #2f343f
# }
# }
# panel
# bar {
# colors {
# background #2f343f
# statusline #2f343f
# separator #4b5262
# # colour of border, background, and text
# focused_workspace #2f343f #bf616a #d8dee8
# active_workspace #2f343f #2f343f #d8dee8
# inactive_workspace #2f343f #2f343f #d8dee8
# urgent_workspacei #2f343f #ebcb8b #2f343f
# }
# # font pango:DejaVu Sans Mono 15
# # height 32
# status_command i3status
# }
# hide/unhide i3status bar
bindsym $mod+m bar mode toggle
# Theme colors
# class border backgr. text indic. child_border
# client.focused #F31010 #F31010 #80FFF9 #D85AA6
# client.focused_inactive #2F3D44 #2F3D44 #1ABC9C #454948
# client.unfocused #FFFFFF #2F3D44 #1ABC9C #454948
# client.urgent #CB4B16 #FDF6E3 #1ABC9C #268BD2
# client.placeholder #000000 #0c0c0c #ffffff #000000
# client.background #2B2C2B
#############################
### settings for i3-gaps: ###
#############################
# Set inner/outer gaps
gaps inner 14
smart_borders on ###########
# CUSTOM STUFF ---------------------
# boost track point speed
# exec_always --no-startup-id xset m 4 0
# https://askubuntu.com/questions/205676/how-to-change-mouse-speed-sensitivity
# exec --no-startup-id xinput --set-prop "TPPS/2 IBM TrackPoint" 169 4 0 0 0 4 0 0 0 1
# disable trackpad and trackpoint
# exec --no-startup-id xinput disable "Synaptics TM3053-006"
# exec --no-startup-id xinput disable "TPPS/2 IBM TrackPoint"
# boost mouse speed for mx master 2s
# exec --no-startup-id xinput set-prop "MX Master 2S Mouse" "Coordinate Transformation Matrix" 2.000000, 0.000000, 0.000000, 0.000000, 2.000000, 0.000000, 0.000000, 0.000000, 1.000000
# setting key binding for external monitor settings
# bindsym $mod+F11 exec "xrandr --output eDP1 --auto --primary --output VGA1 --auto --same-as eDP1"
# bindsym $mod+F12 exec "xrandr --output eDP1 --auto --primary --output VGA1 --auto --above eDP1"
# setting key binding for xinput stuff
# bindsym $mod+grave exec "xinput disable 'TPPS/2 IBM TrackPoint' && xinput disable 'Synaptics TM3053-006' && xinput disable 'Synaptics tm2964-001'"
# bindsym $mod+Shift+grave exec "xinput enable 'TPPS/2 IBM TrackPoint' && xinput enable 'Synaptics TM3053-006' && xinput enable 'Synaptics tm2964-001' && xset r rate 200 40 && xinput --set-prop 'TPPS/2 IBM TrackPoint' 169 4 0 0 0 4 0 0 0 1 && xinput set-prop 'MX Master 2S Mouse' 'Coordinate Transformation Matrix' 2.000000, 0.000000, 0.000000, 0.000000, 2.000000, 0.000000, 0.000000, 0.000000, 1.000000"
# bindsym $mod+F9 exec "xinput set-prop 'MX Master 2S Mouse' 'Coordinate Transformation Matrix' 2.000000, 0.000000, 0.000000, 0.000000, 2.000000, 0.000000, 0.000000, 0.000000, 1.000000"
# Welcome message
exec --no-startup-id notify-send "Welcome, human, to the mainframe"
exec --no-startup-id xrandr --output eDP-1 --mode 1920x1200
# exec_always --no-startup-id picom
## i3wm configuration for Archcraft
## Created by : Aditya Shakya | <adi1090x>
##-- Mod Keys ----------------------------
# set $mod Mod4
# set $alt Mod1
##-- Fonts (Global) ----------------------
font pango:JetBrains Mono Medium 10
##-- Gaps --------------------------------
# Title bar text alignment
title_align center
# Uncomment this to enable title bars
#for_window [class=".*"] border normal 4
# Uncomment this to disable title bars
for_window [class=".*"] border pixel 4
# Gaps (Outer gaps are added to the inner gaps)
gaps inner 15
gaps outer 0
# Only enable gaps on a workspace when there is at least one container
#smart_gaps on
# Activate smart borders (always)
smart_borders on
##-- Colors ------------------------------
# class border backgr. text indicator child_border
# PRETTY
# client.focused #DA6E89 #DA6E89 #FFFFFF #98C379 #DA6E89
# STAND OUT
client.focused #33BFFF #33BFFF #FFFFFF #33BFFF #33BFFF
# client.focused_inactive #61AFEF #61AFEF #1E222A #98C379 #61AFEF
# client.unfocused #2C3038 #2C3038 #FFFFFF #98C379 #2C3038
client.urgent #C678DD #C678DD #FFFFFF #98C379 #C678DD
# client.placeholder #1E222A #1E222A #FFFFFF #98C379 #1E222A
client.background #1E222A
##-- Autostart ---------------------------
exec_always --no-startup-id ~/.config/i3/bin/autostart.sh
##-- Key Bindings ------------------------
# -- Apps --
#bindsym $mod+Return exec ~/.config/i3/bin/i3term.sh
# bindsym $mod+Return exec /usr/bin/alacritty
bindsym $mod+Return exec /usr/bin/gnome-terminal
# bindsym $mod+Return exec /usr/bin/kitty
# bindsym $mod+Shift+Return exec ~/.config/i3/bin/i3term.sh -f
# bindsym $mod+Shift+f exec thunar
# bindsym $mod+Shift+e exec geany
# bindsym $mod+Shift+w exec firefox
# -- Rofi --
# bindsym $alt+F1 exec ~/.config/i3/rofi/bin/launcher
# bindsym $mod+n exec ~/.config/i3/rofi/bin/network_menu
# bindsym $mod+x exec ~/.config/i3/rofi/bin/powermenu
# bindsym $alt+Control+m exec ~/.config/i3/rofi/bin/mpd
# bindsym $alt+Control+n exec ~/.config/i3/rofi/bin/network
# bindsym $alt+Control+s exec ~/.config/i3/rofi/bin/screenshot
# bindsym $alt+Control+r exec ~/.config/i3/rofi/bin/asroot
# bindsym $alt+Control+w exec ~/.config/i3/rofi/bin/windows
# -- Function keys --
# bindsym XF86MonBrightnessUp exec --no-startup-id backlight-up
# bindsym XF86MonBrightnessDown exec --no-startup-id backlight-down
# bindsym XF86AudioRaiseVolume exec --no-startup-id volume-up
# bindsym XF86AudioLowerVolume exec --no-startup-id volume-down
# bindsym XF86AudioMute exec --no-startup-id amixer set Master toggle
# -- i3wm --
# Lockscreen
# bindsym $alt+Control+l exec ~/.config/i3/bin/i3lock.sh
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# kill focused window
# bindsym $mod+c kill
# bindsym $mod+q kill
# bindsym $mod+Shift+q kill
# change focus
# bindsym $mod+j focus left
# bindsym $mod+k focus down
# bindsym $mod+l focus up
# bindsym $mod+semicolon 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+semicolon 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+w layout tabbed
# bindsym $mod+e layout toggle split
# # toggle tiling / floating
# bindsym $mod+space floating toggle
# # change focus between tiling / floating windows
# bindsym $mod+Shift+space focus mode_toggle
# # focus the parent container
# bindsym $mod+a focus parent
# # focus the child container
# bindsym $mod+d focus child
##-- Workspaces ---------------------
# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
# 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"
# # switch to workspace
# bindsym $mod+1 workspace number $ws1
# bindsym $mod+2 workspace number $ws2
# bindsym $mod+3 workspace number $ws3
# bindsym $mod+4 workspace number $ws4
# bindsym $mod+5 workspace number $ws5
# bindsym $mod+6 workspace number $ws6
# bindsym $mod+7 workspace number $ws7
# bindsym $mod+8 workspace number $ws8
# bindsym $mod+9 workspace number $ws9
# bindsym $mod+0 workspace number $ws10
# # move focused container to workspace
# bindsym $mod+Shift+1 move container to workspace number $ws1
# bindsym $mod+Shift+2 move container to workspace number $ws2
# bindsym $mod+Shift+3 move container to workspace number $ws3
# bindsym $mod+Shift+4 move container to workspace number $ws4
# bindsym $mod+Shift+5 move container to workspace number $ws5
# bindsym $mod+Shift+6 move container to workspace number $ws6
# bindsym $mod+Shift+7 move container to workspace number $ws7
# bindsym $mod+Shift+8 move container to workspace number $ws8
# bindsym $mod+Shift+9 move container to workspace number $ws9
# bindsym $mod+Shift+0 move container to workspace number $ws10
# # 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
##-- Resize / Move / Gaps ------------------------
# resize window (you can also use the mouse for that)
# mode "Resize" {
# # These bindings trigger as soon as you enter the resize mode
# 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 or $mod+r
# bindsym Return mode "default"
# bindsym Escape mode "default"
# bindsym $mod+r mode "default"
# }
# bindsym $mod+r mode "Resize"
# mode "Move" {
# # These bindings trigger as soon as you enter the Move mode
# bindsym Left move left 20px
# bindsym Down move down 20px
# bindsym Up move up 20px
# bindsym Right move right 20px
# # back to normal: Enter or Escape or $mod+r
# bindsym Return mode "default"
# bindsym Escape mode "default"
# bindsym $mod+m mode "default"
# }
# bindsym $mod+m mode "Move"
# set $mode_gaps Gaps: (o)uter, (i)nner
# set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
# set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
# 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" {
# bindsym o mode "$mode_gaps_outer"
# bindsym i mode "$mode_gaps_inner"
# bindsym Return mode "$mode_gaps"
# bindsym Escape mode "default"
# }
# bindsym $mod+Shift+g mode "$mode_gaps"
##-- Workspace Rules ------------------------
# assign [class="Firefox"] $ws3
assign [class="Mailspring"] $ws4
assign [class="discord"] $ws4
assign [class="Spotify"] $ws5
assign [class="Lutris"] $ws7
# for_window [class="Spotify"] move container to workspace 5
# open window, run 'xprop' in temrinal, click on window, get the window name - should be near bottom. Then insert like the below
# for_window [class="Gnome-control-center"] floating enable
##-- Window Rules ------------------------
for_window [title="alsamixer"] floating enable border pixel 1
for_window [class="calamares"] floating enable border normal
for_window [class="Clipgrab"] floating enable
for_window [title="File Transfer*"] floating enable
for_window [class="fpakman"] floating enable
for_window [class="Galculator"] floating enable border pixel 1
for_window [class="GParted"] floating enable border normal
for_window [title="i3_help"] floating enable sticky enable border normal
for_window [class="Lightdm-settings"] floating enable
for_window [class="Lxappearance"] floating enable sticky enable border normal
for_window [class="Manjaro-hello"] floating enable
for_window [class="Manjaro Settings Manager"] floating enable border normal
for_window [title="MuseScore: Play Panel"] floating enable
for_window [class="Nitrogen"] floating enable sticky enable border normal
for_window [class="Oblogout"] fullscreen enable
for_window [class="octopi"] floating enable
for_window [title="About Pale Moon"] floating enable
for_window [class="Pamac-manager"] floating enable
for_window [class="Pavucontrol"] floating enable
for_window [class="qt5ct"] floating enable sticky enable border normal
for_window [class="Qtconfig-qt4"] floating enable sticky enable border normal
for_window [class="Simple-scan"] floating enable border normal
for_window [class="(?i)System-config-printer.py"] floating enable border normal
for_window [class="Skype"] floating enable border normal
for_window [class="Timeset-gui"] floating enable border normal
for_window [class="(?i)virtualbox"] floating enable border normal
for_window [class="Xfburn"] floating enable
for_window [window_role="pop-up"] floating enable
for_window [window_role="task_dialog"] floating enable
for_window [class="alacritty-float"] floating enable
for_window [class="Lxappearance|Nitrogen"] floating enable
for_window [class="Pavucontrol|Xfce4-power-manager-settings|Nm-connection-editor"] floating enable
for_window [class="feh|Viewnior|Gpicview|Gimp"] floating enable
for_window [class="Kvantum Manager|qt5ct"] floating enable
for_window [class="VirtualBox Manager|qemu|Qemu-system-x86_64"] floating enable
for_window [title="About : Aditya Shakya|Getting Started"] floating enable
for_window [class="copyq"] floating enable
for_window [class="gnome-control-center"] floating enable
for_window [class="Gnome-control-center"] floating enable
# wine league
for_window [class="Wine"] floating enable
for_window [class="explorer.exe"] floating enable
for_window [title="Wine System Tray"] floating enable
# league
for_window [class="riotclientux.exe"] floating enable
for_window [class="leagueclientux.exe"] floating enable
for_window [title="Riot Client"] floating enable
for_window [title="League of Legends"] floating enable