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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
|
monitor=,preferred,auto,auto
input {
kb_layout = us
kb_options = caps:escape
}
#################
### AUTOSTART ###
################
exec-once = nm-applet &
exec-once = systemctl --user start hyprpolkitagent
exec-once = dunst &
exec-once = waybar
exec-once = hypridle
exec-once = playerctl daemon &
exec-once = xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Tapping Enabled" 1
exec-once = xinput set-prop 10 "libinput Natural Scrolling Enabled" 1
exec-once = swww-daemon &
exec-once = swww img /home/anand/dots/walls/wallpaper.png
exec-once = copyq &
exec-once = xrdb ~/.Xresources &
#############################
### ENVIRONMENT VARIABLES ###
#############################
env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24
#####################
### LOOK AND FEEL ###
#####################
general {
gaps_in = 2
gaps_out = 2
border_size = 1
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
col.inactive_border = rgba(595959aa)
resize_on_border = false
allow_tearing = false
layout = master
}
dwindle {
force_split=2
}
decoration {
rounding = 10
# active_opacity = 1.0
# inactive_opacity = 0.8
blur {
enabled = false
}
}
animations {
enabled = true
animation = windows, 1, 3, default
animation = windowsOut, 1, 3, default, popin 80%
animation = border, 1, 3, default
animation = borderangle, 1, 3, default
animation = fade, 1, 3, default
animation = workspaces, 1, 3, default
}
master {
new_status = inherit
}
misc {
force_default_wallpaper = 0
disable_hyprland_logo = true
}
#############
### INPUT ###
#############
input {
kb_layout = us
# kb_options = caps:swapescape
follow_mouse = 1
sensitivity = -0.1
touchpad {
natural_scroll = true
middle_button_emulation = true
tap-and-drag = true
tap-to-click = true
drag_lock = true
disable_while_typing = true
}
# Turning this on fucks with the sensitivity, no clue why
# force_no_accel = true
}
gestures {
workspace_swipe_touch = true
}
device {
name = synps/2-synaptics-touchpad
sensitivity = 0
}
###################
### KEYBINDINGS ###
###################
$mainMod = SUPER # Sets "Windows" key as main modifier
$terminal = wezterm
$fileManager = thunar
$textEditor = $terminal -e nvim
$menu = rofi -show drun
$browser = firefox
bind = $mainMod, Return, exec, $terminal
bind = $mainMod, Q, killactive,
bind = $mainMod, E, exec, $fileManager
bind = $mainMod SHIFT, E, exit
bind = $mainMod, A, exec, $textEditor
bind = $mainMod, T, togglefloating,
bind = $mainMod, SPACE, exec, $menu
bind = $mainMod, B, exec, $browser
bind = $mainMod, M, fullscreen, 1
bind = $mainMod SHIFT, M, fullscreen, 0
bind = $mainMod, P, exec, passmenu
bind = $mainMod, period, exec, rofi -show emoji
bind = $mainMod SHIFT, S, exec, .config/hypr/screenshotwayland.sh
bind = $mainMod, V, exec, copyq toggle
bind = $mainMod SHIFT, P, exec, playerctl play-pause
bind = $mainMod SHIFT, left, movewindow, l
bind = $mainMod SHIFT, right, movewindow, r
bind = $mainMod SHIFT, up, movewindow, u
bind = $mainMod SHIFT, down, movewindow, d
bind = $mainMod SHIFT, H, movewindow, l
bind = $mainMod SHIFT, L, movewindow, r
bind = $mainMod SHIFT, K, movewindow, u
bind = $mainMod SHIFT, J, movewindow, d
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d
bind = $mainMod, H, movefocus, l
bind = $mainMod, L, movefocus, r
bind = $mainMod, K, movefocus, u
bind = $mainMod, J, movefocus, d
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10
# make window wider / narrower
bind = SUPER CTRL, L, resizeactive, 20 0
bind = SUPER CTRL, H, resizeactive, -20 0
# make window taller / shorter
bind = SUPER CTRL, K, resizeactive, 0 -20
bind = SUPER CTRL, J, resizeactive, 0 20
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
# Laptop multimedia keys for volume and LCD brightness
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
bindel = ,XF86MonBrightnessUp, exec, brillo -qA 5
bindel = ,XF86MonBrightnessDown, exec, brillo -qU 5
##############################
### WINDOWS AND WORKSPACES ###
##############################
# windowrulev2 = float,class:com.github.hluk.copyq
cursor {
sync_gsettings_theme = false
enable_hyprcursor = true
zoom_factor = 1
}
xwayland {
force_zero_scaling = true
use_nearest_neighbor = true
}
|