AndreasBackx / waycorner

Hot corners for Wayland. Create anchors in the corners of your monitors and execute a command of your choice.
MIT License
77 stars 6 forks source link

Seems to be broken on Hyprland while launching on startup #25

Open ArtemChandragupta opened 4 weeks ago

ArtemChandragupta commented 4 weeks ago

Hi!

I use NixOS with Hyprland-git. If I launch waycorner in my terminal, it works as intended, but if I put it in autolaunch, it won't register cursor, while waycorner --preview in autolaunch still draws its zone

Perhaps this is due to the transition to aquamarine recently and the fact that the cursor spawns in the upper left corner

AndreasBackx commented 3 weeks ago

I'm not sure how to help you without debug information. Could you please run it in the environment where it's not working using RUST_LOG="debug" waycorner and provide the output? I also don't know what you are referring to with autolaunch or aquamarine, perhaps because I'm not a NixOS user.

ArtemChandragupta commented 3 weeks ago

By autolaunch I mean

exec-once=swaync
exec-once=waybar
exec-once=kitty
exec-once=waycorner

I think sway also have similar way to make programs launch on startup.

Aquamarine is new wayland implementation for hyprland.

This is RUST_LOG="debug" waycorner launched in terminal, when everything works:

  RUST_LOG="debug" waycorner
2024-08-18T14:12:04.164929Z DEBUG waycorner::config: Replacing ~/ with $HOME/
2024-08-18T14:12:04.164958Z  INFO waycorner::config: Using config: /home/artem/.config/waycorner/config.toml
2024-08-18T14:12:04.169037Z  INFO waycorner::wayland: OutputInfo { id: 47, model: "0x1D8F", make: "AU Optronics", name: "eDP-1", description: "AU Optronics 0x1D8F  (eDP-1)", location: (0, 0), physical_size: (290, 180), subpixel: Unknown, transform: Normal, scale_factor: 1, modes: [Mode { dimensions: (1920, 1200), refresh_rate: 60026, is_current: true, is_preferred: true }], obsolete: false }
2024-08-18T14:12:04.169078Z DEBUG waycorner::wayland: Corner { config: CornerConfig { output: None, enter_command: ["rofi-appgrid"], exit_command: [], locations: [TopLeft], size: 10, margin: 20, timeout_ms: 250, color: 4294901760 }, channel: (Mutex { data: Sender { .. }, poisoned: false, .. }, Mutex { data: Receiver { .. }, poisoned: false, .. }) }
2024-08-18T14:12:04.169103Z DEBUG waycorner::wayland: Output description IS a match
2024-08-18T14:12:04.169107Z DEBUG waycorner::wayland: Adding surfaces
2024-08-18T14:12:04.169116Z  INFO waycorner::wayland: Adding anchorpoint Top | Left
2024-08-18T14:12:09.626755Z DEBUG waycorner::corner: Received event: Enter
2024-08-18T14:12:09.876951Z  INFO waycorner::corner: executing command: rofi-appgrid []
2024-08-18T14:12:11.372934Z  INFO waycorner::corner: output received: Output { status: ExitStatus(unix_wait_status(0)), stdout: "", stderr: "" }
2024-08-18T14:12:11.372974Z DEBUG waycorner::corner: Received event: Leave
2024-08-18T14:12:11.372991Z DEBUG waycorner::corner: Ignored the event due to too fast after unlock.
^C

Is there a way to get output of the command in a file? I think it is the only way for me to get it's log without terminal.