Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom resolutions not working #8886

Closed
1 task done
amadejkastelic opened this issue Dec 29, 2024 · 2 comments · Fixed by #8897
Closed
1 task done

Custom resolutions not working #8886

amadejkastelic opened this issue Dec 29, 2024 · 2 comments · Fixed by #8897
Labels
bug Something isn't working

Comments

@amadejkastelic
Copy link

Already reported ? *

  • I have searched the existing open and closed issues.

Regression?

Yes

System Info and Version

System/Version info
Hyprland 0.46.0 built from branch  at commit 3f40d6d9361d0c5fec558b7549e58203fbe5cbd7  ().
Date: 2024-12-29
Tag: v0.46.0, commits: 5599
built against:
 aquamarine 0.5.1
 hyprlang 0.6.0
 hyprutils 0.3.0
 hyprcursor 0.1.11
 hyprgraphics 0.1.1


no flags were set


System Information:
System name: Linux
Node name: ryzen
Release: 6.12.6-cachyos
Version: #1-NixOS SMP PREEMPT_DYNAMIC Thu Dec 19 17:13:24 UTC 2024


GPU information: 
0d:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] [1002:73bf] (rev c0) (prog-if 00 [VGA controller])


os-release: ANSI_COLOR="0;38;2;126;186;228"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="25.05.20241227.634fd46"
CPE_NAME="cpe:/o:nixos:nixos:25.05"
DEFAULT_HOSTNAME=nixos
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
ID_LIKE=""
IMAGE_ID=""
IMAGE_VERSION=""
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 25.05 (Warbler)"
SUPPORT_URL="https://nixos.org/community.html"
VARIANT=""
VARIANT_ID=""
VENDOR_NAME=NixOS
VENDOR_URL="https://nixos.org/"
VERSION="25.05 (Warbler)"
VERSION_CODENAME=warbler
VERSION_ID="25.05"


plugins:
  csgo-vulkan-fix by Vaxry ver 1.2
  dynamic-cursors by Virt ver 0.1

======Config-Start======


Config File: /home/amadejk/.config/hypr/hyprland.conf: Read Succeeded
exec-once = /nix/store/fizhmjga78lvd077wrf6zpi3jn36ml9v-dbus-1.14.10/bin/dbus-update-activation-environment --systemd --all && systemctl --user stop graphical-session.target && systemctl --user start hyprland-session.target
plugin=/nix/store/lmwkfs9mfmfyjp9b74jh7dr1h3c0c7v2-csgo-vulkan-fix-0.1/lib/libcsgo-vulkan-fix.so
plugin=/nix/store/y9q9n3qdrzfnrx00y4ks68q8qwb7676l-hypr-dynamic-cursors/lib/libhypr-dynamic-cursors.so
$mod=SUPER
source=/nix/store/7yyrp9d7gf1vxjg3l6c8rh0vi3hg8zzm-hyprland-c388ac5/mocha.conf
source=/nix/store/3w4kdi6k01m95h89vln71ygdk3ms92ci-hyprland-pink-accent.conf
animations {
  animation=border, 1, 2, default
  animation=fade, 1, 4, default
  animation=windows, 1, 3, default, popin 80%
  animation=workspaces, 1, 2, default, slide
  enabled=true
}

cursor {
  enable_hyprcursor=true
  inactive_timeout=0
  no_hardware_cursors=false
}

debug {
  disable_logs=true
}

decoration {
  blur {
    brightness=1.000000
    contrast=1.000000
    enabled=true
    ignore_opacity=true
    noise=0.020000
    passes=3
    size=10
  }

  shadow {
    color=rgba(00000055)
    enabled=true
    ignore_window=true
    offset=0 2
    range=20
    render_power=3
  }
  rounding=16
}

dwindle {
  preserve_split=true
  pseudotile=true
}

general {
  allow_tearing=true
  border_size=1
  col.active_border=rgba(88888888)
  col.inactive_border=rgba(00000088)
  gaps_in=5
  gaps_out=5
  resize_on_border=true
}

group {
  groupbar {
    font_size=16
    gradients=false
  }
  col.border_active=rgba(41417888)
  col.border_inactive=rgba(41417888)
}

input {
  touchdevice {
    enabled=false
  }
  follow_mouse=1
  force_no_accel=true
  kb_layout=si
}

misc {
  animate_mouse_windowdragging=false
  disable_autoreload=true
  force_default_wallpaper=0
  render_ahead_of_time=false
  render_unfocused_fps=60
  vrr=0
}

