khanhas / Polybar

A bar
490 stars 31 forks source link

Support for dwm-win32 tag switching #22

Open gluonman opened 3 years ago

gluonman commented 3 years ago

I am using dwm-win32 by prabirshrestha to bring the dynamic window management workflow of dwm from Linux to Windows 10. As a work in progress, it's pretty amazing, but I desired an alternative bar to the default dwm bar that would be much more configurable. So far, I'm working with polybar to make this happen and for the most part the two programs play very nicely together. However, polybar uses WorkspaceManager.exe while dwm-win32 uses its own separate tag-switching mechanism and the two don't correspond. I was wondering if it might be possible to include support for alternatives to WorkspaceManager.exe within the workspace switcher module of polybar, so that instead of switching polybar workspaces, I can use that switcher module to control my dwm tags instead. Or if there was a way for me to sync both workspaces and tags, such as if I can configure WorkspaceManager.exe to respond to the same keybindings that dwm uses. Or else be able to program alternative actions that occur when clicking on the workspace numbers in the polybar (e.g. clicking workspace 2 would instead trigger the event that causes dwm-win32 to switch to tag #2 instead of triggering the default switch to Workspace #2).

khanhas commented 3 years ago

WorkspaceManager.exe is a application to provide interface for Rainmeter to communicate via inter-process messages. Does dwm-win32 have any interface to communicate with? Like to request current tag index, number of tags, switch to tag,...