-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhyprland.conf
439 lines (393 loc) · 16.5 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
# [[file:hyprland.org::*General][General:1]]
general {
gaps_in = 10
gaps_out = 20
gaps_workspaces = 30
border_size = 1
# col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
col.active_border = rgb(00F5F6)
col.inactive_border = rgba(24283be6)
layout = dwindle
# layout = master
}
# General:1 ends here
# [[file:hyprland.org::*Decoration][Decoration:1]]
decoration {
active_opacity=1.0
fullscreen_opacity=1.0
rounding = 5 # border radius
drop_shadow = true
shadow_range = 15
shadow_render_power = 3
col.shadow = rgba(00F5F688)
blurls = nil
blur {
# enable kawase window background blur. default true
enabled = false
# blur size (distance). default 8
size = 5
# the amount of passes to perform. default 1
passes = 1
# make the blur layer ignore the opacity of the window.
# default false
ignore_opacity = false
# whether to enable further optimizations to the blur.
# massively improve performance. default true
new_optimizations = true
# make floating windows ignore tiled windows in their blur.
# Only available if blur_new_optimizations is true.
# Will reduce overhead on loating blur significantly.
xray = false
# how much noise to apply. 0.0 - 1.0. default 0.0117
noise = 0.0117
# contrast modulation for blur. 0.0 - 2.0. default 0.8916
contrast = 0.8916
# brightness modulation for blur. 0.0 - 2.0. default 0.8172
brightness = 0.8172
}
}
# Decoration:1 ends here
# [[file:hyprland.org::*Animations][Animations:1]]
animations {
enabled = true
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
animation = windows, 1, 3, default
animation = windowsOut, 1, 4, default, popin 50%
animation = border, 1, 5, default
animation = borderangle, 1, 5, default
animation = fade, 1, 5, default
animation = workspaces, 1, 6, default, slidevert
animation = specialWorkspace, 1, 5, default, slidefadevert
# animation = layersIn, 0
# animation = layersOut, 0
# animation = specialWorkspace, 1, 3, default, fade
}
# Animations:1 ends here
# [[file:hyprland.org::*Input][Input:1]]
input {
kb_layout = us
kb_variant =
kb_model =
kb_options = caps:escape,shift:both_capslock
# kb_options =
kb_rules =
# kb_file = ~/.config/xkb/us-emacs.xkb
follow_mouse = 1
touchpad {
natural_scroll = true
}
sensitivity = 0.1 # -1.0 - 1.0, 0 means no modification.
repeat_rate = 30 # default 25
repeat_delay = 250 # default 600, I prefer faster entering repeat mode
}
# Input:1 ends here
# [[file:hyprland.org::*Dwindle Layout][Dwindle Layout:1]]
dwindle {
pseudotile = true
# master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = true # you probably want this
special_scale_factor = 0.85
}
# Dwindle Layout:1 ends here
# [[file:hyprland.org::*Master Layout][Master Layout:1]]
master {
new_is_master = true
}
# Master Layout:1 ends here
# [[file:hyprland.org::*Gestures][Gestures:1]]
gestures {
workspace_swipe = true
workspace_swipe_fingers = 4
workspace_swipe_distance = 300
workspace_swipe_cancel_ratio = 0.5
workspace_swipe_min_speed_to_force = 10
workspace_swipe_create_new = true
}
# Gestures:1 ends here
# [[file:hyprland.org::*Group][Group:1]]
group {
col.border_active = rgba(33ccffee) rgba(00ff99ee) 45deg
col.border_inactive = rgba(24283be6)
col.border_locked_active = rgba(33ccffee) rgba(00ff99ee) 45deg
col.border_locked_inactive = rgba(24283be6)
groupbar {
gradients = true
render_titles = true
font_size = 14
col.active = rgba(00ff99ee) rgba(33ccffee) 45deg
col.inactive = rgba(24283be6)
col.locked_active = rgba(00ff99ee) rgba(33ccffee) 45deg
col.locked_inactive = rgba(24283be6)
}
}
# Group:1 ends here
# [[file:hyprland.org::*Cursor][Cursor:1]]
cursor {
no_warps = true
}
# Cursor:1 ends here
# [[file:hyprland.org::*Misc][Misc:1]]
misc {
disable_hyprland_logo = true
disable_splash_rendering = true
vrr = 2
}
# Misc:1 ends here
# [[file:hyprland.org::*Kanshi][Kanshi:1]]
exec-once=kanshi
# Kanshi:1 ends here
# [[file:hyprland.org::*Temp][Temp:1]]
monitor=eDP-1, [email protected], 0x0, 1
# Temp:1 ends here
# [[file:hyprland.org::*Executes][Executes:1]]
exec-once = lxqt-policykit-agent
exec-once = swaync
exec-once = fcitx5 -d
# exec-once = pulseaudio -D
exec-once = clash-verge
exec-once = wl-paste --type text --watch cliphist store #Stores only text data
exec-once = wl-paste --type image --watch cliphist store #Stores only image data
exec-once = ags -b hypr -q; ags -b hypr -c ~/.config/hypr/ags/config.js
exec-once = hyprpaper;
# Executes:1 ends here
# [[file:hyprland.org::*Helpful variables][Helpful variables:1]]
# helpful variables
$activeMonitorId="$(hyprctl -j monitors | jq -r '.[] | select(.focused == true) | .id')"
$activeWorkspaceId="$(hyprctl -j activeworkspace | jq -r '.id')"
$focusWorkspace="hyprctl dispatch workspace"
$focusMonitor="hyprctl dispatch focusmonitor"
$move2Workspace="hyprctl dispatch movetoworkspace"
$specialWorkspaceId="$(hyprctl -j activewindow | jq -r '.workspace.name' | cut -d':' -f2)"
$toggleOverview=
$mainMod = SUPER
# Helpful variables:1 ends here
# [[file:hyprland.org::*Launch applications][Launch applications:1]]
# applications
bind = $mainMod, Return, exec, kitty --single-instance
bind = $mainMod, E, exec, thunar
bind = $mainMod, B, exec, vivaldi
bind = $mainMod, N, exec, neovide
bind = $mainMod, M, exec, emacs
# no longer use rofi to launch apps, but ags's internal launcher
# bind = $mainMod, R, exec, ~/.config/rofi/launcher.sh
bind = $mainMod, R, exec, anyrun
bind = $mainMod, F, exec, ~/.config/rofi/file.sh
bind = $mainMod, V, exec, ~/.config/rofi/clipboard.sh
# grimblast for screenshots
bind=,Print,execr, grimblast --notify --cursor copysave area ~/Pictures/$(date +'%Y-%m-%d_%H-%M-%S_1.png')
bind=SUPER,Print,exec,grimblast --notify save output ~/Pictures/$(date +'%Y-%m-%d_%H-%M-%S_1.png')
bind=SUPER SHIFT,Print,exec,grimblast --notify copy area - | swappy -f -
# Launch applications:1 ends here
# [[file:hyprland.org::*Desktop Functions][Desktop Functions:1]]
bind = $mainMod, Delete, exec, wlogout
bind = $mainMod CTRL ALT, Delete, exec, kill
bindle = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+
bindle = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-
bindle = , XF86MonBrightnessUp, exec, brightnessctl set 1%+ -q
bindle = , XF86MonBrightnessDown, exec, brightnessctl set 1%- -q
bindl = , XF86AudioStop, exec, playerctl stop
bindl = , XF86AudioPause, exec, playerctl pause
bindl = , XF86AudioPrev, exec, playerctl previous
bindl = , XF86AudioNext, exec, playerctl next
bindl = , XF86AudioPlay, exec, playerctl play-pause
# Desktop Functions:1 ends here
# [[file:hyprland.org::*Window State Control][Window State Control:1]]
#function
bind = $mainMod , Q, killactive,
bind = $mainMod , S, togglesplit, # dwindle
bind = $mainMod Alt, G, togglegroup,
bind = $mainMod , G, changegroupactive
bind = $mainMod , P, pin
# bind = $mainMod , O, execr, ~/.config/hypr/bin/eww_toggle_overview.sh
bind = $mainMod ALT, F9, pseudo, # dwindle
bind = $mainMod ALT, F10, togglefloating,
bind = $mainMod ALT, F11, fullscreen, 0
# Window State Control:1 ends here
# [[file:hyprland.org::*Window focus move][Window focus move:1]]
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d
bind = $mainMod, J, movefocus, l
bind = $mainMod, L, movefocus, d
bind = $mainMod, K, movefocus, u
bind = $mainMod, semicolon, movefocus, r
# Window focus move:1 ends here
# [[file:hyprland.org::*Window position swap][Window position swap:1]]
bind = $mainMod SHIFT, left, movewindoworgroup, l
bind = $mainMod SHIFT, right, movewindoworgroup, r
bind = $mainMod SHIFT, up, movewindoworgroup, u
bind = $mainMod SHIFT, down, movewindoworgroup, d
bind = $mainMod SHIFT, J, movewindoworgroup, l
bind = $mainMod SHIFT, L, movewindoworgroup, d
bind = $mainMod SHIFT, K, movewindoworgroup, u
bind = $mainMod SHIFT, semicolon, movewindoworgroup, r
# Window position swap:1 ends here
# [[file:hyprland.org::*Window (floated) position move][Window (floated) position move:1]]
binde = $mainMod ALT, left,moveactive,-50 0
binde = $mainMod ALT, down,moveactive, 0 50
binde = $mainMod ALT, up,moveactive, 0 -50
binde = $mainMod ALT, right,moveactive, 50 0
binde = $mainMod ALT, J,moveactive,-50 0
binde = $mainMod ALT, L,moveactive, 0 50
binde = $mainMod ALT, K,moveactive, 0 -50
binde = $mainMod ALT, semicolon,moveactive, 50 0
# Window (floated) position move:1 ends here
# [[file:hyprland.org::*Window size change][Window size change:1]]
binde = $mainMod CTRL, left,resizeactive,-50 0
binde = $mainMod CTRL, down,resizeactive, 0 50
binde = $mainMod CTRL, up,resizeactive, 0 -50
binde = $mainMod CTRL, right,resizeactive, 50 0
binde = $mainMod CTRL, J,resizeactive,-50 0
binde = $mainMod CTRL, L,resizeactive, 0 50
binde = $mainMod CTRL, K,resizeactive, 0 -50
binde = $mainMod CTRL, semicolon,resizeactive, 50 0
# Window size change:1 ends here
# [[file:hyprland.org::*Window size change in submap][Window size change in submap:1]]
bind = $mainMod CTRL, R, submap, resize
submap = resize
binde = , left , resizeactive,-50 0
binde = , down , resizeactive, 0 50
binde = , up , resizeactive, 0 -50
binde = , right, resizeactive, 50 0
binde = , J , resizeactive,-50 0
binde = , L , resizeactive, 0 50
binde = , K , resizeactive, 0 -50
binde = , semicolon, resizeactive, 50 0
bind = ,escape, submap, reset
bind = $mainMod SHIFT, R, submap, reset
submap = reset
# Window size change in submap:1 ends here
# [[file:hyprland.org::*Workspace focus move][Workspace focus move:1]]
bind = $mainMod, 1, execr, "$focusWorkspace $activeMonitorId"1
bind = $mainMod, 2, execr, "$focusWorkspace $activeMonitorId"2
bind = $mainMod, 3, execr, "$focusWorkspace $activeMonitorId"3
bind = $mainMod, 4, execr, "$focusWorkspace $activeMonitorId"4
bind = $mainMod, 5, execr, "$focusWorkspace $activeMonitorId"5
bind = $mainMod, 6, execr, "$focusWorkspace $activeMonitorId"6
bind = $mainMod, 7, execr, "$focusWorkspace $activeMonitorId"7
bind = $mainMod, 8, execr, "$focusWorkspace $activeMonitorId"8
bind = $mainMod, 9, execr, "$focusWorkspace $activeMonitorId"9
bind = $mainMod, 0, execr, "$focusWorkspace $((1+$activeMonitorId))"0
# Move focuse inside focusing monitor
# bind = $mainMod ALT, H, execr, "$focusWorkspace" "$activeMonitorId""$(((activeWorkspaceId-1)%10))"
# bind = $mainMod ALT, L, execr, "$focusWorkspace" "$activeMonitorId""$(((activeWorkspaceId+1)%10))"
bind = $mainMod , I, execr, `if [ $(("$activeWorkspaceId" % 10)) -eq 1 ]; then "$focusWorkspace $(($activeWorkspaceId+9))"; else "$focusWorkspace $(($activeWorkspaceId-1))" ;fi`
bind = $mainMod , O, execr, `if [ $(("$activeWorkspaceId" % 10)) -eq 0 ]; then "$focusWorkspace $(($activeWorkspaceId-9))"; else "$focusWorkspace $(($activeWorkspaceId+1))" ;fi`
bind = $mainMod SHIFT, I, execr, `if [ $(("$activeWorkspaceId" % 10)) -eq 1 ]; then "$move2Workspace $(($activeWorkspaceId+9))"; else "$move2Workspace $(($activeWorkspaceId-1))" ;fi`
bind = $mainMod SHIFT, O, execr, `if [ $(("$activeWorkspaceId" % 10)) -eq 0 ]; then "$move2Workspace $(($activeWorkspaceId-9))"; else "$move2Workspace $(($activeWorkspaceId+1))" ;fi`
bind = $mainMod ALT, h, workspace, m-1
bind = $mainMod ALT, l, workspace, m+1
bind = $mainMod , Tab, workspace, previous
# bind = $mainMod , COMMA, workspace, m-1
# bind = $mainMod , PERIOD, workspace, m+1
# Workspace focus move:1 ends here
# [[file:hyprland.org::*Window change workspace][Window change workspace:1]]
# Move window to workspace {{{
bind = $mainMod SHIFT, 1, execr, "$move2Workspace" "$activeMonitorId"1
bind = $mainMod SHIFT, 2, execr, "$move2Workspace" "$activeMonitorId"2
bind = $mainMod SHIFT, 3, execr, "$move2Workspace" "$activeMonitorId"3
bind = $mainMod SHIFT, 4, execr, "$move2Workspace" "$activeMonitorId"4
bind = $mainMod SHIFT, 5, execr, "$move2Workspace" "$activeMonitorId"5
bind = $mainMod SHIFT, 6, execr, "$move2Workspace" "$activeMonitorId"6
bind = $mainMod SHIFT, 7, execr, "$move2Workspace" "$activeMonitorId"7
bind = $mainMod SHIFT, 8, execr, "$move2Workspace" "$activeMonitorId"8
bind = $mainMod SHIFT, 9, execr, "$move2Workspace" "$activeMonitorId"9
bind = $mainMod SHIFT, 0, execr, "$move2Workspace" "$((1+$activeMonitorId))"0
#}}}
# Window change workspace:1 ends here
# [[file:hyprland.org::*Window change workspace][Window change workspace:2]]
# Mouse window action{{{
bindm= $mainMod, mouse:272, movewindow
bindm= $mainMod, mouse:273, resizewindow
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
#}}}
# Window change workspace:2 ends here
# [[file:hyprland.org::*Special workspace][Special workspace:1]]
# hide an active specialWorkspace
bind = $mainMod, escape, execr, hyprctl dispatch togglespecialworkspace $specialWorkspaceId
bind = $mainMod, F1, togglespecialworkspace, 1
bind = $mainMod, F2, togglespecialworkspace, 2
bind = $mainMod, F3, togglespecialworkspace, 3
bind = $mainMod, F4, togglespecialworkspace, 4
bind = $mainMod, F5, togglespecialworkspace, 5
bind = $mainMod, F6, togglespecialworkspace, 6
bind = $mainMod, F7, togglespecialworkspace, 7
bind = $mainMod, F8, togglespecialworkspace, 8
bind = $mainMod, F9, togglespecialworkspace, 9
bind = $mainMod, F10, togglespecialworkspace, 10
bind = $mainMod, F11, togglespecialworkspace, 11
bind = $mainMod, F12, togglespecialworkspace, 12
# Special workspace:1 ends here
# [[file:hyprland.org::*Special workspace][Special workspace:2]]
bind = $mainMod SHIFT, S, movetoworkspace, special
bind = $mainMod SHIFT, F1, movetoworkspace, special:1
bind = $mainMod SHIFT, F2, movetoworkspace, special:2
bind = $mainMod SHIFT, F3, movetoworkspace, special:3
bind = $mainMod SHIFT, F4, movetoworkspace, special:4
bind = $mainMod SHIFT, F5, movetoworkspace, special:5
bind = $mainMod SHIFT, F6, movetoworkspace, special:6
bind = $mainMod SHIFT, F7, movetoworkspace, special:7
bind = $mainMod SHIFT, F8, movetoworkspace, special:8
bind = $mainMod SHIFT, F9, movetoworkspace, special:9
bind = $mainMod SHIFT, F10, movetoworkspace, special:10
bind = $mainMod SHIFT, F11, movetoworkspace, special:11
bind = $mainMod SHIFT, F12, movetoworkspace, special:12
#}}}
# Special workspace:2 ends here
# [[file:hyprland.org::*Floats][Floats:1]]
windowrule = float, ^(xdg-desktop-portal)$
windowrule = float, ^(xdg-desktop-portal-gnome)$
windowrule = float, ^(Rofi)$
windowrule = fullscreen, ^(wlogout)$
windowrule = float, ^(org.gnome.Calculator)$
windowrule = float, ^(org.gnome.Settings)$
windowrule = float, ^(org.gnome.design.Palette)$
windowrule = float, ^(eww)$
windowrule = float, ^(pavucontrol)$
windowrule = float, ^(nm-connection-editor)$
windowrule = float, ^(blueberry.py)$
windowrulev2 = float, class:^(blueman-manager)$, title: ^(Bluetooth Devices)$
windowrule = float, ^(Color Picker)$
windowrule = float, ^(Network)$
windowrule = float, ^(transmission-gtk)$
windowrule = float, ^(hmcl)$
windowrulev2 = float, class:^(thunar)$,title:^(?!.* - Thunar$).*$
windowrule = float, ^(org.fcitx.fcitx5-config-qt)
windowrule = float, ^(file-roller)$
windowrulev2 = float, class:^(feh)$
windowrulev2 = float, class:^(mpv)$
windowrulev2 = float, title:^(Media viewer)$
# Floats:1 ends here
# [[file:hyprland.org::*Floats][Floats:2]]
windowrulev2 = float, class:^(org.inkscape.Inkscape)$, title:^(Distribute Along Path)$
windowrulev2 = float, class:^(org.inkscape.Inkscape)$, title:^(Interpolate Between Paths)$
# Floats:2 ends here
# [[file:hyprland.org::*Tiles][Tiles:1]]
windowrulev2 = tile, class:^(com-cburch-logisim-Main)$
# Tiles:1 ends here
# [[file:hyprland.org::*X Menus][X Menus:1]]
windowrulev2 = rounding 0, class:^()$, floating:1, xwayland:1
windowrulev2 = rounding 0, class:^(GoldenDict-ng)$, floating:1, xwayland:1
# X Menus:1 ends here
# [[file:hyprland.org::*VLC][VLC:1]]
windowrulev2 = float, class:^(vlc)$,title:^(Adjustments and Effects — VLC media player)$
windowrulev2 = float, class:^(vlc)$,title:^(Simple Preferences — VLC media player)$
# VLC:1 ends here
# [[file:hyprland.org::*Steam][Steam:1]]
windowrulev2 = float, class:^(steam)$, title:^(Friends List)
# Steam:1 ends here
# [[file:hyprland.org::*Steam][Steam:2]]
windowrulev2 = nofocus, class:^(steam)$, title:^()$, floating:1
# Steam:2 ends here
# [[file:hyprland.org::*Bitwig Studio][Bitwig Studio:1]]
windowrulev2 = noinitialfocus, class:^()$, floating:1
# Bitwig Studio:1 ends here
# [[file:hyprland.org::*Fcitx][Fcitx:1]]
windowrulev2 = noblur, class:fcitx
# Fcitx:1 ends here
# [[file:hyprland.org::*Layer rules][Layer rules:1]]
layerrule = noanim, chad-shell
animation = windowsMove, 0
# Layer rules:1 ends here