home-config/hypr/hyprland.conf

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