home-config/hypr/hyprland.conf

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