home-config/hypr/hyprland.conf

a04498c0b18d6fdf7e600dd9c8b5e7db781c21f3 · 8.6 KB · 276 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,XCursor-Pro-Dark-Hyprcursor
13 env = HYPRCURSOR_SIZE,26
14 env = XCURSOR_THEME,XCursor-Pro-Dark
15 env = XCURSOR_SIZE,26
16
17 env = AQ_NO_MODIFIERS,1
18
19
20 # See https://wiki.hyprland.org/Configuring/Keywords/ for more
21
22 # Execute your favorite apps at launch
23 # exec-once = waybar & hyprpaper & firefox
24
25 # Source a file (multi-file configs)
26 source = ~/.config/hypr/monitors.conf
27
28 # Some default env vars.
29 env = XCURSOR_SIZE,24
30
31 debug {
32 disable_logs = false
33 enable_stdout_logs = true
34 }
35
36 # For all categories, see https://wiki.hyprland.org/Configuring/Variables/
37 input {
38 kb_layout = us
39 kb_variant =
40 kb_model =
41 kb_options =
42 kb_rules =
43 numlock_by_default = true
44
45 follow_mouse = 1
46
47 touchpad {
48 natural_scroll = no
49 }
50
51 sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
52 }
53
54 general {
55 # See https://wiki.hyprland.org/Configuring/Variables/ for more
56
57 gaps_in = 5
58 gaps_out = 10
59 border_size = 2
60 col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
61 col.inactive_border = rgba(595959aa)
62
63 layout = dwindle
64 }
65
66 decoration {
67 # See https://wiki.hyprland.org/Configuring/Variables/ for more
68
69 rounding = 5
70 blur {
71 enabled = yes
72 size = 3
73 passes = 1
74 new_optimizations = on
75 }
76
77 shadow {
78 enabled = true
79 range = 4
80 render_power = 3
81 color = rgba(1a1a1aee)
82 }
83 }
84
85 animations {
86 enabled = yes
87
88 # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
89
90 bezier = myBezier, 0.05, 0.9, 0.1, 1.05
91
92 animation = windows, 1, 7, myBezier
93 animation = windowsOut, 1, 7, default, popin 80%
94 animation = border, 1, 10, default
95 animation = borderangle, 1, 8, default
96 animation = fade, 1, 7, default
97 animation = workspaces, 1, 6, default
98 }
99
100 dwindle {
101 # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
102 pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
103 preserve_split = yes # you probably want this
104 }
105
106 #master {
107 # # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
108 # new_is_master = true
109 #}
110
111 gestures {
112 # See https://wiki.hyprland.org/Configuring/Variables/ for more
113 workspace_swipe = off
114 }
115
116 # Example per-device config
117 # See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
118 device {
119 name = epic-mouse-v1
120 sensitivity = -0.5
121 }
122
123 # Example windowrule v1
124 # windowrule = float, ^(kitty)$
125 # Example windowrule v2
126 # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
127 # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
128
129
130 # See https://wiki.hyprland.org/Configuring/Keywords/ for more
131 $mainMod = SUPER
132
133 # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
134 bind = $mainMod, Return, exec, foot
135 bind = $mainMod CTRL, Return, exec, foot -a float-foot
136 bind = $mainMod SHIFT, Q, killactive
137 bind = $mainMod SHIFT, E, exit
138 bind = $mainMod SHIFT, Space, togglefloating
139 bind = $mainMod SHIFT, Return, pin, active
140 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
141 bind = $mainMod, P, pseudo, # dwindle
142 bind = $mainMod, J, togglesplit, # dwindle
143 bind = $mainMod, F, fullscreen, 1
144 bind = $mainMod SHIFT, F, fullscreen
145 bind = ,XF86MonBrightnessUp, exec, light -A 10
146 bind = ,XF86MonBrightnessDown, exec, light -U 10
147 bind = ,XF86AudioRaiseVolume, exec, pamixer -i 5
148 bind = ,XF86AudioLowerVolume, exec, pamixer -d 5
149 bind = ,XF86AudioMute, exec, pamixer -t
150 bind = ,XF86AudioPlay, exec, playerctl play-pause
151 bind = ,XF86AudioPause, exec, playerctl play-pause
152 bind = ,XF86AudioNext, exec, playerctl next
153 bind = ,XF86AudioPrev, exec, playerctl previous
154 bind = ,XF86AudioStop, exec, playerctl stop
155
156 # "Auto-connect headphones"
157 bind = $mainMod, H, exec, bluetoothctl connect AC:80:0A:1C:D6:C7
158
159 # Move workspace between monitors
160 bind = $mainMod CTRL SHIFT, left, movecurrentworkspacetomonitor, l
161 bind = $mainMod CTRL SHIFT, right, movecurrentworkspacetomonitor, r
162 bind = $mainMod CTRL SHIFT, up, movecurrentworkspacetomonitor, u
163 bind = $mainMod CTRL SHIFT, down, movecurrentworkspacetomonitor, d
164
165 # Move focus with mainMod + arrow keys
166 bind = $mainMod, left, movefocus, l
167 bind = $mainMod, right, movefocus, r
168 bind = $mainMod, up, movefocus, u
169 bind = $mainMod, down, movefocus, d
170
171 # Move window with mainMod + SHIFT + arrow keys
172 bind = $mainMod SHIFT, left, movewindow, l
173 bind = $mainMod SHIFT, right, movewindow, r
174 bind = $mainMod SHIFT, up, movewindow, u
175 bind = $mainMod SHIFT, down, movewindow, d
176
177 # Switch workspaces with mainMod + [0-9]
178 bind = $mainMod, 1, workspace, 1
179 bind = $mainMod, 2, workspace, 2
180 bind = $mainMod, 3, workspace, 3
181 bind = $mainMod, 4, workspace, 4
182 bind = $mainMod, 5, workspace, 5
183 bind = $mainMod, 6, workspace, 6
184 bind = $mainMod, 7, workspace, 7
185 bind = $mainMod, 8, workspace, 8
186 bind = $mainMod, 9, workspace, 9
187 bind = $mainMod, 0, workspace, 10
188
189 # Move active window to a workspace with mainMod + SHIFT + [0-9]
190 bind = $mainMod SHIFT, 1, movetoworkspace, 1
191 bind = $mainMod SHIFT, 2, movetoworkspace, 2
192 bind = $mainMod SHIFT, 3, movetoworkspace, 3
193 bind = $mainMod SHIFT, 4, movetoworkspace, 4
194 bind = $mainMod SHIFT, 5, movetoworkspace, 5
195 bind = $mainMod SHIFT, 6, movetoworkspace, 6
196 bind = $mainMod SHIFT, 7, movetoworkspace, 7
197 bind = $mainMod SHIFT, 8, movetoworkspace, 8
198 bind = $mainMod SHIFT, 9, movetoworkspace, 9
199 bind = $mainMod SHIFT, 0, movetoworkspace, 10
200
201 # Scroll through existing workspaces with mainMod + scroll
202 bind = $mainMod, mouse_down, workspace, e+1
203 bind = $mainMod, mouse_up, workspace, e-1
204
205 # Move/resize windows with mainMod + LMB/RMB and dragging
206 bindm = $mainMod, mouse:272, movewindow
207 bindm = $mainMod, mouse:273, resizewindow
208
209 # Bind mainMod + L to screenlocker
210 bind = $mainMod, L, exec, hyprlock
211 bind = $mainMod SHIFT, L, exec, loginctl suspend
212
213 # Keybind to toggle "performance mode" (toggles GPU intensive things)
214 bind = $mainMod, F1, exec, ~/.config/hypr/perf_mode.sh
215
216 # Keybind for screenshot
217 bind = $mainMod SHIFT, S, exec, grimblast copy area
218 bind = $mainMod SHIFT, Print, exec, grimblast edit area
219 bind = $mainMod, S, exec, grimblast save area - | imv -
220
221 # Notifications keybinds
222 bind = $mainMod, N, exec, makoctl dismiss
223 bind = $mainMod SHIFT, N, exec, makoctl dismiss -a
224
225 # Color picker
226 bind = $mainMod SHIFT, C, exec, hyprpicker -a
227
228 # LinkedIn Joke (very serious)
229 bind = $mainMod SHIFT CTRL ALT, L, exec, xdg-open https://linkedin.com
230
231 # Window Rules
232
233 # Firefox PiP
234 windowrulev2 = float, class:^(firefox)$, title:^(Picture-in-Picture)$
235 windowrulev2 = pin, class:^(firefox)$, title:^(Picture-in-Picture)$
236 windowrulev2 = size 578 326, class:^(firefox)$, title:^(Picture-in-Picture)$
237
238 # Firefox Sharing Indicator
239 windowrulev2 = float, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$
240 windowrulev2 = size 56 31, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$
241 windowrulev2 = move 50% 0, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$
242 windowrulev2 = suppressevent fullscreen maximize, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$
243
244 # Weather
245 windowrulev2 = float,class:^(ala-wttr)$
246 windowrulev2 = size 822 1026, class:^(ala-wttr)$
247
248 # Floating terminal
249 windowrulev2 = float,class:^(float-foot)$
250 windowrulev2 = size 930 680,class:^(float-foot)$
251 windowrulev2 = center,class:^(float-foot)$
252
253 # Change color of pinned windows
254 windowrulev2 = bordercolor rgba(bf0000ee) rgba(ab00adee) 45deg,pinned:1
255
256 # Fun Keybinds
257 # Subway surfer
258 bind = $mainMod CTRL SHIFT, S, exec, mpv ~/.config/hypr/subwaysurfer.webm
259 windowrulev2 = float,class:^(mpv)$, title:^(subwaysurfer.webm - mpv)$
260 windowrulev2 = size 310 554,class:^(mpv)$, title:^(subwaysurfer.webm - mpv)$
261 windowrulev2 = move 81% 46% ,class:^(mpv)$, title:^(subwaysurfer.webm - mpv)$
262 windowrulev2 = pin,class:^(mpv)$, title:^(subwaysurfer.webm - mpv)$
263
264 # Family guy funny moments
265 bind = $mainMod CTRL SHIFT, F, exec, mpv ~/.config/hypr/family_guy.mp4
266 windowrulev2 = float,class:^(mpv)$, title:^(family_guy.mp4 - mpv)$
267 windowrulev2 = size 595 336,class:^(mpv)$, title:^(family_guy.mp4 - mpv)$
268 windowrulev2 = move 67% 5% ,class:^(mpv)$, title:^(family_guy.mp4 - mpv)$
269 windowrulev2 = pin,class:^(mpv)$, title:^(family_guy.mp4 - mpv)$
270
271 exec-once = ~/.config/hypr/autostart.sh
272
273 misc {
274 disable_hyprland_logo = true
275 force_default_wallpaper = 0
276 }