-
Notifications
You must be signed in to change notification settings - Fork 0
/
hyprland.conf
409 lines (332 loc) · 13 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
###############
### IMPORTS ###
###############
source = $HOME/.config/hypr/themes/nord.conf
################
### MONITORS ###
################
monitor = ,preferred,auto,1
########################
### APPS AND SCRIPTS ###
########################
$hypr = $HOME/.config/hypr
$terminal = footclient
$yazi = footclient --app-id 'foot-yazi-flt' yazi
$musicPlayer = footclient --app-id 'foot-mp-flt-focused' ncmpcpp -s visualizer -S playlist
$web = zen-browser
$fileManager = nemo
$emailManager = thunderbird
$passManager = keepassxc
$gameClient = lutris
$telegram = telegram-desktop
$discord = webcord
$musicClient = spotify-launcher
$calculator = galculator
$menu = fuzzel -p 'Apps ' --config $hypr/fuzzel/fuzzel.ini
$downloader = $hypr/scripts/fuzzel_downloader.sh
$sessionManager = $hypr/scripts/fuzzel_sessionmanager.sh
$clipManager = $hypr/scripts/fuzzel_clipmanager.sh
$screenshoter = $hypr/scripts/fuzzel_screenshoter.sh
$runner = $hypr/scripts/fuzzel_drun.sh
$asroot = $hypr/scripts/fuzzel_asroot.sh
$volume = $hypr/scripts/volume.sh
$networkManager = $hypr/scripts/networkmanager.py
$colorpicker = $hypr/scripts/colorpicker.sh
$screenshot = $hypr/scripts/screenshot.sh
$screenlock = hyprlock
$reload = $hypr/scripts/reload.sh
$killactive = $hypr/scripts/killactive.sh
$robloxMouseLock = $hypr/scripts/hypr_waydroid_mouse_lock.sh
$zen-mode = $hypr/scripts/zen-mode.sh
#################
### AUTOSTART ###
#################
exec-once = waybar -c "$hypr/waybar/config.jsonc" -s "$hypr/waybar/style.css"
exec-once = wpaperd -dc ~/.config/hypr/wpaperd/wpaperd.ini
exec-once = dbus-update-activation-environment --systemd --all
exec-once = "$hypr/scripts/xdg-desktop-portal.sh"
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = hypridle
exec-once = foot -s -c "$hypr/foot/foot.ini"
exec = "$hypr/scripts/mpd.sh"
exec = "$hypr/scripts/mako.sh"
exec-once = xremap --watch=config "$HOME/.xremap.yml"
exec-once = jamesdsp -t
exec-once = rclone mount --daemon GoogleDriveMain: "$HOME/Google Drive"
exec-once = wl-paste -w cliphist store
exec-once = "$hypr/scripts/gsettings.sh"
exec-once = awatcher-bundle
#############################
### ENVIRONMENT VARIABLES ###
#############################
env = GTK_THEME,Nordic-darker
env = XCURSOR_THEME,Nordzy-cursors
env = XCURSOR_SIZE,24
env = HYPRCURSOR_THEME,Nordzy-hyprcursors
env = HYPRCURSOR_SIZE,24
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
env = QT_QPA_PLATFORM,wayland;xcb
env = QT_QPA_PLATFORMTHEME,qt6ct
env = GDK_BACKEND,wayland,x11,*
env = SDL_VIDEODRIVER,wayland,x11
env = CLUTTER_BACKEND,wayland
#####################
### LOOK AND FEEL ###
#####################
general {
gaps_in = 5
gaps_out = 12
border_size = 2
# col.active_border = $activeBorder0 $activeBorder1 45deg
col.active_border = $activeBorder0
col.inactive_border = $inactiveBorder
# Set to true enable resizing windows by clicking and dragging on borders and gaps
resize_on_border = false
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
allow_tearing = false
layout = dwindle
}
group {
#col.border_active = $activeBorder0 $activeBorder1 45deg
col.border_active = $activeBorder0
col.border_inactive = $inactiveBorder
#col.border_locked_active = $activeBorder0 $activeBorder1 45deg
col.border_locked_active = $activeBorder0
col.border_locked_inactive = $inactiveBorder
}
decoration {
rounding = 6
active_opacity = 1.0
inactive_opacity = 1.0
shadow {
enabled = true
range = 4
render_power = 3
color = rgba(1a1a1aee)
}
# https://wiki.hyprland.org/Configuring/Variables/#blur
blur {
enabled = true
size = 3
passes = 1
vibrancy = 0.1696
}
}
animations {
enabled = true
# Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
animation = windows, 1, 7, myBezier
animation = windowsOut, 1, 7, default, popin 80%
animation = border, 1, 10, default
animation = borderangle, 1, 8, default
animation = fade, 1, 7, default
animation = workspaces, 1, 6, default
}
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
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
}
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
master {
new_status = master
}
# https://wiki.hyprland.org/Configuring/Variables/#misc
misc {
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
}
#############
### INPUT ###
#############
input {
kb_layout = us,ru
kb_variant = qwerty
kb_model = pc105
kb_options = grp:win_space_toggle
kb_rules =
follow_mouse = 1
sensitivity = -1.0
touchpad {
natural_scroll = false
}
}
# See https://wiki.hyprland.org/Configuring/Variables/#gestures
gestures {
workspace_swipe = false
}
device {
name = xremap
repeat_delay = 250
}
#############
### BINDS ###
#############
binds {
workspace_back_and_forth = true
allow_workspace_cycles = true
}
###################
### KEYBINDINGS ###
###################
$mainMod = SUPER
### Apps ---------------------------------------------------
bind = $mainMod, RETURN, exec, $terminal
bind = $mainMod, M, exec, $musicClient
bind = , XF86HomePage, exec, $web
bind = , XF86Explorer, exec, $fileManager
bind = , XF86Mail, togglespecialworkspace, emailManager
bind = , XF86Calculator, togglespecialworkspace, calculator
bind = , XF86Tools, togglespecialworkspace, musicPlayer
bind = CTRL SHIFT, F, togglespecialworkspace, yazi
bind = CTRL SHIFT, K, togglespecialworkspace, passManager
bind = CTRL SHIFT, M, togglespecialworkspace, telegram
### Applets ------------------------------------------------
bind = CTRL, F1, exec, pkill fuzzel || $menu
bind = ALT, R, exec, pkill fuzzel || $asroot
bind = $mainMod, R, exec, pkill fuzzel || $runner
bind = $mainMod, Q, exec, pkill fuzzel || $sessionManager
bind = $mainMod, N, exec, pkill fuzzel || $networkManager
bind = $mainMod, D, exec, pkill fuzzel || $downloader
bind = $mainMod, S, exec, pkill fuzzel || $screenshoter
bind = $mainMod, V, exec, pkill fuzzel || $clipManager
### Hyprland -----------------------------------------------
bindl = ALT SHIFT, Q, exit,
bind = ALT SHIFT, R, exec, $reload
bind = ALT SHIFT, L, exec, $screenlock
bind = ALT SHIFT, D, exec, $robloxMouseLock
bind = ALT SHIFT, Z, exec, $zen-mode
### Windows ------------------------------------------------
bind = $mainMod, F, fullscreen,
bind = ALT SHIFT, F, togglefloating,
bind = ALT SHIFT, P, pseudo, # dwindle
bind = ALT SHIFT, S, togglesplit, # dwindle
bind = $mainMod, C, exec, $killactive
# Move/resize windows with mouse
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
# Move focus
bind = $mainMod, H, movefocus, l
bind = $mainMod, J, movefocus, d
bind = $mainMod, K, movefocus, u
bind = $mainMod, L, movefocus, r
# Window submaps
bind = ALT SHIFT, W, submap, window
submap = window
# Resize active window
binde = $mainMod, H, resizeactive, -50 0
binde = $mainMod, J, resizeactive, 0 -50
binde = $mainMod, K, resizeactive, 0 50
binde = $mainMod, L, resizeactive, 50 0
# Move active window
binde = $mainMod CTRL, H, moveactive, -50 0
binde = $mainMod CTRL, J, moveactive, 0 -50
binde = $mainMod CTRL, K, moveactive, 0 50
binde = $mainMod CTRL, L, moveactive, 50 0
bind = , escape, submap, reset
submap = reset
### Workspaces ---------------------------------------------
# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10
# "Alt+Tab" with ALT + TAB
bind = ALT, TAB, workspace, previous
# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
# Scratchpad
bind = CTRL SHIFT, S, togglespecialworkspace, scratchpad
bind = $mainMod SHIFT, S, movetoworkspace, special:scratchpad
### MPRIS --------------------------------------------------
bindl = , XF86AudioNext, exec, playerctl next
bindl = , XF86AudioPrev, exec, playerctl previous
bindl = , XF86AudioPlay, exec, playerctl play-pause
bindl = , XF86AudioStop, exec, playerctl stop
### PipeWire -----------------------------------------------
bindel = , XF86AudioRaiseVolume, exec, $volume --inc
bindel = , XF86AudioLowerVolume, exec, $volume --dec
bindl = , XF86AudioMute, exec, $volume --toggle
### Colorpicker --------------------------------------------
bind = $mainMod, P, exec, $colorpicker
### Screenshot ---------------------------------------------
bindl = , Print, exec, $screenshot --now
bind = CTRL, Print, exec, $screenshot --in5
bind = SHIFT, Print, exec, $screenshot --in10
bind = $mainMod, Print, exec, $screenshot --area
### Wallpaper ----------------------------------------------
bind = $mainMod ALT, N, exec, wpaperctl next-wallpaper
bind = $mainMod ALT, P, exec, wpaperctl previous-wallpaper
bind = $mainMod ALT, R, exec, wpaperctl reload-wallpaper
### Groups -------------------------------------------------
bind = ALT SHIFT, G, submap, group
submap = group
bind = , T, togglegroup,
bind = , L, lockactivegroup, toggle
binde = , TAB, changegroupactive, f
binde = SHIFT, TAB, changegroupactive, b
bind = , escape, submap, reset
submap = reset
##############################
### WINDOWS AND WORKSPACES ###
##############################
### Windows ------------------------------------------------
windowrulev2 = float, class:.*flt*.
windowrulev2 = float, class:galculator
windowrulev2 = float, class:keepassxc
windowrulev2 = tile, class:Timeshift-gtk
windowrulev2 = tile, class:.*Mattermost*.
windowrulev2 = center 1, title:Save*.
windowrulev2 = center 1, class:^(firefox|zen-alpha)$, title:(^$)
windowrulev2 = center 1, class:nemo, title:(^$)
windowrulev2 = center 1, class:gcr-prompter
windowrulev2 = center 1, class:nm-connection-editor, title:(^ $)
windowrulev2 = center 1, class:polkit-gnome-authentication-agent-1
windowrulev2 = center 1, class:Timeshift-gtk
windowrulev2 = center 1, class:org.keepassxc.KeePassXC, title:.*New key association request*.
windowrulev2 = size 50% 50%, title:Save*.
windowrulev2 = size 50% 50%, class:^(firefox|zen-alpha)$, title:(^$)
windowrulev2 = suppressevent maximize, class:.*
### Workspaces ---------------------------------------------
windowrulev2 = workspace 1, class:^(footclient-zellij)$
windowrulev2 = workspace 2, class:.*jetbrains*.
windowrulev2 = workspace 3, class:^(firefox|zen-alpha)$
windowrulev2 = workspace 4, class:^(nemo)$
windowrulev2 = workspace 5, class:org.pwmt.zathura
windowrulev2 = workspace 6 silent, class:^(lutris|steam|Waydroid)$
windowrulev2 = workspace 7, title:.*Mattermost*.
windowrulev2 = workspace 7, class:WebCord
### Qtile's Scratchpad -------------------------------------
windowrulev2 = stayfocused, class:.*focused
windowrulev2 = stayfocused, class:galculator
workspace = special:musicPlayer, on-created-empty:$musicPlayer
workspace = special:yazi, on-created-empty:$yazi
workspace = special:emailManager, on-created-empty:$emailManager
workspace = special:passManager, on-created-empty:$passManager
workspace = special:calculator, on-created-empty:$calculator
workspace = special:telegram, on-created-empty:$telegram
windowrulev2 = size 50% 50%, class:.*mp*.
windowrulev2 = size 50% 50%, class:.*yazi*.
windowrulev2 = size 25% 55%, class:galculator
windowrulev2 = size 65% 65%, class:keepassxc, title:.*KeePassXC*.