summaryrefslogtreecommitdiff
path: root/.i3/config
blob: 4c80886f116736f2d0e5b355f79cab061bd921a5 (plain)
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
## 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!
# =================================

#####################################################
#
# --- Constants  --- {{{
#
#####################################################

set $base00 #101218
set $base01 #1f222d
set $base02 #252936
set $base03 #7780a1
set $base04 #C0C5CE
set $base05 #d1d4e0
set $base06 #C9CCDB
set $base07 #ffffff
set $base08 #ee829f
set $base09 #f99170
set $base0A #ffefcc
set $base0B #a5ffe1
set $base0C #97e0ff
set $base0D #97bbf7
set $base0E #c0b7f9
set $base0F #fcc09e

set_from_resource $darkblack 	color0	#000000
set_from_resource $black 	color8	#000000
set_from_resource $darkred 	color1	#000000
set_from_resource $red 		color9	#000000
set_from_resource $darkgreen 	color2	#000000
set_from_resource $green 	color10	#000000
set_from_resource $darkyellow 	color3	#000000
set_from_resource $yellow 	color11	#000000
set_from_resource $darkblue 	color4	#000000
set_from_resource $blue 	color12	#000000
set_from_resource $darkmagenta 	color5	#000000
set_from_resource $magenta 	color13	#000000
set_from_resource $darkcyan 	color6	#000000
set_from_resource $cyan 	color14	#000000
set_from_resource $darkwhite 	color7	#000000
set_from_resource $white 	color15	#000000
set $transparent 	#000000

set $workspace1 "1:"
set $workspace2 "2:Term"
set $workspace3 "3:Astro"
set $workspace4 "4:Simul"
set $workspace5 "5:Web"
set $workspace6 "6:Sys"
set $workspace7 "7:Dev"
set $workspace8 "8:Tuts"
set $workspace9 "9:Media"
set $workspace10 "10:"

#####################################################
#
# }}}
#
#####################################################
#####################################################
#
# --- General Configuration --- {{{
#
#####################################################
# 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 10

# 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


set $mod Mod4
floating_modifier $mod

set $term --no-startup-id /usr/local/bin/st
set $term2 /usr/bin/alacritty
set $term3 /usr/bin/xterm
set $term4 /usr/bin/urxvt
set $browser /usr/bin/qutebrowser


#SYSTEMD
set $shutdown sudo shutdown -h now
set $reboot sudo reboot
set $netrefresh --no-startup-id sudo systemctl restart NetworkManager
set $hibernate sudo systemctl suspend


# #---Audio and Music Definitions---# #

# For mpc:
set $music --no-startup-id st -e ncmpcpp -s playlist -S visualizer
set $togglepause --no-startup-id mpc toggle
set $trupause --no-startup-id mpc pause
set $pause --no-startup-id pausempv
set $next --no-startup-id mpc next
set $prev --no-startup-id mpc prev
set $lilfor --no-startup-id mpc seek +10
set $bigfor --no-startup-id mpc seek +120
set $lilbak --no-startup-id mpc seek -10
set $bigbak --no-startup-id mpc seek -120
set $beg --no-startup-id mpc seek 0%


#For PULSEAUDIO/PAMIXER
set $inc --no-startup-id pamixer --allow-boost -i 5
set $biginc --no-startup-id pamixer --allow-boost -i 15
set $dec --no-startup-id pamixer --allow-boost -d 5
set $bigdec --no-startup-id pamixer --allow-boost -d 15
set $mute --no-startup-id pamixer --allow-boost -t
set $micmute --no-startup-id pamixer --allow-boost -t
set $truemute --no-startup-id pamixer -m
set $unmute --no-startup-id pamixer -u

# bindsym $mod+BackSpace
bindsym $mod+Shift+BackSpace	exec prompt "Are you sure you want to reboot?" "$reboot"

#STOP/HIDE EVERYTHING:
bindsym $mod+Shift+Escape	exec $truemute ; exec $truepause ; workspace lmao ; exec $term -e htop ; exec $term -e ranger
bindsym $mod+Ctrl+Escape	exec $unmute ; exec $togglepause

#####################################################
#
# =================================
# --- i3-gaps --- {{{
# =================================
#
#####################################################

