hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
21.09k stars 882 forks source link

master layout replacement for new_is_master = true #6727

Closed dezren39 closed 3 months ago

dezren39 commented 3 months ago

Regression?

Yes

System Info and Version

System/Version info ```sh hyprctl systeminfo -c in nu at 01:30:12 Hyprland, built from branch main at commit 918d8340afd652b011b937d29d5eea0be08467f5 (flake.lock: update). Date: 2024-06-25 Tag: v0.41.2, commits: 918d8340afd652b011b937d29d5eea0be08467f5 flags: (if any) System Information: System name: Linux Node name: nixos Release: 6.6.35 Version: #1-NixOS SMP PREEMPT_DYNAMIC Fri Jun 21 12:38:50 UTC 2024 GPU information: 00:02.0 VGA compatible controller [0300]: Intel Corporation Alder Lake-P GT2 [Iris Xe Graphics] [8086:46a6] (rev 0c) (prog-if 00 [VGA controller]) os-release: ANSI_COLOR="1;34" BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues" BUILD_ID="24.11.20240701.8217656" DOCUMENTATION_URL="https://nixos.org/learn.html" HOME_URL="https://nixos.org/" ID=nixos IMAGE_ID="" IMAGE_VERSION="" LOGO="nix-snowflake" NAME=NixOS PRETTY_NAME="NixOS 24.11 (Vicuna)" SUPPORT_URL="https://nixos.org/community.html" VERSION="24.11 (Vicuna)" VERSION_CODENAME=vicuna VERSION_ID="24.11" plugins: ======Config-Start====== Config File: /home/user/.config/hypr/hyprland.conf: Read Succeeded # See https://wiki.hyprland.org/Configuring/Keywords/ for more ############################################# # See https://wiki.hyprland.org/Configuring/Monitors/ monitor=,preferred,auto,auto # Execute your favorite apps at launch exec-once=dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY exec-once = waybar & nm-applet & hyprpaper & firefox ############################################# # source = ~/.config/hypr/myColors.conf ############################################# env = XCURSOR_SIZE,36 ############################################# # For all categories, see https://wiki.hyprland.org/Configuring/Variables/ input { kb_layout = us kb_variant = kb_model = kb_options = kb_rules = follow_mouse = 1 touchpad { natural_scroll = yes } sensitivity = 0 # -1.0 - 1.0, 0 means no modification. } general { # See https://wiki.hyprland.org/Configuring/Variables/ for more gaps_in = 0 gaps_out = 0 border_size = 0 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 = 0 #10 blur { enabled = false size = 3 passes = 1 } drop_shadow = no shadow_range = 4 shadow_render_power = 3 col.shadow = rgba(1a1a1aee) } animations { enabled = no # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more bezier = myBezier, 0.05, 0.9, 0.1, 1.05 animation = windows, 1, 7, myBezier animation = windowsOut, 1, 7, default, popin 80% animation = border, 1, 10, default animation = borderangle, 1, 8, default animation = fade, 1, 7, default animation = workspaces, 1, 6, default } dwindle { # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below preserve_split = yes # you probably want this } #master { # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more # new_is_master = true #} # errored on 2024-06-26 master { new_status = master } 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 #} ############################################# # 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 ############################################# # See https://wiki.hyprland.org/Configuring/Keywords/ for more $mainMod = SUPER ############################################# # Move focus with mainMod + arrow keys bind = $mainMod, left, movefocus, l bind = $mainMod, right, movefocus, r bind = $mainMod, up, movefocus, u bind = $mainMod, down, movefocus, d # Switch workspaces with mainMod + [0-9] 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 # Move active window to a workspace with mainMod + SHIFT + [0-9] 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 # Scroll through existing workspaces with mainMod + scroll bind = $mainMod, mouse_down, workspace, e+1 bind = $mainMod, mouse_up, workspace, e-1 ############################################# # Move/resize windows with mainMod + LMB/RMB and dragging bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow bind = $mainMod SHIFT, right, resizeactive, 10 0 bind = $mainMod SHIFT, left, resizeactive, -10 0 bind = $mainMod SHIFT, up, resizeactive, 0 -10 bind = $mainMod SHIFT, down, resizeactive, 0 10 bind = $mainMod SHIFT, L, movewindow, r bind = $mainMod ALT, right, movewindow, r bind = $mainMod SHIFT, H, movewindow, l bind = $mainMod ALT, left, movewindow, l bind = $mainMod SHIFT, K, movewindow, u bind = $mainMod ALT, up, movewindow, u bind = $mainMod SHIFT, J, movewindow, d bind = $mainMod ALT, down, movewindow, d ############################################# bind = $mainMod, C, killactive, bind = $mainMod, M, exit, bind = $mainMod, V, togglefloating, bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, J, togglesplit, # dwindle ############################################# bind = $mainMod, Q, exec, alacritty bind = $mainMod, E, exec, dolphin bind = $mainMod, R, exec, wofi --show drun bind = $mainMod, F, exec, firefox bind= , XF86MonBrightnessDown , exec , brightnessctl set 5%- bind= , XF86MonBrightnessUp , exec , brightnessctl set +5% # bind = , XF86MonBrightnessDown , exec , brillo -q -U 5 # bind = , XF86MonBrightnessUp , exec , brillo -q -A 5 ======Config-End======== ```

Description

hi i'm using a pretty new version of hyprland and before i had

master {
    # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
    new_is_master = true
}

recently this became invalid so i looked in the docs and found this similar sounding config

master {
  new_status = master
}

however, since this time, i've had firefox windows appear over my terminal windows (sometimes) and then i can't ever get them to behave like i expected. i don't want overlapping at all right now, i thought setting them all to master would work, but apparently i'm missing something.

what part of my config is making it so sometimes the firefox window will ignore my other windows and stay fullscreen? the windows that do this also go on top of other firefox windows i spawn, so even ctrl+f for a firefox window 'does nothing' until i move the firefox window that is overlaid on top to another workspace and the rest that is hidden beneath it is then accessible.

some of my firefox windows behave correctly, if i hit ctrl+q they go to half-size and my new terminal window appears. it seems like it's certain types of new windows, i had it once with the first firefox window that launches on login, i also had it just now when i 'unclosed' the previous window using ctrl+shift+n

How to reproduce

use new hyperland config, open and close firefox and terminal windows, ?something? eventually causes some windows to become independent of the others and those windows will always be on top and won't ever split screen

Crash reports, logs, images, videos

No response

vaxerski commented 3 months ago

you mean... maximizing?

dezren39 commented 3 months ago

sure. how do i turn off maximizing? i want all windows in a given workspace to always be visible. this problem only recently started, i don't know if it's because of 'maximizing'. i want tiling window manager mode unless i explicitly make a window 'floating'.

MightyPlaza commented 3 months ago

sure. how do i turn off maximizing? i want all windows in a given workspace to always be visible. this problem only recently started, i don't know if it's because of 'maximizing'. i want tiling window manager mode unless i explicitly make a window 'floating'.

the default config has the following line which likely fixes your issues with maximizing

windowrulev2 = suppressevent maximize, class:.* # You'll probably like this.