1#
2# Please note not all available settings / options are set here.
3# For a full list, see the wiki
4#
5
6# See https://wiki.hyprland.org/Configuring/Monitors/
7{{- if eq .chezmoi.hostname "angmar" }}
8monitor=DisplayPort-0,2560x1440@165,auto,auto
9{{- else if eq .chezmoi.hostname "sidhe" }}
10monitor=eDP-1,2256x1504@60,auto,1.333333
11{{- end }}
12
13xwayland {
14 force_zero_scaling = true
15}
16
17# See https://wiki.hyprland.org/Configuring/Keywords/ for more
18
19# Execute your favorite apps at launch
20# exec-once = waybar & hyprpaper & firefox
21
22# Source a file (multi-file configs)
23# source = ~/.config/hypr/myColors.conf
24
25# Some default env vars.
26env = XCURSOR_SIZE,24
27
28# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
29input {
30 kb_layout = us
31 kb_variant =
32 kb_model =
33 kb_options = compose:ralt
34 kb_rules =
35 repeat_rate = 60
36 repeat_delay = 300
37
38 follow_mouse = 1
39
40 touchpad {
41 natural_scroll = no
42 disable_while_typing = yes
43 clickfinger_behavior = yes
44 tap-to-click = yes
45 drag_lock = yes
46 tap-and-drag = yes
47 }
48
49 sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
50}
51
52general {
53 # See https://wiki.hyprland.org/Configuring/Variables/ for more
54
55 gaps_in = 10
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 resize_on_border = yes
62 extend_border_grab_area = yes
63 hover_icon_on_border = yes
64
65 layout = dwindle
66
67 # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
68 allow_tearing = false
69}
70
71decoration {
72 # See https://wiki.hyprland.org/Configuring/Variables/ for more
73
74 rounding = 10
75
76 blur {
77 enabled = true
78 size = 3
79 passes = 1
80 }
81
82 drop_shadow = yes
83 shadow_range = 4
84 shadow_render_power = 3
85 col.shadow = rgba(1a1a1aee)
86}
87
88animations {
89 enabled = yes
90
91 # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
92
93 bezier = myBezier, 0.05, 0.9, 0.1, 1.05
94
95 animation = windows , 1, 7 , myBezier,
96 animation = windowsOut , 1, 7 , default , popin 80%
97 animation = border , 1, 10, default ,
98 animation = borderangle, 1, 8 , default ,
99 animation = fade , 1, 7 , default ,
100 animation = workspaces , 1, 6 , default ,
101}
102
103dwindle {
104 # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
105 pseudotile = false
106 preserve_split = true
107 force_split = 2
108 no_gaps_when_only = true
109}
110
111gestures {
112 # See https://wiki.hyprland.org/Configuring/Variables/ for more
113 {{- if eq .chezmoi.hostname "angmar" }}
114 workspace_swipe = off
115 {{- else if eq .chezmoi.hostname "sidhe" }}
116 workspace_swipe = yes
117 workspace_swipe_forever = yes
118 {{- else }}
119 workspace_swipe = off
120 {{- end }}
121}
122
123group {
124 insert_after_current = false
125 col.border_active = rgba(000000ee)
126 col.border_inactive = rgba(000000ee)
127}
128
129misc {
130 # See https://wiki.hyprland.org/Configuring/Variables/ for more
131 disable_hyprland_logo = true
132 force_default_wallpaper = 0 # Set to 0 to disable the anime mascot wallpapers
133 enable_swallow = yes
134 focus_on_activate = no
135 background_color = rgb(24273A)
136}
137
138# Example windowrule v1
139# windowrule = float, ^(kitty)$
140# Example windowrule v2
141# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
142# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
143windowrulev2 = nomaximizerequest, class:.* # You'll probably like this.
144windowrulev2 = workspace 4,class:(steam)
145windowrulev2 = workspace 6,class:(org.gajim.Gajim|org.telegram.desktop)
146
147
148# See https://wiki.hyprland.org/Configuring/Keywords/ for more
149$mod = SUPER
150
151# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
152# Applications
153bindr = $mod , Z , exec , rofi -show drun
154bindr = $mod SHIFT, Z , exec , rofi -show run
155bind = $mod , RETURN , exec , alacritty
156bind = $mod SHIFT, RETURN , exec , emacsclient -c
157bind = $mod , E , exec , nautilus
158
159# System controls
160bind = $mod SHIFT, Q , killactive ,
161bind = $mod , M , exit ,
162bind = $mod , V , togglefloating,
163bind = $mod , P , pseudo , # dwindle
164bind = $mod , J , togglesplit , # dwindle
165bind = , XF86AudioRaiseVolume , exec , pactl set-sink-volume @DEFAULT_SINK@ +10%
166bind = , XF86AudioLowerVolume , exec , pactl set-sink-volume @DEFAULT_SINK@ -10%
167bind = , XF86AudioMute , exec , pactl set-sink-mute @DEFAULT_SINK@ toggle
168bind = , XF86AudioMicMute , exec , pactl set-source-mute @DEFAULT_SOURCE@ toggle
169bind = , XF86AudioPlay , exec , playerctl play-pause
170bind = , XF86AudioNext , exec , playerctl next
171bind = , XF86AudioPrev , exec , playerctl previous
172bind = , XF86MonBrightnessUp , exec , xbacklight +5
173bind = , XF86MonBrightnessDown, exec , xbacklight -5
174
175# Notification controls
176bind = $mod , N, exec, dunstctl close-all
177bind = $mod SHIFT, N, exec, dunstctl history-pop
178bind = $mod CTRL , N, exec, dunstctl context
179
180# Window groups (analogous to i3 tabs)
181bind = $mod SHIFT, g, togglegroup
182bind = $mod , g, changegroupactive
183
184# Move focus with mod + arrow keys
185bind = $mod, left , movefocus, l
186bind = $mod, right, movefocus, r
187bind = $mod, up , movefocus, u
188bind = $mod, down , movefocus, d
189
190# Switch workspaces with mod + [0-9]
191bind = $mod, 1, workspace, 1
192bind = $mod, 2, workspace, 2
193bind = $mod, 3, workspace, 3
194bind = $mod, 4, workspace, 4
195bind = $mod, 5, workspace, 5
196bind = $mod, 6, workspace, 6
197bind = $mod, 7, workspace, 7
198bind = $mod, 8, workspace, 8
199bind = $mod, 9, workspace, 9
200bind = $mod, 0, workspace, 10
201
202# Move active window to a workspace with mod + SHIFT + [0-9]
203bind = $mod SHIFT, 1, movetoworkspace, 1
204bind = $mod SHIFT, 2, movetoworkspace, 2
205bind = $mod SHIFT, 3, movetoworkspace, 3
206bind = $mod SHIFT, 4, movetoworkspace, 4
207bind = $mod SHIFT, 5, movetoworkspace, 5
208bind = $mod SHIFT, 6, movetoworkspace, 6
209bind = $mod SHIFT, 7, movetoworkspace, 7
210bind = $mod SHIFT, 8, movetoworkspace, 8
211bind = $mod SHIFT, 9, movetoworkspace, 9
212bind = $mod SHIFT, 0, movetoworkspace, 10
213
214# Example special workspace (scratchpad)
215bind = $mod , S, togglespecialworkspace, magic
216bind = $mod SHIFT, S, movetoworkspace , special:magic
217
218# Scroll through existing workspaces with mod + scroll
219bind = $mod, mouse_down, workspace, e+1
220bind = $mod, mouse_up , workspace, e-1
221
222# Move/resize windows with mod + LMB/RMB and dragging
223bindm = $mod, mouse:272, movewindow
224bindm = $mod, mouse:273, resizewindow