Replies: 1 comment 1 reply
-
Hi, You can specify the monitor using the You should be able to find your active monitor using your window manager cli, on hyprland you can do something like that: eww open myEwwWindow --screen $(hyprctl activewindow -j | jq '.monitor') Hope it helps :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I want to open an Eww widget when I click on a module from Waybar and have it open on the screen I clicked on (dual screen setup).
More specifically, I want to open an Action Center widget when I press the microphone/audio/bluetooth/wifi/brightness/battery modules on my Waybar. I'm using the action center widget from this repo.
My problem is I sometimes use a second screen for my laptop, and Eww is set to only open on one of the screens. What I want is for Eww to open on the currently active screen. I've looked through the docs but haven't found anything specific.
There was one section in the docs that talked about passing
:monitor <primary>
to the widget but that doesn't seem to work, and I don't think it would've done what I want anyway. I've also looked this issue up online and found this discussion, but I don't understand how to set up the widget to do what I want.I know one solution can be to create 2 entries for the action center widget, one with
:monitor 0
and another with:monitor 1
. But, to my knowledge, when I click on a Waybar module, it doesn't have any information about what screen it's being displayed on, so I can't tell which of the 2 Eww widgets I'm supposed to open.Does anyone have any advice?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions