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

hyprctl --batch hyprpaper commands don't work #104

Open
timblaktu opened this issue Nov 4, 2023 · 0 comments
Open

hyprctl --batch hyprpaper commands don't work #104

timblaktu opened this issue Nov 4, 2023 · 0 comments

Comments

@timblaktu
Copy link

Two hyprpaper commands batched in a single hyprctl command fail:

> hyprctl --batch "hyprpaper wallpaper eDP-1,/home/tim/Pictures/bruno-aguirre-YRfaG3JVwkU-unsplash.jpg ; hyprpaper wallpaper HDMI-A-1,/home/tim/Pictures/spencer-davis-ilQmlVIMN4c-unsplash.jpg"
unknown requestunknown request

While each of the individual hyprctl hyprpaper commands succeed:

> hyprctl "hyprpaper wallpaper eDP-1,/home/tim/Pictures/bruno-aguirre-YRfaG3JVwkU-unsplash.jpg"
ok
> hyprctl "hyprpaper wallpaper HDMI-A-1,/home/tim/Pictures/spencer-davis-ilQmlVIMN4c-unsplash.jpg"
ok

I've tried a lot of syntactical permutations of the batched commands, playing with placement of semicolon and double quotes, to no avail.

Not sure whether this issue is best placed in hyprpaper or hyprland repos but this should be a start of the investigation.

If this is not supposed to work by design, then of course this issue represents either bug against the hyprland/hyprctl docs and/or the hyprpaper docs (should be documented that hyprpaper sub-commands aren't batchable by design) or a feature request (to add support for hyprctl --batch hyprpaper).

My workaround is of course to not batch hyprpaper commands, but this is undesirable for performance reasons as I'm calling these in keybindings when the active workspace changes.

My environment is Arch Linux with:

  • 6.5.9-arch2-1 kernel
  • hyprland-nvidia-git 0.31.0.r67.g062f7494-1
  • hyprpaper 0.4.0-1
  • xdg-desktop-portal-hyprland-git 1:r324.3e44c36-1

and

> hyprctl version
Hyprland, built from branch main at commit 062f749450da9d280f85d3052d7f8bc9b70db62b dirty (xdg: send unconstrain events after a popup reposition (3716)).
Tag: v0.31.0-67-g062f7494
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant