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.58k stars 902 forks source link

When running cs2 #7277

Closed mxaddict closed 3 months ago

mxaddict commented 3 months ago

Regression?

No

System Info and Version

System/Version info ```sh Hyprland, built from branch main at commit 4fdc0d55e4b44bb5300679025d2378fb6de0cae4 (eventloop: don't dispatch in enterLoop). Date: Sat Aug 10 06:04:26 2024 Tag: v0.42.0-5-g4fdc0d55, commits: 5074 flags: (if any) System Information: System name: Linux Node name: mxaddict-pc Release: 6.10.3-arch1-2 Version: #1 SMP PREEMPT_DYNAMIC Tue, 06 Aug 2024 07:21:19 +0000 GPU information: 03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX/7900M] [1002:744c] (rev c8) (prog-if 00 [VGA controller]) 18:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev c1) (prog-if 00 [VGA controller]) os-release: NAME="Arch Linux" PRETTY_NAME="Arch Linux" ID=arch BUILD_ID=rolling ANSI_COLOR="38;2;23;147;209" HOME_URL="https://archlinux.org/" DOCUMENTATION_URL="https://wiki.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues" PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" LOGO=archlinux-logo plugins: ======Config-Start====== Config File: /home/mxaddict/.config/hypr/hyprland.conf: Read Succeeded # Please note not all available settings / options are set here. # For a full list, see the wiki https://wiki.hyprland.org/ # See https://wiki.hyprland.org/Configuring/Monitors/ source=~/.config/hypr/monitors.conf source=~/.config/hypr/workspaces.conf # See https://wiki.hyprland.org/Configuring/Keywords/ for more # Execute your favorite apps at launch exec-once = hyprpaper exec-once = waybar exec-once = findex-daemon exec-once = swaync exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec-once = dbus-update-activation-environment --systemd --all exec-once = sleep 30; nm-applet exec-once = sleep 30; blueman-applet # Fix qt application cursor size env = HYPRCURSOR_THEME,Bibata-Modern-Ice env = HYPRCURSOR_SIZE,24 # Themes env = CLUTTER_BACKEND,wayland env = GTK_THEME,Lavanda-Dark env = QT_AUTO_SCREEN_SCALE_FACTOR,1 env = QT_QPA_PLATFORMTHEME,qt6ct env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1 env = XDG_CURRENT_DESKTOP,Hyprland env = XDG_SESSION_DESKTOP,Hyprland env = XDG_SESSION_TYPE,wayland # Tearing cause AMDGPU does not work without it yet env = WLR_DRM_NO_ATOMIC,1 misc { disable_hyprland_logo = yes # vrr = 1 } # For all categories, see https://wiki.hyprland.org/Configuring/Variables/ input { kb_layout = us kb_variant = kb_model = kb_options = kb_rules = follow_mouse = yes natural_scroll = yes touchpad { natural_scroll = yes } sensitivity = 0 # -1.0 - 1.0, 0 means no modification. force_no_accel = yes } general { # See https://wiki.hyprland.org/Configuring/Variables/ for more gaps_in = 4 gaps_out = 8 border_size = 2 col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg col.inactive_border = rgba(595959aa) layout = dwindle # Tearing allow_tearing = true } decoration { # See https://wiki.hyprland.org/Configuring/Variables/ for more rounding = 4 drop_shadow = yes shadow_range = 4 shadow_render_power = 3 col.shadow = rgba(1a1a1aee) blur:enabled = no } animations { enabled = yes # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more bezier = fafb, 0.05, 0.9, 0.1, 1.05 animation = windows, 1, 7, fafb animation = windowsOut, 1, 7, fafb, popin 80% animation = border, 1, 10, fafb animation = borderangle, 1, 8, fafb animation = fade, 1, 7, fafb animation = workspaces, 1, 6, fafb } dwindle { # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more pseudotile = yes # ??? preserve_split = yes # you probably want this } # Findex windowrulev2 = float, class:^(findex)$ windowrulev2 = noanim, class:^(findex)$ windowrulev2 = noborder, class:^(findex)$ windowrulev2 = noshadow, class:^(findex)$ # Tearing apps windowrulev2 = immediate, class:^(cs2)$ # WINE STUFF windowrulev2 = opacity 0.0 override 0.0 override,class:^(explorer.exe)$ windowrulev2 = move 0 0,class:^(explorer.exe)$ windowrulev2 = noanim,class:^(explorer.exe)$ windowrulev2 = nofocus,class:^(explorer.exe)$ windowrulev2 = noinitialfocus,class:^(explorer.exe)$ windowrulev2 = workspace 10 silent,class:^(explorer.exe)$ # Make apps opaque when in focus windowrule = opacity 1.00 0.95,^(.*)$ # Force some apps/windows to be floating windowrulev2 = float,title:^(Calculator)(.*)$ windowrulev2 = float,title:^(MetaMask)(.*)$ windowrulev2 = float,title:^(Steam - News)(.*)$ windowrulev2 = float,title:^(Friends List)(.*)$ windowrulev2 = float,title:^(btop)(.*)$ windowrulev2 = float,class:^(nm-connection-editor)$ windowrulev2 = float,class:^(blueman-manager)$ windowrulev2 = float,class:^(pavucontrol)$ windowrulev2 = float,class:^(chrome-bhghoamapcdpbohphigoooaddinpkbai.*)$ windowrulev2 = float,class:^(chrome-aholpfdialjgjfhomihkjbmgjidlcdno.*)$ windowrulev2 = float,class:^(nwg-look)$ windowrulev2 = float,class:^(nwg-displays)$ # Hide the sharing screen window windowrulev2 = opacity 0.0 override 0.0 override,title:^(.*)(is sharing your screen.)$ windowrulev2 = move 0 0,title:^(.*)(is sharing your screen.)$ windowrulev2 = noanim,title:^(.*)(is sharing your screen.)$ windowrulev2 = nofocus,title:^(.*)(is sharing your screen.)$ windowrulev2 = noinitialfocus,title:^(.*)(is sharing your screen.)$ windowrulev2 = workspace 10 silent,title:^(.*)(is sharing your screen.)$ # Workspace rules #windowrule = workspace 1 silent, Chromium windowrule = workspace 2 silent, discord windowrule = workspace 2 silent, teams-for-linux windowrule = workspace 3 silent, thunderbird windowrule = workspace 7 silent, Exodus windowrule = workspace 8 silent, lutris windowrule = workspace 8 silent, steam windowrule = workspace 9 silent, obs windowrule = workspace 9 silent, Spotify #windowrule = workspace 10 silent, alacritty # See https://wiki.hyprland.org/Configuring/Keywords/ for more $mod = super # START??? bind = $mod shift, g, exec, notify-send "Join them not beat them"; .start # Notification center bind = $mod, n, exec, swaync-client -t -sw bind = $mod shift, n, exec, swaync-client -d -sw bind = $mod alt, n, exec, swaync-client -C -sw # App binds bind = $mod, b, exec, chromium bind = $mod, c, exec, alacritty bind = $mod, e, exec, nautilus -w bind = $mod, m, exec, hyprlock bind = $mod shift, m, exec, systemctl suspend && hyprlock bind = $mod, space, exec, echo 1 > ~/.config/findex/toggle_file bind = $mod, r, exec, gnome-calculator bind = $mod, o, exec, spotify-launcher bind = $mod, p, exec, grimblast --notify --freeze copysave area ~/Captures/$(date "+%Y%m%d_%Hh%Mm%Ss").png bind = $mod ctrl, p, exec, hyprpicker --no-fancy | wl-copy --trim-newline && notify-send "Picked $(wl-paste)" bind = $mod shift, p, exec, kooha # Systemcontrol binds bind = $mod, f, fullscreen, 1 bind = $mod shift, f, fullscreen, 0 bind = $mod, q, killactive, bind = $mod, s, togglesplit, # dwindle bind = $mod, v, togglefloating, # Volume control bind = $mod, up, exec, pactl -- set-sink-volume @DEFAULT_SINK@ +5% bind = $mod, down, exec, pactl -- set-sink-volume @DEFAULT_SINK@ -5% bind = $mod, left, exec, pactl -- set-sink-mute @DEFAULT_SINK@ on bind = $mod, right, exec, pactl -- set-sink-mute @DEFAULT_SINK@ off # Microphone volume control bind = $mod shift, up, exec, pactl -- set-source-volume @DEFAULT_SOURCE@ +5% bind = $mod shift, down, exec, pactl -- set-source-volume @DEFAULT_SOURCE@ -5% bind = $mod shift, left, exec, pactl -- set-source-mute @DEFAULT_SOURCE@ on bind = $mod shift, right, exec, pactl -- set-source-mute @DEFAULT_SOURCE@ off # Move focus with mod + hjkl keys bind = $mod, h, movefocus, l bind = $mod, l, movefocus, r bind = $mod, k, movefocus, u bind = $mod, j, movefocus, d # Window TAB for switching while in fullscreen or fakefullscreen bind = $mod, tab, cyclenext bind = $mod shift, TAB, cyclenext, prev # Move window with mod + hjkl keys bind = $mod shift, h, movewindow, l bind = $mod shift, l, movewindow, r bind = $mod shift, k, movewindow, u bind = $mod shift, j, movewindow, d # Switch workspaces with mod + [0-9] bind = $mod, 1, workspace, 1 bind = $mod, 2, workspace, 2 bind = $mod, 3, workspace, 3 bind = $mod, 4, workspace, 4 bind = $mod, 5, workspace, 5 bind = $mod, 6, workspace, 6 bind = $mod, 7, workspace, 7 bind = $mod, 8, workspace, 8 bind = $mod, 9, workspace, 9 bind = $mod, 0, workspace, 10 # Move active window to a workspace with mod + shift + [0-9] bind = $mod shift, 1, movetoworkspace, 1 bind = $mod shift, 2, movetoworkspace, 2 bind = $mod shift, 3, movetoworkspace, 3 bind = $mod shift, 4, movetoworkspace, 4 bind = $mod shift, 5, movetoworkspace, 5 bind = $mod shift, 6, movetoworkspace, 6 bind = $mod shift, 7, movetoworkspace, 7 bind = $mod shift, 8, movetoworkspace, 8 bind = $mod shift, 9, movetoworkspace, 9 bind = $mod shift, 0, movetoworkspace, 10 # Move/resize windows with mod + LMB/RMB and dragging bindm = $mod, mouse:272, movewindow bindm = $mod, mouse:273, resizewindow Config File: /home/mxaddict/.config/hypr/monitors.conf: Read Succeeded # Generated by nwg-displays on 2024-08-10 at 22:22:45. Do not edit manually. monitor=desc:ASUSTek COMPUTER INC XG27ACS S2LMTF053713,2560x1440@180.0,0x0,1.0 Config File: /home/mxaddict/.config/hypr/workspaces.conf: Read Succeeded ======Config-End======== ```

Description

When running CS2 in fullscreen, resolution is correct, but image has black bar on right side

Running resolution 1920x1440 on a 2560x1440 monitor

When running in fake fullscreen, the image is correct (stretched)

How to reproduce

Run CS2 on fullscreen with a 4:3 resolution on a 16:9 display

Crash reports, logs, images, videos

20240811_01h16m26s 20240811_01h16m34s

mxaddict commented 3 months ago

Is there a way to set the app to fullscreen but also stretch the image?

I assume if there is a way, immediate mode would have to be off.

mxaddict commented 3 months ago

Actually not sure if this is a hyprland issue, I just tested dota 2 and seems to be working fine, might be a cs2 specific issue

mxaddict commented 3 months ago

Closing as seems this is a cs2 specific issue and not a hyprland one.