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

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

Open
ArtemChandragupta opened this issue Aug 15, 2024 · 3 comments
Open
Labels
question Further information is requested

Comments

@ArtemChandragupta
Copy link

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
Copy link
Owner

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.

@AndreasBackx AndreasBackx added the question Further information is requested label Aug 18, 2024
@ArtemChandragupta
Copy link
Author

ArtemChandragupta commented Aug 18, 2024

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.

@AndreasBackx
Copy link
Owner

I'm pretty sure "autolaunch" is able to redirect the output to a file. You might be able to wrap it in a bash or similar invocation. You'll need to see how to do that for yourself however. I am possibly able to assist once you're able to get me a debug log where it fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants