feat: Added new ipc command get wmlayout - #1249
Conversation
Added a new ipc command get wmlayout, allows to query current layout eg. for waybar status indicator. Updated documentation accordingly Added into manpages
|
@DreamMaoMao Anyway even with that checking the documentation I did not find any function to get current active monitor, while the get all-monitors allows you to find it using active it's non-trivial parsing. Waybar config using the new mmsg call: Sample return: |
0efe75b to
20ad711
Compare
|
@Sora3e8 there's native support for mango layout in waybar without the need for custom module: "mango/layout": {
"format": "{}"
}https://github.com/Alexays/Waybar/wiki/Module:-Mango#mangolayout |
|
@Senderman |
|
@Sora3e8 it actually allows: "mango/layout": {
"format": "default icon here",
"format-S": "↔️📜",
"format-M": "🧐",
"format-F": "️🗂️"
}and so on. Also you can apply css styles based on active layout, just read the documentation on the waybar's wiki page I provided a link to |
|
@Senderman Thanks for the info. |



Added a new ipc command get wmlayout, allows to query current layout eg. for waybar status indicator.
Updated the documentation accordingly
Added into manpages