render {
  direct_scanout=true
  explicit_sync=true
  explicit_sync_kms=true
}

xwayland {
  force_zero_scaling=true
  use_nearest_neighbor=false
}
bind=$mod, Q, killactive,
bind=$mod, F, fullscreen,
bind=$mod SHIFT, N, changegroupactive, f
bind=$mod SHIFT, P, changegroupactive, b
bind=$mod, W, togglefloating,
bind=$mod, P, pseudo,
bind=$mod ALT, ,resizeactive,
bind=$mod, M, exec, hyprctl keyword dwindle:no_gaps_when_only $(($(hyprctl getoption dwindle:no_gaps_when_only -j | jaq -r '.int') ^ 1))
bind=$mod, G, workspace, name:Gaming
bind=$mod SHIFT, G, movetoworkspace, name:Gaming
bind=$mod, T, exec, kitty
bind=$mod, Escape, exec, pidof wlogout || wlogout -p layer-shell -b 2
bind=$mod, L, exec, pidof hyprlock || hyprlock
bind=$mod, O, exec, run-as-service wl-ocr
bind=$mod, E, exec, pkill rofi || rofimoji -a clipboard -s light -r 🔍
bind=$mod, V, exec, pkill rofi || rofi -p '🔍' -modi clipboard:rofi-cliphist -show clipboard -show-icons
bind=$mod, left, movefocus, l
bind=$mod, right, movefocus, r
bind=$mod, up, movefocus, u
bind=$mod, down, movefocus, d
bind=$mod, R, exec, pkill anyrun || anyrun
bind=, Print, exec, shader=$(hyprshade current) && hyprshade off && grimblast --freeze --notify copy area; hyprshade on "$shader"
bind=$mod SHIFT, R, exec, shader=$(hyprshade current) && hyprshade off && grimblast --freeze --notify copy area; hyprshade on "$shader"
bind=CTRL, Print, exec, grimblast --notify --cursor copysave output
bind=$mod SHIFT CTRL, R, exec, grimblast --notify --cursor copysave output
bind=ALT, Print, exec, grimblast --notify --cursor copysave screen
bind=$mod SHIFT ALT, R, exec, grimblast --notify --cursor copysave screen
bind=$mod, 1, workspace, 1
bind=$mod SHIFT, 1, movetoworkspace, 1
bind=$mod, 2, workspace, 2
bind=$mod SHIFT, 2, movetoworkspace, 2
bind=$mod, 3, workspace, 3
bind=$mod SHIFT, 3, movetoworkspace, 3
bind=$mod, 4, workspace, 4
bind=$mod SHIFT, 4, movetoworkspace, 4
bind=$mod, 5, workspace, 5
bind=$mod SHIFT, 5, movetoworkspace, 5
bind=$mod, 6, workspace, 6
bind=$mod SHIFT, 6, movetoworkspace, 6
bind=$mod, 7, workspace, 7
bind=$mod SHIFT, 7, movetoworkspace, 7
bind=$mod, 8, workspace, 8
bind=$mod SHIFT, 8, movetoworkspace, 8
bind=$mod, 9, workspace, 9
bind=$mod SHIFT, 9, movetoworkspace, 9
bind=$mod, 0, workspace, 10
bind=$mod SHIFT, 0, movetoworkspace, 10
bindl=, XF86AudioPlay, exec, playerctl play-pause
bindl=, XF86AudioPrev, exec, playerctl previous
bindl=, XF86AudioNext, exec, playerctl next
bindl=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindl=, XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
bindle=, XF86AudioRaiseVolume, exec, wpctl set-volume -l '1.0' @DEFAULT_AUDIO_SINK@ 6%+
bindle=, XF86AudioLowerVolume, exec, wpctl set-volume -l '1.0' @DEFAULT_AUDIO_SINK@ 6%-
bindm=$mod, mouse:272, movewindow
bindm=$mod, mouse:273, resizewindow
bindm=$mod ALT, mouse:272, resizewindow
env=QT_WAYLAND_DISABLE_WINDOWDECORATION,1
env=XDG_SESSION_TYPE,wayland
env=XDG_CURRENT_DESKTOP,Hyprland
env=XDG_SESSION_DESKTOP,Hyprland
env=GDK_BACKEND,wayland
env=SDL_VIDEODRIVER,wayland
env=QT_QPA_PLATFORM,wayland;xcb
env=HYPRCURSOR_THEME,HyprBibataModernIceSVG
env=HYPRCURSOR_SIZE,24
env=STEAM_FORCE_DESKTOPUI_SCALING,1.25
exec-once=hyprctl setcursor HyprBibataModernIceSVG 24
exec-once=hyprlock
exec-once=waybar
exec-once=wl-paste --watch cliphist store
layerrule=blur, ^(calendar|notifications|osd|system-menu|anyrun|bar|gtk-layer-shell)$
layerrule=xray 1, ^(bar|gtk-layer-shell)$
layerrule=ignorealpha 0.2, ^(bar|gtk-layer-shell)$
layerrule=ignorealpha 0.5, ^(calendar|notifications|osd|system-menu|anyrun|music)$
monitor=DP-2,5120x1440@120,0x0,1.25
windowrulev2=float, title:^(Media viewer)$
windowrulev2=float, class:^(pavucontrol)$
windowrulev2=float, class:^(nm-connection-editor)$
windowrulev2=float, title:^(Spotify( Premium)?)$
windowrulev2=float, class:^(vesktop)$
windowrulev2=opacity 0.80 0.70, class:^(pavucontrol)$
windowrulev2=opacity 0.80 0.70, class:^(nm-connection-editor)$
windowrulev2=opacity 0.80 0.70, class:^(vesktop)$
windowrulev2=opacity 0.80 0.70, title:^(Spotify( Premium)?)$
windowrulev2=float, title:^(Picture-in-Picture)$
windowrulev2=pin, title:^(Picture-in-Picture)$
windowrulev2=workspace special silent, title:^(Firefox — Sharing Indicator)$
windowrulev2=workspace special silent, title:^(Zen — Sharing Indicator)$
windowrulev2=workspace special silent, title:^(.*is sharing (your screen|a window).)$
windowrulev2=workspace 9 silent, title:^(Spotify( Premium)?)$
windowrulev2=center, title:^(Spotify( Premium)?)$
windowrulev2=size 1920 1080, title:^(Spotify( Premium)?)$
windowrulev2=workspace 8 silent, class:^(vesktop)$
windowrulev2=center, class:^(vesktop)$
windowrulev2=size 1920 1080, class:^(vesktop)$
windowrulev2=workspace 10 silent, class:^(steam)
windowrulev2=workspace name:Gaming, class:gamescope
windowrulev2=workspace name:Gaming, initialclass:cs2
windowrulev2=workspace name:Gaming, initialclass:^(steam_app_)(.*)
windowrulev2=immediate, initialclass:^(steam_app_)(.*)$
windowrulev2=fullscreen, initialclass:^(steam_app_)(.*)$
windowrulev2=fullscreen, initialclass:cs2
windowrulev2=renderunfocused, initialclass:^(steam_app_)(.*)^(steam_app_d+|cs2)$
windowrulev2=idleinhibit focus, class:^(mpv|.+exe|celluloid)$
windowrulev2=idleinhibit focus, class:^(firefox)$, title:^(.*YouTube.*)$
windowrulev2=idleinhibit fullscreen, class:^(firefox)$
windowrulev2=dimaround, class:^(gcr-prompter)$
windowrulev2=dimaround, class:^(xdg-desktop-portal-gtk)$
windowrulev2=float, class:^(xdg-desktop-portal-gtk)$
windowrulev2=center, class:^(xdg-desktop-portal-gtk)$
windowrulev2=size 1920 1080, class:^(xdg-desktop-portal-gtk)$
windowrulev2=dimaround, class:^(polkit-gnome-authentication-agent-1)$
windowrulev2=center, class:^(.*jetbrains.*)$, title:^(Confirm Exit|Open Project|win424|win201|splash)$
windowrulev2=size 640 400, class:^(.*jetbrains.*)$, title:^(splash)$
plugin {
  csgo-vulkan-fix {
    res_w = 1280
    res_h = 960
    class = cs2
    fix_mouse = true
  }
  dynamic-cursors {
    enabled = true
    mode = none
    shake {
      enabled = true
      nearest = false
      threshold = 3.0
      timeout = 500
      base = 2.0
    }
    hyprcursor {
      enabled = true
      nearest = false
    }
  }
}



