aurora97c7c40
conform to new hyprland config format
+31 −7
2 files changed
- M .config/hypr/hyprland.conf +30 −6
- M .config/shell/profile +1 −1
| @@ -299,11 +299,35 @@ bindl = , XF86AudioPrev, exec, playerctl previous | |||
| 299 | 299 | # See https://wiki.hypr.land/Configuring/Window-Rules/ for more | |
| 300 | 300 | # See https://wiki.hypr.land/Configuring/Workspace-Rules/ for workspace rules | |
| 301 | 301 | ||
| 302 | − | # Example windowrule | |
| 303 | − | # windowrule = float,class:^(kitty)$,title:^(kitty)$ | |
| 302 | + | # Example windowrules that are useful | |
| 304 | 303 | ||
| 305 | − | # Ignore maximize requests from apps. You'll probably like this. | |
| 306 | − | windowrule = suppressevent maximize, class:.* | |
| 304 | + | windowrule { | |
| 305 | + | # Ignore maximize requests from all apps. You'll probably like this. | |
| 306 | + | name = suppress-maximize-events | |
| 307 | + | match:class = .* | |
| 307 | 308 | ||
| 308 | − | # Fix some dragging issues with XWayland | |
| 309 | − | windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0 | |
| 309 | + | suppress_event = maximize | |
| 310 | + | } | |
| 311 | + | ||
| 312 | + | windowrule { | |
| 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 | |
| 326 | + | windowrule { | |
| 327 | + | name = move-hyprland-run | |
| 328 | + | ||
| 329 | + | match:class = hyprland-run | |
| 330 | + | ||
| 331 | + | move = 20 monitor_h-120 | |
| 332 | + | float = yes | |
| 333 | + | } | |
| @@ -57,4 +57,4 @@ export MPD_PORT="6600" | |||
| 57 | 57 | [ ! -s ~/.config/mpd/pid ] && mpd | |
| 58 | 58 | ||
| 59 | 59 | # Start graphical server on user's current tty if not already running. | |
| 60 | − | [ "$(tty)" = "/dev/tty1" ] && ! pidof -s hyprland >/dev/null 2>&1 && exec hyprland | |
| 60 | + | [ "$(tty)" = "/dev/tty1" ] && ! pidof -s hyprland >/dev/null 2>&1 && exec start-hyprland | |