#hide_edge_borders both
#for_window [class="^.*"] border pixel 0
for_window [class="^.*"] border pixel 3
gaps inner 15
gaps outer 15

bindsym $mod+s		gaps inner current plus 5
bindsym $mod+Shift+s	gaps inner current minus 5
bindsym $mod+z		gaps outer current plus 5
bindsym $mod+Shift+z	gaps outer current minus 5

bindsym $mod+Ctrl+0	gaps inner current set 0; gaps outer current set 0
bindsym $mod+Ctrl+9	gaps inner current set 15; gaps outer current set 15

# }}}
#
#####################################################
#####################################################
#
# =================================
# --- Window decorations, movement, resize, focus --- {{{
# =================================
#
#####################################################

hide_edge_borders none

#new_window pixel 2
#bindsym $mod+y border pixel 2
bindsym $mod+b border normal
bindsym $mod+Ctrl+b border none

# kill focused window
bindsym $mod+Shift+q kill

# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right

# move focused window
bindsym $mod+Shift+h move left 30
bindsym $mod+Shift+j move down 30
bindsym $mod+Shift+k move up 30
bindsym $mod+Shift+l move right 30

# split in horizontal orientation
bindsym $mod+apostrophe split h

# split in vertical orientation
bindsym $mod+slash split v

# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle

# change container layout (stacked, tabbed, toggle split)
bindsym $mod+t 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/child container
bindsym $mod+Shift+a focus parent
bindsym $mod+Ctrl+a focus child

