diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-04 11:44:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-04 11:44:24 +0000 |
commit | 1c7755029e56dc853ec26736edf140290726f906 (patch) | |
tree | de2d053edc0ceb4e3d618dda5cd1b162d4fa8eca /disable-workspace-switcher/disable-workspace-switcher@jbradaric.me | |
parent | Initial commit. (diff) | |
download | gnome-shell-extensions-extra-1c7755029e56dc853ec26736edf140290726f906.tar.xz gnome-shell-extensions-extra-1c7755029e56dc853ec26736edf140290726f906.zip |
Adding upstream version 20230204.upstream/20230204
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'disable-workspace-switcher/disable-workspace-switcher@jbradaric.me')
-rw-r--r-- | disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/extension.js | 21 | ||||
-rw-r--r-- | disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/metadata.json | 11 |
2 files changed, 32 insertions, 0 deletions
diff --git a/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/extension.js b/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/extension.js new file mode 100644 index 0000000..e805c3b --- /dev/null +++ b/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/extension.js @@ -0,0 +1,21 @@ +'use strict' + +const WorkspaceSwitcherPopup = imports.ui.workspaceSwitcherPopup.WorkspaceSwitcherPopup; + +class Extension { + constructor() { + this.originalWorkspaceSwitcherPopup_display = WorkspaceSwitcherPopup.prototype.display; + } + + enable() { + WorkspaceSwitcherPopup.prototype.display = () => {}; + } + + disable() { + WorkspaceSwitcherPopup.prototype.display = this.originalWorkspaceSwitcherPopup_display; + } +} + +function init() { + return new Extension(); +} diff --git a/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/metadata.json b/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/metadata.json new file mode 100644 index 0000000..cfbf8e5 --- /dev/null +++ b/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/metadata.json @@ -0,0 +1,11 @@ +{ + "name": "Disable Workspace Switcher", + "description": "Disable the workspace switcher popup.", + "version": 1, + "uuid": "disable-workspace-switcher@jbradaric.me", + "url": "https://github.com/jbradaric/disable-workspace-switcher", + "shell-version": [ + "42", + "43" + ] +} |