home-config/hypr/hyprland.conf

87fe3223816d9a3459ac99a0d7883645014af3f5 · 6.8 KB · 220 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
31 follow_mouse = 1
32
33 touchpad {
34 natural_scroll = no
35 }
36
37 sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
38 }
39
40 general {
41 # See https://wiki.hyprland.org/Configuring/Variables/ for more
42
43 gaps_in = 5
44 gaps_out = 10
45 border_size = 2
46 col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
47 col.inactive_border = rgba(595959aa)
48
49 layout = dwindle
50 }
51
52 decoration {
53 # See https://wiki.hyprland.org/Configuring/Variables/ for more
54
55 rounding = 5
56 blur {
57 enabled = yes
58 size = 3
59 passes = 1
60 new_optimizations = on
61 }
62
63 drop_shadow = yes
64 shadow_range = 4
65 shadow_render_power = 3
66 col.shadow = rgba(1a1a1aee)
67 }
68
69 animations {
70 enabled = yes
71
72 # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
73
74 bezier = myBezier, 0.05, 0.9, 0.1, 1.05
75
76 animation = windows, 1, 7, myBezier
77 animation = windowsOut, 1, 7, default, popin 80%
78 animation = border, 1, 10, default
79 animation = borderangle, 1, 8, default
80 animation = fade, 1, 7, default
81 animation = workspaces, 1, 6, default
82 }
83
84 dwindle {
85 # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
86 pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
87 preserve_split = yes # you probably want this
88 }
89
90 master {
91 # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
92 new_is_master = true
93 }
94
95 gestures {
96 # See https://wiki.hyprland.org/Configuring/Variables/ for more
97 workspace_swipe = off
98 }
99
100 # Example per-device config
101 # See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
102 device:epic-mouse-v1 {
103 sensitivity = -0.5
104 }
105
106 # Example windowrule v1
107 # windowrule = float, ^(kitty)$
108 # Example windowrule v2
109 # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
110 # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
111
112
113 # See https://wiki.hyprland.org/Configuring/Keywords/ for more
114 $mainMod = SUPER
115
116 # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
117 bind = $mainMod, Return, exec, alacritty
118 bind = $mainMod SHIFT, Q, killactive
119 bind = $mainMod SHIFT, E, exit
120 bind = $mainMod SHIFT, Space, togglefloating
121 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
122 bind = $mainMod, P, pseudo, # dwindle
123 bind = $mainMod, J, togglesplit, # dwindle
124 bind = $mainMod, F, fullscreen, 1
125 bind = $mainMod SHIFT, F, fullscreen
126 bind = ,XF86MonBrightnessUp, exec, light -A 10
127 bind = ,XF86MonBrightnessDown, exec, light -U 10
128 bind = ,XF86AudioRaiseVolume, exec, pamixer -i 5
129 bind = ,XF86AudioLowerVolume, exec, pamixer -d 5
130 bind = ,XF86AudioMute, exec, pamixer -t
131 bind = ,XF86AudioPlay, exec, playerctl play-pause
132 bind = ,XF86AudioPause, exec, playerctl play-pause
133 bind = ,XF86AudioNext, exec, playerctl next
134 bind = ,XF86AudioPrev, exec, playerctl previous
135 bind = ,XF86AudioStop, exec, playerctl stop
136
137 # Move workspace between monitors
138 bind = $mainMod CTRL SHIFT, left, movecurrentworkspacetomonitor, l
139 bind = $mainMod CTRL SHIFT, right, movecurrentworkspacetomonitor, r
140 bind = $mainMod CTRL SHIFT, up, movecurrentworkspacetomonitor, u
141 bind = $mainMod CTRL SHIFT, down, movecurrentworkspacetomonitor, d
142
143 # Move focus with mainMod + arrow keys
144 bind = $mainMod, left, movefocus, l
145 bind = $mainMod, right, movefocus, r
146 bind = $mainMod, up, movefocus, u
147 bind = $mainMod, down, movefocus, d
148
149 # Move window with mainMod + SHIFT + arrow keys
150 bind = $mainMod SHIFT, left, movewindow, l
151 bind = $mainMod SHIFT, right, movewindow, r
152 bind = $mainMod SHIFT, up, movewindow, u
153 bind = $mainMod SHIFT, down, movewindow, d
154
155 # Switch workspaces with mainMod + [0-9]
156 bind = $mainMod, 1, workspace, 1
157 bind = $mainMod, 2, workspace, 2
158 bind = $mainMod, 3, workspace, 3
159 bind = $mainMod, 4, workspace, 4
160 bind = $mainMod, 5, workspace, 5
161 bind = $mainMod, 6, workspace, 6
162 bind = $mainMod, 7, workspace, 7
163 bind = $mainMod, 8, workspace, 8
164 bind = $mainMod, 9, workspace, 9
165 bind = $mainMod, 0, workspace, 10
166
167 # Move active window to a workspace with mainMod + SHIFT + [0-9]
168 bind = $mainMod SHIFT, 1, movetoworkspace, 1
169 bind = $mainMod SHIFT, 2, movetoworkspace, 2
170 bind = $mainMod SHIFT, 3, movetoworkspace, 3
171 bind = $mainMod SHIFT, 4, movetoworkspace, 4
172 bind = $mainMod SHIFT, 5, movetoworkspace, 5
173 bind = $mainMod SHIFT, 6, movetoworkspace, 6
174 bind = $mainMod SHIFT, 7, movetoworkspace, 7
175 bind = $mainMod SHIFT, 8, movetoworkspace, 8
176 bind = $mainMod SHIFT, 9, movetoworkspace, 9
177 bind = $mainMod SHIFT, 0, movetoworkspace, 10
178
179 # Scroll through existing workspaces with mainMod + scroll
180 bind = $mainMod, mouse_down, workspace, e+1
181 bind = $mainMod, mouse_up, workspace, e-1
182
183 # Move/resize windows with mainMod + LMB/RMB and dragging
184 bindm = $mainMod, mouse:272, movewindow
185 bindm = $mainMod, mouse:273, resizewindow
186
187 # Bind mainMod + L to screenlocker
188 bind = $mainMod, L, exec, swaylock --screenshots --clock --indicator --fade-in 1 --effect-blur 7x5 --effect-greyscale
189
190 # Keybind for screenshot
191 bind = $mainMod SHIFT, S, exec, grimblast copy area
192 bind = $mainMod SHIFT, Print, exec, grimblast edit area
193
194 # Notifications keybinds
195 bind = $mainMod, N, exec, makoctl dismiss
196 bind = $mainMod SHIFT, N, exec, makoctl dismiss -a
197
198 # Window Rules
199
200 # Firefox PiP
201 windowrulev2 = float, class:^(firefox)$, title:^(Picture-in-Picture)$
202 windowrulev2 = pin, class:^(firefox)$, title:^(Picture-in-Picture)$
203 windowrulev2 = size 578 326, class:^(firefox)$, title:^(Picture-in-Picture)$
204
205 # Firefox Sharing Indicator
206 windowrulev2 = float, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$
207 windowrulev2 = size 56 31, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$
208 windowrulev2 = move 50% 0, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$
209 windowrulev2 = nomaximizerequest, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$
210 windowrulev2 = nofullscreenrequest, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$
211
212 # Weather
213 windowrulev2 = float,class:^(ala-wttr)$
214 windowrulev2 = size 740 712, class:^(ala-wttr)$
215
216 exec-once = ~/.config/hypr/autostart.sh
217
218 misc {
219 disable_hyprland_logo = true
220 }