# resize window (you can also use the mouse for that)
mode "resize" {
        # These bindings trigger as soon as you enter the resize mode

        # Pressing h will shrink the window’s width.
        # Pressing j will shrink the window’s height.
        # Pressing k will grow the window’s height.
        # Pressing l will grow the window’s width.
        bindsym h resize shrink width 10 px or 10 ppt
        bindsym j resize shrink height 10 px or 10 ppt
        bindsym k resize grow height 10 px or 10 ppt
        bindsym l 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 shrink height 10 px or 10 ppt
        bindsym Up resize grow 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+Ctrl+r mode "resize"

# Resize window without going into Resize mode

bindsym $mod+Ctrl+y	resize shrink width 10 px or 10ppt
bindsym $mod+Ctrl+u	resize shrink height 10 px or 10 ppt
bindsym $mod+Ctrl+i	resize grow height 10 px or 10 ppt
bindsym $mod+Ctrl+o	resize grow width 10 px or 10 ppt

# Floating

 for_window [class="Lxappearance"] floating enable
 for_window [class="Mplayer"] floating enable #, border normal
 for_window [class="mpv"] floating enable move position 640px 10px
 for_window [class="matplotlib"] floating enable move position 40px 80px
 for_window [class="Matplotlib"] floating enable move position 620px 10px
 for_window [class="Vlc"] floating enable
 for_window [class="Pavucontrol"] floating enable
 for_window [class="Blueman-manager"] floating enable
 for_window [title="Gimp"] move workspace $workspace9
 for_window [title="GIMP Startup"] move workspace $workspace9
 for_window [window_role="gimp-dock"] floating disable; move left; resize shrink width 50 px or 50ppt
 for_window [window_role="gimp-toolbox"] floating disable; move right; resize grow width 30 px or 30ppt

#---Dropdown/Scratchpad windows---#
# Below we bind this to $mod+u

for_window [instance="tmuxdd"] floating enable
for_window [instance="tmuxdd"] resize set 925 500
for_window [instance="tmuxdd"] move scratchpad
for_window [instance="tmuxdd"] border pixel 5
for_window [instance="tmuxdd"] sticky enable
exec --no-startup-id $term -n tmuxdd  -e tmux -2

#---window running R for basic arithmetic ---#
# Below we bind this to $mod+Ctrl+grave

for_window [instance="dropdowncalc"] floating enable
for_window [instance="dropdowncalc"] resize set 800 300
for_window [instance="dropdowncalc"] move scratchpad
for_window [instance="dropdowncalc"] border pixel 5
for_window [instance="dropdowncalc"] sticky enable
exec --no-startup-id $term -n dropdowncalc -f mono:pixelsize=24 -e R -q

#---Toggle Scratchpad ---#
bindsym $mod+Shift+minus move scratchpad
bindsym $mod+minus scratchpad show
##---YouTube Download window---#

#for_window [instance="youtube-st"] floating enable
#for_window [instance="youtube-st"] resize set 925 500
#for_window [instance="youtube-st"] move scratchpad
#for_window [instance="youtube-st"] border pixel 5
#for_window [instance="youtube-st"] sticky enable
#exec --no-startup-id $term -n youtube-st  -e TERM="tmux-256color" tmux -2


# Window Colours
#                           	border  	background 	text    		indicator	child_border
    client.focused          	$red 		$red    	$magenta  		$darkmagenta 	$darkblue
    client.unfocused        	$transparent  	$blue     	$white 			$darkblue 	$transparent
    client.focused_inactive 	$transparent  	$blue     	$white 			$darkblue 	$transparent
    client.urgent          	$darkred	$darkred    	$black   		$darkred  	$darkred
    client.background          	$black


# =================================
# }}}
# =================================
# =================================
# --- Workspaces --- {{{
# =================================
# switch to workspace
bindsym $mod+1 workspace $workspace1; exec xwallpaper --zoom "$HOME/.config/wall.png"
bindsym $mod+2 workspace $workspace2; exec xwallpaper --zoom "$HOME/Pictures/wallpapers/Anime/samurai.jpg"
bindsym $mod+3 workspace $workspace3; exec xwallpaper --zoom "$HOME/Pictures/wallpapers/Spacescapes/Space Exploration 3.jpg"
bindsym $mod+4 workspace $workspace4; exec xwallpaper --zoom "$HOME/Pictures/wallpapers/Future/moon SF.jpg"
bindsym $mod+5 workspace $workspace5; exec xwallpaper --zoom "$HOME/Pictures/wallpapers/Cityscapes/1433294607949-3.jpg"
bindsym $mod+6 workspace $workspace6; exec xwallpaper --zoom "$HOME/Pictures/wallpapers/Unsorted/100 Beautiful Ultra HD 4K Wallpapers (55).jpg"
bindsym $mod+7 workspace $workspace7; exec xwallpaper --zoom "$HOME/Pictures/wallpapers/Landscapes/1490216161620.jpg"
bindsym $mod+8 workspace $workspace8; exec xwallpaper --zoom "$HOME/Pictures/wallpapers/Etc/trinity_college.jpg"
bindsym $mod+9 workspace $workspace9; exec xwallpaper --zoom "$HOME/Pictures/wallpapers/Unsorted/Supes cool 39.jpg"
bindsym $mod+0 workspace $workspace10; exec xwallpaper --zoom "$HOME/Pictures/wallpapers/Unsorted/Wallpapers Girls №581/cityscape_32.png"

# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $workspace1
bindsym $mod+Shift+2 move container to workspace $workspace2
bindsym $mod+Shift+3 move container to workspace $workspace3
bindsym $mod+Shift+4 move container to workspace $workspace4
bindsym $mod+Shift+5 move container to workspace $workspace5
bindsym $mod+Shift+6 move container to workspace $workspace6
bindsym $mod+Shift+7 move container to workspace $workspace7
bindsym $mod+Shift+8 move container to workspace $workspace8
bindsym $mod+Shift+9 move container to workspace $workspace9
bindsym $mod+Shift+0 move container to workspace $workspace10

# automatic switching back and forth between workspaces
workspace_auto_back_and_forth yes
# =================================
# }}}
# =================================
#
#####################################################
#####################################################
#
# --- Functions --- {{{
#
#####################################################
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
	font pango: System San Francisco Display, FontAwesome 9
	status_command i3blocks -c ~/.i3/i3blocks.conf
	position top
	mode dock
	modifier None

	colors {
	      separator $base03
	      background $base01
	      statusline $base05
	#                        border  background text
	      focused_workspace  $base01 $base01    $base07
	      active_workspace   $base01 $base02    $base03
	      inactive_workspace $base01 $base01    $base03
	      urgent_workspace   $base01 $base01    $base08
	}
}

# Run the script to update the mpd i3block on change.
exec --no-startup-id  ~/.i3/scripts/i3mpdupdate'

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 --no-startup-id "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'"

