home-config/hypr/hyprland.conf

1d58393e99753ce529914df7eb4b104ad6c2061b · 8.3 KB · 257 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 # "Auto-connect headphones"
142 bind = $mainMod, H, exec, bluetoothctl connect AC:80:0A:1C:D6:C7
143
144 # Move workspace between monitors
145 bind = $mainMod CTRL SHIFT, left, movecurrentworkspacetomonitor, l
146 bind = $mainMod CTRL SHIFT, right, movecurrentworkspacetomonitor, r
147 bind = $mainMod CTRL SHIFT, up, movecurrentworkspacetomonitor, u
148 bind = $mainMod CTRL SHIFT, down, movecurrentworkspacetomonitor, d
149
150 # Move focus with mainMod + arrow keys
151 bind = $mainMod, left, movefocus, l
152 bind = $mainMod, right, movefocus, r
153 bind = $mainMod, up, movefocus, u
154 bind = $mainMod, down, movefocus, d
155
156 # Move window with mainMod + SHIFT + arrow keys
157 bind = $mainMod SHIFT, left, movewindow, l
158 bind = $mainMod SHIFT, right, movewindow, r
159 bind = $mainMod SHIFT, up, movewindow, u
160 bind = $mainMod SHIFT, down, movewindow, d
161
162 # Switch workspaces with mainMod + [0-9]
163 bind = $mainMod, 1, workspace, 1
164 bind = $mainMod, 2, workspace, 2
165 bind = $mainMod, 3, workspace, 3
166 bind = $mainMod, 4, workspace, 4
167 bind = $mainMod, 5, workspace, 5
168 bind = $mainMod, 6, workspace, 6
169 bind = $mainMod, 7, workspace, 7
170 bind = $mainMod, 8, workspace, 8
171 bind = $mainMod, 9, workspace, 9
172 bind = $mainMod, 0, workspace, 10
173
174 # Move active window to a workspace with mainMod + SHIFT + [0-9]
175 bind = $mainMod SHIFT, 1, movetoworkspace, 1
176 bind = $mainMod SHIFT, 2, movetoworkspace, 2
177 bind = $mainMod SHIFT, 3, movetoworkspace, 3
178 bind = $mainMod SHIFT, 4, movetoworkspace, 4
179 bind = $mainMod SHIFT, 5, movetoworkspace, 5
180 bind = $mainMod SHIFT, 6, movetoworkspace, 6
181 bind = $mainMod SHIFT, 7, movetoworkspace, 7
182 bind = $mainMod SHIFT, 8, movetoworkspace, 8
183 bind = $mainMod SHIFT, 9, movetoworkspace, 9
184 bind = $mainMod SHIFT, 0, movetoworkspace, 10
185
186 # Scroll through existing workspaces with mainMod + scroll
187 bind = $mainMod, mouse_down, workspace, e+1
188 bind = $mainMod, mouse_up, workspace, e-1
189
190 # Move/resize windows with mainMod + LMB/RMB and dragging
191 bindm = $mainMod, mouse:272, movewindow
192 bindm = $mainMod, mouse:273, resizewindow
193
194 # Bind mainMod + L to screenlocker
195 bind = $mainMod, L, exec, swaylock --screenshots --clock --indicator --fade-in 0.3 --effect-blur 7x5 --effect-greyscale
196 bind = $mainMod SHIFT, L, exec, swaylock --screenshots --clock --indicator --effect-blur 7x5 --effect-greyscale & sleep 0.5; loginctl suspend
197
198 # Keybind for screenshot
199 bind = $mainMod SHIFT, S, exec, grimblast copy area
200 bind = $mainMod SHIFT, Print, exec, grimblast edit area
201
202 # Notifications keybinds
203 bind = $mainMod, N, exec, makoctl dismiss
204 bind = $mainMod SHIFT, N, exec, makoctl dismiss -a
205
206 # Color picker
207 bind = $mainMod SHIFT, C, exec, hyprpicker -a
208
209 # LinkedIn Joke (very serious)
210 bind = $mainMod SHIFT CTRL ALT, L, exec, xdg-open https://linkedin.com
211
212 # Window Rules
213
214 # Firefox PiP
215 windowrulev2 = float, class:^(firefox)$, title:^(Picture-in-Picture)$
216 windowrulev2 = pin, class:^(firefox)$, title:^(Picture-in-Picture)$
217 windowrulev2 = size 578 326, class:^(firefox)$, title:^(Picture-in-Picture)$
218
219 # Firefox Sharing Indicator
220 windowrulev2 = float, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$
221 windowrulev2 = size 56 31, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$
222 windowrulev2 = move 50% 0, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$
223 windowrulev2 = suppressevent fullscreen maximize, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$
224
225 # Weather
226 windowrulev2 = float,class:^(ala-wttr)$
227 windowrulev2 = size 740 712, class:^(ala-wttr)$
228
229 # Floating terminal
230 windowrulev2 = float,class:^(float-foot)$
231 windowrulev2 = size 930 680,class:^(float-foot)$
232 windowrulev2 = center,class:^(float-foot)$
233
234 # Change color of pinned windows
235 windowrulev2 = bordercolor rgba(bf0000ee) rgba(ab00adee) 45deg,pinned:1
236
237 # Fun Keybinds
238 # Subway surfer
239 bind = $mainMod CTRL SHIFT, S, exec, mpv ~/.config/hypr/subwaysurfer.webm
240 windowrulev2 = float,class:^(mpv)$, title:^(subwaysurfer.webm - mpv)$
241 windowrulev2 = size 310 554,class:^(mpv)$, title:^(subwaysurfer.webm - mpv)$
242 windowrulev2 = move 81% 46% ,class:^(mpv)$, title:^(subwaysurfer.webm - mpv)$
243 windowrulev2 = pin,class:^(mpv)$, title:^(subwaysurfer.webm - mpv)$
244
245 # Family guy funny moments
246 bind = $mainMod CTRL SHIFT, F, exec, mpv ~/.config/hypr/family_guy.mp4
247 windowrulev2 = float,class:^(mpv)$, title:^(family_guy.mp4 - mpv)$
248 windowrulev2 = size 595 336,class:^(mpv)$, title:^(family_guy.mp4 - mpv)$
249 windowrulev2 = move 67% 5% ,class:^(mpv)$, title:^(family_guy.mp4 - mpv)$
250 windowrulev2 = pin,class:^(mpv)$, title:^(family_guy.mp4 - mpv)$
251
252 exec-once = ~/.config/hypr/autostart.sh
253
254 misc {
255 disable_hyprland_logo = true
256 force_default_wallpaper = 0
257 }