Review of "Per-Screen Workspaces" version 1

Details Page Preview

Independent workspaces on every monitor, like macOS Spaces. By default GNOME has one active workspace shared by all screens: switching on one screen switches them all. With Per-Screen Workspaces, each monitor has its own workspaces and switches on its own. Features: • Separate workspaces (spaces) per monitor, each with its own count, remembered per screen • A top bar with a workspace indicator on every monitor: scroll to switch, click a dot to go there, drag to reorder, right-click to remove, + to add • Maximize or full-screen a window and it gets its own space, like the macOS green button; restore or close it to go back • Ctrl+Alt+Left/Right, Super+Page Up/Down and the 3-finger touchpad swipe switch only the screen under the pointer • Ctrl+Alt+= adds a space, Ctrl+Alt+- removes the current one • Your workspace settings (dynamic workspaces, workspaces on primary only, number of workspaces) are restored when the extension is disabled Great for multi-monitor setups: dual screen, laptop + external display, ultrawide + second screen. Demo GIFs, bugs and ideas: https://github.com/slim8/per-screen-workspaces

Extension Homepage
https://github.com/slim8/per-screen-workspaces

No comments.

FAQ

Files

Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.

Shexli (experimental) warning 4

Shexli found 4 issues that may need reviewer attention.

EGO-L-005 warning

owned object references should be released in disable()

Owned references that are cleaned up in `disable()` should also be released with `null` or `undefined`.

Destroy all objects

  • extension.js:405
    this._mutter = new Gio.Settings({schema_id: 'org.gnome.mutter'})
  • extension.js:400
    this._settings = this.getSettings()
  • extension.js:406
    this._wmPrefs = new Gio.Settings({schema_id: 'org.gnome.desktop.wm.preferences'})

EGO-L-003 warning

signals connected by extension should be disconnected in disable()

Signals assigned in `enable()` are missing matching disconnect calls in `disable()` or its helper methods.

Disconnect all signals

  • extension.js:616
    this._primaryButton.connect('scroll-event', guard('panel-scroll', (_a, e) => this._onScroll(m, e), Clutter.EVENT_STOP))
  • extension.js:355
    this._clockId = this._clock.connect('notify::clock', () => this._updateClock())

EGO-L-004 warning

main loop sources should be removed in disable()

Main loop sources assigned in `enable()` are missing matching removals in `disable()` or its helper methods.

Remove main loop sources

  • extension.js:1048
            this._activeFixId = GLib.idle_add(GLib.PRIORITY_HIGH, () => {
                this._activeFixId = 0;
                try {
                    const w = global.display.focus_window;
                    log.info(`real workspace switched from outside, focus "${w?.get_title() ?? '-'}" — fixing up`);
              
  • extension.js:974
            this._relayoutId = GLib.idle_add(GLib.PRIORITY_DEFAULT, () => {
                this._relayoutId = 0;
                try {
                    this._relayout();
                } catch (e) {
                    log.error('relayout', e);
                }
                return GLib.SOURCE_REMOVE;
            })
  • extension.js:678
            this._scrollLock = GLib.timeout_add(GLib.PRIORITY_DEFAULT, SCROLL_COOLDOWN_MS, () => {
                this._scrollLock = 0;
                return GLib.SOURCE_REMOVE;
            })
  • extension.js:642
            this._uiId = GLib.idle_add(GLib.PRIORITY_DEFAULT, () => {
                this._uiId = 0;
                try {
                    for (const ind of this._indicators.values())
                        ind.update();
                } catch (e) {
                    log.error('update-ui', e);
                }
              

EGO-M-008 warning

extensions using unlock-dialog must document it in disable() comments

Extensions using `unlock-dialog` should document the reason in `disable()` comments.

Session Modes

  • extension.js:387
        disable() {
            try {
                this._disable();
                log?.info('disabled');
            } catch (e) {
                log?.error('disable', e);
            } finally {
                log?.destroy();
                log = null;
            }
        }

All Versions

Version Status
1 Unreviewed