# #---Function Buttons---# #

# Volume Control
bindsym $mod+F11 exec --no-startup-id amixer set Master 5%-
bindsym $mod+F12 exec  --no-startup-id amixer set Master 5%+

# Brightness Control
bindsym $mod+F1 exec --no-startup-id xbacklight -dec 5
bindsym $mod+F2 exec --no-startup-id xbacklight -inc 5

# Screen Lock/ Logout / Suspend / Reboot
#set $Locker ". $HOME/.i3/scripts/lock.sh $HOME/Pictures/Icons/lock.png"
#   bindsym s exec --no-startup-id i3lock --color="$base02" && sleep1 && systemctl suspend, mode "default"

set $mode_system System (e) logout, (s) suspend, (r) reboot, (Shift+s) shutdown, (n) restart network
mode "$mode_system" {
    bindsym e exec --no-startup-id i3-msg exit, mode "default"
    bindsym s exec --no-startup-id $HOME/.i3/scripts/lockscreen, mode "default"
    #bindsym s exec --no-startup-id $LockerSuspend, mode "default"
    bindsym r exec --no-startup-id systemctl reboot, mode "default"
    bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"
    bindsym n exec --no-startup-id systemctl restart NetworkManager, mode "default"

    # back to normal: Enter or Escape
    bindsym Return mode "default"
    bindsym Escape mode "default"
}

bindsym $mod+F3		exec $term -e nmtui
bindsym $mod+F4 mode "$mode_system"

bindsym $mod+F5		exec --no-startup-id $netrefresh
bindsym $mod+F6		exec --no-startup-id $term -e transmission-remote-cli
bindsym $mod+F7		exec --no-startup-id $HOME/.i3/scripts/dmenumount
bindsym $mod+F8		exec --no-startup-id $term -n tmuxdd -e $HOME/bin/scripts/mountjutsu
bindsym $mod+F9		exec --no-startup-id $HOME/.i3/scripts/dmenuumount
#####################################################
#
# }}}
#
#####################################################
#####################################################
#
# --- Launch Specific Apps --- {{{
#
#####################################################

# start dmenu (a program launcher)
bindsym $mod+d exec --no-startup-id j4-dmenu-desktop --dmenu="dmenu -i -fn 'DejaVu Sans-10' -l 20"
bindsym $mod+Ctrl+d exec --no-startup-id j4-dmenu-desktop --dmenu="dmenu_run -i -fn 'DejaVu Sans-10' -l 20"
bindsym $mod+Shift+d exec --no-startup-id passmenu -fn 'DejaVu Sans-10' -l 30

#set $mclip ${HOME}/bin/greenclip
#exec --no-startup-id $mclip  daemon

# start a terminal
bindsym $mod+Return exec --no-startup-id $term  # st
bindsym $mod+Shift+Return exec --no-startup-id $term -e tmux  # st - tmux
bindsym $mod+Ctrl+Return exec --no-startup-id $term2  # alacritty
bindsym $mod+Ctrl+z exec --no-startup-id $term3  # xterm
bindsym $mod+u [instance="tmuxdd"] scratchpad show; [instance="tmuxdd"] move position center
bindsym $mod+Shift+u exec --no-startup-id $term -n tmuxdd  -e tmux
bindsym $mod+Ctrl+grave [instance="dropdowncalc"] scratchpad show; [instance="dropdowncalc"] move position center
bindsym $mod+Shift+grave exec --no-startup-id $term -n dropdowncalc -f mono:pixelsize=24 -e R -q

# Miscellaneous Actions

bindsym $mod+Ctrl+p exec $togglepause
bindsym $mod+Shift+p exec $pause
bindsym $mod+Shift+m exec $mute
bindsym $mod+Ctrl+x exec --no-startup-id sh $HOME/.local/bin/displayselect
bindsym $mod+Ctrl+s exec --no-startup-id $term -e sh $HOME/bin/scripts/ssh-select.sh
bindsym $mod+grave exec --no-startup-id sh $HOME/.local/bin/dmenuunicode
bindsym $mod+Ctrl+Shift+v exec --no-startup-id sh $HOME/bin/scripts/viewmovies
bindsym $mod+Ctrl+Shift+f exec --no-startup-id sh $HOME/bin/scripts/viewfights
bindsym $mod+Ctrl+Shift+t exec --no-startup-id sh $HOME/bin/scripts/viewseries
bindsym $mod+Ctrl+Shift+a exec --no-startup-id sh $HOME/bin/scripts/viewanime

