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

Failed to get primary monitor from GTK. Try explicitly specifying the monitor on your window #17

Open
jontstaz opened this issue Sep 1, 2023 · 7 comments

Comments

@jontstaz
Copy link

jontstaz commented Sep 1, 2023

Hi, getting this error whenever I try to run either script unfortunately. How can I resolve this? Not sure where to define the monitor and I can't see anything about it in your documentation. I installed eww correctly and I'm running EndeavourOS with Hyprland.

❯ bash ~/.config/eww/dashboard/launch_dashboard 
failed to open window `background`

Caused by:
    Failed to get primary monitor from GTK. Try explicitly specifying the monitor on your window.
failed to open window `profile`

Caused by:
    Failed to get primary monitor from GTK. Try explicitly specifying the monitor on your window.
failed to open window `system`

Caused by:
    Failed to get primary monitor from GTK. Try explicitly specifying the monitor on your window.
failed to open window `clock`

Caused by:
    Failed to get primary monitor from GTK. Try explicitly specifying the monitor on your window.
failed to open window `uptime`

Caused by:
    Failed to get primary monitor from GTK. Try explicitly specifying the monitor on your window.
failed to open window `music`

Caused by:
    Failed to get primary monitor from GTK. Try explicitly specifying the monitor on your window.
failed to open window `github`

Caused by:
    Failed to get primary monitor from GTK. Try explicitly specifying the monitor on your window.
failed to open window `reddit`

Caused by:
    Failed to get primary monitor from GTK. Try explicitly specifying the monitor on your window.
failed to open window `twitter`

Caused by:
    Failed to get primary monitor from GTK. Try explicitly specifying the monitor on your window.
failed to open window `youtube`

Caused by:
    Failed to get primary monitor from GTK. Try explicitly specifying the monitor on your window.
failed to open window `weather`

Caused by:
    Failed to get primary monitor from GTK. Try explicitly specifying the monitor on your window.
failed to open window `apps`

Caused by:
    Failed to get primary monitor from GTK. Try explicitly specifying the monitor on your window.
failed to open window `mail`

Caused by:
    Failed to get primary monitor from GTK. Try explicitly specifying the monitor on your window.
failed to open window `logout`

Caused by:
    Failed to get primary monitor from GTK. Try explicitly specifying the monitor on your window.
failed to open window `sleep`

Caused by:
    Failed to get primary monitor from GTK. Try explicitly specifying the monitor on your window.
failed to open window `reboot`

Caused by:
    Failed to get primary monitor from GTK. Try explicitly specifying the monitor on your window.
failed to open window `poweroff`

Caused by:
    Failed to get primary monitor from GTK. Try explicitly specifying the monitor on your window.
failed to open window `folders`
@deed0s
Copy link

deed0s commented Nov 13, 2023

Also getting the same error when trying to launch under Hyprland on EndeavourOS. @jontstaz Did you manage to get it working?
Hyprland version: hyprland-nvidia-git (0.32.0.r2.gda6fa9cb-1)
Kernel: 6.6.1-zen1-1-zen
Fully updated system as of writing this comment

@simvux
Copy link

simvux commented Nov 18, 2023

Specify your monitor manually on the defwindows inside eww.yuck by adding :monitor 0

@VardanHeroic
Copy link

VardanHeroic commented Jan 4, 2024

That's not working

@DrR0X-glitch
Copy link

Any luck with this guys?

@DrR0X-glitch
Copy link

Specify your monitor manually on the defwindows inside eww.yuck by adding :monitor 0

On every single defwindow?

@re-masashi
Copy link

Specify your monitor manually on the defwindows inside eww.yuck by adding :monitor 0

On every single defwindow?

yes that should do.
i myself got this issue and :monitor 0 fixed it.
I am using Hyprland.

@DrR0X-glitch
Copy link

Specify your monitor manually on the defwindows inside eww.yuck by adding :monitor 0

On every single defwindow?

yes that should do.
i myself got this issue and :monitor 0 fixed it.
I am using Hyprland.

Yeah I did end up doing this, I was just a little confused. I assume gtk is supposed to get monitor so I was wondering if there was a fix for that detector.

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

6 participants