You are not logged in.

#1 2026-02-02 18:26:42

Succulent of your garden
Member
From: Majestic kingdom of pot plants
Registered: 2024-02-29
Posts: 1,267

Is there some way can I use eww with xorg flag in wayland ?

So I decided to have a Wayland WM just in case, since I want to update my dwm with having some default backup.

So first of all:

But you can just go back to your previous state in your dwm, just compile again right ? Yep I can do that, but I want to just run quick hyprland if I need to do something quickly, yeah I know dwm compiles in less than 10 seconds, but It also an excuse to check how Hyprland is going on because of my failure in trying sway cuz I have nvidia gpu :C. so long story short: Excuses to try wayland and Hyprland again, and in the process create a wayland compositor alternative for my general usage just in case.


Long story short: I'm working in my status bar, but I also want to add it in my Hyprland setup, I'm working in the same machine having Xorg with dwm also. So i compiled eww with Xorg flag as this says: https://elkowar.github.io/eww/

So this creates issues in hyprland because when I want to run a widget:

WARN  eww > Eww compiled without wayland support. Falling back to X11, eventhough wayland was requested.
failed to open window `bar`

Caused by:
    Failed to get x11 window for gtk window

So According to this: https://wiki.hypr.land/Configuring/XWayland/ I tried this in my config file:

xwayland {
   enabled = true
   force_zero_scaling = true
 }

 env = GDK_SCALE,2
 env = XCURSOR_SIZE,32

but I'm having the error of before :C . So I have three options I guess:

1) Compile eww with wayland flag, which I don't want to do because I will lost the xorg support  of my bar :C
2)Trying to run eww with xorg flag with Xwayland, which I want to try first.
3)Tweak the application building to have two binaries in the end that can work in a machine that have Xorg and wayland, and call the corresponding one in the .xinitrc and hyprland.conf. Not sure if this is a good idea in this case.

And btw: But workspaces switching code is going to be different in Xorg and wayland but that I cant comment the wayland part and deal with it during the development of both tongue

Last edited by Succulent of your garden (2026-02-02 18:40:50)


str( @soyg ) == str( @potplant ) btw!

Offline

#2 2026-02-02 22:25:05

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,692

Re: Is there some way can I use eww with xorg flag in wayland ?

https://github.com/elkowar/eww/blob/fdd … o.toml#L13
Default seems to be to build for both backends?

Offline

Board footer

Powered by FluxBB