Workspace indication with an i3/polybar style.
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
Just a heads up - the error thrown when using static workspaces is intentional (for now). There's a pretty good summary of usage in the repo - https://github.com/andyrichardson/simply-workspaces
Hey, I know about the error being intentional. The problem is, you are doing that for all users in global. Please come to GNOME Matrix channel and talk about this if you like: https://matrix.to/#/#extensions:gnome.org
After the discussion we had on GNOME Matrix channel, we can approve this one with this description: "This extension only works with 10 static workspaces." btw, overrides is wrong. I wrote this one so you can check whether your extension is compatible: ```js /** * Check whether the workspaces settings are compatible with the extension * * @return bool */ const isCompatible = () => { let mutter = ExtensionUtils.getSettings("org.gnome.mutter"); let prefs = ExtensionUtils.getSettings("org.gnome.desktop.wm.preferences"); if (mutter.get_boolean("dynamic-workspaces") || prefs.get_int("num-workspaces") < 10) { return false; } return true; }; ``` Now on enable and disable you can do this: ```js var enable = () => { if (!isCompatible()) { Main.notify("Only supported when you are using 10 static workspaces"); return; } initUI(); attachHandlers(); Main.panel._leftBox.insert_child_at_index(container.node, 0); }; var disable = () => { if (!isCompatible()) { return; } detachHandlers(); Main.panel._leftBox.remove_child(container.node); }; ```
You can also use isCompatilbe() function on change signal (dynamic-workspaces and num-workspaces) to make sure.
Thanks for the suggestion and taking the feedback! Made some changes