Krolyxon
Commit 24ee83b

Branches

Refs →

aurora.confighyprhyprland.conf

333 lines · 9.5 KB · nginx

1source = $HOME/.cache/wal/colors-hyprland.conf
2autogenerated = 0
3
4###################
5### MY PROGRAMS ###
6###################
7$terminal = foot
8$menu = fuzzel
9$browser = zen-browser
10$passwordmanager = keepmenu
11
12
13#################
14### AUTOSTART ###
15#################
16exec-once = (hyprpm reload -n & kanshi & waybar & swaync & gammastep & hypridle)
17exec-once = ~/.local/bin/setwall -n
18exec-once = systemctl --user start hyprpolkitagent
19
20plugin {
21 hyprsplit {
22 num_workspaces = 10
23 persistent_workspaces = true
24 }
25}
26
27#############################
28### ENVIRONMENT VARIABLES ###
29#############################
30# See https://wiki.hypr.land/Configuring/Environment-variables/
31env = HYPRSHOT_DIR,/home/krolyxon/pix/ss/
32env = XCURSOR_SIZE,24
33env = HYPRCURSOR_SIZE,24
34# env = GTK_THEME,Tokyonight-Dark
35
36# XDG Specifications
37env = XDG_CURRENT_DESKTOP,Hyprland
38env = XDG_SESSION_TYPE,wayland
39env = XDG_SESSION_DESKTOP,Hyprland
40
41# Toolkit
42env = GDK_BACKEND,wayland,x11,* # GTK: Use Wayland if available; if not, try X11 and then any other GDK backend.
43env = QT_QPA_PLATFORM,wayland;xcb # Qt: Use Wayland if available, fall back to X11 if not
44env = SDL_VIDEODRIVER,Wayland # Run SDL2 applications on Wayland. Remove or set to x11 if games that provide older versions of SDL cause compatibility issues
45env = CLUTTER_BACKEND,wayland # Clutter applications to try and use the Wayland backend
46
47# Nvidia
48# env = GBM_BACKEND,nvidia-drm
49# env = __GLX_VENDOR_LIBRARY_NAME,nvidia
50# env = LIBVA_DRIVER_NAME,nvidia
51
52#######################
53### PLUGIN SETTINGS ###
54#######################
55plugin {
56 split-monitor-workspaces {
57 count = 10
58 keep_focused = 1
59 enable_notifications = 0
60 enable_persistent_workspaces = 1
61 }
62}
63
64
65
66###################
67### PERMISSIONS ###
68###################
69ecosystem {
70 enforce_permissions = 1
71}
72
73permission = /usr/(bin|local/bin)/grim, screencopy, allow
74permission = /usr/(bin|local/bin)/hyprlock, screencopy, allow
75permission = /usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow
76permission = /usr/(bin|local/bin)/hyprpm, plugin, allow
77permission = ${lib.escapeRegex (lib.getExe config.programs.hyprlock.package)}, screencopy, allow
78
79
80#####################
81### LOOK AND FEEL ###
82#####################
83general {
84 gaps_in = 2
85 gaps_out = 2
86 border_size = 2
87 resize_on_border = false
88 allow_tearing = false
89 # col.active_border = $color14 $color0 $color0 $color14 45deg
90 col.active_border = $color14 $color14 $color14 $color14 45deg
91 col.inactive_border = $color0 $color0 $color0 $color0 45deg
92 layout = master
93}
94
95decoration {
96 # rounding = 8
97
98
99 blur {
100 enabled = false
101 size = 3
102 passes = 1
103 }
104
105
106 # blur {
107 # enabled = true
108 # size = 3
109 # passes = 3
110 # new_optimizations = true
111 # vibrancy = 0.1696
112 # ignore_opacity = true
113 # }
114}
115
116animations {
117 enabled = false
118 bezier = myBezier, 0.05, 0.9, 0.1, 1.05
119 animation = windows, 1, 2, myBezier
120 animation = windowsOut, 1, 2, default, popin 80%
121 animation = border, 1, 10, default
122 animation = borderangle, 1, 8, default
123 animation = fade, 1, 7, default
124 animation = workspaces, 1, 1, default
125}
126
127# Ref https://wiki.hypr.land/Configuring/Workspace-Rules/
128# "Smart gaps" / "No gaps when only"
129# uncomment all if you wish to use that.
130# workspace = w[tv1], gapsout:0, gapsin:0
131# workspace = f[1], gapsout:0, gapsin:0
132# windowrule = bordersize 0, floating:0, onworkspace:w[tv1]
133# windowrule = rounding 0, floating:0, onworkspace:w[tv1]
134# windowrule = bordersize 0, floating:0, onworkspace:f[1]
135# windowrule = rounding 0, floating:0, onworkspace:f[1]
136
137# See https://wiki.hypr.land/Configuring/Dwindle-Layout/ for more
138dwindle {
139 pseudotile = true# Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
140 preserve_split = true # You probably want this
141}
142
143# See https://wiki.hypr.land/Configuring/Master-Layout/ for more
144master {
145 new_status = master
146 new_on_top = true
147
148}
149
150# https://wiki.hypr.land/Configuring/Variables/#misc
151misc {
152 force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
153 disable_hyprland_logo = true# If true disables the random hyprland logo / anime girl background. :(
154 disable_splash_rendering = true
155
156 mouse_move_enables_dpms = true
157 key_press_enables_dpms = true
158
159 vrr = 0 # Disable adaptive sync
160}
161
162
163#############
164### INPUT ###
165#############
166
167# https://wiki.hypr.land/Configuring/Variables/#input
168input {
169 kb_layout = us
170 kb_variant =
171 kb_model =
172 kb_options =
173 kb_rules =
174
175 follow_mouse = 1
176
177 sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
178
179 touchpad {
180 natural_scroll = false
181 }
182
183 repeat_delay = 300
184 repeat_rate = 50
185}
186
187# Example per-device config
188# See https://wiki.hypr.land/Configuring/Keywords/#per-device-input-configs for more
189device {
190 name = epic-mouse-v1
191 sensitivity = -0.5
192}
193
194
195###################
196### KEYBINDINGS ###
197###################
198
199# See https://wiki.hypr.land/Configuring/Keywords/
200$mainMod = SUPER # Sets "Windows" key as main modifier
201
202# Example binds, see https://wiki.hypr.land/Configuring/Binds/ for more
203bind = $mainMod, Return, exec, $terminal
204bind = $mainMod SHIFT, X, killactive,
205bind = $mainMod SHIFT, Q, exit,
206bind = $mainMod, F, Fullscreen
207bind = $mainMod SHIFT, F, Fullscreen, 1
208bind = $mainMod SHIFT, R, togglefloating,
209bind = $mainMod, R, exec, $menu
210bind = $mainMod SHIFT, P, pseudo, # dwindle
211bind = $mainMod, J, togglesplit, # dwindle
212binde = $mainMod, tab, cyclenext, prev
213bind = $mainMod, b, exec, killall waybar || waybar
214bind = $mainMod, grave, exec, fuzzelunicode
215bind = $mainMod, escape, exec, sysact
216
217# Applications
218bind = $mainMod, W, exec, $browser
219bind = $mainMod SHIFT, p, exec, $passwordmanager -C
220bind = ,PRINT, exec, screenshot
221
222# Music Controls
223bind = $mainMod, m, exec, $terminal -e zsh -i -c "ncmpcpp"
224bind = $mainMod, p, exec, mpc toggle
225binde = $mainMod, period, exec, mpc seek +10
226binde = $mainMod, comma, exec, mpc seek -10
227bind = $mainMod SHIFT, period, exec, mpc next
228bind = $mainMod SHIFT, comma, exec, mpc prev
229
230# Swap current focused window with master
231bind = $mainMod, space, layoutmsg, swapwithmaster
232
233# Resize windows with h/j/k/l
234binde = $mainMod, h, resizeactive, -30 0
235binde = $mainMod, l, resizeactive, 30 0
236binde = $mainMod, k, resizeactive, 0 -30
237binde = $mainMod, j, resizeactive, 0 30
238
239# Switch workspaces with mainMod + [0-9]
240bind = $mainMod, 1, split-workspace, 1
241bind = $mainMod, 2, split-workspace, 2
242bind = $mainMod, 3, split-workspace, 3
243bind = $mainMod, 4, split-workspace, 4
244bind = $mainMod, 5, split-workspace, 5
245bind = $mainMod, 6, split-workspace, 6
246bind = $mainMod, 7, split-workspace, 7
247bind = $mainMod, 8, split-workspace, 8
248bind = $mainMod, 9, split-workspace, 9
249bind = $mainMod, 0, split-workspace, 10
250
251# Move active window to a workspace with mainMod + SHIFT + [0-9]
252bind = $mainMod SHIFT, 1, split-movetoworkspacesilent, 1
253bind = $mainMod SHIFT, 2, split-movetoworkspacesilent, 2
254bind = $mainMod SHIFT, 3, split-movetoworkspacesilent, 3
255bind = $mainMod SHIFT, 4, split-movetoworkspacesilent, 4
256bind = $mainMod SHIFT, 5, split-movetoworkspacesilent, 5
257bind = $mainMod SHIFT, 6, split-movetoworkspacesilent, 6
258bind = $mainMod SHIFT, 7, split-movetoworkspacesilent, 7
259bind = $mainMod SHIFT, 8, split-movetoworkspacesilent, 8
260bind = $mainMod SHIFT, 9, split-movetoworkspacesilent, 9
261bind = $mainMod SHIFT, 0, split-movetoworkspacesilent, 10
262
263# Example special workspace (scratchpad)
264bind = $mainMod, S, togglespecialworkspace, magic
265bind = $mainMod SHIFT, S, movetoworkspace, special:magic
266
267# Have scratchpad like DWM
268workspace = special:h, on-created-empty: $terminal
269bind = $mainMod SHIFT, Return, togglespecialworkspace, h
270
271
272# Scroll through existing workspaces with mainMod + scroll
273bind = $mainMod, mouse_down, workspace, e+1
274bind = $mainMod, mouse_up, workspace, e-1
275
276# Move/resize windows with mainMod + LMB/RMB and dragging
277bindm = $mainMod, mouse:272, movewindow
278bindm = $mainMod, mouse:273, resizewindow
279
280# Laptop multimedia keys for volume and LCD brightness
281bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
282bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
283bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
284bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
285bindel = , XF86MonBrightnessDown, exec, ~/.local/bin/brictl -
286bindel = , XF86MonBrightnessUp, exec, ~/.local/bin/brictl +
287
288
289# Requires playerctl
290bindl = , XF86AudioNext, exec, playerctl next
291bindl = , XF86AudioPause, exec, playerctl play-pause
292bindl = , XF86AudioPlay, exec, playerctl play-pause
293bindl = , XF86AudioPrev, exec, playerctl previous
294
295##############################
296### WINDOWS AND WORKSPACES ###
297##############################
298
299# See https://wiki.hypr.land/Configuring/Window-Rules/ for more
300# See https://wiki.hypr.land/Configuring/Workspace-Rules/ for workspace rules
301
302# Example windowrules that are useful
303
304windowrule {
305 # Ignore maximize requests from all apps. You'll probably like this.
306 name = suppress-maximize-events
307 match:class = .*
308
309 suppress_event = maximize
310}
311
312windowrule {
313 # Fix some dragging issues with XWayland
314 name = fix-xwayland-drags
315 match:class = ^$
316 match:title = ^$
317 match:xwayland = true
318 match:float = true
319 match:fullscreen = false
320 match:pin = false
321
322 no_focus = true
323}
324
325# Hyprland-run windowrule
326windowrule {
327 name = move-hyprland-run
328
329 match:class = hyprland-run
330
331 move = 20 monitor_h-120
332 float = yes
333}