summaryrefslogtreecommitdiff
path: root/.config/hypr/hyprland.conf.in
blob: 6b3362b5593342b64b72eec779bcd8270bd17656 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
exec-once = lux -S 50
exec-once = ewd && ewctl $XDG_PICTURES_DIR/bg.jxl
exec-once = eww daemon && eww open bar-1
exec-once = dbus-daemon --session --address=unix:path=$XDG_RUNTIME_DIR/bus
exec-once = mako

monitor = , highres, auto, 1

layerrule = noanim, overlay

input {
	accel_profile  = "adaptive"
	follow_mouse   = 1
	kb_layout      = mango, mango
	kb_variant     = basic, german
	kb_options     = lv3:lalt_switch,compose:ralt
	repeat_delay   = 180
	repeat_rate    = 35
	sensitivity    = 0.8
	natural_scroll = yes

	touchpad {
		disable_while_typing = yes
		natural_scroll       = yes
	}
}

general {
	border_size             = 3
	col.active_border       = rgb(FAA14F)
	col.inactive_border     = rgba(64727D7F)
	gaps_in                 = 5
	gaps_out                = 10
	cursor_inactive_timeout = 3
}

decoration {
	blur {
		enabled = yes
		size    = 1
	}

	dim_inactive = yes
	dim_strength = 0.1
	rounding     = 8

	drop_shadow         = true
	shadow_offset       = 3 3
	shadow_range        = 20
	shadow_render_power = 4
}

dwindle {
	no_gaps_when_only = yes
}

animations {
	enabled   = yes
	animation = windows,    1, 3, default, slide
	animation = border,     1, 2, default
	animation = fade,       1, 1, default
	animation = workspaces, 1, 3, default, slide
}

gestures {
	workspace_swipe                    = yes
	workspace_swipe_fingers            = 4
	workspace_swipe_distance           = 400
	workspace_swipe_min_speed_to_force = 10
}

misc {
	disable_hyprland_logo = true
	disable_splash_rendering = true
	enable_swallow = true
	swallow_regex = ^(foot)$
}

$modkey = SUPER

# WM behavior
bind = $modkey, F, fullscreen, 0
bind = $modkey, S, fakefullscreen, 0
bind = $modkey, Q, killactive
bind = $modkey SHIFT, F, togglefloating

# Global programs
__bind(C, foot ec)
__bind(M, foot aerc)
__bind(W, firefox)
__bind(return, foot)
__bind(space, fuzzel --log-level=warning --show-actions)
__bind(     , print, scst)
__bind(SHIFT, print, scst -f)

# Prompt-/Dmenu-style programs
__submap(prompt, P, [
	__subbind(K, chkb)
	__subbind(M, woman)
	__subbind(P, vlt get)
	__subbind(T, chtz)
	__subbind(U, uni)
])

# Change focused window
bind = $modkey, H,     movefocus, l
bind = $modkey, J,     movefocus, d
bind = $modkey, K,     movefocus, u
bind = $modkey, L,     movefocus, r
bind = $modkey, left,  movefocus, l
bind = $modkey, down,  movefocus, d
bind = $modkey, up,    movefocus, u
bind = $modkey, right, movefocus, r

# Switch workspaces with modkey + [0-9]
bind = $modkey,  0, hyprwork,  1
bind = $modkey,  1, hyprwork,  2
bind = $modkey,  2, hyprwork,  3
bind = $modkey,  3, hyprwork,  4
bind = $modkey,  4, hyprwork,  5
bind = $modkey,  5, hyprwork,  6
bind = $modkey,  6, hyprwork,  7
bind = $modkey,  7, hyprwork,  8
bind = $modkey,  8, hyprwork,  9
bind = $modkey,  9, hyprwork, 10
bind = $modkey, 10, hyprwork,  1
bind = $modkey, 11, hyprwork,  2
bind = $modkey, 12, hyprwork,  3
bind = $modkey, 13, hyprwork,  4
bind = $modkey, 14, hyprwork,  5
bind = $modkey, 15, hyprwork,  6
bind = $modkey, 16, hyprwork,  7
bind = $modkey, 17, hyprwork,  8
bind = $modkey, 18, hyprwork,  9
bind = $modkey, 19, hyprwork, 10

# Move active window to a workspace with modkey + SHIFT + [0-9]
bind = $modkey CONTROL,  0, hyprmove,  1
bind = $modkey CONTROL,  1, hyprmove,  2
bind = $modkey CONTROL,  2, hyprmove,  3
bind = $modkey CONTROL,  3, hyprmove,  4
bind = $modkey CONTROL,  4, hyprmove,  5
bind = $modkey CONTROL,  5, hyprmove,  6
bind = $modkey CONTROL,  6, hyprmove,  7
bind = $modkey CONTROL,  7, hyprmove,  8
bind = $modkey CONTROL,  8, hyprmove,  9
bind = $modkey CONTROL,  9, hyprmove, 10
bind = $modkey CONTROL, 10, hyprmove,  1
bind = $modkey CONTROL, 11, hyprmove,  2
bind = $modkey CONTROL, 12, hyprmove,  3
bind = $modkey CONTROL, 13, hyprmove,  4
bind = $modkey CONTROL, 14, hyprmove,  5
bind = $modkey CONTROL, 15, hyprmove,  6
bind = $modkey CONTROL, 16, hyprmove,  7
bind = $modkey CONTROL, 17, hyprmove,  8
bind = $modkey CONTROL, 18, hyprmove,  9
bind = $modkey CONTROL, 19, hyprmove, 10

# Media keys
__binde(, xf86audiomute,        amixer -q sset Master toggle)
__binde(, xf86audiolowervolume, amixer -q sset Master 5%-)
__binde(, xf86audioraisevolume, amixer -q sset Master 5%+)

__binde(,     xf86monbrightnessup,   lux -I 5)
__bind(SHIFT, xf86monbrightnessup,   lux -S 50)
__binde(,     xf86monbrightnessdown, lux -D 5)
__bind(SHIFT, xf86monbrightnessdown, lux -s 0)

# Settings key on Framework laptop
__binde(,
	xf86audiomedia,
	foot sh -c 'cd ~/.config/hypr && nvim hyprland.conf.in'
)

# Scroll through existing workspaces with modkey + scroll
bind = $modkey, mouse_down, workspace, e+1
bind = $modkey, mouse_up,   workspace, e-1

# Move/resize windows with modkey + LMB/RMB and dragging
bindm = $modkey, mouse:272, movewindow
bindm = $modkey, mouse:273, resizewindow

# Open manpages in floating windows
windowrulev2 = float,        class:^(org\.pwmt\.zathura)$
windowrulev2 = size 50% 90%, class:^(org\.pwmt\.zathura)$
windowrulev2 = center,       class:^(org\.pwmt\.zathura)$