Krolyxon
Commit 9226cef

Branches

Refs →

aurora.confighyprhyprland.conf

307 lines · 9.1 KB · nginx

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