hyprland-community / pyprland

Scratchpads & many goodies for Hyprland [maintainer=@fdev31]
MIT License
345 stars 15 forks source link

Force-Bound monitor failure mode is unclear #113

Closed krlhBlupine closed 2 months ago

krlhBlupine commented 3 months ago

Pyprland version 2.3.7

Describe the bug Failure mode when scratchpad is force-bound to a non-present monitor is unclear. Received an error for 'no monitor is focused' first, then received a 'NoneType is not scriptable' error. I feel like a clearer error message would do some good, and a fallback to the focused monitor might be even better.

To Reproduce Steps to reproduce the behavior:

[pyprland]
plugins = ["scratchpads", "expose"]

[scratchpads.term]
animation = "fromBottom"
command = "kitty --class kitty-dropterm --single-instance"
position = "13% 36%"
# force_monitor = "DP-3"
restore_focus = true

[expose]
include_special = true

Uncomment line, (presuming you don't have a 'DP-3'), reload, summon the scratchpad.

fdev31 commented 3 months ago

Fair enough :)

Thank you for the report!

I'm a bit more slow for a couple of weeks since I'm traveling but I'll look at it when possible.

fdev31 commented 3 months ago

Feel free to test the git version & provide some feedback!

krlhBlupine commented 2 months ago

Hey! Apologies for the delay, I'm having some trouble building on NixOS specifically. I can get back to you when I actually have my virtual system set up again. Just from what I can see in the commit though, everything looks pretty good!