home-config/hypr/hyprland.conf

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