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
19.6k stars 826 forks source link

Copyq menu issues with hyprland scaling on search #6941

Open cafetestrest opened 1 month ago

cafetestrest commented 1 month ago

Regression?

No

System Info and Version

System/Version info ```sh Hyprland, built from branch at commit f642fb97df5c69267a03452533de383ff8023570 (). Date: 2024-07-20 Tag: , commits: f642fb97df5c69267a03452533de383ff8023570 flags: (if any) System Information: System name: Linux Node name: nixos Release: 6.6.40 Version: #1-NixOS SMP PREEMPT_DYNAMIC Mon Jul 15 07:24:53 UTC 2024 GPU information: 09:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev ef) (prog-if 00 [VGA controller]) os-release: ANSI_COLOR="1;34" BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues" BUILD_ID="24.05.20240717.c716603" 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.05 (Uakari)" SUPPORT_END="2024-12-31" SUPPORT_URL="https://nixos.org/community.html" VERSION="24.05 (Uakari)" VERSION_CODENAME=uakari VERSION_ID="24.05" plugins: ======Config-Start====== Config File: /home/bajic/.config/hypr/hyprland.conf: Read Succeeded exec-once = /nix/store/nn54yahdasinv9hyk1hjwpakw8sqqyq0-dbus-1.14.10/bin/dbus-update-activation-environment --systemd DISPLAY HYPRLAND_INSTANCE_SIGNATURE WAYLAND_DISPLAY XDG_CURRENT_DESKTOP && systemctl --user stop hyprland-session.target && systemctl --user start hyprland-session.target animations { 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 enabled=yes } binds { allow_workspace_cycles=true } cursor { hotspot_padding=1 } decoration { blur { enabled=true new_optimizations=on passes=1 size=3 } col.shadow=rgba(1a1a1aee) drop_shadow=yes rounding=10 shadow_range=4 shadow_render_power=3 } dwindle { preserve_split=yes pseudotile=yes } general { border_size=2 col.active_border=rgba(33ccffee) rgba(00ff99ee) 45deg col.inactive_border=rgba(595959aa) gaps_in=5 gaps_out=10 layout=dwindle resize_on_border=true } gestures { workspace_swipe=false } input { touchpad { disable_while_typing=true drag_lock=true natural_scroll=no } follow_mouse=1 kb_layout=us numlock_by_default=true sensitivity=0 } misc { disable_hyprland_logo=false disable_splash_rendering=true force_default_wallpaper=0 } plugin { hyprbars { buttons { button_size=0 col.close=rgba(ff111133) col.maximize=rgba(ffffff11) } bar_color=rgb(2a2a2a) bar_height=28 bar_text_font=Ubuntu Nerd Font bar_text_size=11 col_text=rgba(ffffffdd) } } xwayland { force_zero_scaling=true } bind=SUPER, C, exec, brave bind=SUPER SHIFT, I, exec, brave --incognito bind=SUPER, T, exec, terminator bind=SUPER, E, exec, nautilus bind=SUPER, V, exec, copyq toggle bind=SUPER, Print, exec, screenshot bind=SUPER SHIFT, S, exec, screenshot 1 bind=SUPER SHIFT, R, exec, ags quit; AGS_SKIP_V_CHECK=true ags bind=SUPER, space, exec, ags -t applauncher bind=ALT, space, exec, ags -t applauncher bind=,Print, exec, ags -r 'recorder.screenshot()' bind=SHIFT,Print, exec, ags -r 'recorder.screenshot(true)' bind=SUPER, L, exec, ags -t powermenu bind=SUPER, N, exec, ags -t weather bind=SUPER, S, exec, ags -t quicksettings bind=CTRL ALT, Delete, exec, xterm -e powermenu t bind=SUPER SHIFT, Delete, exec, xterm -e powermenu t bind=SUPER, Page_Up, exec, wpctl set-default $(wpctl status | grep "Digital Stereo (HDMI" | grep "\d+" -Po | head -n 1) && notify-send "Audio Output changed to HDMI" bind=SUPER, Page_Down, exec, wpctl set-default $(wpctl status | grep "SteelSeries Arctis 7 Game" | grep "\d+" -Po | head -n 1) && notify-send "Audio Output changed to Headset" bind=SUPER SHIFT, escape, exec, playerctl --all-players stop bind=CTRL ALT, BackSpace, exit bind=SUPER SHIFT, L, exit bind=SUPER, Q, killactive bind=SUPER, F, togglefloating bind=SUPER, M, fullscreen bind=SUPER SHIFT, M, fakefullscreen bind=SUPER, J, togglesplit bind=SUPER, P, pseudo bind=SUPER SHIFT, P, workspaceopt, allpseudo bind=SUPER SHIFT, F, workspaceopt, allfloat bind=SUPER, 0, workspace, 10 bind=SUPER SHIFT, 0, movetoworkspace, 10 bind=SUPER, up, movefocus, u bind=SUPER, down, movefocus, d bind=SUPER, right, movefocus, r bind=SUPER, left, movefocus, l bind=SUPER, mouse_up, workspace, e-1 bind=SUPER, mouse_down, workspace, e+1 bind=SUPER ALT, left, moveactive, -20 0 bind=SUPER ALT, right, moveactive, 20 0 bind=SUPER ALT, down, moveactive, 0 20 bind=SUPER ALT, up, moveactive, 0 -20 bind=SUPER SHIFT, up, movewindow, u bind=SUPER SHIFT, down, movewindow, d bind=SUPER SHIFT, right, movewindow, r bind=SUPER SHIFT, left, movewindow, l bind=SUPER ALT, up, swapwindow, u bind=SUPER ALT, down, swapwindow, d bind=SUPER ALT, right, swapwindow, r bind=SUPER ALT, left, swapwindow, l bind=SUPER, 1, workspace, 1 bind=SUPER, 2, workspace, 2 bind=SUPER, 3, workspace, 3 bind=SUPER, 4, workspace, 4 bind=SUPER, 5, workspace, 5 bind=SUPER, 6, workspace, 6 bind=SUPER, 7, workspace, 7 bind=SUPER, 8, workspace, 8 bind=SUPER, 9, workspace, 9 bind=SUPER SHIFT, 1, movetoworkspace, 1 bind=SUPER SHIFT, 2, movetoworkspace, 2 bind=SUPER SHIFT, 3, movetoworkspace, 3 bind=SUPER SHIFT, 4, movetoworkspace, 4 bind=SUPER SHIFT, 5, movetoworkspace, 5 bind=SUPER SHIFT, 6, movetoworkspace, 6 bind=SUPER SHIFT, 7, movetoworkspace, 7 bind=SUPER SHIFT, 8, movetoworkspace, 8 bind=SUPER SHIFT, 9, movetoworkspace, 9 binde=SUPER CTRL, right, resizeactive, 100 0 binde=SUPER CTRL, left, resizeactive, -100 0 binde=SUPER CTRL, up, resizeactive, 0 -100 binde=SUPER CTRL, down, resizeactive, 0 100 binde=SUPER SHIFT CTRL, right, resizeactive, 10 0 binde=SUPER SHIFT CTRL, left, resizeactive, -10 0 binde=SUPER SHIFT CTRL, up, resizeactive, 0 -10 binde=SUPER SHIFT CTRL, down, resizeactive, 0 10 bindl=,XF86AudioMicMute, exec, ags -r 'audio.microphone.isMuted = !audio.microphone.isMuted' bindl=,XF86AudioPlay, exec, playerctl play-pause bindl=,XF86AudioStop, exec, playerctl stop bindl=,XF86AudioPause, exec, playerctl pause bindl=,XF86AudioPrev, exec, playerctl previous bindl=,XF86AudioNext, exec, playerctl next bindl=SUPER, BackSpace, exec, pkill -SIGUSR1 hyprlock && hyprlock --immediate bindle=,XF86KbdBrightnessUp, exec, ags -r 'brightness.kbd++; indicator.kbd()' bindle=,XF86KbdBrightnessDown, exec, ags -r 'brightness.kbd--; indicator.kbd()' bindle=,XF86AudioLowerVolume, exec, pamixer -d 1 bindle=,XF86AudioRaiseVolume, exec, pamixer -i 1 bindle=,XF86AudioMute, exec, pamixer -t bindle=SUPER, Tab, cyclenext bindle=ALT, Tab, cyclenext bindle=SUPER SHIFT, Tab, cyclenext, prev bindle=ALT SHIFT, Tab, cyclenext, prev bindm=SUPER, mouse:273, resizewindow bindm=SUPER, mouse:272, movewindow env=QT_QPA_PLATFORM, wayland env=QT_QPA_PLATFORMTHEME, qt5ct env=GTK_THEME, Orchis-Dark env=XCURSOR_THEME, macOS-Monterey env=XCURSOR_SIZE, 24 env=HYPRCURSOR_SIZE, 24 exec-once=startup exec-once=hyprctl setcursor macOS-Monterey 24 layerrule=blur,rofi monitor=DP-3, 3840x2160, 0x0, 1 windowrule=float, ^(org.gnome.Calculator)$ windowrule=float, ^(pavucontrol)$ windowrule=float, ^(nm-connection-editor)$ windowrule=float, ^(blueberry.py)$ windowrule=float, ^(org.gnome.Settings)$ windowrule=float, ^(org.gnome.design.Palette)$ windowrule=float, ^(Color Picker)$ windowrule=float, ^(xdg-desktop-portal)$ windowrule=float, ^(xdg-desktop-portal-gnome)$ windowrule=float, ^(transmission-gtk)$ windowrule=float, ^(com.github.Aylur.ags)$ windowrule=float, ^(com.github.hluk.copyq)$ windowrule=float, ^(copyq)$ windowrule=float, ^(jetbrains-phpstorm)$ windowrule=float,Rofi windowrule=opacity 0.85,terminator windowrule=move cursor -50% -20%,^(com.github.hluk.copyq)$ windowrule=move cursor -50% -20%,^(copyq)$ windowrule=size 350 200,^(com.github.hluk.copyq)$ windowrule=size 350 200,^(copyq)$ windowrulev2=stayfocused,class:com.github.hluk.copyq windowrulev2=stayfocused,class:copyq windowrulev2=stayfocused,class:Rofi ======Config-End======== ```

