home-config/hypr/hyprland.conf

5855a0331c0db63804d5a9db4d86c10c3bf7cc0d · 9.9 KB · 329 lines raw

1 exec-once = dbus-update-activation-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=Hyprland
2
3 #
4 # Please note not all available settings / options are set here.
5 # For a full list, see the wiki
6 #
7
8 # See https://wiki.hyprland.org/Configuring/Monitors/
9 monitor=,preferred,auto,1
10
11 # Set cursor theme
12 env = HYPRCURSOR_THEME,Bibata-Modern-Classic-Hyprland
13 env = HYPRCURSOR_SIZE,24
14 env = XCURSOR_THEME,Bibata-Modern-daed9-v1.0.2-x11
15 env = XCURSOR_SIZE,24
16
17 env = AQ_NO_MODIFIERS,1
18
19 render {
20 expand_undersized_textures = false
21 }
22
23 ecosystem {
24 no_update_news = true
25 }
26
27
28 # See https://wiki.hyprland.org/Configuring/Keywords/ for more
29
30 # Execute your favorite apps at launch
31 # exec-once = waybar & hyprpaper & firefox
32
33 # Source a file (multi-file configs)
34 source = ~/.config/hypr/monitors.conf
35
36 # Some default env vars.
37 env = XCURSOR_SIZE,24
38
39 debug {
40 disable_logs = false
41 enable_stdout_logs = true
42 }
43
44 # For all categories, see https://wiki.hyprland.org/Configuring/Variables/
45 input {
46 kb_layout = us
47 kb_variant =
48 kb_model =
49 kb_options =
50 kb_rules =
51 numlock_by_default = true
52
53 follow_mouse = 1
54
55 touchpad {
56 natural_scroll = no
57 middle_button_emulation = true
58 clickfinger_behavior = true
59 }
60
61 sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
62 }
63
64 general {
65 # See https://wiki.hyprland.org/Configuring/Variables/ for more
66
67 gaps_in = 5
68 gaps_out = 10
69 border_size = 2
70 col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
71 col.inactive_border = rgba(595959aa)
72
73 layout = dwindle
74 }
75
76 decoration {
77 # See https://wiki.hyprland.org/Configuring/Variables/ for more
78
79 rounding = 5
80 blur {
81 enabled = yes
82 size = 3
83 passes = 1
84 new_optimizations = on
85 }
86
87 shadow {
88 enabled = true
89 range = 4
90 render_power = 3
91 color = rgba(1a1a1aee)
92 }
93 }
94
95 animations {
96 enabled = yes
97
98 # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
99
100 bezier = myBezier, 0.05, 0.9, 0.1, 1.05
101
102 animation = windows, 1, 7, myBezier
103 animation = windowsOut, 1, 7, default, popin 80%
104 animation = border, 1, 10, default
105 animation = borderangle, 1, 8, default
106 animation = fade, 1, 7, default
107 animation = workspaces, 1, 6, default
108 }
109
110 dwindle {
111 # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
112 pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
113 preserve_split = yes # you probably want this
114 }
115
116 #master {
117 # # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
118 # new_is_master = true
119 #}
120
121 # Example per-device config
122 # See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
123 device {
124 name = epic-mouse-v1
125 sensitivity = -0.5
126 }
127
128 # Example windowrule v1
129 # windowrule = float, ^(kitty)$
130 # Example windowrule v2
131 # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
132 # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
133
134
135 # See https://wiki.hyprland.org/Configuring/Keywords/ for more
136 $mainMod = SUPER
137
138 # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
139 bind = $mainMod, Return, exec, foot
140 bind = $mainMod CTRL, Return, exec, foot -a float-foot
141 bind = $mainMod SHIFT, Q, killactive
142 bind = $mainMod SHIFT, E, exit
143 bind = $mainMod SHIFT, Space, togglefloating
144 bind = $mainMod SHIFT, Return, pin, active
145 bind = $mainMod, D, exec, fuzzel --width=35 --font='Hack:weight=bold:size=12' --background-color='282a36fa' --selection-color='3d4460fa' --line-height=20 --border-radius=20
146 bind = $mainMod, P, pseudo, # dwindle
147 bind = $mainMod, J, togglesplit, # dwindle
148 bind = $mainMod, F, fullscreen, 1
149 bind = $mainMod SHIFT, F, fullscreen
150 bind = ,XF86MonBrightnessUp, exec, light -A 10
151 bind = ,XF86MonBrightnessDown, exec, light -U 10
152 bind = ,XF86AudioRaiseVolume, exec, pamixer -i 5
153 bind = ,XF86AudioLowerVolume, exec, pamixer -d 5
154 bind = ,XF86AudioMute, exec, pamixer -t
155 bind = ,XF86AudioPlay, exec, playerctl play-pause
156 bind = ,XF86AudioPause, exec, playerctl play-pause
157 bind = ,XF86AudioNext, exec, playerctl next
158 bind = ,XF86AudioPrev, exec, playerctl previous
159 bind = ,XF86AudioStop, exec, playerctl stop
160
161 # "Auto-connect headphones"
162 bind = $mainMod, H, exec, bluetoothctl connect AC:80:0A:1C:D6:C7
163
164 # Move workspace between monitors
165 bind = $mainMod CTRL SHIFT, left, movecurrentworkspacetomonitor, l
166 bind = $mainMod CTRL SHIFT, right, movecurrentworkspacetomonitor, r
167 bind = $mainMod CTRL SHIFT, up, movecurrentworkspacetomonitor, u
168 bind = $mainMod CTRL SHIFT, down, movecurrentworkspacetomonitor, d
169
170 # Move focus with mainMod + arrow keys
171 bind = $mainMod, left, movefocus, l
172 bind = $mainMod, right, movefocus, r
173 bind = $mainMod, up, movefocus, u
174 bind = $mainMod, down, movefocus, d
175
176 # Move window with mainMod + SHIFT + arrow keys
177 bind = $mainMod SHIFT, left, movewindow, l
178 bind = $mainMod SHIFT, right, movewindow, r
179 bind = $mainMod SHIFT, up, movewindow, u
180 bind = $mainMod SHIFT, down, movewindow, d
181
182 # Switch workspaces with mainMod + [0-9]
183 bind = $mainMod, 1, workspace, 1
184 bind = $mainMod, 2, workspace, 2
185 bind = $mainMod, 3, workspace, 3
186 bind = $mainMod, 4, workspace, 4
187 bind = $mainMod, 5, workspace, 5
188 bind = $mainMod, 6, workspace, 6
189 bind = $mainMod, 7, workspace, 7
190 bind = $mainMod, 8, workspace, 8
191 bind = $mainMod, 9, workspace, 9
192 bind = $mainMod, 0, workspace, 10
193
194 # Move active window to a workspace with mainMod + SHIFT + [0-9]
195 bind = $mainMod SHIFT, 1, movetoworkspace, 1
196 bind = $mainMod SHIFT, 2, movetoworkspace, 2
197 bind = $mainMod SHIFT, 3, movetoworkspace, 3
198 bind = $mainMod SHIFT, 4, movetoworkspace, 4
199 bind = $mainMod SHIFT, 5, movetoworkspace, 5
200 bind = $mainMod SHIFT, 6, movetoworkspace, 6
201 bind = $mainMod SHIFT, 7, movetoworkspace, 7
202 bind = $mainMod SHIFT, 8, movetoworkspace, 8
203 bind = $mainMod SHIFT, 9, movetoworkspace, 9
204 bind = $mainMod SHIFT, 0, movetoworkspace, 10
205
206 # Scroll through existing workspaces with mainMod + scroll
207 bind = $mainMod, mouse_down, workspace, e+1
208 bind = $mainMod, mouse_up, workspace, e-1
209
210 # Move/resize windows with mainMod + LMB/RMB and dragging
211 bindm = $mainMod, mouse:272, movewindow
212 bindm = $mainMod, mouse:273, resizewindow
213
214 # Bind mainMod + L to screenlocker
215 bind = $mainMod, L, exec, hyprlock
216 bind = $mainMod SHIFT, L, exec, loginctl suspend
217
218 # Keybind to toggle "performance mode" (toggles GPU intensive things)
219 bind = $mainMod, F1, exec, ~/.config/hypr/scripts/perf_mode.sh
220
221 bind = $mainMod SHIFT, Z, exec, pypr zoom
222
223 # Keybind for screenshot (satty)
224 bind = $mainMod SHIFT, S, exec, grimblast save output - | satty --fullscreen --copy-command 'wl-copy' --filename -
225 bind = $mainMod, S, exec, grimblast copy area
226 bind = $mainMod, Print, exec, export TEMP=$(mktemp) && grimblast copy area && wl-paste > $TEMP && imv $TEMP && rm $TEMP
227
228 # Keybind for screenshot (old)
229 # bind = $mainMod SHIFT, S, exec, grimblast copy area
230 # bind = $mainMod SHIFT, Print, exec, grimblast edit area
231 # bind = $mainMod, S, exec, imv <(grimblast save area -)
232
233 # Keybind for screenshot (flameshot)
234 #bind = $mainMod SHIFT, S, exec, flameshot gui --raw | wl-copy
235 #bind = $mainMod SHIFT CTRL, S, exec, flameshot gui --raw -d $(( 1000 * $(fuzzel -l0 --dmenu -p"Delay> ") )) | wl-copy
236 #bind = $mainMod, S, exec, flameshot gui
237
238 # Notifications keybinds
239 bind = $mainMod, N, exec, makoctl dismiss
240 bind = $mainMod SHIFT, N, exec, makoctl dismiss -a
241
242 # Color picker
243 bind = $mainMod SHIFT, C, exec, hyprpicker -a
244
245 # LinkedIn Joke (very serious)
246 bind = $mainMod SHIFT CTRL ALT, L, exec, xdg-open https://linkedin.com
247
248 # Window Rules
249
250 # Firefox PiP
251 windowrulev2 = float, class:^(zen-beta)$, title:^(Picture-in-Picture)$
252 windowrulev2 = pin, class:^(zen-beta)$, title:^(Picture-in-Picture)$
253 windowrulev2 = size 22% 22%, class:^(zen-beta)$, title:^(Picture-in-Picture)$
254 windowrulev2 = move 76% 8%, class:^(zen-beta)$, title:^(Picture-in-Picture)$
255
256 # Firefox Sharing Indicator
257 windowrulev2 = float, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$
258 windowrulev2 = size 56 31, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$
259 windowrulev2 = move 50% 0, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$
260 windowrulev2 = suppressevent fullscreen maximize, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$
261
262 # Weather
263 windowrulev2 = float,class:^(ala-wttr)$
264 windowrulev2 = size 822 1026, class:^(ala-wttr)$
265
266 # Floating terminal
267 windowrulev2 = float,class:^(float-foot)$
268 windowrulev2 = size 930 680,class:^(float-foot)$
269 windowrulev2 = center,class:^(float-foot)$
270
271 # Change color of pinned windows
272 windowrulev2 = bordercolor rgba(bf0000ee) rgba(ab00adee) 45deg,pinned:1
273
274 # Fun Keybinds
275 # Subway surfer
276 bind = $mainMod CTRL SHIFT, S, exec, mpv ~/.config/hypr/subwaysurfer.webm
277 windowrulev2 = float,class:^(mpv)$, title:^(subwaysurfer.webm - mpv)$
278 windowrulev2 = size 310 554,class:^(mpv)$, title:^(subwaysurfer.webm - mpv)$
279 windowrulev2 = move 81% 46% ,class:^(mpv)$, title:^(subwaysurfer.webm - mpv)$
280 windowrulev2 = pin,class:^(mpv)$, title:^(subwaysurfer.webm - mpv)$
281
282 # Family guy funny moments
283 bind = $mainMod CTRL SHIFT, F, exec, mpv ~/.config/hypr/family_guy.mp4
284 windowrulev2 = float,class:^(mpv)$, title:^(family_guy.mp4 - mpv)$
285 windowrulev2 = size 595 336,class:^(mpv)$, title:^(family_guy.mp4 - mpv)$
286 windowrulev2 = move 67% 5% ,class:^(mpv)$, title:^(family_guy.mp4 - mpv)$
287 windowrulev2 = pin,class:^(mpv)$, title:^(family_guy.mp4 - mpv)$
288
289 exec-once = ~/.config/hypr/scripts/autostart.sh
290
291 misc {
292 disable_hyprland_logo = true
293 force_default_wallpaper = 0
294 }
295
296 # Cursors!
297 plugin:dynamic-cursors {
298 enabled = true
299 mode = tilt
300 threshold = 2
301 tilt {
302 limit = 5000
303 function = negative_quadratic
304 }
305
306 shake {
307 enabled = true
308 nearest = true
309 threshold = 6.0
310 base = 4.0
311 speed = 4.0
312 influence = 0.0
313
314 limit = 0.0
315
316 timeout = 2000
317
318 effects = true
319
320 ipc = false
321 }
322
323 hyprcursor {
324 nearest = true
325 enabled = true
326 resolution = -1
327 fallback = clientside
328 }
329 }