-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathhyprland.conf
723 lines (645 loc) · 26.7 KB
/
hyprland.conf
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
# Variables
$mainMod = SUPER
$localBin = $HOME/.local/bin
$scriptsDir = $confDir/scripts
$confDir = $HOME/.config/hypr
$term = kitty
$term2 = ghostty
$menu = anyrun
$powermenu = $scriptsDir/powermenu
$volume = $scriptsDir/volume
$backlight = /bin/brightnessctl
$screenshot = $scriptsDir/screenshot
$lock = $scriptsDir/lockscreen
$logout = $scriptsDir/wlogout.sh
$colorpicker = $scriptsDir/colorpicker
$rofi_beats = $scriptsDir/rofi-beats
$files = nemo
$browser = zen-browser
$music = youtube-music
$music2 = spotube
$mail = /opt/outlook-for-linux/outlook-for-linux
# monitor = DP-2, 1920x1080, 0x0, 1
monitor = HDMI-A-1, 1920x1080, 0x0, 1
monitor = eDP-1, 1920x1080, 1920x0, 1
# monitor = , preferred, auto, 1
workspace = 1, monitor:eDP-1, default:true
workspace = 2, monitor:eDP-1, default:true
workspace = 3, monitor:eDP-1, default:true
workspace = 4, monitor:eDP-1, default:true
workspace = 5, monitor:eDP-1, default:true
workspace = 6, monitor:eDP-1, default:true
workspace = 7, monitor:eDP-1, default:true
workspace = 8, monitor:eDP-1, default:true
workspace = 9, monitor:eDP-1, default:true
workspace = 10, monitor:HDMI-A-1, default:true
workspace = 11, monitor:HDMI-A-1, default:true
workspace = 12, monitor:HDMI-A-1, default:true
workspace = 13, monitor:HDMI-A-1, default:true
workspace = 14, monitor:HDMI-A-1, default:true
workspace = 15, monitor:HDMI-A-1, default:true
workspace = 16, monitor:HDMI-A-1, default:true
workspace = 17, monitor:HDMI-A-1, default:true
workspace = 18, monitor:HDMI-A-1, default:true
source = $confDir/mocha.conf
env = _JAVA_AWT_WM_NONREPARENTING,1
env = XCURSOR_SIZE,24
env = QT_QPA_PLATFORMTHEME,qt6ct
# env = QT_QPA_PLATFORM,wayland;xcb
env = QT_QPA_PLATFORM,wayland
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
env = MOZ_ENABLE_WAYLAND,1
env = GDK_BACKEND,wayland,x11
env = PATH,$HOME/.bun/bin:$HOME/.local/bin:$HOME/.cargo/bin:$confDir/scripts:$PATH
env = HYPRCURSOR_THEME,catppuccin-mocha-mauve-cursors
env = HYPRCURSOR_SIZE,24
env = HYPRLAND_NO_CRASHREPORTER,1
env = ELECTRON_OZONE_PLATFORM_HINT,auto
input {
kb_layout = us
kb_variant = altgr-intl
kb_options = compose:menu,level3:ralt_switch
special_fallthrough = true
follow_mouse = 1
numlock_by_default = true
touchpad {
natural_scroll = true
tap-to-click = true
drag_lock = true
disable_while_typing = true
}
}
misc {
disable_hyprland_logo = true
disable_splash_rendering = true
mouse_move_enables_dpms = true
key_press_enables_dpms = true
enable_swallow = true
swallow_regex = kitty|com.mitchellh.ghostty
swallow_exception_regex = ^(noswallow)$
focus_on_activate = true
allow_session_lock_restore = true
vfr = true
vrr = 2
# exit_window_retains_fullscreen = true # monocle
# new_window_takes_over_fullscreen = 1 # monocle
font_family = Pragmasevka Nerd Font
}
cursor {
hide_on_touch = true
hide_on_key_press = true
persistent_warps = true
warp_on_change_workspace = true
default_monitor = eDP-1
}
binds {
workspace_back_and_forth = true
allow_pin_fullscreen = true
workspace_center_on = 1
}
debug {
# error_position = 1
disable_logs = false
}
general {
gaps_in = 2
gaps_out = 2
border_size = 3
resize_on_border = true
col.active_border = $mauve $blue 45deg
col.inactive_border = $overlay0
gaps_workspaces = 5
layout = master
allow_tearing = true
# resize_on_border = true
# sensitivity = 0.5
snap {
enabled = true
}
}
group {
col.border_active = $mauve $blue 45deg
col.border_inactive = $overlay0
col.border_locked_inactive = $red
col.border_locked_active = $peach
groupbar {
font_family = Pragmasevka Nerd Font
font_size = 10
gradients = true
height = 15
col.active = $base
col.inactive = $overlay0
col.locked_inactive = $red
col.locked_active = $peach
}
}
decoration {
rounding = 0
dim_special = 0.3
blur {
size = 3
passes = 4
noise = 0.0117
contrast = 1.0
brightness = 1.0
new_optimizations = true
ignore_opacity = true
popups = true
# special = true
}
active_opacity = 1.0
# inactive_opacity = 0.9
fullscreen_opacity = 1.0
shadow {
enabled = false
range = 4
render_power = 3
color = rgba(1a1a1aee)
}
# dim_inactive = true
dim_strength = 0.3
dim_special = 0.3
dim_around = 0.3
}
animations {
enabled = true
first_launch_animation = false
# Beziers
bezier = simple, 0.16, 1, 0.3, 1
# bezier = tehtarik, 0.68, -0.55, 0.265, 1.55
# bezier = overshot, 0.05, 0.9, 0.1, 1.1
bezier = smoothOut, 0.36, 0, 0.66, -0.56
bezier = smoothIn, 0.25, 1, 0.5, 1
#
# animation = windows, 1, 5, simple, slide
# animation = windowsOut, 1, 4, simple, slide
# animation = fade, 1, 10, simple
animation = layersIn, 1, 3.5, smoothIn, fade
animation = layersOut, 1, 3.5, smoothOut, fade
bezier = linear, 0.0, 0.0, 1.0, 1.0
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
bezier = overshot, 0.05, 0.9, 0.1, 1.1
bezier = cubic, 0.54, 0.22, 0.07, 0.74
bezier = overshotCircle, 0.175, 0.885, 0.32, 1.275
bezier = md3_standard, 0.2, 0.0, 0, 1.0
bezier= bounce, 1, 1.6, 0.1, 0.85
bezier = decel, 0.05, 0.7, 0.1, 1
animation = windowsIn, 1, 3, bounce, popin 23%
animation = windowsOut, 1, 7, bounce, slide
animation = windows, 1, 2, md3_standard, slide
animation = border, 1, 10, overshot
animation = borderangle, 1, 100, linear, loop
animation = fade, 1, 1, default
animation = workspaces, 1, 3, bounce, slidefade 20%
animation = specialWorkspace, 1, 3, bounce, slidefadevert 20%
animation = layers, 1, 3, bounce, fade
# animation = workspaces, 1, 4, decel, slidefadevert
}
dwindle {
pseudotile = true
# preserve_split = true
# smart_split = true
special_scale_factor = 0.9
# permanent_direction_override = true
}
master {
new_status = slave
mfact = 0.5
special_scale_factor = 0.9
allow_small_split = true
new_on_active = after
# inherit_fullscreen = true # monocle
}
gestures {
workspace_swipe = true
workspace_swipe_fingers = 4
workspace_swipe_cancel_ratio = 0.15
}
layerrule = blur, logout_dialog
layerrule = ignorezero, logout_dialog
layerrule = ignorezero, rofi
layerrule = dimaround, rofi
# layerrule = ignorezero, fuzzel
# layerrule = dimaround, fuzzel
windowrule = float, yad|nm-connection-editor|pavucontrol|Rofi|feh|Gimp|qt5ct
windowrule = tile, jamesdsp
windowrulev2 = float, title:^(Firefox — Sharing Indicator)$
windowrule = workspace special:whatsapp silent, whatsappweb-nativefier-d40211
windowrule = workspace special:whatsapp silent, org.telegram.desktop
windowrule = workspace special:trash silent, ^(YouTube Music)$
windowrule = workspace special:trash silent, spotube
windowrule = workspace 8, workTerminal
windowrule = workspace 17, workTerminal2
windowrule = workspace 1 silent, outlook-for-linux
windowrule = workspace 1 silent, eu.betterbird.Betterbird
windowrule = workspace 4 silent, apachedirectorystudio
windowrule = move 1511 919, showmethekey-gtk
windowrule = float, showmethekey-gtk
windowrule = noborder, showmethekey-gtk
windowrule = opacity 1.0 override 1.0 override, ^(showmethekey-gtk)$
windowrule = noblur, showmethekey-gtk
windowrule = nofocus, showmethekey-gtk
windowrule = noanim, showmethekey-gtk
windowrule = noshadow, showmethekey-gtk
windowrule = group, ^(whatsappweb-nativefier-d40211)$
windowrule = group, ^(org.telegram.desktop)$
windowrule = group, ^(org.remmina.Remmina)$
windowrule = group, ^(spotube)$
windowrule = group, ^(YouTube Music)$
windowrule = group override barred, ^(kitty)$
windowrule = group override barred, ^(zen-beta)$
windowrulev2 = tile, class:^(ONLYOFFICE)
windowrulev2 = center, , title:^(LibreOffice)$
# wlogout rules
windowrule = float, wlogout
windowrule = move 0 0, wlogout
windowrule = size 100% 100%, wlogout
windowrule = noanim, wlogout
windowrulev2 = workspace 4, class:^(Apache Directory Studio)$
windowrulev2 = bordercolor $mauve $red, floating:1
windowrulev2 = bordercolor $lavender $mauve, fullscreen:1
windowrulev2 = opacity 0.8 0.8, pinned:1
windowrulev2 = workspace special:steam, class:^(steam)$, title:^(Sign in to Steam)$
windowrulev2 = workspace special:steam, class:^(steam)$, title:^(Steam)$
windowrulev2 = idleinhibit focus, class:^(teams-for-linux)$
windowrulev2 = float, class:^(zen-beta)$, title:^(Picture-in-Picture)$
windowrulev2 = maxsize 1000 1000, class:(zen-beta)
windowrulev2 = fullscreen, class:^(Torchlight2.bin.x86_64)$, title:^(Torchlight II v.1.25.5.4)$
# windowrulev2 = float, class:(YouTube Music)
# windowrulev2 = group barred,floating:1
# https://github.com/shvedes/dotfiles/blob/9dbf2b3942083eec261a695e4c2430c694d343a1/src/.config/hypr/include/rules.conf#L137
# GNOME polkit
windowrulev2 = dimaround, class:(polkit-gnome-authentication-agent-1)
windowrulev2 = noshadow, class:(polkit-gnome-authentication-agent-1)
# File pickers and same stuff
windowrulev2 = float, title:(Open folder.*)
windowrulev2 = size 1345 720, title:(Open folder.*)
windowrulev2 = center, title:(Open folder.*)
windowrulev2 = float, class:(soffice)
windowrulev2 = size 1345 720, class:(soffice)
windowrulev2 = center, class:(soffice)
windowrulev2 = float, title:(Save Image)
windowrulev2 = size 1345 720, title:(Save Image)
windowrulev2 = center, title:(Save Image)
windowrulev2 = float, class:(xdg-desktop-portal-gtk)
windowrulev2 = size 1345 720, class:(xdg-desktop-portal-gtk)
windowrulev2 = center, class:(xdg-desktop-portal-gtk)
# for outlook-for-linux picker
windowrulev2 = float, title:(blob.*)
windowrulev2 = size 1345 720, title:(blob.*)
windowrulev2 = center, title:(blob.*)
# for xwaylandvideobridge
windowrulev2 = opacity 0.0 override 0.0 override, class:^(xwaylandvideobridge)$
windowrulev2 = noanim, class:^(xwaylandvideobridge)$
windowrulev2 = nofocus, class:^(xwaylandvideobridge)$
windowrulev2 = noinitialfocus, class:^(xwaylandvideobridge)$
# for waybar yay update click, cava
windowrulev2 = animation slide, class:^(update)$, title:^(update)$
windowrulev2 = float, class:^(update)$, title:^(update)$
windowrulev2 = size 60% 50%, class:^(update)$, title:^(update)$
windowrulev2 = move 380 45, class:^(update)$, title:^(update)$
# windowrulev2 = pin, class:^(update)$, title:^(update)$
# for ttyclock
windowrulev2 = float, class:^(clock)$, title:^(clock)$
windowrulev2 = size 33% 27%, class:^(clock)$, title:^(clock)$
windowrulev2 = center, class:^(clock)$, title:^(clock)$
# for firefox textern
# ["kitty", "--class", "kitty", "--title", "textern", "-e", "/home/opal/.local/bin/av", "+call cursor(%l,%c)"]
windowrulev2 = animation slide, class:^(kitty)$, title:^(textern)$
windowrulev2 = float, class:^(kitty)$, title:^(textern)$
windowrulev2 = size 60% 50%, class:^(kitty)$, title:^(textern)$
windowrulev2 = center, class:^(kitty)$, title:^(textern)$
# for terminal scratchpad
windowrulev2 = animation slide, class:^(kitty)$, title:^(scratch)$
windowrulev2 = float, class:^(kitty)$, title:^(scratch)$
windowrulev2 = size 75% 65%, class:^(kitty)$, title:^(scratch)$
windowrulev2 = move 250 375, class:^(kitty)$, title:^(scratch)$
# no focus markdown preview
windowrulev2 = nofocus, title:^(Peek preview)$
# tearing
windowrulev2 = immediate, title:^(Grim Dawn)
bind = $mainMod, Return, exec, uwsm app -- $term -1 -e sesh connect work
bind = $mainMod CTRL, Return, exec, uwsm app -- $term -1 --class=stuff -T stuff -e sesh connect stuff
bind = $mainMod SHIFT, W, exec, [workspace special:whatsapp silent] uwsm app -- telegram-desktop
bind = $mainMod CTRL, W, exec, [workspace 6 silent] uwsm app -- google-chrome-stable -enable-features=UseOzonePlatform -ozone-platform=wayland
bind = $mainMod, Q, killactive,
bind = $mainMod SHIFT, Q, exit,
# bind = $mainMod, A, exec, [workspace 5 silent] uwsm app -- microsoft-edge-stable -enable-features=UseOzonePlatform -ozone-platform=wayland --profile-directory="Default"
# bind = $mainMod, A, exec, [workspace 1 silent] uwsm app -- $mail --ozone-platform-hint=auto --enable-features=WebRTCPipeWireCapturer
# bind = $mainMod, A, exec, [workspace 1 silent] uwsm app -- betterbird
bind = $mainMod, A, exec, [workspace 1 silent] uwsm app -- /opt/outlook-for-linux/outlook-for-linux --ozone-platform-hint=auto --enable-features=WebRTCPipeWireCapturer
# bind = $mainMod SHIFT, A, exec, [workspace 5 silent] uwsm app -- microsoft-edge-stable -enable-features=UseOzonePlatform -ozone-platform=wayland --profile-directory="Profile 3"
# bind = $mainMod ALT, A, exec, [workspace 5 silent] uwsm app -- microsoft-edge-stable -enable-features=UseOzonePlatform -ozone-platform=wayland --profile-directory="Profile 5"
bind = $mainMod, X, exec, [workspace 4 silent] uwsm app -- apachedirectorystudio
bind = $mainMod, F, fullscreen
# bind = $mainMod, E, exec, uwsm app -- kitty -1 --class=yazi -e yazi
bind = $mainMod SHIFT, E, exec, uwsm app -- $files
bind = $mainMod, V, togglefloating,
bind = $mainMod SHIFT, V, exec, hyprctl dispatch pseudo
bind = $mainMod, C, exec, uwsm app -- rofi -show drun -run-command 'uwsm app -- {cmd}' -run-shell-command 'uwsm app -- $term -e {cmd}'
# bind = $mainMod, C, exec, uwsm app -- fuzzel --config $confDir/fuzzel/fuzzel.ini
bind = $mainMod SHIFT, J, layoutmsg, rollnext
bind = $mainMod SHIFT, K, layoutmsg, rollprev
bind = $mainMod, J, cyclenext
bind = $mainMod, K, cyclenext, prev
bind = $mainMod SHIFT, Return, layoutmsg, swapwithmaster
bind = $mainMod, bracketright, layoutmsg, orientationnext
bind = $mainMod, bracketleft, layoutmsg, orientationprev
bind = $mainMod CTRL, comma, layoutmsg, focusmaster
# bind = $mainMod, L, exec, $scriptsDir/changeLayout
bind = $mainMod SHIFT, L, exec, uwsm app -- hyprlock
bind = $mainMod, Escape, exec, uwsm app -- $logout
# bind = $mainMod SHIFT, I, exec, uwsm app -- $colorpicker
bindr = $mainMod, Y, exec, pkill rofi || uwsm app -- $rofi_beats
bind = $mainMod, 0, exec, ROFI_PASS_CONFIG="$confDir/rofi-pass/config" uwsm app -- rofi-pass
bind = ALT, Tab, exec, uwsm app -- rofi -c $confDir/rofi/config.rasi -show window
bind = $mainMod, Tab, cyclenext,
bind = $mainMod, Tab, bringactivetotop,
bind = $mainMod, P, exec, uwsm app -- rofi -c $confDir/rofi/config.rasi -show emoji
bindr = $mainMod SHIFT, C, exec, pkill bemenu || uwsm app -- $scriptsDir/bemenu_input 6
bind = $mainMod SHIFT, Y, exec, hyprctl dispatch pseudo
bind = $mainMod, N, exec, $scriptsDir/cycle.sh next
bind = $mainMod SHIFT, N, exec, $scriptsDir/cycleSpecial.sh next
bind = ALT, Grave, exec, hyprctl dispatch focuscurrentorlast
bind = $mainMod, D, exec, hyprctl dispatch movewindow d
bind = $mainMod SHIFT, D, exec, hyprctl dispatch movewindow u
bind = $mainMod, H, exec, uwsm app -- kitty +kitten panel -o background_opacity=0 --edge=background cava
# bind = $mainMod SHIFT, H, exec, ps -ef | grep kitten | head -n 1 | awk '{print $2}' | xargs kill
bind = $mainMod, B, exec, ags -i hyprpanel toggle bar-1; ags -i hyprpanel toggle bar-0
# bind = $mainMod, B, exec, bemenu_rofi
bind = $mainMod SHIFT, B, exec, $scriptsDir/gamemode.sh
# Master layout specific
bind = $mainMod, M, submap, masterlayout
submap = masterlayout
bind = , I, layoutmsg, addmaster
bind = , I, submap, reset
bind = , D, layoutmsg, removemaster
bind = , D, submap, reset
bind = , escape, submap, reset
submap = reset
# Night mode (blue filter)
# bind = $mainMod, T, exec, hyprctl keyword decoration:screen_shader $scriptsDir/flux.glsl
# bind = $mainMod SHIFT, T, exec, hyprctl keyword decoration:screen_shader "[[EMPTY]]"
bind = $mainMod, G, togglegroup
bind = $mainMod, Tab, changegroupactive
bind = $mainMod CTRL, G, moveoutofgroup
bind = $mainMod ALT, G, lockgroups, toggle
bind = $mainMod SHIFT, G, submap, group
submap = group
bind = , J, moveintogroup, d
bind = , J, submap, reset
bind = , K, moveintogroup, u
bind = , K, submap, reset
bind = , L, moveintogroup, r
bind = , L, submap, reset
bind = , H, moveintogroup, l
bind = , H, submap, reset
bind = , escape, submap, reset
submap = reset
# Screenshots
bind = , Print, submap, screenshot
submap = screenshot
bind = , 1, exec, uwsm app -- $scriptsDir/grimblast -n copysave screen
bind = , 1, submap, reset
bind = , 2, exec, uwsm app -- $scriptsDir/grimblast -n copysave output
bind = , 2, submap, reset
bind = , 3, exec, uwsm app -- $scriptsDir/grimblast -n copysave active
bind = , 3, submap, reset
bind = , 4, exec, uwsm app -- $scriptsDir/grimblast -n copysave area
bind = , 4, submap, reset
bind = , escape, submap, reset
submap = reset
bind = SHIFT, Print, exec, uwsm app -- $scriptsDir/grimblast -n copy output
# Special Keys
bindl = , xf86audioraisevolume, exec, uwsm app -- $volume --inc
bindl = , xf86audiolowervolume, exec, uwsm app -- $volume --dec
bindl = , xf86audiomute, exec, uwsm app -- $volume --toggle
bindl = , xf86monbrightnessup, exec, uwsm app -- $backlight s +5%
bindl = , xf86monbrightnessdown, exec, uwsm app -- $backlight s 5%-
bindl = , xf86audioplay, exec, uwsm app -- playerctl play-pause
bindl = , xf86audionext, exec, uwsm app -- playerctl next
bindl = , xf86audioprev, exec, uwsm app -- playerctl previous
# Backlight control
bind = $mainMod SHIFT, equal, submap, backlight
submap = backlight
bind = , equal, exec, $backlight s +5%
bind = , minus, exec, $backlight s 5%-
bind = , K, exec, uwsm $backlight s +5%
bind = , J, exec, uwsm $backlight s 5%-
bind = , up, exec, uwsm $backlight s +5%
bind = , down, exec, uwsm $backlight s 5%-
bind = , escape, submap, reset
submap = reset
# Volume control
bind = $mainMod, equal, submap, volume
submap = volume
bind = , equal, exec, $volume --inc
bind = , minus, exec, $volume --dec
bind = , K, exec, $volume --inc
bind = , J, exec, $volume --dec
bind = , up, exec, $volume --inc
bind = , down, exec, $volume --dec
bind = , 0, exec, $volume --toggle
bind = , 9, exec, $volume --toggle-mic
bind = , escape, submap, reset
submap = reset
# Resize
bind = $mainMod SHIFT, R, submap, resize
submap = resize
binde = , H, resizeactive,-50 0
binde = , L, resizeactive,50 0
binde = , K, resizeactive,0 -50
binde = , J, resizeactive,0 50
binde = , left, resizeactive,-50 0
binde = , right, resizeactive,50 0
binde = , up, resizeactive,0 -50
binde = , down, resizeactive,0 50
bind = , escape, submap, reset
submap = reset
# Move
bind = $mainMod SHIFT, M, submap, move
submap = move
bind = , H, movewindow, l
bind = , L, movewindow, r
bind = , K, movewindow, u
bind = , J, movewindow, d
bind = , left, movewindow, l
bind = , right, movewindow, r
bind = , up, movewindow, u
bind = , down, movewindow, d
bind = , period, exec, hyprctl dispatch movewindow mon:0
bind = , comma, exec, hyprctl dispatch movewindow mon:1
bind = , escape, submap, reset
submap = reset
bind = $mainMod CTRL, H, movefocus, l
bind = $mainMod CTRL, L, movefocus, r
bind = $mainMod CTRL, K, movefocus, u
bind = $mainMod CTRL, J, movefocus, d
# Focus
bind = $mainMod SHIFT, F, submap, focus
submap = focus
bind = , left, movefocus, l
bind = , right, movefocus, r
bind = , up, movefocus, u
bind = , down, movefocus, d
bind = , H, movefocus, l
bind = , L, movefocus, r
bind = , K, movefocus, u
bind = , J, movefocus, d
bind = , escape, submap, reset
submap = reset
# Preselection split ONLY IN DWINDLE mode
# bind = $mainMod, S, submap, split
# submap = split
# bind = , J, exec, hyprctl dispatch layoutmsg "preselect d"
# bind = , J, submap, reset
# bind = , K, exec, hyprctl dispatch layoutmsg "preselect u"
# bind = , K, submap, reset
# bind = , L, exec, hyprctl dispatch layoutmsg "preselect r"
# bind = , L, submap, reset
# bind = , H, exec, hyprctl dispatch layoutmsg "preselect l"
# bind = , H, submap, reset
# bind = , escape, submap, reset
# submap = reset
# Bypass global keybinds to pass binds directly to application (eg: VMs)
bind = $mainMod CTRL, Grave, submap, passthru
submap = passthru
bind = $mainMod, Escape, submap, reset
submap = reset
# Special workspace
bind = $mainMod SHIFT, U, movetoworkspace, special:terminal
bind = $mainMod, U, togglespecialworkspace, terminal
bind = $mainMod SHIFT, Backspace, movetoworkspace, special:steam
bind = $mainMod, Backspace, togglespecialworkspace, steam
bind = $mainMod SHIFT, Delete, movetoworkspace, special:trash
bind = $mainMod, Delete, togglespecialworkspace, trash
bind = $mainMod SHIFT, O, movetoworkspace, special:whatsapp
bind = $mainMod, O, togglespecialworkspace, whatsapp
bind = ALT, Q, togglespecialworkspace, clipse
# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, split-workspace, 1
bind = $mainMod, 2, split-workspace, 2
bind = $mainMod, 3, split-workspace, 3
bind = $mainMod, 4, split-workspace, 4
bind = $mainMod, 5, split-workspace, 5
bind = $mainMod, 6, split-workspace, 6
bind = $mainMod, 7, split-workspace, 7
bind = $mainMod, 8, split-workspace, 8
bind = $mainMod, 9, split-workspace, 9
# bind = $mainMod, 0, split-workspace, 10
# bind = $mainMod, Grave, split-workspace, empty # The key before '1' (backtick/tilde)
# Move active window and follow to workspace
bind = $mainMod CTRL, 1, split-movetoworkspace, 1
bind = $mainMod CTRL, 2, split-movetoworkspace, 2
bind = $mainMod CTRL, 3, split-movetoworkspace, 3
bind = $mainMod CTRL, 4, split-movetoworkspace, 4
bind = $mainMod CTRL, 5, split-movetoworkspace, 5
bind = $mainMod CTRL, 6, split-movetoworkspace, 6
bind = $mainMod CTRL, 7, split-movetoworkspace, 7
bind = $mainMod CTRL, 8, split-movetoworkspace, 8
bind = $mainMod CTRL, 9, split-movetoworkspace, 9
# bind = $mainMod CTRL, 0, split-movetoworkspace, 10
# bind = $mainMod CTRL, Grave, split-movetoworkspace, empty
# bind = $mainMod CTRL, bracketleft, split-movetoworkspace, -1
# bind = $mainMod CTRL, bracketright, split-movetoworkspace, +1
# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, split-movetoworkspacesilent, 1
bind = $mainMod SHIFT, 2, split-movetoworkspacesilent, 2
bind = $mainMod SHIFT, 3, split-movetoworkspacesilent, 3
bind = $mainMod SHIFT, 4, split-movetoworkspacesilent, 4
bind = $mainMod SHIFT, 5, split-movetoworkspacesilent, 5
bind = $mainMod SHIFT, 6, split-movetoworkspacesilent, 6
bind = $mainMod SHIFT, 7, split-movetoworkspacesilent, 7
bind = $mainMod SHIFT, 8, split-movetoworkspacesilent, 8
bind = $mainMod SHIFT, 9, split-movetoworkspacesilent, 9
# bind = $mainMod SHIFT, 0, split-movetoworkspacesilent, 10
# bind = $mainMod SHIFT, Grave, split-movetoworkspacesilent, empty
# bind = $mainMod SHIFT, bracketleft, split-movetoworkspacesilent, -1
# bind = $mainMod SHIFT, bracketright, split-movetoworkspacesilent, +1
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
# Move/resize windows with mainMod + LMB/RMB and dragging
# mouse:272 = left
# mouse:273 = right
# mouse:274 = middle
# mouse:275 = side
# mouse:276 = extra
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
bind = $mainMod, mouse:274, togglefloating
bindm = , mouse:275, movewindow
bindm = , mouse:276, resizewindow
# The second bind is redundant but I'm used to it in DWM
bind = $mainMod SHIFT CTRL, comma, exec, hyprctl dispatch swapactiveworkspaces 1 0
bind = $mainMod SHIFT CTRL, period, exec, hyprctl dispatch swapactiveworkspaces 0 1
bind = $mainMod SHIFT CTRL, left, exec, hyprctl dispatch swapactiveworkspaces 1 0
bind = $mainMod SHIFT CTRL, right, exec, hyprctl dispatch swapactiveworkspaces 0 1
bind = $mainMod SHIFT, comma, exec, hyprctl dispatch split-changemonitor prev
bind = $mainMod SHIFT, period, exec, hyprctl dispatch split-changemonitor next
# bind = $mainMod SHIFT CTRL, comma, exec, hyprctl dispatch split-changemonitorsilent prev
# bind = $mainMod SHIFT CTRL, period, exec, hyprctl dispatch split-changemonitorsilent next
# focus monitor.
bind = $mainMod, comma, focusmonitor, l
# bind = $mainMod, bracketleft, workspace, e-1
bind = $mainMod, period, focusmonitor, r
# bind = $mainMod, bracketright, workspace, e+1
# move
# bind = SHIFTALT, comma, movecurrentworkspacetomonitor, l
# bind = SHIFTALT, period, movecurrentworkspacetomonitor, r
# grab rogue windows
# bind = SHIFTALT, slash, split-grabroguewindows
# bind = $mainMod SHIFT CTRL, bracketright, split-swapactiveworkspaces, current +1
# bind = $mainMod SHIFT CTRL, bracketleft, split-swapactiveworkspaces, current +1
# plugin: xtra-dispatchers
# bind = $mainMod, semicolon, plugin:xtd:throwunfocused, special:void
# bind = $mainMod SHIFT, semicolon, plugin:xtd:bringallfrom, special:void
bind = $mainMod, S, exec, hyprctl dispatch toggleswallow
# laptop lid switch
bindl = , switch:on:Lid Switch, exec, hyprctl keyword monitor "eDP-1, 1920x1080, 1920x0, 1"
bindl = , switch:off:Lid Switch, exec, hyprctl keyword monitor "eDP-1, disable"
## Plugins
# source = $confDir/hyprexpo.conf
# source = $confDir/hyprsplit.conf
source = $confDir/hyprtasking.conf
# source = $confDir/hyprspace.conf
# source = $confDir/hyprgrass.conf
source = $confDir/split-monitor-workspaces.conf
## Source local config (yadm)
## symlink creation is handled by yadm
source = $confDir/local.conf
exec-once = uwsm app -- hyprpm reload -n
exec-once = uwsm app -- $scriptsDir/import-gsettings
exec-once = uwsm app -- /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = uwsm app -- clipse --listen
# exec-once = [workspace special:junks silent] uwsm app -- xwaylandvideobridge
exec-once = uwsm app -- hyprpanel
exec-once = uwsm app -- kanata -c $confDir/kanata/lappy.kbd
# exec-once = uwsm app -- socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock EXEC:"${SCRIPTSDIR}/shellevents ${SCRIPTSDIR}/submaps.sh",nofork &
exec-once = uwsm app -- hyprpaper
exec-once = uwsm app -- hypridle
# GTK4 cursor size bug fix
exec-once = dconf write /org/gnome/desktop/interface/cursor-size 24
# smart gaps, no_border_when_only
workspace = w[tv1] s[0], gapsout:0, gapsin:0
workspace = w[tg1] s[0], gapsout:0, gapsin:0
workspace = f[1] s[0], gapsout:0, gapsin:0
windowrulev2 = bordersize 0, floating:0, onworkspace:w[tv1] s[0]
windowrulev2 = rounding 0, floating:0, onworkspace:w[tv1] s[0]
windowrulev2 = bordersize 0, floating:0, onworkspace:w[tg1] s[0]
windowrulev2 = rounding 0, floating:0, onworkspace:w[tg1] s[0]
windowrulev2 = bordersize 0, floating:0, onworkspace:f[1] s[0]
windowrulev2 = rounding 0, floating:0, onworkspace:f[1] s[0]
# workspace = previous_per_monitor
workspace = special:terminal, on-created-empty:uwsm app -- $term -1 --title scratch -e sesh connect work
# workspace = special:terminal, on-created-empty:uwsm app -- $term -1 --title scratch -e tt work
workspace = special:trash, on-created-empty:uwsm app -- $music2
workspace = special:whatsapp, on-created-empty:uwsm app -- $HOME/.config/WhatsAppWeb-linux-x64/WhatsAppWeb --ozone-platform-hint=auto --enable-features=WebRTCPipeWireCapturer
workspace = special:steam, on-created-empty:uwsm app -- steam
workspace = special:update, on-created-empty:uwsm app -- $term --class=update -T update -e yay -Syu
workspace = special:clipse, on-created-empty:uwsm app -- $term --class=kitty -T textern -e clipse
workspace = 6, on-created-empty:uwsm app -- remmina
workspace = 7, on-created-empty:uwsm app -- teams-for-linux
workspace = 8, on-created-empty:uwsm app -- $term -1 --class=workTerminal -T noswallow -o background_opacity=1.0 -e sesh connect Project
workspace = 17, on-created-empty:uwsm app -- $term -1 --class=workTerminal2 -T noswallow -o background_opacity=1.0 -e sesh connect Project