widgets icon indicating copy to clipboard operation
widgets copied to clipboard

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

Open jontstaz opened this issue 1 year ago • 7 comments

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`

jontstaz avatar Sep 01 '23 20:09 jontstaz

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

deed0s avatar Nov 13 '23 14:11 deed0s

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

simvux avatar Nov 18 '23 17:11 simvux

That's not working

VardanHeroic avatar Jan 04 '24 07:01 VardanHeroic

Any luck with this guys?

DrR0X-glitch avatar Jan 24 '24 23:01 DrR0X-glitch

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

On every single defwindow?

DrR0X-glitch avatar Jan 24 '24 23:01 DrR0X-glitch

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.

re-masashi avatar Feb 19 '24 12:02 re-masashi

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.

DrR0X-glitch avatar Feb 21 '24 20:02 DrR0X-glitch