hyprwm / hyprland-plugins

Official plugins for Hyprland
BSD 3-Clause "New" or "Revised" License
521 stars 53 forks source link

hyprexpo: hyprland error at startup #117

Closed alba4k closed 6 months ago

alba4k commented 6 months ago

Hyprland complains about hyprexpo:expo not existing for half a second at startup, or until the next hyprctl reload if autoreload is disabled.

Can I prevent this from happening in any way?

vaxerski commented 6 months ago

I have a plan for this in hyprlang, but for now, no. It's an open issue in hl.

alba4k commented 6 months ago

should I open an issue there, just to have somewhere to track this?

vaxerski commented 6 months ago

you can open an issue in hyprlang if you agree with my idea of something along the lines of

# hyprlang push noerror

bind = SUPER,A,thismightbegone,

# hyprlang pop noerror
alba4k commented 6 months ago

Uhm, so basically explicitly declaring a section as "unsafe"

Why not just borrow C's preprocessor syntax? And mix it with rust's unsafe naming, just because

#unsafe

somerrorcausingline

#endunsafe

Sure that would make sense

vaxerski commented 6 months ago

I hate rust, but if the general idea sounds reasonable feel free to open an issue