# Miscellaneous Apps

bindsym $mod+a exec --no-startup-id $term -e ncpamixer
bindsym $mod+e exec --no-startup-id $term -e "mutt"
bindsym $mod+i exec --no-startup-id $term -e htop
bindsym $mod+m exec --no-startup-id $music
bindsym $mod+n exec --no-startup-id $term -e newsboat
bindsym $mod+r exec --no-startup-id $term -e ranger
bindsym $mod+v exec --no-startup-id $term -e $EDITOR ${HOME}/vimwiki/index.md
bindsym $mod+w exec --no-startup-id $browser
bindsym $mod+y exec --no-startup-id $term -e calcurse
bindsym $mod+p exec --no-startup-id ls $HOME/Computing/Palm/webos/BACKUPS/ipk-backups/*.ipk | dmenu -l 30 | xargs /opt/PalmSDK/Current/bin/palm-install && notify-send "webos install completed"
bindsym $mod+Shift+Ctrl+p exec --no-startup-id ls $HOME/Raccoon/content/apps/**/*.apk | dmenu -l 30 | xargs /usr/bin/adb install && notify-send "adb install completed"


bindsym $mod+Shift+n exec --no-startup-id /usr/bin/nm-applet
bindsym $mod+Shift+Ctrl+n exec --no-startup-id $term2 -e nmtui
bindsym $mod+Shift+b exec --no-startup-id /usr/bin/blueman-applet
bindsym $mod+Shift+f exec --no-startup-id /usr/bin/firefox -no-remote -P default
bindsym $mod+Shift+y exec --no-startup-id /usr/bin/firefox -no-remote -P Youtube
bindsym $mod+Shift+i exec --no-startup-id /usr/bin/firefox -no-remote -P Jupyter
bindsym $mod+Shift+t exec --no-startup-id /usr/bin/firefox -private-window -no-remote -P Torrent
bindsym $mod+Shift+w exec --no-startup-id sh $HOME/bin/scripts/imgselect
bindsym $mod+Shift+v exec --no-startup-id $term2 -e ncmpcpp -s playlist -S visualizer

bindsym $mod+Ctrl+w exec --no-startup-id $term -e curl wttr.in/~hatfield

# Assign Development IDE's to workspace 7

assign [class="^Eclipse$"] $workspace7
assign [class="jetbrains-pycharm-ce"] $workspace7

# Assign media applications to workspace 9

assign [class="^Vlc$"] $workspace9
assign [class="^Rhythmbox$"] $workspace9
assign [class="^Gimp$"] $workspace9
#
# }}}
#
#####################################################
#####################################################
#
# --- Startup Apps --- {{{
#
#####################################################
# Set the background
exec --no-startup-id feh --bg-scale $HOME/.config/wall.png
#Starts dunst for notifications: --moved to .xinitrc
#exec --no-startup-id dunst

#
#start  mpd so that ncmpcpp can access it when launched
#
#exec --no-startup-id i3-msg 'exec --no-startup-id /usr/bin/mpd ~/.conf/mpd/mpd.conf'


# Unclutter makes the mouse invisible after a brief period - moved to .xinitrc
# exec --no-startup-id unclutter

#start window effects
#Moved to .xinitrc
#exec compton -f
#
# start up some applications in their respective workspaces
#
exec i3-msg 'workspace $workspace1 ;  exec --no-startup-id $term2'

