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
126 groupbar {
127 font_family = "{{ .font }}"
128 font_size = 12
129{{- if eq .theme_variant "light" }}
130 text_color = rgb(4c4f69)
131 col.active = rgba(cdd6f4b0) rgba(cdd6f400) 0deg
132 col.inactive = rgba(dce0e8b0) rgba(dce0e800) 0deg
133{{- else if eq .theme_variant "dark" }}
134 col.active = rgba(b7bdf8ff)
135 col.inactive = rgba(6e738dff)
136{{- end }}
137 }
138}
139
140misc {
141 # See https://wiki.hyprland.org/Configuring/Variables/ for more
142 disable_hyprland_logo = true
143 force_default_wallpaper = 0 # Set to 0 to disable the anime mascot wallpapers
144 enable_swallow = yes
145 focus_on_activate = no
146{{- if eq .theme_variant "light" }}
147 background_color = rgb(eff1f5)
148{{- else if eq .theme_variant "dark" }}
149 background_color = rgb(24273A)
150{{- end }}
151}
152
153# Example windowrule v1
154# windowrule = float, ^(kitty)$
155# Example windowrule v2
156# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
157# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
158windowrulev2 = nomaximizerequest, class:.* # You'll probably like this.
159windowrulev2 = workspace 4,class:(steam)
160windowrulev2 = workspace 6,class:(org.gajim.Gajim|org.telegram.desktop)
161
162
163# See https://wiki.hyprland.org/Configuring/Keywords/ for more
164$mod = SUPER
165
166# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
167# Applications
168bindr = $mod , Z , exec , rofi -show drun
169bindr = $mod SHIFT, Z , exec , rofi -show run
170bind = $mod , RETURN , exec , alacritty
171bind = $mod SHIFT, RETURN , exec , emacsclient -c
172bind = $mod , E , exec , nautilus
173
174# System controls
175bind = $mod SHIFT, Q , killactive ,
176bind = $mod SHIFT, E , exit ,
177bind = $mod SHIFT, L , exec , lockscreen
178bind = $mod , V , togglefloating,
179bind = $mod , P , pseudo , # dwindle
180bind = $mod , J , togglesplit , # dwindle
181bind = , XF86AudioRaiseVolume , exec , pactl set-sink-volume @DEFAULT_SINK@ +10%
182bind = , XF86AudioLowerVolume , exec , pactl set-sink-volume @DEFAULT_SINK@ -10%
183bind = , XF86AudioMute , exec , pactl set-sink-mute @DEFAULT_SINK@ toggle
184bind = , XF86AudioMicMute , exec , pactl set-source-mute @DEFAULT_SOURCE@ toggle
185bind = , XF86AudioPlay , exec , playerctl play-pause
186bind = , XF86AudioNext , exec , playerctl next
187bind = , XF86AudioPrev , exec , playerctl previous
188bind = , XF86MonBrightnessUp , exec , xbacklight +5
189bind = , XF86MonBrightnessDown, exec , xbacklight -5
190
191# Notification controls
192bind = $mod , N, exec, dunstctl close-all
193bind = $mod SHIFT, N, exec, dunstctl history-pop
194bind = $mod CTRL , N, exec, dunstctl context
195
196# Window groups (analogous to i3 tabs)
197bind = $mod SHIFT, g, togglegroup
198bind = $mod , g, changegroupactive
199
200# Move focus with mod + arrow keys
201bind = $mod, left , movefocus, h
202bind = $mod, right, movefocus, l
203bind = $mod, up , movefocus, k
204bind = $mod, down , movefocus, j
205
206# Switch workspaces with mod + [0-9]
207bind = $mod, 1, workspace, 1
208bind = $mod, 2, workspace, 2
209bind = $mod, 3, workspace, 3
210bind = $mod, 4, workspace, 4
211bind = $mod, 5, workspace, 5
212bind = $mod, 6, workspace, 6
213bind = $mod, 7, workspace, 7
214bind = $mod, 8, workspace, 8
215bind = $mod, 9, workspace, 9
216bind = $mod, 0, workspace, 10
217
218# Move active window to a workspace with mod + SHIFT + [0-9]
219bind = $mod SHIFT, 1, movetoworkspace, 1
220bind = $mod SHIFT, 2, movetoworkspace, 2
221bind = $mod SHIFT, 3, movetoworkspace, 3
222bind = $mod SHIFT, 4, movetoworkspace, 4
223bind = $mod SHIFT, 5, movetoworkspace, 5
224bind = $mod SHIFT, 6, movetoworkspace, 6
225bind = $mod SHIFT, 7, movetoworkspace, 7
226bind = $mod SHIFT, 8, movetoworkspace, 8
227bind = $mod SHIFT, 9, movetoworkspace, 9
228bind = $mod SHIFT, 0, movetoworkspace, 10
229
230# Example special workspace (scratchpad)
231bind = $mod , S, togglespecialworkspace, magic
232bind = $mod SHIFT, S, movetoworkspace , special:magic
233
234# Scroll through existing workspaces with mod + scroll
235bind = $mod, mouse_down, workspace, e+1
236bind = $mod, mouse_up , workspace, e-1
237
238# Move/resize windows with mod + LMB/RMB and dragging
239bindm = $mod, mouse:272, movewindow
240bindm = $mod, mouse:273, resizewindow
241
242exec-once = "/home/amolith/.local/bin/startup"