-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhyprland.conf
259 lines (218 loc) · 9 KB
/
hyprland.conf
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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mMod = SUPER
$sMod = SUPER SHIFT
$asMod = SUPER ALTSHIFT
$cMod = SUPER CTRL
$aMod = SUPER ALT
# Workspaces
#name:web
#name:coding
#name:terms
#name:files
#name:img
#name:media
#name:config
#name:ims
#name:games
#name:steam
# Monitors
$mon1 = LVDS-1
$mon2 = HDMI-A-1
## Main terminal emulator
$terminal = kitty
## Terminal Applications
$editor = $terminal nvim
# Aplication definitions
$files = $terminal ranger
$scratchpad = $terminal tmuxinator
## GUI Applications
$browser = brave
$gfiles = nautilus
$geditor = emacsclient -c -a emacs
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor = ,preferred,auto,auto
monitor = $mon1, 1366x768@59.988998, 0x0, 1
monitor = $mon2, 1920x1080@60, 1366x0, 1, transform, 1
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
# Execute your favorite apps at launch
# exec-once = waybar & hyprpaper & firefox
# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf
# Some default env vars.
env = XCURSOR_SIZE,24
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
kb_layout = us
kb_variant = altgr-intl
kb_model =
kb_options =
kb_rules =
follow_mouse = 1
touchpad {
natural_scroll = no
}
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
}
general {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
gaps_in = 2
gaps_out = 1
border_size = 2
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
col.inactive_border = rgba(595959aa)
layout = dwindle
}
decoration {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
rounding = 1
blur = yes
blur_size = 3
blur_passes = 1
blur_new_optimizations = on
drop_shadow = yes
shadow_range = 4
shadow_render_power = 3
col.shadow = rgba(1a1a1aee)
}
animations {
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
enabled = yes
bezier = myBezier, 0.05, 0.9, 0.1, 1.1
animation = windows, 1, 7, myBezier
animation = windowsOut, 1, 7, default, popin 50%
animation = border, 1, 5, default
animation = borderangle, 1, 8, default
animation = fade, 1, 7, default
animation = workspaces, 1, 8, default, slide
}
dwindle {
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mMod + P in the keybinds section below
preserve_split = yes # you probably want this
force_split = 2
default_split_ratio = 1.0
}
master {
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
new_is_master = false
}
gestures {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
workspace_swipe = off
}
# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
device:epic-mouse-v1 {
sensitivity = -0.5
}
##########################################################################################
# Windows Rules: #
# #
# Example windowrule v1 #
# windowrule = float, ^(kitty)$ #
# Example windowrule v2 #
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ #
# #
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more #
##########################################################################################
windowrulev2 = float, class:^(Wofi)$
windowrulev2 = float, title:^(Picture in picture)$
windowrulev2 = workspace 6 , title:^(Spotify)$
##########################################################################################
# Workspace Rules: #
# #
# Example workspace rules #
# workspace = 3, rounding:false, decorate:false #
# workspace = 8,bordersize:8 #
# workspace = name:Hello, monitor:DP-1, default:true #
# #
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for more #
##########################################################################################
workspace = name:coding, monitor:$mon2, rounding:false, decorate:false, gapsin:0, gapsout:0, border:false
workspace = name:web, monitor:$mon1
#workspace = name:coding, rounding:false, decorate:false, gapsin:0, gapsout:0, border:false, monitor:HDMI-A-1
# Initial config:
exec-once = swww init ; swww ~/Pictures/Wallpapers/wallhaven-ey7zmo.jpg
exec-once = eww daemon ; eww open bar
exec-once = nm-applet
exec-once = blueman-applet
# Key bindings
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mMod, Q, killactive,
bind = $mMod, Escape, exit,
bind = $mMod, Space, togglefloating,
bind = $mMod, P, pseudo, # dwindle
bind = $mMod, T, togglesplit, # dwindle
# bind gamemode bind = $mMod, FX, exec, hypr_gamemode.sh
# bind = $mMod, C, exec, grim '"~/Pictures/Screenshots/Screenshot_$(date +%F).png"'
bind = $mMod, C, exec, grim "$(xdg-user-dir PICTURES)/Screenshots/Screenshot_$(date +'%s_grim.png')"
bind = $mMod SHIFT, C, exec, grim -g "$(slurp)" "$(xdg-user-dir PICTURES)/Screenshots/Screenshot_$(date +'%s_grim.png')"
bind = $mMod CTRL, C, exec, grim -g "$(slurp -o)" "$(xdg-user-dir PICTURES)/Screenshots/Screenshot_$(date +'%s_grim.png')"
## App lauchers
bind = $mMod, D, exec, wofi --show drun
bind = $mMod, R, exec, wofi --show run --location=3 --xoffset=-16 --yoffset=24 --width=240px --height=640 --style=$HOME/.config/wofi.css --term=footclient --prompt=Run
bind = $mMod, Return, exec, $terminal
bind = $mMod, F1, exec, $browser
bind = $mMod, F2, exec, $geditor
bind = $mMod, F3, exec, pavucontrol
bind = $mMod, F4, exec, $files
bind = $sMod, F4, exec, $gfiles
bind = $mMod, F5, exec, inkscape
bind = $mMod, F6, exec, spotify
bind = $mMod, F10, exec, steam
# Control audio volume
bind = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_SINK@ 5%+
bind = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_SINK@ 5%-
bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_SINK@ toggle
# Move focus with mMod + arrow keys
bind = $mMod, H, movefocus, l
bind = $mMod, L, movefocus, r
bind = $mMod, K, movefocus, u
bind = $mMod, J, movefocus, d
bind = $sMod, H, movewindow, l
bind = $sMod, L, movewindow, r
bind = $sMod, K, movewindow, u
bind = $sMod, J, movewindow, d
bind = $cMod, H, resizeactive, -10 0
bind = $cMod, L, resizeactive, 10 0
bind = $cMod, K, resizeactive, 0 -10
bind = $cMod, J, resizeactive, 0 10
# Switch workspaces with mMod + [0-9]
bind = $mMod, 1, workspace, name:web
bind = $mMod, 2, workspace, name:coding
bind = $mMod, 3, workspace, name:terms
bind = $mMod, 4, workspace, name:files
bind = $mMod, 5, workspace, name:img
bind = $mMod, 6, workspace, name:media
bind = $mMod, 7, workspace, name:config
bind = $mMod, 8, workspace, name:ims
bind = $mMod, 9, workspace, name:games
bind = $mMod, 0, workspace, name:steam
# Move active window to a workspace with mMod + SHIFT + [0-9]
bind = $sMod, 1, movetoworkspace, name:web
bind = $sMod, 2, movetoworkspace, name:coding
bind = $sMod, 3, movetoworkspace, name:terms
bind = $sMod, 4, movetoworkspace, name:files
bind = $sMod, 5, movetoworkspace, name:img
bind = $sMod, 6, movetoworkspace, name:media
bind = $sMod, 7, movetoworkspace, name:config
bind = $sMod, 8, movetoworkspace, name:ims
bind = $sMod, 9, movetoworkspace, name:games
bind = $sMod, 0, movetoworkspace, name:steam
# Move active window to a workspace without leaving the workspace with mMod + ALT + [0-9]
bind = $aMod, 1, movetoworkspacesilent, name:web
bind = $aMod, 2, movetoworkspacesilent, name:coding
bind = $aMod, 3, movetoworkspacesilent, name:terms
bind = $aMod, 4, movetoworkspacesilent, name:files
bind = $aMod, 5, movetoworkspacesilent, name:img
bind = $aMod, 6, movetoworkspacesilent, name:media
bind = $aMod, 7, movetoworkspacesilent, name:config
bind = $aMod, 8, movetoworkspacesilent, name:ims
bind = $aMod, 9, movetoworkspacesilent, name:games
bind = $aMod, 0, movetoworkspacesilent, name:steam
# Scroll through existing workspaces with mMod + scroll
bind = $mMod, mouse_down, workspace, e+1
bind = $mMod, mouse_up, workspace, e-1
# Move/resize windows with mMod + LMB/RMB and dragging
bindm = $mMod, mouse:272, movewindow
bindm = $mMod, mouse:273, resizewindow