# }}}
#
#####################################################
#
# }}}
#
#####################################################
#
# --- Key Bindings List --- {{{
#
#####################################################
#
# $mod+{}
# =======
# $mod+a 		focus parent
# $mod+b 		split h
# $mod+d 		exec --no-startup-id dmenu_run
# $mod+e 		exec --no-startup-id $term -e "mutt -F ~/.muttrc"
# $mod+f 		fullscreen toggle
# $mod+h 		focus left
# $mod+j 		focus down
# $mod+k 		focus up
# $mod+l 		focus right
# $mod+m 		exec --no-startup-id /usr/bin/mplayer
# $mod+n 		border normal
# $mod+r 		exec --no-startup-id $term -e ranger
# $mod+t 		layout toggle split
# $mod+u 		border none
# $mod+v 		split v
# $mod+w 		exec --no-startup-id $browser
# $mod+y 		border pixel 2
# $mod+z 		split v, layout stacking
# $mod+space 		focus mode_toggle
# $mod+Return 		exec --no-startup-id
# $mod+grave 		exec --no-startup-id $HOME/bin/scripts/any_term_dropdown.sh
# $mod+F11 		exec --no-startup-id amixer set Master 5%-
# $mod+F12 		exec  --no-startup-id amixer set Master 5%+
# $mod+F1 		exec --no-startup-id xbacklight -dec 5
# $mod+F2 		exec --no-startup-id xbacklight -inc 5
# $mod+F4 		mode "$mode_system"
#
# =======
# $mod+Shift+{}
# =======
# $mod+Shift+c 		reload
# $mod+Shift+d 		exec --no-startup-id rofi -show run -lines 10 -eh 2 -width 80 \
#                    		-padding $(($(xwininfo -root | awk '/Height/  {print $2}')/4)) \
#                    		-opacity "75" -bw 0 -bc "$base02" -bg "$base02" -fg "$base03" \
#                    		-hlbg "$base02" -hlfg "#9575cd" -font "System San Francisco Display 12"
# $mod+Shift+e 		exec --no-startup-id "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'"
# $mod+Shift+f 		exec --no-startup-id /usr/bin/firefox -no-remote -P default
# $mod+Shift+h 		move left
# $mod+Shift+i 		exec --no-startup-id /usr/bin/firefox -no-remote -P Jupyter
# $mod+Shift+j 		move down
# $mod+Shift+k 		move up
# $mod+Shift+l 		move right
# $mod+Shift+m 		exec --no-startup-id /usr/bin/mpv
# $mod+Shift+n          exec --no-startup-id /usr/bin/nm-applet
# $mod+Shift+q 		kill
# $mod+Shift+r 		restart
# $mod+Shift+t 		exec --no-startup-id /usr/bin/firefox -private-window -no-remote -P Torrent
# $mod+Shift+u		resize shrink height 10 px or 10 ppt
# $mod+Shift+w 		exec --no-startup-id /usr/local/bin/eclipse/eclipse
# $mod+Shift+y 		exec --no-startup-id /usr/bin/firefox -no-remote -P Youtube
# $mod+Shift+space 	floating toggle
# $mod+Shift+Return 	exec --no-startup-id $term -e tmux
#
# =======
# $mod+Ctrl+{}
# =======
# $mod+Ctrl+r 		mode "resize"
# $mod+Ctrl+d		gaps inner current set 0; gaps outer current set 0
# $mod+Ctrl+t		gaps inner current set 15; gaps outer current set 15

# $mod+Ctrl+i		resize grow height 10 px or 10 ppt
# $mod+Ctrl+o		resize grow width 10 px or 10 ppt
# $mod+Ctrl+u		resize shrink height 10 px or 10 ppt
# $mod+Ctrl+y		resize shrink width 10 px or 10ppt

# $mod+Ctrl+h		gaps inner current plus 5
# $mod+Ctrl+j		gaps outer current minus 5
# $mod+Ctrl+k		gaps outer current plus 5
# $mod+Ctrl+l		gaps inner current minus 5
# $mod+Ctrl+space 	exec --no-startup-id $HOME/bin/scripts/rofi-scripts-collection/rofi-bangs.sh \
# 				-font "System San Francisco Display 12"
# $mod+Ctrl+Return 	exec --no-startup-id guake
#
# =======


#####################################################
#
# --- }}}
#
#####################################################
#####################################################
#
# --- Archive --- {{{
#
#####################################################
#####################################################
#
# --- Layouts --- {{{
#
#####################################################

