-
|
So I'm trying to add a custom overview indicator widget to Waybar. Now is there a way to subscribe or at least probe workspace_scale or overview state, or would this have to be implemented beforehand? Is there a Scrollbar implementation of this widget? This discussion falls under both Ideas and Q&A, I'm unsure which one to choose... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
There is already an IPC message that provides that information, see There are both If you have any doubts, you can ask them here. |
Beta Was this translation helpful? Give feedback.
There is already an IPC message that provides that information, see
man scroll-ipc.There are both
GET_SCROLLER(for initialization) and ascrollerevent type. If you want to see an implementation of that widget, there is one inscrollbar(seeswaybar/ipc.cetc. and search for theSCROLLERevents) and another one in gtkshell, seescroll.handscroll.cpp.If you have any doubts, you can ask them here.