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

Hyprland's IPC notifies the creation of workspaces with special:special:... in certain cases #3424

Open
Syndelis opened this issue Sep 25, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@Syndelis
Copy link
Contributor

Hyprland Version

Hyprland, built from branch at commit 96d555e dirty (). Tag: v0.29.1 flags: (if any)

Bug or Regression?

Bug

Description

I have the following keybind configured:

bind = SUPER SHIFT, S, movetoworkspace, special:scratchpad

When sending windows to this workspace, whether it already exists or not, Hyprland posts on its IPC the event createworkspace>>special:special:scratchpad. This is not much of a problem, since it's briefly followed by a destroyworkspace>>special:special:scratchpad, but it can mess with softwares that trim the special: part.

How to reproduce

  1. Add the following line to your Hyprland config:
    bind = SUPER SHIFT, S, movetoworkspace, special:scratchpad
    
  2. Connect to Hyprland's socket, via the following command:
    socat - UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock
    
  3. Send any window to this workspace via the keybind Super+Shift+S;
  4. Observe the logs and notice the creation and destruction of a workspace named special:special:scratchpad;

Crash reports, logs, images, videos

Here's the ouput from Hyprland's IPC I got for taking the same steps as described above

activewindow>>foot,foot
activewindowv2>>558b60b7a760
openwindow>>558b60b7a760,4,foot,foot
windowtitle>>558b60b7a760
activewindowv2>>558b60b7a760
activewindow>>foot,~
createworkspace>>special:scratchpad
movewindow>>558b60b7a760,special:scratchpad
createworkspace>>special:special:scratchpad
activewindow>>foot,socat - UNIX-CONNECT ~/P/Waybar
activewindowv2>>558b61806920
activewindow>>foot,socat - UNIX-CONNECT ~/P/Waybar
activewindowv2>>558b61806920
destroyworkspace>>special:special:scratchpad
@Syndelis Syndelis added the bug Something isn't working label Sep 25, 2023
Syndelis added a commit to Syndelis/Waybar that referenced this issue Sep 25, 2023
see hyprwm/Hyprland#3424 for more info

Co-authored-by: Gabriel Fox <Inbox@GabrielFox.Dev>
@vaxerski
Copy link
Member

vaxerski commented Sep 25, 2023

oh no :(

@Syndelis
Copy link
Contributor Author

oh no :(

I'd fix it myself, but couldn't compile due to missing wlr dependencies. Do you happen to know the necessary packages for Arch by any chance? @vaxerski

@vaxerski
Copy link
Member

check the aur wlroots-git package's deps

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

No branches or pull requests

2 participants