#exec --no-startup-id i3-msg 'workspace $workspace2; append_layout $HOME/.i3/ws_2-generic.json; exec gnome-terminal --role="vim"; exec gnome-terminal --role="zypper"; exec gnome-terminal --role="mc" -e mc ; exec terminator --role="ncmpcpp" -e ncmpcpp; workspace $workspace1'
#exec --no-startup-id i3-msg 'workspace $workspace2; append_layout $HOME/.i3/ws_2-generic-t.json; exec --no-startup-id gnome-terminal --role="vim"; exec --no-startup-id gnome-terminal --role="zypper"; exec --no-startup-id terminator --role="ranger" -T "RANGER" -b -e ranger ; exec --no-startup-id terminator --role="ncmpcpp" -e tmux -T "NCMPCPP" -b ; workspace $workspace1'
#exec --no-startup-id i3-msg ' exec --no-startup-id /usr/bin/mpd $HOME/.mpd/mpd.conf; workspace $workspace2; append_layout $HOME/.i3/ws_2-generic-t.json; exec --no-startup-id gnome-terminal --role="vim"; exec --no-startup-id gnome-terminal --role="zypper"; exec --no-startup-id terminator --role="vifm" -T "VIFM" -b -e vifm ; exec --no-startup-id terminator --role="ncmpcpp" --layout="NCMPCPP" -T "NCMPCPP" -b ; workspace $workspace1'
#exec --no-startup-id i3-msg ' exec --no-startup-id /usr/bin/mpd $HOME/.mpd/mpd.conf; workspace $workspace2; append_layout $HOME/.i3/ws_2-generic-t.json; exec --no-startup-id terminator --role="vim"; exec --no-startup-id terminator --role="zypper"; exec --no-startup-id terminator --role="vifm" -T "VIFM" -b -e vifm ; exec --no-startup-id terminator --role="ncmpcpp" --layout="NCMPCPP" -T "NCMPCPP" -b ; workspace $workspace1'
#
# Refresh layouts if one of the windows is killed
#

#bindsym $mod+Shift+x exec --no-startup-id workspace $2; focus parent; focus parent; focus parent; focus parent; focus parent; kill; append_layout $HOME/.i3/ws_2-generic-t.json; exec --no-startup-id gnome-terminal --role="vim"; exec --no-startup-id gnome-terminal --role="zypper"; exec --no-startup-id terminator --role="ranger" -T "RANGER" -b -e ranger ; exec --no-startup-id terminator --role="ncmpcpp" --layout="NCMPCPP" -T "NCMPCPP" -b

#bindsym $mod+Shift+x exec --no-startup-id workspace $workspace2; append_layout $HOME/.i3/ws_2-generic-t.json; exec --no-startup-id gnome-terminal --role="vim"; exec --no-startup-id gnome-terminal --role="zypper"; exec --no-startup-id terminator --role="vifm" -T "VIFM" -b -e vifm ; exec --no-startup-id terminator --role="ncmpcpp" --layout="NCMPCPP" -T "NCMPCPP" -b ; workspace $workspace1'

#bindsym $mod+Shift+x exec --no-startup-id workspace $workspace2; append_layout $HOME/.i3/ws_2-generic-t.json; exec --no-startup-id terminator --role="vim"; exec --no-startup-id terminator --role="zypper"; exec --no-startup-id terminator --role="vifm" -T "VIFM" -b -e vifm ; exec --no-startup-id terminator --role="ncmpcpp" --layout="NCMPCPP" -T "NCMPCPP" -b ; workspace $workspace1'

#bindsym $mod+Shift+x exec --no-startup-id workspace $2; focus parent; focus parent; focus parent; focus parent; focus parent; kill; append_layout $HOME/.i3/ws_2-generic.json; exec gnome-terminal --role="vim"; exec gnome-terminal --role="zypper"; exec gnome-terminal --role="mc" -e mc ; exec terminator --role="ncmpcpp" -e tmux

#bindsym $mod+Shift+x exec --no-startup-id workspace $2; focus parent; focus parent; focus parent; focus parent; focus parent; kill; append_layout $HOME/.i3/ws_2-generic.json; exec gnome-terminal --role="vim"; exec gnome-terminal --role="zypper"; exec gnome-terminal --role="mc" -e mc ; exec terminator --role="ncmpcpp" -e ncmpcpp

#####################################################
#
# }}}
#
#####################################################
#
# }}}
#
#
#####################################################
# vim:filetype=i3