Possible to determine bar's "output" (current monitor) from a cffi module? #4645
Replies: 3 comments 1 reply
-
|
I've run into this problem, too. My attempted solution was to use |
Beta Was this translation helpful? Give feedback.
-
|
Maybe Waybar could pass the output name to cffi modules as an environment variable? |
Beta Was this translation helpful? Give feedback.
-
|
I've found a workaround: The |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
First party modules have access to a
Barinstance, which contains the name of the output the bar is being displayed on. For example, here it's used in the niri module:Waybar/src/modules/niri/workspaces.cpp
Line 41 in 161367d
Is it possible to access the output name from a cffi module?
Beta Was this translation helpful? Give feedback.
All reactions