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
|
#################
### VARIABLES ###
#################
# Files and locations
$SCRIPTS_DIR = $HOME/.config/hypr/scripts
$LOG_FILE = $HOME/.hypr.log
# Used programs
$BROWSER = brave
$DISCORD = discord
$TERMINAL = wezterm
$EDITOR = nvim
$FILE_MANAGER = thunar
$MENU = wofi
$LOCKSCREEN = hyprlock
$STATUS_BAR = waybar
$WALLPAPER_MANAGER = hyprpaper
$IDLE_MANAGER = hypridle
$AUTOMOUNT = udiskie
$OSD = swayosd
$NOTIFICATION_DAEMON = dunst
$COLOR_PICKER = hyprpicker
$SCREENSHOT = flameshot
#####################
### ENV VARIABLES ###
#####################
# Nvidia
env = LIBVA_DRIVER_NAME,nvidia
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
# Gtk
env = GTK_THEME,catppuccin-mocha-mauve-standard+default
# Cursor
env = XCURSOR_THEME,rose-pine-cursor
env = XCURSOR_SIZE,24
env = HYPRCURSOR_THEME,rose-pine-hyprcursor
env = HYPRCURSOR_SIZE,24
# Misc
env = EDITOR,$EDITOR
env = MAX_ZOOM,3
################
### MONITORS ###
################
$MAIN_MONITOR = eDP-1
monitor = $MAIN_MONITOR,highres,auto,1
monitor = ,highres,auto,1,mirror,$MAIN_MONITOR
#################
### AUTOSTART ###
#################
# Utils
exec-once = systemctl --user start hyprpolkitagent
exec-once = $STATUS_BAR
exec-once = $SCREENSHOT
exec-once = $SCRIPTS_DIR/randomize-wallpaper.sh
exec-once = $WALLPAPER_MANAGER
exec-once = $IDLE_MANAGER
exec-once = $SCRIPTS_DIR/battery-notifier.sh
exec-once = $AUTOMOUNT
exec-once = $OSD-server
# Programs
exec-once = [workspace 1 silent] $BROWSER
exec-once = [workspace 2 silent] $DISCORD
exec-once = [workspace 3 silent] $TERMINAL
# Use lockscreen as login
exec-once = $LOCKSCREEN
##################
### CATEGORIES ###
##################
general {
gaps_in = 1
gaps_out = 1
col.active_border = rgb(df00ff) rgb(ff10f0) 45deg
col.inactive_border = rgba(595959aa)
no_focus_fallback = true
}
decoration {
dim_inactive = true
dim_strength = .1
}
animations {
bezier = easeOutQuint, 0.23, 1, 0.32, 1
bezier = easeInOutCubic, 0.65, 0.05, 0.36, 1
bezier = linear, 0, 0, 1, 1
bezier = almostLinear, 0.5, 0.5, 0.75, 1
bezier = quick, 0.15, 0, 0.1, 1
animation = global, 1, 7.5, default
animation = border, 1, 4.04, easeOutQuint
animation = windows, 1, 3.59, easeOutQuint
animation = windowsIn, 1, 3.07, easeOutQuint, popin 87%
animation = windowsOut, 1, 1.11, linear, popin 87%
animation = fadeIn, 1, 1.29, almostLinear
animation = fadeOut, 1, 1.09, almostLinear
animation = fade, 1, 2.27, quick
animation = layers, 1, 2.85, easeOutQuint
animation = layersIn, 1, 3, easeOutQuint, fade
animation = layersOut, 1, 1.12, linear, fade
animation = fadeLayersIn, 1, 1.34, almostLinear
animation = fadeLayersOut, 1, 1.04, almostLinear
animation = workspaces, 1, 1.45, almostLinear, fade
animation = workspacesIn, 1, 0.9, almostLinear, fade
animation = workspacesOut, 1, 1.45, almostLinear, fade
animation = zoomFactor, 1, 5.25, quick
}
input {
kb_layout = pl
numlock_by_default = true
repeat_rate = 40
repeat_delay = 400
follow_mouse = 2
}
misc {
disable_hyprland_logo = true
focus_on_activate = false
middle_click_paste = false
}
cursor {
zoom_rigid = true
hide_on_key_press = true
}
ecosystem:no_donation_nag = true
dwindle {
pseudotile = true
force_split = 2
preserve_split = true
}
#############
### BINDS ###
#############
# General
bind = SUPER, Q, killactive,
bind = SUPER, V, togglesplit,
bind = SUPER, N, exec, dunstctl close-all
bind = SUPER, slash, exec, $LOCKSCREEN
bind = ALT, SPACE, exec, pkill $MENU || $MENU
# Launch programs
bind = SUPER, T, exec, $TERMINAL
bind = SUPER, F, exec, $FILE_MANAGER
bind = SUPER, C, exec, $TERMINAL start -- $EDITOR
bind = SUPER, B, exec, $BROWSER
bind = SUPER, D, exec, $DISCORD
bind = SUPER SHIFT, P, exec, $COLOR_PICKER -a
bind = SUPER SHIFT, M, exec, $SCRIPTS_DIR/zoom.sh
# Take screenshots
bind = SUPER SHIFT, S, exec, $SCREENSHOT gui # Select region
bind = , Print, exec, $SCREENSHOT gui --region 1920x1080+0+0 # Entire screen
bind = ALT, Print, exec, $SCRIPTS_DIR/capture-window.sh # Current window
# Move focus
bind = ALT, Tab, cyclenext
bind = SUPER, left, movefocus, l
bind = SUPER, down, movefocus, d
bind = SUPER, up, movefocus, u
bind = SUPER, right, movefocus, r
bind = SUPER, H, movefocus, l
bind = SUPER, J, movefocus, d
bind = SUPER, K, movefocus, u
bind = SUPER, L, movefocus, r
# Swap windows
bind = SUPER SHIFT, left, swapwindow, l
bind = SUPER SHIFT, down, swapwindow, d
bind = SUPER SHIFT, up, swapwindow, u
bind = SUPER SHIFT, right, swapwindow, r
bind = SUPER SHIFT, H, swapwindow, l
bind = SUPER SHIFT, J, swapwindow, d
bind = SUPER SHIFT, K, swapwindow, u
bind = SUPER SHIFT, L, swapwindow, r
# Equalize windows
bind = SUPER ALT, H, exec, $SCRIPTS_DIR/equalize-windows.sh l
bind = SUPER ALT, V, exec, $SCRIPTS_DIR/equalize-windows.sh u
# Resize windows manually
bind = SUPER, R, submap, resize
submap = resize
binde = , left, resizeactive, -10 0
binde = , down, resizeactive, 0 10
binde = , up, resizeactive, 0 -10
binde = , right, resizeactive, 10 0
binde = , H, resizeactive, -10 0
binde = , J, resizeactive, 0 10
binde = , K, resizeactive, 0 -10
binde = , L, resizeactive, 10 0
bind = , Escape, submap, reset
bind = , Return, submap, reset
bind = CTRL_L, C, submap, reset
bind = SUPER, R, submap, reset
submap = reset
# Switch workspaces
bind = SUPER, 1, workspace, 1
bind = SUPER, 2, workspace, 2
bind = SUPER, 3, workspace, 3
bind = SUPER, 4, workspace, 4
bind = SUPER, 5, workspace, 5
bind = SUPER, 6, workspace, 6
bind = SUPER, 7, workspace, 7
bind = SUPER, 8, workspace, 8
bind = SUPER, 9, workspace, 9
bind = SUPER, 0, workspace, 10
# Move active window to a workspace
bind = SUPER SHIFT, 1, movetoworkspace, 1
bind = SUPER SHIFT, 2, movetoworkspace, 2
bind = SUPER SHIFT, 3, movetoworkspace, 3
bind = SUPER SHIFT, 4, movetoworkspace, 4
bind = SUPER SHIFT, 5, movetoworkspace, 5
bind = SUPER SHIFT, 6, movetoworkspace, 6
bind = SUPER SHIFT, 7, movetoworkspace, 7
bind = SUPER SHIFT, 8, movetoworkspace, 8
bind = SUPER SHIFT, 9, movetoworkspace, 9
bind = SUPER SHIFT, 0, movetoworkspace, 10
# Volume controls
bindel = ,XF86AudioRaiseVolume, exec, $OSD-client --output-volume raise
bindel = ,XF86AudioLowerVolume, exec, $OSD-client --output-volume lower
bindel = ,XF86AudioMute, exec, $OSD-client --output-volume mute-toggle
bindel = ,XF86AudioMicMute, exec, $OSD-client --input-volume mute-toggle
# Brightness controls
bindel = ,XF86MonBrightnessUp, exec, brightnessctl set 5%+; $SCRIPTS_DIR/current-brightness.sh | xargs $OSD-client --brightness
bindel = ,XF86MonBrightnessDown, exec, brightnessctl set 5%-; $SCRIPTS_DIR/current-brightness.sh | xargs $OSD-client --brightness
# Player controls
bindl = ,XF86AudioNext, exec, $OSD-client --playerctl next
bindl = ,XF86AudioPause, exec, $OSD-client --playerctl play-pause
bindl = ,XF86AudioPlay, exec, $OSD-client --playerctl play-pause
bindl = ,XF86AudioPrev, exec, $OSD-client --playerctl previous
##############################
### WINDOWS AND WORKSPACES ###
##############################
# Force discord to stay at 2nd workspace
windowrule = workspace 2 silent, class:^($DISCORD)$
# Make flameshot not temporarily resize windows
windowrule = float, class:^($SCREENSHOT)$
# Ignore maximize requests from apps
windowrule = suppressevent maximize, class:.*
|