home-config/hypr/hyprland.conf

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