Description

The issue is when I open command:

copyq menu

I get weird outlines / glitch of the program when doing some search screenshot attached.

I'm starting copyq like so:

QT_QPA_PLATFORM=wayland copyq --start-server

If I start it with QT_QPA_PLATFORM=xcb copyq I can not search for anything as it does not focus for me on hyprland.

I'm installing copyq via home-manager.

How to reproduce

Run command:

copyq menu

Type anything to search trough clipboard history.

Crash reports, logs, images, videos

5fa41d960242da98237a8de5f51cf500ebc94084

MahouShoujoMivutilde commented 1 month ago

Yeah, here is how copyq menu with $QT_QPA_PLATFORM=wayland;xcb looks for me on e728e56cbc6af0a9be1276b2cf8e019a894016e7

https://github.com/user-attachments/assets/3dfd9f5a-8cea-41d0-ad13-d6b3d52e1165

In a meantime:

windowrulev2 = float,class:copyq

# works fine
bind = SUPER SHIFT, c, exec, copyq show

Although I prefer my https://gist.github.com/MahouShoujoMivutilde/7113baadb13208d91f4271a28debc58b with dmenu replaced with tofi --fuzzy-match true (tofi)

Src

![21-07-2024-05_08_13-cropped](https://github.com/user-attachments/assets/d8bee1ce-deed-4777-b533-c17be282b35f)

cafetestrest commented 1 month ago

In a meantime:

windowrulev2 = float,class:copyq

# works fine
bind = SUPER SHIFT, c, exec, copyq show

Yeah, unfortunatly this leaves me with my current setup, though I have toggle instead of show as a workaround for now which works fine.

exec, copyq toggle

Thanks for the script, if this issue does not get resolved I'll have to implement something custom like that for my config.

BRS5672023 commented 1 month ago

Yeah, here is how copyq menu with $QT_QPA_PLATFORM=wayland;xcb looks for me on e728e56

04.52.Sunday.21.Jul.2024.mp4 In a meantime:

windowrulev2 = float,class:copyq

# works fine
bind = SUPER SHIFT, c, exec, copyq show

Although I prefer my https://gist.github.com/MahouShoujoMivutilde/7113baadb13208d91f4271a28debc58b with dmenu replaced with tofi --fuzzy-match true (tofi)

Src

Depend on repos, the class name on arch is com.github.hluk.copyq

MahouShoujoMivutilde commented 1 month ago

I'm on arch too, and apparently it now is. Huh. Well, both work because it doesn't need to match the full string unless between ^ and $.