Config File: /nix/store/7yyrp9d7gf1vxjg3l6c8rh0vi3hg8zzm-hyprland-c388ac5/mocha.conf: Read Succeeded

$rosewater = rgb(f5e0dc)
$rosewaterAlpha = f5e0dc

$flamingo = rgb(f2cdcd)
$flamingoAlpha = f2cdcd

$pink = rgb(f5c2e7)
$pinkAlpha = f5c2e7

$mauve = rgb(cba6f7)
$mauveAlpha = cba6f7

$red = rgb(f38ba8)
$redAlpha = f38ba8

$maroon = rgb(eba0ac)
$maroonAlpha = eba0ac

$peach = rgb(fab387)
$peachAlpha = fab387

$yellow = rgb(f9e2af)
$yellowAlpha = f9e2af

$green = rgb(a6e3a1)
$greenAlpha = a6e3a1

$teal = rgb(94e2d5)
$tealAlpha = 94e2d5

$sky = rgb(89dceb)
$skyAlpha = 89dceb

$sapphire = rgb(74c7ec)
$sapphireAlpha = 74c7ec

$blue = rgb(89b4fa)
$blueAlpha = 89b4fa

$lavender = rgb(b4befe)
$lavenderAlpha = b4befe

$text = rgb(cdd6f4)
$textAlpha = cdd6f4

