-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig
509 lines (424 loc) · 15.9 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
# i3 config file (v4)
#
# Mod key: Super key
set $mod Mod4
# Mod2 key: Alt key
set $mod2 Mod1
# Default terminal
set $myterm kitty
# Font for window titles.
font pango:Hack Nerd Font 10
# Gaps
title_align center
default_border pixel 2
# Workaround to hidel window titles with i3 4.21
for_window [class="^.*"] border pixel 2
default_floating_border normal
gaps inner 4
gaps outer 0
# Colors
set_from_resource $wal-fg i3wm.color7 #f0f0f0
set_from_resource $wal-bg i3wm.color19 #4659de
set $bg-color i3wm.color2
set $inactive-bg-color #666666
set $text-color #ffffff
set $inactive-text-color #ffffff
set $urgent-bg-color #E42343
# Window colors
# type border background text indicator
client.focused $wal-bg $wal-bg $text-color $wal-bg
client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color $inactive-bg-color
client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color $inactive-bg-color
client.urgent $urgent-bg-color $urgent-bg-color $text-color $urgent-bg-color
client.background $wal-bg
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# Start a terminal
bindsym $mod+Return exec $myterm "`xcwd`"
# kill focused window
bindsym $mod+q kill
bindsym $mod+grave kill
# Scratchpad
bindsym $mod+Shift+minus move scratchpad
bindsym $mod+minus scratchpad show
# start rofi
# RUN
bindsym $mod+d exec rofi -show run -config $($HOME/.dotfiles/bin/rofi-config)
# LAUNCH
bindsym $mod+z exec rofi -show drun -config $($HOME/.dotfiles/bin/rofi-config)
# TASKS
bindsym $mod+g exec rofi -show window -config $($HOME/.dotfiles/bin/rofi-config)
# CALC
bindsym $mod+equal exec rofi -show calc -no-show-match -no-sort -config $($HOME/.dotfiles/bin/rofi-config)
# PASS
bindsym $mod+i exec rofi-pass -config $($HOME/.dotfiles/bin/rofi-config)
# POWER
bindsym $mod+Shift+Escape exec ~/.dotfiles/bin/rofi-powermenu
# AMBIENT SOUNDS
bindsym $mod+Shift+s exec $HOME/.dotfiles/bin/ambientsound
# GUI VIM
bindsym $mod+Shift+e exec neovide
# SETUP KEYBOARD
bindsym $mod+Control+k exec $HOME/.dotfiles/bin/kbsetupx && notify-send "Keyboard configured"
bindsym XF86Search exec $HOME/.dotfiles/bin/fmenu -i $HOME -t +10
# pulsemixer
#bindsym $mod+Shift+p exec "$myterm --class wm-floating-big,wm-floating-big --command pulsemixer"
bindsym $mod+Shift+p exec "$myterm --class=wm-floating-big,wm-floating-big pulsemixer"
# toggle compositor
bindsym $mod+c exec $HOME/.dotfiles/bin/togglepicom
# monitor off
bindsym $mod+F8 exec $HOME/.dotfiles/bin/monitoroff
# 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
# move the whole workspace to the next output
bindsym $mod+p move workspace to output right
bindsym $mod+o move workspace to output left
# 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
# fast focus with wmfocus
bindsym $mod+x exec --no-startup-id wmfocus
# split in horizontal orientation
bindsym $mod+b 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 $mod2+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod2+e layout toggle split
# toggle tiling / floating
bindsym $mod+t floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# New workspace
bindsym $mod+n exec --no-startup-id $HOME/.dotfiles/bin/i3-new-workspace
# focus the parent container
bindsym $mod+a focus parent
# pass-through mode for remote desktops
mode "pass-through" {
bindsym $mod+y mode "default"
}
bindsym $mod+y mode "pass-through"
# media player controls XF86Audio and $mod+Control
bindsym $mod+Control+m exec "$myterm --class=wm-floating-big,wm-floating-big ncmpcpp"
bindsym XF86AudioPrev exec playerctl previous
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPlay exec playerctl play-pause
bindsym $mod+Control+period exec playerctl next
bindsym $mod+Control+comma exec playerctl previous
bindsym $mod+Shift+period exec playerctl position 5+
bindsym $mod+Shift+comma exec playerctl position 5-
bindsym $mod+Control+p exec playerctl play-pause
bindsym $mod+Control+s exec playerctl stop
bindsym $mod+Control+z exec mpc random
# pulse audio controls
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +1%
bindsym $mod+Control+0 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +1%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -1%
bindsym $mod+Control+9 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -1%
# backlight - edit /usr/local/lib/brightnessctl/configuration.sh for step size
bindsym XF86MonBrightnessUp exec brightness+
bindsym XF86MonBrightnessDown exec brightness-
# screenshot - full screen
bindsym Print exec maim -f jpg $HOME/Pictures/Screenshots/screenshot_$(date -u +"%Y_%m_%d_%H_%M_%S").png && notify-send "Screenshot saved to ~/Pictures/$(\ls -Art /home/tsagrista/Pictures/Screenshots | tail -n 1)"
# screenshot - grab region
bindsym --release $mod+Print exec import $HOME/Pictures/Screenshots/screenshot_$(date -u +"%Y_%m_%d_%H_%M_%S").png && notify-send "Screenshot saved to ~/Pictures/$(\ls -Art /home/tsagrista/Pictures/Screenshots | tail -n 1)"
# maim & gimp
#bindsym $mod+Print exec maim -e 'mv $f /tmp/ && gimp /tmp/$f'
# Start Applications
bindsym $mod+Control+w exec firefox
bindsym $mod+Shift+w exec qutebrowser
bindsym $mod+Shift+t exec thunderbird-beta
bindsym $mod+Shift+f exec "$myterm --class=wm-floating,wm-floating lf `$HOME/.dotfiles/bin/xcwd`"
bindsym $mod+Control+n exec "dunstctl action"
# Min and max sizes for floating windows
floating_minimum_size 450x150
floating_maximum_size -1x-1
# WORKSPACES
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 $ws0 "10 "
# 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 $ws0 "10"
# switch to workspace
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws0
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws0
# default workspaces
assign [class="qutebrowser"] $ws2
assign [class="Thorium-browser"] $ws2
assign [class="firefox"] $ws2
assign [class="thunderbird"] $ws3
assign [class="thunderbird-beta"] $ws3
assign [class="Mail"] $ws3
assign [class="Eclipse"] $ws4
assign [class="jetbrains-idea-ce"] $ws4
assign [class="Skype"] $ws9
assign [class="zoom"] $ws9
assign [class="telegram-desktop"] $ws9
assign [class="discord"] $ws9
assign [class="Signal"] $ws9
assign [class="Steam"] $ws5
assign [class="steam"] $ws5
assign [class="steamwebhelper"] $ws5
assign [class="itch"] $ws5
assign [class="FreeTube"] $ws6
# default floating
for_window [class="Msgcompose"] floating enable
for_window [class="gimp"] floating enable
for_window [class="pdfpc"] floating enable
for_window [class="pympress"] floating enable
for_window [class="Lxappearance"] floating enable sticky enable
for_window [class="qt5ct"] floating enable sticky enable
for_window [class="Qtconfig-qt4"] floating enable sticky enable
for_window [class="Blueman-manager"] floating enable
for_window [class="GParted"] floating enable
for_window [class="Skype"] floating enable
for_window [class="zoom"] floating enable
for_window [class="telegram-desktop"] floating enable
for_window [class="Grub-customizer"] floating enable
for_window [class="Gsimplecal"] floating enable
for_window [class="Arandr"] floating enable
for_window [class="Nemo"] floating enable
for_window [class="Gaia Sky"] floating enable
for_window [class="RTS Engine"] floating enable
for_window [class="obs"] floating enable
for_window [class="timeanalysis.py"] floating enable
for_window [class="Yad"] floating enable
for_window [class=".*starlink-topcat.*"] floating enable
for_window [class="Audacity"] floating enable
for_window [class="Terraria.bin.x86_64"] floating enable
for_window [class="gaia-cu3-fl-flse-test-FlseTestClient"] floating enable
for_window [class="gaia-cu1-maindb-dbexplorer-progs-ExplorerApplication"] floating enable
for_window [class="mpv"] floating enable
for_window [class=".*jprofiler.*"] floating enable
for_window [class="install4j-com-install4j-Install4JGUI"] floating enable
for_window [class="wm-floating"] floating enable
for_window [class="wm-floating-big"] floating enable resize set 1680 920
for_window [class="steam_app_*"] floating enable
for_window [class="CrossCode"] floating enable
for_window [title="Blender User Preferences"] floating enable
for_window [title="Blender Preferences"] floating enable
for_window [title="Volume Control"] floating enable
for_window [title="SteamVR Status"] floating enable
for_window [title="Write: (no subject) - Thunderbird.*"] floating enable
# 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
# Shut down, restart and locking
bindsym $mod+Escape mode "$mode_system"
set $mode_system l[o]gout [l]ock [s]uspend [r]eboot shut[d]own
mode "$mode_system" {
bindsym l exec --no-startup-id $HOME/.dotfiles/bin/i3exit slock, mode "default"
bindsym s exec --no-startup-id $HOME/.dotfiles/bin/i3exit suspend, mode "default"
bindsym o exec --no-startup-id $HOME/.dotfiles/bin/i3exit logout, mode "default"
bindsym r exec --no-startup-id $HOME/.dotfiles/bin/i3exit reboot, mode "default"
bindsym d exec --no-startup-id $HOME/.dotfiles/bin/i3exit shutdown, mode "default"
# exit system mode: "Enter" or "Escape"
bindsym Return mode "default"
bindsym Escape mode "default"
}
#
# GAPS
#
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"
}
# Screen lockers
bindsym $mod+shift+x exec --no-startup-id $HOME/.dotfiles/bin/lock
bindsym $mod+shift+z exec --no-startup-id "$myterm --class=wm-floating slock"
# 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 grow width 1 px or 1 ppt
bindsym j resize shrink height 1 px or 1 ppt
bindsym k resize grow height 1 px or 1 ppt
bindsym l resize shrink width 1 px or 1 ppt
# same bindings, but for the arrow keys
bindsym Left resize grow width 1 px or 1 ppt
bindsym Down resize shrink height 1 px or 1 ppt
bindsym Up resize grow height 1 px or 1 ppt
bindsym Right resize shrink width 1 px or 1 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
# START USER I3-SESSION.SERVICE
exec --no-startup-id systemctl start --user i3-session.service
#
# STARTUP APPLICATIONS
#
#
# TRACKPAD - Dell XPS13
#
# trackpad speed
exec_always --no-startup-id "xinput set-prop 'DELL07E6:00 06CB:76AF Touchpad' 'libinput Accel Speed' 0.6"
# tapping enabled
exec_always --no-startup-id "xinput set-prop 'DELL07E6:00 06CB:76AF Touchpad' 'libinput Tapping Enabled' 1"
#
# XOB - indicator bars for volume and brightness
#
#exec_always --no-startup-id "$HOME/.dotfiles/bin/pulse-vol-watcher | xob -s volume"
#exec_always --no-startup-id "$HOME/.dotfiles/bin/brightness-watcher | xob -s brightness"
#
# SYSTEM TRAY
#
# network manager
exec --no-startup-id "nm-applet"
# bluetooth
exec --no-startup-id "blueman-applet"
# volume
exec --no-startup-id "pasystray"
#
# MONITORS AND XRANDR - autodetect plug-in monitors
#
exec --no-startup-id mons -a > /dev/null 2>&1
#
# Autotiling
#
exec_always --no-startup-id "autotiling"
#
# playerctld
#
exec --no-startup-id "playerctld"
#
# UDISKIE - automount
#
exec --no-startup-id "udiskie -f $HOME/.dotfiles/bin/ranger-term --tray"
# NO SCREENSAVER
exec --no-startup-id "$HOME/.dotfiles/bin/no-screenoff.sh"
# PYWAL
exec --no-startup-id "wal -a 85 --theme $HOME/.dotfiles/pywal/themes/dark/base16-google.json"
#
# COMPOSITOR - window compositor
#
exec --no-startup-id "$HOME/.dotfiles/bin/togglepicom"
#
# RANDR - monitor setup
#
exec_always --no-startup-id "$HOME/.local/bin/current-randr.sh"
#
# mpDris2 - MPRIS2 support for mpd
#
exec_always --no-startup-id "mpDris2"
#
# KEYBOARD configuration
#
# Repeat interval and delay
exec sleep 3s && xset r rate 200 45
# Keyboard layout definition. Switch escape and caps lock key
exec sleep 3s && setxkbmap -model pc104 -layout us,es -option 'grp:alt_space_toggle,caps:swapescape,eurosign:e'
# Activate numlock
exec sleep 3s && numlockx
#
# WALLPAPER - after screens have been setup
#
#exec --no-startup-id hsetroot -solid "#000000"
exec_always --no-startup-id sleep 5s && $HOME/.dotfiles/bin/wallpapermgr && notify-send "Wallpaper applied"
#
# BAR (polybar, bumblebee-status, i3status...)
#
# exec_always --no-startup-id $HOME/.dotfiles/bin/polybar-launch
bar {
colors{
background #000000
statusline #ffffff
#class border backgr text
focused_workspace #000000 #295499 #ffffff
inactive_workspace #000000 #000000 #aaaaaa
active_workspace #000000 #000000 #ffffff
urgent_workspace #f35888 #a31838 #ffffff
}
i3bar_command i3bar
status_command i3blocks -c $HOME/.config/i3blocks/config
workspace_buttons yes
workspace_min_width 50
strip_workspace_numbers no
position top
tray_output primary
font pango:Hack Nerd Font 10
}