$subtext1 = rgb(bac2de)
$subtext1Alpha = bac2de

$subtext0 = rgb(a6adc8)
$subtext0Alpha = a6adc8

$overlay2 = rgb(9399b2)
$overlay2Alpha = 9399b2

$overlay1 = rgb(7f849c)
$overlay1Alpha = 7f849c

$overlay0 = rgb(6c7086)
$overlay0Alpha = 6c7086

$surface2 = rgb(585b70)
$surface2Alpha = 585b70

$surface1 = rgb(45475a)
$surface1Alpha = 45475a

$surface0 = rgb(313244)
$surface0Alpha = 313244

$base = rgb(1e1e2e)
$baseAlpha = 1e1e2e

$mantle = rgb(181825)
$mantleAlpha = 181825

$crust = rgb(11111b)
$crustAlpha = 11111b


Config File: /nix/store/3w4kdi6k01m95h89vln71ygdk3ms92ci-hyprland-pink-accent.conf: Read Succeeded
$accent = $pink
$accentAlpha = $pinkAlpha

======Config-End========

Description

Custom resolutions are not working anymore after #8804.

› hyprctl keyword monitor "DP-2,2560x1440@120,0x0,1"
ok
› hyprctl monitors                                  
Monitor DP-2 (ID 0):
	2560x1440@59.95100 at 0x0
	description: Samsung Electric Company C49RG9x H1AK500000
	make: Samsung Electric Company
	model: C49RG9x
	serial: H1AK500000
	active workspace: 1 (1)
	special workspace: 0 ()
	reserved: 0 31 0 0
	scale: 1.00
	transform: 0
	focused: yes
	dpmsStatus: 1
	vrr: false
	solitary: 0
	activelyTearing: false
	directScanoutTo: 0
	disabled: false
	currentFormat: XRGB8888
	mirrorOf: none
	availableModes: 5120x1440@119.97Hz 3840x1080@119.97Hz 5120x1440@100.00Hz 5120x1440@59.98Hz 3840x1080@99.96Hz 3840x1080@59.97Hz 2560x1440@59.95Hz 2560x1080@120.00Hz 2560x1080@119.88Hz 2560x1080@100.00Hz 2560x1080@60.00Hz 2560x1080@60.00Hz 2560x1080@59.94Hz 1920x1200@119.97Hz 1920x1080@120.00Hz 1920x1080@119.88Hz 1920x1080@100.00Hz 1920x1080@60.00Hz 1920x1080@60.00Hz 1920x1080@59.94Hz 1600x1200@119.97Hz 1680x1050@59.95Hz 1600x900@60.00Hz 1280x1024@75.03Hz 1280x1024@60.02Hz 1440x900@59.89Hz 1280x800@59.81Hz 1152x864@75.00Hz 1280x720@60.00Hz 1280x720@59.94Hz 1024x768@75.03Hz 1024x768@70.07Hz 1024x768@60.00Hz 832x624@74.55Hz 800x600@75.00Hz 800x600@72.19Hz 800x600@60.32Hz 800x600@56.25Hz 640x480@75.00Hz 640x480@72.81Hz 640x480@66.67Hz 640x480@60.00Hz 640x480@59.94Hz 720x400@70.08Hz

How to reproduce

Try to set a custom resolution.

Crash reports, logs, images, videos

No response

@amadejkastelic amadejkastelic added the bug Something isn't working label Dec 29, 2024
@ikalco
Copy link
Contributor

ikalco commented Dec 30, 2024

try this
patch.txt

@amadejkastelic
Copy link
Author

try this patch.txt

It works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants