summaryrefslogtreecommitdiffstats
path: root/extensions/47
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/47')
-rw-r--r--extensions/47/disable-workspace-switcher.mk51
-rw-r--r--extensions/47/disable-workspace-switcher/LICENSE674
-rw-r--r--extensions/47/disable-workspace-switcher/README.md1
-rw-r--r--extensions/47/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/extension.js14
-rw-r--r--extensions/47/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/metadata.json10
-rw-r--r--extensions/47/hibernate-status.mk55
-rw-r--r--extensions/47/hibernate-status/.editorconfig12
-rw-r--r--extensions/47/hibernate-status/.github/workflows/release.yaml32
-rw-r--r--extensions/47/hibernate-status/.gitignore6
-rw-r--r--extensions/47/hibernate-status/.prettierrc8
-rw-r--r--extensions/47/hibernate-status/LICENSE340
-rw-r--r--extensions/47/hibernate-status/Makefile76
-rw-r--r--extensions/47/hibernate-status/README.md41
-rwxr-xr-xextensions/47/hibernate-status/buildforupload.sh2
-rw-r--r--extensions/47/hibernate-status/extension.js590
-rw-r--r--extensions/47/hibernate-status/locale/bg/LC_MESSAGES/hibernate-status-button.po75
-rw-r--r--extensions/47/hibernate-status/locale/cs/LC_MESSAGES/hibernate-status-button.po66
-rw-r--r--extensions/47/hibernate-status/locale/de/LC_MESSAGES/hibernate-status-button.po72
-rw-r--r--extensions/47/hibernate-status/locale/es/LC_MESSAGES/hibernate-status-button.po71
-rw-r--r--extensions/47/hibernate-status/locale/fa/LC_MESSAGES/hibernate-status-button.po72
-rw-r--r--extensions/47/hibernate-status/locale/fr/LC_MESSAGES/hibernate-status-button.po71
-rw-r--r--extensions/47/hibernate-status/locale/hu/LC_MESSAGES/hibernate-status-button.po72
-rw-r--r--extensions/47/hibernate-status/locale/it/LC_MESSAGES/hibernate-status-button.po71
-rw-r--r--extensions/47/hibernate-status/locale/nl/LC_MESSAGES/hibernate-status-button.po72
-rw-r--r--extensions/47/hibernate-status/locale/oc/LC_MESSAGES/hibernate-status-button.po71
-rw-r--r--extensions/47/hibernate-status/locale/pl/LC_MESSAGES/hibernate-status-button.po71
-rw-r--r--extensions/47/hibernate-status/locale/pt/LC_MESSAGES/hibernate-status-button.po71
-rw-r--r--extensions/47/hibernate-status/locale/pt_BR/LC_MESSAGES/hibernate-status-button.po73
-rw-r--r--extensions/47/hibernate-status/locale/ru/LC_MESSAGES/hibernate-status-button.po76
-rw-r--r--extensions/47/hibernate-status/locale/uk/LC_MESSAGES/hibernate-status-button.po74
-rw-r--r--extensions/47/hibernate-status/locale/zh_CN/LC_MESSAGES/hibernate-status-button.po67
-rw-r--r--extensions/47/hibernate-status/metadata.json9
-rw-r--r--extensions/47/hibernate-status/prefs.js168
-rw-r--r--extensions/47/hibernate-status/schemas/org.gnome.shell.extensions.hibernate-status-button.gschema.xml35
-rw-r--r--extensions/47/middleclickclose.mk52
-rw-r--r--extensions/47/middleclickclose/.gitignore1
-rw-r--r--extensions/47/middleclickclose/LICENSE339
-rw-r--r--extensions/47/middleclickclose/Makefile27
-rw-r--r--extensions/47/middleclickclose/README.md39
-rw-r--r--extensions/47/middleclickclose/img/ego.svg22
-rw-r--r--extensions/47/middleclickclose/src/extension.js182
-rw-r--r--extensions/47/middleclickclose/src/metadata.json13
-rw-r--r--extensions/47/middleclickclose/src/po/de.po83
-rw-r--r--extensions/47/middleclickclose/src/po/el.po84
-rw-r--r--extensions/47/middleclickclose/src/po/fr.po85
-rw-r--r--extensions/47/middleclickclose/src/po/it.po83
-rw-r--r--extensions/47/middleclickclose/src/po/nl.po82
-rw-r--r--extensions/47/middleclickclose/src/po/pt.po80
-rw-r--r--extensions/47/middleclickclose/src/po/sk.po83
-rw-r--r--extensions/47/middleclickclose/src/po/sr.po83
-rw-r--r--extensions/47/middleclickclose/src/po/sr@latin.po83
-rw-r--r--extensions/47/middleclickclose/src/po/template.pot80
-rw-r--r--extensions/47/middleclickclose/src/po/uk.po81
-rw-r--r--extensions/47/middleclickclose/src/prefs.js124
-rw-r--r--extensions/47/middleclickclose/src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml32
-rw-r--r--extensions/47/middleclickclose/src/settingsWatch.js87
-rw-r--r--extensions/47/no-overview.mk58
-rw-r--r--extensions/47/no-overview/LICENSE674
-rw-r--r--extensions/47/no-overview/README.md3
-rw-r--r--extensions/47/no-overview/extension.js26
-rw-r--r--extensions/47/no-overview/metadata.json10
-rw-r--r--extensions/47/vertical-workspaces.mk56
-rw-r--r--extensions/47/vertical-workspaces/.github/ISSUE_TEMPLATE/bug_report.md39
-rw-r--r--extensions/47/vertical-workspaces/.github/ISSUE_TEMPLATE/feature_request.md20
-rw-r--r--extensions/47/vertical-workspaces/CHANGELOG.md429
-rw-r--r--extensions/47/vertical-workspaces/LICENSE674
-rw-r--r--extensions/47/vertical-workspaces/Makefile90
-rw-r--r--extensions/47/vertical-workspaces/README.md190
-rw-r--r--extensions/47/vertical-workspaces/extension.js812
-rw-r--r--extensions/47/vertical-workspaces/lib/appDisplay.js2014
-rw-r--r--extensions/47/vertical-workspaces/lib/appFavorites.js79
-rw-r--r--extensions/47/vertical-workspaces/lib/dash.js1307
-rw-r--r--extensions/47/vertical-workspaces/lib/iconGrid.js429
-rw-r--r--extensions/47/vertical-workspaces/lib/layout.js473
-rw-r--r--extensions/47/vertical-workspaces/lib/messageTray.js91
-rw-r--r--extensions/47/vertical-workspaces/lib/optionsFactory.js496
-rw-r--r--extensions/47/vertical-workspaces/lib/osdWindow.js118
-rw-r--r--extensions/47/vertical-workspaces/lib/overlayKey.js170
-rw-r--r--extensions/47/vertical-workspaces/lib/overview.js162
-rw-r--r--extensions/47/vertical-workspaces/lib/overviewControls.js1633
-rw-r--r--extensions/47/vertical-workspaces/lib/panel.js253
-rw-r--r--extensions/47/vertical-workspaces/lib/recentFilesSearchProvider.js316
-rw-r--r--extensions/47/vertical-workspaces/lib/search.js474
-rw-r--r--extensions/47/vertical-workspaces/lib/searchController.js94
-rw-r--r--extensions/47/vertical-workspaces/lib/settings.js539
-rw-r--r--extensions/47/vertical-workspaces/lib/swipeTracker.js116
-rw-r--r--extensions/47/vertical-workspaces/lib/util.js445
-rw-r--r--extensions/47/vertical-workspaces/lib/windowAttentionHandler.js185
-rw-r--r--extensions/47/vertical-workspaces/lib/windowManager.js380
-rw-r--r--extensions/47/vertical-workspaces/lib/windowPreview.js629
-rw-r--r--extensions/47/vertical-workspaces/lib/workspace.js472
-rw-r--r--extensions/47/vertical-workspaces/lib/workspaceAnimation.js262
-rw-r--r--extensions/47/vertical-workspaces/lib/workspaceSwitcherPopup.js107
-rw-r--r--extensions/47/vertical-workspaces/lib/workspaceThumbnail.js1261
-rw-r--r--extensions/47/vertical-workspaces/lib/workspacesView.js1013
-rw-r--r--extensions/47/vertical-workspaces/meson.build25
-rw-r--r--extensions/47/vertical-workspaces/metadata.json22
-rw-r--r--extensions/47/vertical-workspaces/po/LINGUAS2
-rw-r--r--extensions/47/vertical-workspaces/po/cs.po2568
-rw-r--r--extensions/47/vertical-workspaces/po/meson.build1
-rw-r--r--extensions/47/vertical-workspaces/po/nl.po1551
-rw-r--r--extensions/47/vertical-workspaces/po/vertical-workspaces.pot2005
-rw-r--r--extensions/47/vertical-workspaces/prefs.js2241
-rw-r--r--extensions/47/vertical-workspaces/schemas/meson.build6
-rw-r--r--extensions/47/vertical-workspaces/schemas/org.gnome.shell.extensions.vertical-workspaces.gschema.xml907
-rw-r--r--extensions/47/vertical-workspaces/screenshots/screenshot.jpgbin0 -> 416550 bytes
-rw-r--r--extensions/47/vertical-workspaces/screenshots/screenshot0.jpgbin0 -> 290880 bytes
-rw-r--r--extensions/47/vertical-workspaces/screenshots/screenshot0.pngbin0 -> 1027234 bytes
-rw-r--r--extensions/47/vertical-workspaces/screenshots/screenshot1.pngbin0 -> 280303 bytes
-rw-r--r--extensions/47/vertical-workspaces/screenshots/screenshot2.pngbin0 -> 286557 bytes
-rw-r--r--extensions/47/vertical-workspaces/screenshots/screenshot3.pngbin0 -> 384363 bytes
-rw-r--r--extensions/47/vertical-workspaces/screenshots/screenshot4.pngbin0 -> 148233 bytes
-rw-r--r--extensions/47/vertical-workspaces/screenshots/screenshot5.pngbin0 -> 51071 bytes
-rw-r--r--extensions/47/vertical-workspaces/screenshots/vertical-workspaces.gifbin0 -> 1213475 bytes
-rw-r--r--extensions/47/vertical-workspaces/stylesheet.css449
115 files changed, 31470 insertions, 0 deletions
diff --git a/extensions/47/disable-workspace-switcher.mk b/extensions/47/disable-workspace-switcher.mk
new file mode 100644
index 0000000..5b585dc
--- /dev/null
+++ b/extensions/47/disable-workspace-switcher.mk
@@ -0,0 +1,51 @@
+# Progress Linux: gnome-shell-extensions-extra
+
+# Copyright (C) 2010-2024 Daniel Baumann <daniel.baumann@progress-linux.org>
+#
+# SPDX-License-Identifier: GPL-3.0+
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+# Build-Depends:
+# none
+
+SHELL := sh -e
+
+EXTENSION := disable-workspace-switcher
+UUID := $(shell awk -F\" '/"uuid": / { print $$4 }' $(EXTENSION)/*@*/metadata.json)
+
+all:
+
+test:
+
+build:
+
+install:
+ mkdir -p $(DESTDIR)/usr/share/gnome-shell/extensions
+ cp -a $(EXTENSION)/$(UUID) $(DESTDIR)/usr/share/gnome-shell/extensions
+
+uninstall:
+ rm -rf $(DESTDIR)/usr/share/gnome-shell/extensions/$(UUID)
+ rmdir --ignore-fail-on-non-empty --parents $(DESTDIR) || true
+
+clean:
+
+distclean:
+
+reinstall: uninstall install
+
+upstream:
+ rm -rf $(EXTENSION)
+ git clone https://github.com/jbradaric/$(EXTENSION)
+ rm -rf $(EXTENSION)/.git
diff --git a/extensions/47/disable-workspace-switcher/LICENSE b/extensions/47/disable-workspace-switcher/LICENSE
new file mode 100644
index 0000000..f288702
--- /dev/null
+++ b/extensions/47/disable-workspace-switcher/LICENSE
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ <program> Copyright (C) <year> <name of author>
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<https://www.gnu.org/licenses/>.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+<https://www.gnu.org/licenses/why-not-lgpl.html>.
diff --git a/extensions/47/disable-workspace-switcher/README.md b/extensions/47/disable-workspace-switcher/README.md
new file mode 100644
index 0000000..bae853f
--- /dev/null
+++ b/extensions/47/disable-workspace-switcher/README.md
@@ -0,0 +1 @@
+GNOME Shell extension that disables the workspace switcher popup
diff --git a/extensions/47/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/extension.js b/extensions/47/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/extension.js
new file mode 100644
index 0000000..a814f54
--- /dev/null
+++ b/extensions/47/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/extension.js
@@ -0,0 +1,14 @@
+import { Extension } from 'resource:///org/gnome/shell/extensions/extension.js';
+import { WorkspaceSwitcherPopup } from 'resource:///org/gnome/shell/ui/workspaceSwitcherPopup.js';
+
+export default class extends Extension {
+ enable() {
+ this._originalWorkspaceSwitcherPopup_display = WorkspaceSwitcherPopup.prototype.display;
+ WorkspaceSwitcherPopup.prototype.display = () => {};
+ }
+
+ disable() {
+ WorkspaceSwitcherPopup.prototype.display = this._originalWorkspaceSwitcherPopup_display;
+ this._originalWorkspaceSwitcherPopup_display = null;
+ }
+}
diff --git a/extensions/47/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/metadata.json b/extensions/47/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/metadata.json
new file mode 100644
index 0000000..4d19032
--- /dev/null
+++ b/extensions/47/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/metadata.json
@@ -0,0 +1,10 @@
+{
+ "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": [
+ "45", "46", "47"
+ ]
+}
diff --git a/extensions/47/hibernate-status.mk b/extensions/47/hibernate-status.mk
new file mode 100644
index 0000000..b97a0d6
--- /dev/null
+++ b/extensions/47/hibernate-status.mk
@@ -0,0 +1,55 @@
+# Progress Linux: gnome-shell-extensions-extra
+
+# Copyright (C) 2010-2024 Daniel Baumann <daniel.baumann@progress-linux.org>
+#
+# SPDX-License-Identifier: GPL-3.0+
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+# Build-Depends:
+# libglib2.0-bin
+
+SHELL := sh -e
+
+EXTENSION := hibernate-status
+UUID := $(shell awk -F\" '/"uuid": / { print $$4 }' $(EXTENSION)/metadata.json)
+
+all:
+
+test:
+
+build:
+
+install:
+ $(MAKE) -C $(EXTENSION) DESTDIR=$(DESTDIR) install
+
+ # removing unused files
+ rm -f $(DESTDIR)/usr/share/gnome-shell/extensions/$(UUID)/LICENSE
+ rm -f $(DESTDIR)/usr/share/gnome-shell/extensions/$(UUID)/README.md
+
+uninstall:
+ rm -rf $(DESTDIR)/usr/share/gnome-shell/extensions/$(UUID)
+ rmdir --ignore-fail-on-non-empty --parents $(DESTDIR) || true
+
+clean:
+ $(MAKE) -C $(EXTENSION) clean
+
+distclean:
+
+reinstall: uninstall install
+
+upstream:
+ rm -rf $(EXTENSION)
+ git clone https://github.com/arelange/gnome-shell-extension-$(EXTENSION) $(EXTENSION)
+ rm -rf $(EXTENSION)/.git
diff --git a/extensions/47/hibernate-status/.editorconfig b/extensions/47/hibernate-status/.editorconfig
new file mode 100644
index 0000000..bf58f2f
--- /dev/null
+++ b/extensions/47/hibernate-status/.editorconfig
@@ -0,0 +1,12 @@
+root = true
+
+[*]
+indent_style = space
+indent_size = 4
+charset = utf-8
+trim_trailing_whitespace = true
+end_of_line = lf
+insert_final_newline = true
+
+[*.js]
+quote_type = single
diff --git a/extensions/47/hibernate-status/.github/workflows/release.yaml b/extensions/47/hibernate-status/.github/workflows/release.yaml
new file mode 100644
index 0000000..80138f9
--- /dev/null
+++ b/extensions/47/hibernate-status/.github/workflows/release.yaml
@@ -0,0 +1,32 @@
+name: "Prepare GitHub release"
+
+on:
+ push:
+
+jobs:
+ zip:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: zip
+ run: |
+ sudo apt-get install make gettext
+ make zip-file
+ - name: Upload artifact
+ uses: actions/upload-artifact@v3
+ with:
+ name: zip
+ path: "*.zip"
+ - name: Release (pre)
+ uses: softprops/action-gh-release@v1
+ with:
+ files: "*.zip"
+ prerelease: true
+ if: contains(github.ref_name,'rc') && github.ref_type == 'tag'
+ - name: Release
+ uses: softprops/action-gh-release@v1
+ with:
+ files: "*.zip"
+ if: "!contains(github.ref_name,'rc') && github.ref_type == 'tag'"
diff --git a/extensions/47/hibernate-status/.gitignore b/extensions/47/hibernate-status/.gitignore
new file mode 100644
index 0000000..68270f9
--- /dev/null
+++ b/extensions/47/hibernate-status/.gitignore
@@ -0,0 +1,6 @@
+**/*.compiled
+*.zip
+.~
+*~
+*.mo
+locale/hibernate-status-button.pot
diff --git a/extensions/47/hibernate-status/.prettierrc b/extensions/47/hibernate-status/.prettierrc
new file mode 100644
index 0000000..8da2b4c
--- /dev/null
+++ b/extensions/47/hibernate-status/.prettierrc
@@ -0,0 +1,8 @@
+tabWidth: 4
+useTabs: false
+semi: true
+singleQuote: true
+quoteProps: 'as-needed'
+trailingComma: 'es5'
+bracketSpacing: false
+arrowParens: 'avoid'
diff --git a/extensions/47/hibernate-status/LICENSE b/extensions/47/hibernate-status/LICENSE
new file mode 100644
index 0000000..d6a9326
--- /dev/null
+++ b/extensions/47/hibernate-status/LICENSE
@@ -0,0 +1,340 @@
+GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ {description}
+ Copyright (C) {year} {fullname}
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ {signature of Ty Coon}, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
+
diff --git a/extensions/47/hibernate-status/Makefile b/extensions/47/hibernate-status/Makefile
new file mode 100644
index 0000000..f74ed54
--- /dev/null
+++ b/extensions/47/hibernate-status/Makefile
@@ -0,0 +1,76 @@
+# Basic Makefile
+
+UUID = hibernate-status@dromi
+BASE_MODULES = extension.js metadata.json LICENSE README.md
+EXTRA_MODULES = prefs.js
+TOLOCALIZE = confirmDialog.js prefs.js
+PO_FILES := $(wildcard ./locale/*/*/*.po)
+MO_FILES := $(PO_FILES:.po=.mo)
+
+ifeq ($(strip $(DESTDIR)),)
+ INSTALLTYPE = local
+ INSTALLBASE = $(HOME)/.local/share/gnome-shell/extensions
+else
+ INSTALLTYPE = system
+ SHARE_PREFIX = $(DESTDIR)/usr/share
+ INSTALLBASE = $(SHARE_PREFIX)/gnome-shell/extensions
+endif
+INSTALLNAME = hibernate-status@dromi
+
+all: extension
+
+clean:
+ rm -f ./schemas/gschemas.compiled
+ rm -f ./**/*~
+ rm -f ./locale/*/*/*.mo
+ rm -f ./locale/hibernate-status-button.pot
+
+extension: ./schemas/gschemas.compiled $(MO_FILES)
+
+./schemas/gschemas.compiled: ./schemas/org.gnome.shell.extensions.hibernate-status-button.gschema.xml
+ glib-compile-schemas ./schemas/
+
+potfile: ./locale/hibernate-status-button.pot
+
+mergepo: potfile
+ for l in $(PO_FILES); do \
+ msgmerge -U $$l ./locale/hibernate-status-button.pot; \
+ done;
+
+./locale/hibernate-status-button.pot: $(TOLOCALIZE)
+ mkdir -p locale
+ xgettext -k --keyword=__ --keyword=N__ --add-comments='Translators:' -o locale/hibernate-status-button.pot --package-name "Hibernate Status Button" $(TOLOCALIZE)
+
+%.mo: %.po
+ msgfmt -c $< -o $@
+
+install: install-local
+
+install-local: _build
+ rm -rf $(INSTALLBASE)/$(INSTALLNAME)
+ mkdir -p $(INSTALLBASE)/$(INSTALLNAME)
+ cp -r ./_build/* $(INSTALLBASE)/$(INSTALLNAME)/
+ifeq ($(INSTALLTYPE),system)
+ # system-wide settings and locale files
+ rm -r $(INSTALLBASE)/$(INSTALLNAME)/schemas
+ rm -r $(INSTALLBASE)/$(INSTALLNAME)/locale
+ mkdir -p $(SHARE_PREFIX)/glib-2.0/schemas $(SHARE_PREFIX)/locale
+ cp -r ./schemas/*gschema.* $(SHARE_PREFIX)/glib-2.0/schemas
+ cp -r ./_build/locale/* $(SHARE_PREFIX)/locale
+endif
+ -rm -fR _build
+ echo done
+
+zip-file: _build
+ cd _build ; zip -qr "$(UUID).zip" . -x '*.po'
+ mv _build/$(UUID).zip ./
+ -rm -fR _build
+
+_build: all
+ -rm -fR ./_build
+ mkdir -p _build
+ cp $(BASE_MODULES) $(EXTRA_MODULES) _build
+ mkdir -p _build/schemas
+ cp schemas/*.xml _build/schemas/
+ cp schemas/gschemas.compiled _build/schemas/
+ cp -r locale/ _build/locale
diff --git a/extensions/47/hibernate-status/README.md b/extensions/47/hibernate-status/README.md
new file mode 100644
index 0000000..f356bd7
--- /dev/null
+++ b/extensions/47/hibernate-status/README.md
@@ -0,0 +1,41 @@
+# gnome-shell-extension-hibernate-status
+
+Gnome Shell extension that adds a hibernate/hybrid suspend button in Status menu.
+
+Originally developed by [@arelange](https://github.com/arelange) and then [@p91paul](https://github.com/p91paul). Now maintained by [@slaclau](https://github.com/slaclau).
+
+Supports GNOME 45 and 46.
+
+## FAQ
+
+### Hibernation does not work
+
+Try launching from your terminal
+
+ systemctl hibernate
+
+If it doesn't work, it means hibernation is disabled on your system. Please see:
+
+https://askubuntu.com/questions/1034185/ubuntu-18-04-cant-resume-after-hibernate/1064114#1064114
+
+or
+
+https://help.ubuntu.com/16.04/ubuntu-help/power-hibernate.html
+
+### Hibernation button does not show up, but systemctl hibernate works
+
+If you are running Ubuntu, try putting
+
+ [Enable hibernate in upower]
+ Identity=unix-user:*
+ Action=org.freedesktop.upower.hibernate
+ ResultActive=yes
+
+ [Enable hibernate in logind]
+ Identity=unix-user:*
+ Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
+ ResultActive=yes
+
+into /etc/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla
+
+Otherwise check for similar settings for your distribution. Credit: https://github.com/arelange/gnome-shell-extension-hibernate-status/issues/41#issuecomment-565883599
diff --git a/extensions/47/hibernate-status/buildforupload.sh b/extensions/47/hibernate-status/buildforupload.sh
new file mode 100755
index 0000000..d2c705c
--- /dev/null
+++ b/extensions/47/hibernate-status/buildforupload.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+make zip-file
diff --git a/extensions/47/hibernate-status/extension.js b/extensions/47/hibernate-status/extension.js
new file mode 100644
index 0000000..b0a26c7
--- /dev/null
+++ b/extensions/47/hibernate-status/extension.js
@@ -0,0 +1,590 @@
+import Gio from 'gi://Gio';
+import GLib from 'gi://GLib';
+import GObject from 'gi://GObject';
+import St from 'gi://St';
+import Clutter from 'gi://Clutter';
+
+import * as LoginManager from 'resource:///org/gnome/shell/misc/loginManager.js';
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+import * as StatusSystem from 'resource:///org/gnome/shell/ui/status/system.js';
+import * as PopupMenu from 'resource:///org/gnome/shell/ui/popupMenu.js';
+import * as ExtensionSystem from 'resource:///org/gnome/shell/ui/extensionSystem.js';
+import * as ModalDialog from 'resource:///org/gnome/shell/ui/modalDialog.js';
+import * as Dialog from 'resource:///org/gnome/shell/ui/dialog.js';
+import * as CheckBoxImport from 'resource:///org/gnome/shell/ui/checkBox.js';
+import {loadInterfaceXML} from 'resource:///org/gnome/shell/misc/fileUtils.js';
+
+const CheckBox = CheckBoxImport.CheckBox;
+// Use __ () and N__() for the extension gettext domain, and reuse
+// the shell domain with the default _() and N_()
+import {Extension, gettext as __} from 'resource:///org/gnome/shell/extensions/extension.js';
+export {__};
+const N__ = function (e) {
+ return e;
+};
+
+const HIBERNATE_CHECK_TIMEOUT = 20000;
+
+export default class HibernateButtonExtension extends Extension {
+ _loginManagerCanHibernate(asyncCallback) {
+ if (this._loginManager._proxy) {
+ // systemd path
+ this._loginManager._proxy.call(
+ 'CanHibernate',
+ null,
+ Gio.DBusCallFlags.NONE,
+ -1,
+ null,
+ function (proxy, asyncResult) {
+ let result, error;
+
+ try {
+ result = proxy.call_finish(asyncResult).deep_unpack();
+ } catch (e) {
+ error = e;
+ }
+
+ if (error) asyncCallback(false);
+ else asyncCallback(!['no', 'na'].includes(result[0]));
+ }
+ );
+ } else {
+ this.can_hibernate_sourceID = GLib.idle_add(() => {
+ asyncCallback(false);
+ return false;
+ });
+ }
+ }
+
+ _loginManagerHibernate() {
+ if (this._setting.get_boolean('hibernate-works-check')) {
+ this._hibernateStarted = new Date();
+ this.hibernate_sourceID = GLib.timeout_add(
+ GLib.PRIORITY_DEFAULT,
+ HIBERNATE_CHECK_TIMEOUT,
+ () => this._checkDidHibernate()
+ );
+ }
+ if (this._loginManager._proxy) {
+ // systemd path
+ this._loginManager._proxy.call(
+ 'Hibernate',
+ GLib.Variant.new('(b)', [true]),
+ Gio.DBusCallFlags.NONE,
+ -1,
+ null,
+ null
+ );
+ } else {
+ // Can't do in ConsoleKit
+ this._loginManager.emit('prepare-for-sleep', true);
+ this._loginManager.emit('prepare-for-sleep', false);
+ }
+ }
+
+ _loginManagerCanHybridSleep(asyncCallback) {
+ if (this._loginManager._proxy) {
+ // systemd path
+ this._loginManager._proxy.call(
+ 'CanHybridSleep',
+ null,
+ Gio.DBusCallFlags.NONE,
+ -1,
+ null,
+ function (proxy, asyncResult) {
+ let result, error;
+
+ try {
+ result = proxy.call_finish(asyncResult).deep_unpack();
+ } catch (e) {
+ error = e;
+ }
+
+ if (error) asyncCallback(false);
+ else asyncCallback(!['no', 'na'].includes(result[0]));
+ }
+ );
+ } else {
+ this.can_hybrid_sleep_sourceID = GLib.idle_add(() => {
+ asyncCallback(false);
+ return false;
+ });
+ }
+ }
+
+ _loginManagerHybridSleep() {
+ if (this._loginManager._proxy) {
+ // systemd path
+ this._loginManager._proxy.call(
+ 'HybridSleep',
+ GLib.Variant.new('(b)', [true]),
+ Gio.DBusCallFlags.NONE,
+ -1,
+ null,
+ null
+ );
+ } else {
+ // Can't do in ConsoleKit
+ this._loginManager.emit('prepare-for-sleep', true);
+ this._loginManager.emit('prepare-for-sleep', false);
+ }
+ }
+
+ _loginManagerCanSuspendThenHibernate(asyncCallback) {
+ if (this._loginManager._proxy) {
+ // systemd path
+ this._loginManager._proxy.call(
+ 'CanSuspendThenHibernate',
+ null,
+ Gio.DBusCallFlags.NONE,
+ -1,
+ null,
+ function (proxy, asyncResult) {
+ let result, error;
+
+ try {
+ result = proxy.call_finish(asyncResult).deep_unpack();
+ } catch (e) {
+ error = e;
+ }
+
+ if (error) asyncCallback(false);
+ else asyncCallback(!['no', 'na'].includes(result[0]));
+ }
+ );
+ } else {
+ this.can_suspend_then_hibernate_sourceID = GLib.idle_add(() => {
+ asyncCallback(false);
+ return false;
+ });
+ }
+ }
+
+ _loginManagerSuspendThenHibernate() {
+ if (this._loginManager._proxy) {
+ // systemd path
+ this._loginManager._proxy.call(
+ 'SuspendThenHibernate',
+ GLib.Variant.new('(b)', [true]),
+ Gio.DBusCallFlags.NONE,
+ -1,
+ null,
+ null
+ );
+ } else {
+ // Can't do in ConsoleKit
+ this._loginManager.emit('prepare-for-sleep', true);
+ this._loginManager.emit('prepare-for-sleep', false);
+ }
+ }
+
+ _updateHaveHibernate() {
+ this._loginManagerCanHibernate(result => {
+ log(`Able to hibernate: ${result}`);
+ this._haveHibernate = result;
+ this._updateHibernate();
+ });
+ }
+
+ _updateHibernate() {
+ this._hibernateMenuItem.visible =
+ this._haveHibernate && !Main.sessionMode.isLocked && this._setting.get_boolean('show-hibernate');
+ }
+
+ _updateHaveHybridSleep() {
+ this._loginManagerCanHybridSleep(result => {
+ log(`Able to hybrid-sleep: ${result}`);
+ this._haveHybridSleep = result;
+ this._updateHybridSleep();
+ });
+ }
+
+ _updateHybridSleep() {
+ this._hybridSleepMenuItem.visible =
+ this._haveHybridSleep && !Main.sessionMode.isLocked && this._setting.get_boolean('show-hybrid-sleep');
+ }
+
+ _updateHaveSuspendThenHibernate() {
+ this._loginManagerCanSuspendThenHibernate(result => {
+ log(`Able to suspend then hibernate: ${result}`);
+ this._haveSuspendThenHibernate = result;
+ this._updateSuspendThenHibernate();
+ });
+ }
+
+ _updateSuspendThenHibernate() {
+ this._suspendThenHibernateMenuItem.visible =
+ this._haveSuspendThenHibernate && !Main.sessionMode.isLocked && this._setting.get_boolean('show-suspend-then-hibernate');
+ }
+
+ _updateDefaults() {
+ console.log("Update defaults");
+ let menuItems = this.systemMenu._systemItem.menu._getMenuItems()
+ for (let menuItem of menuItems) {
+ console.log(menuItem.label.get_text())
+ if ( menuItem.label.get_text() === _('Suspend') ) {
+ console.log(`Show suspend button: ${this._setting.get_boolean('show-suspend')}`)
+ menuItem.visible = this._setting.get_boolean('show-suspend');
+ }
+ if ( menuItem.label.get_text() === _('Restart…') ) {
+ console.log(`Show restart button: ${this._setting.get_boolean('show-restart')}`)
+ menuItem.visible = this._setting.get_boolean('show-restart');
+ }
+ if ( menuItem.label.get_text() === _('Power Off…') ) {
+ console.log(`Show shutdown button: ${this._setting.get_boolean('show-shutdown')}`)
+ menuItem.visible = this._setting.get_boolean('show-shutdown');
+ }
+ }
+ }
+
+ _onHibernateClicked() {
+ this.systemMenu._systemItem.menu.itemActivated();
+
+ if (this._setting.get_boolean('show-hibernate-dialog')) {
+ let HibernateDialogContent = {
+ subject: C_('title', __('Hibernate')),
+ description: __('Do you really want to hibernate the system?'),
+ confirmButtons: [
+ {
+ signal: 'Cancel',
+ label: C_('button', __('Cancel')),
+ key: Clutter.Escape,
+ },
+ {
+ signal: 'ConfirmedHibernate',
+ label: C_('button', __('Hibernate')),
+ default: true,
+ },
+ ],
+ };
+
+ this._dialog = new ConfirmDialog(
+ HibernateDialogContent
+ );
+ this._dialog.connect('ConfirmedHibernate', () =>
+ this._loginManagerHibernate()
+ );
+ this._dialog.open();
+ } else {
+ this._loginManagerHibernate()
+ }
+ }
+
+ _onHybridSleepClicked() {
+ this.systemMenu._systemItem.menu.itemActivated();
+ this._loginManagerHybridSleep();
+ }
+
+ _onSuspendThenHibernateClicked() {
+ this.systemMenu._systemItem.menu.itemActivated();
+ this._loginManagerSuspendThenHibernate();
+ }
+
+ _disableExtension() {
+ Main.extensionManager.disableExtension('hibernate-status@dromi')
+ console.log('Disabled')
+ }
+
+ _cancelDisableExtension(notAgain) {
+ if (notAgain) this.setHibernateWorksCheckEnabled(false);
+ }
+
+ _checkRequirements() {
+ if (GLib.access('/run/systemd/seats', 0) < 0) {
+ let SystemdMissingDialogContent = {
+ subject: C_('title', __('Hibernate button: Systemd Missing')),
+ description: __('Systemd seems to be missing and is required.'),
+ confirmButtons: [
+ {
+ signal: 'Cancel',
+ label: C_('button', __('Cancel')),
+ key: Clutter.Escape,
+ },
+ {
+ signal: 'DisableExtension',
+ label: C_('button', __('Disable Extension')),
+ default: true,
+ },
+ ],
+ iconName: 'document-save-symbolic',
+ iconStyleClass: 'end-session-dialog-shutdown-icon',
+ };
+
+ this._dialog = new ConfirmDialog(
+ SystemdMissingDialogContent
+ );
+ this._dialog.connect('DisableExtension', this._disableExtension);
+ this._dialog.open();
+ }
+ }
+
+ _checkDidHibernate() {
+ /* This function is called HIBERNATE_CHECK_TIMEOUT ms after
+ * hibernate started. If it is successful, at that point the GS
+ * process is already frozen; so when this function is actually
+ * called, way more than HIBERNATE_CHECK_TIMEOUT ms are passed*/
+ if (
+ new Date() - this._hibernateStarted >
+ HIBERNATE_CHECK_TIMEOUT + 5000
+ ) {
+ // hibernate succeeded
+ return;
+ }
+ // hibernate failed
+
+ let HibernateFailedDialogContent = {
+ subject: C_('title', __('Hibernate button: Hibernate failed')),
+ description: __(
+ 'Looks like hibernation failed. On some linux distributions hibernation is disabled ' +
+ 'because not all hardware supports it well; ' +
+ 'please check your distribution documentation ' +
+ 'on how to enable it.'
+ ),
+ checkBox: __("You are wrong, don't check this anymore!"),
+ confirmButtons: [
+ {
+ signal: 'Cancel',
+ label: C_('button', __('Cancel')),
+ key: Clutter.Escape,
+ },
+ {
+ signal: 'DisableExtension',
+ label: C_('button', __('Disable Extension')),
+ default: true,
+ },
+ ],
+ iconName: 'document-save-symbolic',
+ iconStyleClass: 'end-session-dialog-shutdown-icon',
+ }
+ this._dialog = new ConfirmDialog(
+ HibernateFailedDialogContent
+ );
+ this._dialog.connect('DisableExtension', this._disableExtension);
+ this._dialog.connect('Cancel', this._cancelDisableExtension);
+ this._dialog.open();
+ }
+
+ setHibernateWorksCheckEnabled(enabled) {
+ let key = 'hibernate-works-check';
+ if (this._setting.is_writable(key)) {
+ if (this._setting.set_boolean(key, enabled)) {
+ Gio.Settings.sync();
+ } else {
+ throw this._errorSet(key);
+ }
+ } else {
+ throw this._errorWritable(key);
+ }
+ }
+
+ _modifySystemItem() {
+ this._setting = this.getSettings()
+ this._checkRequirements();
+ this._loginManager = LoginManager.getLoginManager();
+ this.systemMenu = Main.panel.statusArea.quickSettings._system;
+ this._hibernateMenuItem = new PopupMenu.PopupMenuItem(__('Hibernate'));
+ this._hibernateMenuItemId = this._hibernateMenuItem.connect(
+ 'activate',
+ () => this._onHibernateClicked()
+ );
+
+ this._hybridSleepMenuItem = new PopupMenu.PopupMenuItem(
+ __('Hybrid Sleep')
+ );
+ this._hybridSleepMenuItemId = this._hybridSleepMenuItem.connect(
+ 'activate',
+ () => this._onHybridSleepClicked()
+ );
+
+ this._suspendThenHibernateMenuItem = new PopupMenu.PopupMenuItem(
+ __('Suspend then Hibernate')
+ );
+ this._suspendThenHibernateMenuItemId = this._suspendThenHibernateMenuItem.connect(
+ 'activate',
+ () => this._onSuspendThenHibernateClicked()
+ );
+
+ let afterSuspendPosition =
+ this.systemMenu._systemItem.menu.numMenuItems - 5;
+
+ this.systemMenu._systemItem.menu.addMenuItem(
+ this._hybridSleepMenuItem,
+ afterSuspendPosition
+ );
+ this.systemMenu._systemItem.menu.addMenuItem(
+ this._hibernateMenuItem,
+ afterSuspendPosition
+ );
+ this.systemMenu._systemItem.menu.addMenuItem(
+ this._suspendThenHibernateMenuItem,
+ afterSuspendPosition
+ );
+
+ this._menuOpenStateChangedId = this.systemMenu._systemItem.menu.connect(
+ 'open-state-changed',
+ (menu, open) => {
+ if (!open) return;
+ this._updateDefaults();
+ this._updateHaveHibernate();
+ this._updateHaveHybridSleep();
+ this._updateHaveSuspendThenHibernate();
+ }
+ );
+ }
+
+ _queueModifySystemItem() {
+ this.sourceId = GLib.idle_add(GLib.PRIORITY_DEFAULT, () => {
+ if (!Main.panel.statusArea.quickSettings._system)
+ return GLib.SOURCE_CONTINUE;
+
+ this._modifySystemItem();
+ return GLib.SOURCE_REMOVE;
+ });
+ }
+
+ enable() {
+ if (!Main.panel.statusArea.quickSettings._system) {
+ this._queueModifySystemItem();
+ } else {
+ this._modifySystemItem();
+ }
+ }
+
+ disable() {
+ this._setting = null;
+ if (this._menuOpenStateChangedId) {
+ this.systemMenu._systemItem.menu.disconnect(
+ this._menuOpenStateChangedId
+ );
+ this._menuOpenStateChangedId = 0;
+ }
+
+ if (this._suspendThenHibernateMenuItemId) {
+ this._suspendThenHibernateMenuItem.disconnect(this._suspendThenHibernateMenuItemId);
+ this._suspendThenHibernateMenuItemId = 0;
+ }
+
+ if (this._hybridSleepMenuItemId) {
+ this._hybridSleepMenuItem.disconnect(this._hybridSleepMenuItemId);
+ this._hybridSleepMenuItemId = 0;
+ }
+
+ if (this._hibernateMenuItemId) {
+ this._hibernateMenuItem.disconnect(this._hibernateMenuItemId);
+ this._hibernateMenuItemId = 0;
+ }
+
+ if (this._suspendThenHibernateMenuItem) {
+ this._suspendThenHibernateMenuItem.destroy();
+ this._suspendThenHibernateMenuItem = 0;
+ }
+
+ if (this._hybridSleepMenuItem) {
+ this._hybridSleepMenuItem.destroy();
+ this._hybridSleepMenuItem = 0;
+ }
+
+ if (this._hibernateMenuItem) {
+ this._hibernateMenuItem.destroy();
+ this._hibernateMenuItem = 0;
+ }
+
+ if (this.sourceId) {
+ GLib.Source.remove(this.sourceId);
+ this.sourceId = null;
+ }
+
+ if (this.can_suspend_then_hibernate_sourceID) {
+ GLib.Source.remove(this.can_suspend_then_hibernate_sourceID);
+ this.can_suspend_then_hibernate_sourceID = null;
+ }
+
+ if (this.can_hybrid_sleep_sourceID) {
+ GLib.Source.remove(this.can_hybrid_sleep_sourceID);
+ this.can_hybrid_sleep_sourceID = null;
+ }
+
+ if (this.can_hibernate_sourceID) {
+ GLib.Source.remove(this.can_hibernate_sourceID);
+ this.can_hibernate_sourceID = null;
+ }
+
+ if (this.hibernate_sourceID) {
+ GLib.Source.remove(this.hibernate_sourceID);
+ this.hibernate_sourceID = null;
+ }
+ };
+}
+
+var ConfirmDialog = GObject.registerClass(
+ {
+ Signals: {
+ ConfirmedHibernate: {param_types: [GObject.TYPE_BOOLEAN]},
+ DisableExtension: {param_types: [GObject.TYPE_BOOLEAN]},
+ Cancel: {param_types: [GObject.TYPE_BOOLEAN]},
+ },
+ },
+ class ConfirmDialog extends ModalDialog.ModalDialog {
+ _init(dialog) {
+ super._init({
+ styleClass: 'end-session-dialog',
+ destroyOnClose: true,
+ });
+
+
+ this._messageDialogContent = new Dialog.MessageDialogContent();
+
+
+ this._messageDialogContent.description = dialog.description;
+ this._messageDialogContent.title = dialog.subject;
+
+ if (dialog.iconName) {
+ this._icon = new St.Icon({
+ icon_name: dialog.iconName,
+ icon_size: _DIALOG_ICON_SIZE,
+ style_class: dialog.iconStyleClass,
+ });
+ }
+
+ if (dialog.checkBox) {
+ this._checkBox = new CheckBox(dialog.checkBox);
+ this._messageDialogContent.add(this._checkBox.actor);
+ }
+
+ this.contentLayout.add_child(this._messageDialogContent);
+
+ let buttons = [];
+ for (let i = 0; i < dialog.confirmButtons.length; i++) {
+ let signal = dialog.confirmButtons[i].signal;
+ let label = dialog.confirmButtons[i].label;
+ let keys = dialog.confirmButtons[i].key;
+ buttons.push({
+ action: () => {
+ let signalId = this.connect('closed', () => {
+ this.disconnect(signalId);
+ this._confirm(signal);
+ });
+ this.close();
+ },
+ label: label,
+ key: keys,
+ });
+ }
+
+ this.setButtons(buttons);
+ }
+
+ _confirm(signal) {
+ var checked;
+ if (this._checkBox) checked = this._checkBox.actor.get_checked();
+ this.emit(signal, checked);
+ }
+
+ cancel() {
+ this.close();
+ }
+ }
+);
+
+const _DIALOG_ICON_SIZE = 32;
+
diff --git a/extensions/47/hibernate-status/locale/bg/LC_MESSAGES/hibernate-status-button.po b/extensions/47/hibernate-status/locale/bg/LC_MESSAGES/hibernate-status-button.po
new file mode 100644
index 0000000..689fee9
--- /dev/null
+++ b/extensions/47/hibernate-status/locale/bg/LC_MESSAGES/hibernate-status-button.po
@@ -0,0 +1,75 @@
+# Bulgarian translation of hibernate-status-button
+# Copyright (C) 2023 Zetta1 Reid0
+# This file is distributed under the same license as the hibernate-status-button package.
+# Zetta1 Reid0, 2023.
+#
+
+msgid ""
+msgstr ""
+"Project-Id-Version: Hibernate Status Button\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 17.03.2023 12:41+0200\n"
+"PO-Revision-Date: 17.03.2023 12:41+0200\n"
+"Last-Translator: Zetta1 Reid0\n"
+"Language-Team: Bulgarian\n"
+"Language: bg\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"
+"X-Generator: Poedit 3.0\n"
+"X-Poedit-Basepath: .\n"
+
+#: extension.js:189 confirmDialog.js:23 confirmDialog.js:32
+msgid "Hibernate"
+msgstr "Хиберниране"
+
+#: extension.js:192
+msgid "Hybrid Sleep"
+msgstr "Хибридно Приспиване"
+
+#: confirmDialog.js:24
+msgid "Do you really want to hibernate the system?"
+msgstr "Наистина ли искате да хибернирате системата?"
+
+#: confirmDialog.js:27 confirmDialog.js:44 confirmDialog.js:67
+msgid "Cancel"
+msgstr "Отказ"
+
+#: confirmDialog.js:40
+msgid "Hibernate button: Systemd Missing"
+msgstr "Бутон за Хибернация: Systemd Липсва."
+
+#: confirmDialog.js:41
+msgid "Systemd seems to be missing and is required."
+msgstr "Systemd изглежда че липсва, а е задължително."
+
+#: confirmDialog.js:49 confirmDialog.js:72
+msgid "Disable Extension"
+msgstr "Изключване на Разширението"
+
+#: confirmDialog.js:58
+msgid "Hibernate button: Hibernate failed"
+msgstr "Бутон за Хибернация: Хибернирането се провали."
+
+#: confirmDialog.js:59
+msgid ""
+"Looks like hibernation failed.\n"
+"On some linux distributions hibernation is disabled\n"
+"because not all hardware supports it well;\n"
+"please check your distribution documentation\n"
+"on how to enable it."
+msgstr ""
+"Изглежда че Хибернацията се провали.\n"
+"На някой Линукс дистрибуции хибернирането е изключено,\n"
+"защото не всеки хардуер го поддържа добре.\n"
+"Моля проверете документацията на вашата дистрибуция\n"
+"за това как да я включите"
+
+#: confirmDialog.js:64
+msgid "You are wrong, don't check this anymore!"
+msgstr "Вие сте в грешка, Не проверявайте това повече!"
+
+#: prefs.js:99
+msgid "This extension has no settings available"
+msgstr "Това разширение няма налични настройки."
diff --git a/extensions/47/hibernate-status/locale/cs/LC_MESSAGES/hibernate-status-button.po b/extensions/47/hibernate-status/locale/cs/LC_MESSAGES/hibernate-status-button.po
new file mode 100644
index 0000000..32e541d
--- /dev/null
+++ b/extensions/47/hibernate-status/locale/cs/LC_MESSAGES/hibernate-status-button.po
@@ -0,0 +1,66 @@
+# Czech translation of hibernate-status-button
+# Copyright (C) 2021 Vojtěch Perník
+# This file is distributed under the same license as the hibernate-status-button package.
+# Vojtěch Perník <translations@pervoj.cz>, 2021.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Hibernate Status Button\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2021-04-11 18:31+0200\n"
+"PO-Revision-Date: 2021-05-06 16:15+0200\n"
+"Last-Translator: Vojtěch Perník <translations@pervoj.cz>\n"
+"Language-Team: Czech\n"
+"Language: cs\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: confirmDialog.js:23 confirmDialog.js:32
+msgid "Hibernate"
+msgstr "Uspat na disk"
+
+#: confirmDialog.js:24
+msgid "Do you really want to hibernate the system?"
+msgstr "Opravdu chcete systém uspat na disk?"
+
+#: confirmDialog.js:27 confirmDialog.js:44 confirmDialog.js:67
+msgid "Cancel"
+msgstr "Zrušit"
+
+#: confirmDialog.js:40
+msgid "Hibernate button: Systemd Missing"
+msgstr "Hibernate button: Systemd není nainstalován"
+
+#: confirmDialog.js:41
+msgid "Systemd seems to be missing and is required."
+msgstr "Zdá se, že Systemd není nainstalován, ale je vyžadován."
+
+#: confirmDialog.js:49 confirmDialog.js:72
+msgid "Disable Extension"
+msgstr "Zakázat rozšíření"
+
+#: confirmDialog.js:58
+msgid "Hibernate button: Hibernate failed"
+msgstr "Hibernate button: Uspání na disk se nezdařilo"
+
+#: confirmDialog.js:59
+msgid ""
+"Looks like hibernation failed.\n"
+"On some linux distributions hibernation is disabled\n"
+"because not all hardware supports it well;\n"
+"please check your distribution documentation\n"
+"on how to enable it."
+msgstr ""
+"Vypadá to, že se uspání na disk nezdařilo.\n"
+"U některých linuxových distribucí je uspání na disk\n"
+"zakázáno, protože ne všechny hardware ho podporují,\n"
+"podívejte se prosím do dokumentace své distribuce, jak ji povolit."
+
+#: confirmDialog.js:64
+msgid "You are wrong, don't check this anymore!"
+msgstr "Mýlíte se, už to nekontrolujte!"
+
+#: prefs.js:99
+msgid "This extension has no settings available"
+msgstr "Toto rozšíření nemá k dispozici žádná nastavení"
diff --git a/extensions/47/hibernate-status/locale/de/LC_MESSAGES/hibernate-status-button.po b/extensions/47/hibernate-status/locale/de/LC_MESSAGES/hibernate-status-button.po
new file mode 100644
index 0000000..3fdb8c2
--- /dev/null
+++ b/extensions/47/hibernate-status/locale/de/LC_MESSAGES/hibernate-status-button.po
@@ -0,0 +1,72 @@
+# German translation of hibernate-status-button
+# Copyright (C) 2022 Oskar Kirmis
+# This file is distributed under the same license as the hibernate-status-button package.
+# Oskar Kirmis <oskar.kirmis@posteo.de>, 2022.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Hibernate Status Button\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2022-03-28 21:00+0200\n"
+"PO-Revision-Date: 2022-10-22 21:30+0200\n"
+"Last-Translator: Oskar Kirmis <oskar.kirmis@posteo.de>\n"
+"Language-Team: German\n"
+"Language: de\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 3.0.1\n"
+
+#: confirmDialog.js:23 confirmDialog.js:32
+msgid "Hibernate"
+msgstr "Ruhezustand"
+
+#: extension.js:192
+msgid "Hybrid Sleep"
+msgstr "Hybrider Standbymodus"
+
+#: confirmDialog.js:24
+msgid "Do you really want to hibernate the system?"
+msgstr "Wollen Sie das System wirklich in den Ruhezustand versetzen?"
+
+#: confirmDialog.js:27 confirmDialog.js:44 confirmDialog.js:67
+msgid "Cancel"
+msgstr "Abbrechen"
+
+#: confirmDialog.js:40
+msgid "Hibernate button: Systemd Missing"
+msgstr "Hibernate button: Systemd fehlt"
+
+#: confirmDialog.js:41
+msgid "Systemd seems to be missing and is required."
+msgstr "Systemd fehlt offenbar, wird jedoch benötigt."
+
+#: confirmDialog.js:49 confirmDialog.js:72
+msgid "Disable Extension"
+msgstr "Erweiterung deaktivieren"
+
+#: confirmDialog.js:58
+msgid "Hibernate button: Hibernate failed"
+msgstr "Hibernate button: Versetzen in den Ruhezustand fehlgeschlagen"
+
+#: confirmDialog.js:59
+msgid ""
+"Looks like hibernation failed.\n"
+"On some linux distributions hibernation is disabled\n"
+"because not all hardware supports it well;\n"
+"please check your distribution documentation\n"
+"on how to enable it."
+msgstr ""
+"Offenbar konnte das System nicht in den Ruhezustand versetzt werden.\n"
+"Auf manchen Linuxdistributionen ist der Ruhezustand deaktiviert\n"
+"weil nicht jegliche Hardware dies unterstützt;\n"
+"bitte schauen Sie in der Dokumentation Ihrer\n"
+"Distribution nach, wie Sie ihn aktivieren können."
+
+#: confirmDialog.js:64
+msgid "You are wrong, don't check this anymore!"
+msgstr "Das ist falsch, bitte nicht mehr prüfen!"
+
+#: prefs.js:99
+msgid "This extension has no settings available"
+msgstr "Für diese Erweiterung gibt es keine Einstellungen"
diff --git a/extensions/47/hibernate-status/locale/es/LC_MESSAGES/hibernate-status-button.po b/extensions/47/hibernate-status/locale/es/LC_MESSAGES/hibernate-status-button.po
new file mode 100644
index 0000000..92c14bc
--- /dev/null
+++ b/extensions/47/hibernate-status/locale/es/LC_MESSAGES/hibernate-status-button.po
@@ -0,0 +1,71 @@
+# Spanish translation of hibernate-status-button
+# Copyright (C) 2022 slaythrax
+# This file is distributed under the same license as the hibernate-status-button package.
+# slaythrax <jbustamantec@unal.edu.co>, 2022.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Hibernate Status Button\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2021-04-11 18:31+0200\n"
+"PO-Revision-Date: 2022-10-22 21:30+0200\n"
+"Last-Translator: slaythrax <jbustamantec@unal.edu.co>\n"
+"Language-Team: Spanish <jbustamantec@unal.edu.co>\n"
+"Language: es\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: confirmDialog.js:23 confirmDialog.js:32
+msgid "Hibernate"
+msgstr "Hibernar"
+
+#: extension.js:192
+msgid "Hybrid Sleep"
+msgstr "Suspensión Híbrida"
+
+#: confirmDialog.js:24
+msgid "Do you really want to hibernate the system?"
+msgstr "Desea hibernar el sistema?"
+
+#: confirmDialog.js:27 confirmDialog.js:44 confirmDialog.js:67
+msgid "Cancel"
+msgstr "Cancelar"
+
+#: confirmDialog.js:40
+msgid "Hibernate button: Systemd Missing"
+msgstr "Systemd no está instalado"
+
+#: confirmDialog.js:41
+msgid "Systemd seems to be missing and is required."
+msgstr "Parece que systemd no está instalado. Systemd es necesario"
+
+#: confirmDialog.js:49 confirmDialog.js:72
+msgid "Disable Extension"
+msgstr "Deshabilitar extensión"
+
+#: confirmDialog.js:58
+msgid "Hibernate button: Hibernate failed"
+msgstr "Hibernación fallida"
+
+#: confirmDialog.js:59
+msgid ""
+"Looks like hibernation failed.\n"
+"On some linux distributions hibernation is disabled\n"
+"because not all hardware supports it well;\n"
+"please check your distribution documentation\n"
+"on how to enable it."
+msgstr ""
+"Parece que la hibernación falló\n"
+"En algunas distribuciones de linux la hibernación se encuentra deshabilitada\n"
+"pues no todo el hardware no la soporta correctamente;\n"
+"verifique la documentación de su distribución\n"
+"para habilitarla."
+
+#: confirmDialog.js:64
+msgid "You are wrong, don't check this anymore!"
+msgstr "No es necesario hacer esta verificación de nuevo! "
+
+#: prefs.js:99
+msgid "This extension has no settings available"
+msgstr "Esta extensión no tiene ajustes disponibles"
diff --git a/extensions/47/hibernate-status/locale/fa/LC_MESSAGES/hibernate-status-button.po b/extensions/47/hibernate-status/locale/fa/LC_MESSAGES/hibernate-status-button.po
new file mode 100644
index 0000000..e4edef0
--- /dev/null
+++ b/extensions/47/hibernate-status/locale/fa/LC_MESSAGES/hibernate-status-button.po
@@ -0,0 +1,72 @@
+# Persian translation of hibernate-status-button
+# Copyright (C) 2021 MohammadSaleh Kamyab
+# This file is distributed under the same license as the hibernate-status-button package.
+# MohammadSaleh Kamyab <mskf1383@envs.net>, 2022.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Hibernate Status Button\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2021-04-11 18:31+0200\n"
+"PO-Revision-Date: 2022-06-21 13:06+0430\n"
+"Last-Translator: MohammadSaleh Kamyab <mskf1383@envs.net>\n"
+"Language-Team: \n"
+"Language: fa\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n==0 || n==1);\n"
+"X-Generator: Poedit 3.1\n"
+
+#: confirmDialog.js:23 confirmDialog.js:32
+msgid "Hibernate"
+msgstr "خواب زمستانی"
+
+#: extension.js:192
+msgid "Hybrid Sleep"
+msgstr "خواب ترکیبی"
+
+#: confirmDialog.js:24
+msgid "Do you really want to hibernate the system?"
+msgstr "آیا مطمئنید که می‌خواهید سامانه را به خواب زمستانی ببرید؟"
+
+#: confirmDialog.js:27 confirmDialog.js:44 confirmDialog.js:67
+msgid "Cancel"
+msgstr "لغو"
+
+#: confirmDialog.js:40
+msgid "Hibernate button: Systemd Missing"
+msgstr "دکمهٔ خواب زمستانی: سیستم‌دی یافت نشد"
+
+#: confirmDialog.js:41
+msgid "Systemd seems to be missing and is required."
+msgstr "به نظر می‌رسد سیستم‌دی که لازم است، وجود ندارد."
+
+#: confirmDialog.js:49 confirmDialog.js:72
+msgid "Disable Extension"
+msgstr "از کار انداختن افزونه"
+
+#: confirmDialog.js:58
+msgid "Hibernate button: Hibernate failed"
+msgstr "دکمهٔ خواب زمستانی: خواب زمستانی شکست خورد"
+
+#: confirmDialog.js:59
+msgid ""
+"Looks like hibernation failed.\n"
+"On some linux distributions hibernation is disabled\n"
+"because not all hardware supports it well;\n"
+"please check your distribution documentation\n"
+"on how to enable it."
+msgstr ""
+"به نظر می‌رسد خواب زمستانی به شکست انجامید.\n"
+"در بعضی از توزیع‌های گنو/لینوکسی، خواب زمستانی از کار انداخته شده است؛\n"
+"زیرا تمامی سخت‌افزارها به‌خوبی از آن پشتیبانی نمی‌کنند.\n"
+"لطفاً مستندات توزیع خود را در مورد چگونگی به کار انداختن آن، بررسی کنید."
+
+#: confirmDialog.js:64
+msgid "You are wrong, don't check this anymore!"
+msgstr "اشتباه می‌کنید، دوباره بررسی نکنید!"
+
+#: prefs.js:99
+msgid "This extension has no settings available"
+msgstr "این افزونه هیچ تنظیماتی ندارد"
diff --git a/extensions/47/hibernate-status/locale/fr/LC_MESSAGES/hibernate-status-button.po b/extensions/47/hibernate-status/locale/fr/LC_MESSAGES/hibernate-status-button.po
new file mode 100644
index 0000000..9dca80d
--- /dev/null
+++ b/extensions/47/hibernate-status/locale/fr/LC_MESSAGES/hibernate-status-button.po
@@ -0,0 +1,71 @@
+# French translation of hibernate-status-button
+# Copyright (C) 2021 Jérôme de Bretagne
+# This file is distributed under the same license as the hibernate-status-button package.
+# Jérôme de Bretagne <jerome.debretagne@gmail.com>, 2021.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Hibernate Status Button\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2021-04-11 18:31+0200\n"
+"PO-Revision-Date: 2021-11-13 19:34+0200\n"
+"Last-Translator: Jérôme de Bretagne <jerome.debretagne@gmail.com>\n"
+"Language-Team: French <jerome.debretagne@gmail.com>\n"
+"Language: fr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: extension.js:189 confirmDialog.js:23 confirmDialog.js:32
+msgid "Hibernate"
+msgstr "Mettre en veille prolongée"
+
+#: extension.js:192
+msgid "Hybrid Sleep"
+msgstr "Mettre en veille hybride"
+
+#: confirmDialog.js:24
+msgid "Do you really want to hibernate the system?"
+msgstr "Voulez-vous vraiment mettre l'appareil en veille prolongée ?"
+
+#: confirmDialog.js:27 confirmDialog.js:44 confirmDialog.js:67
+msgid "Cancel"
+msgstr "Annuler"
+
+#: confirmDialog.js:40
+msgid "Hibernate button: Systemd Missing"
+msgstr "Extension de mise en veille prolongée : systemd manquant"
+
+#: confirmDialog.js:41
+msgid "Systemd seems to be missing and is required."
+msgstr "systemd ne semble pas installé et est nécessaire."
+
+#: confirmDialog.js:49 confirmDialog.js:72
+msgid "Disable Extension"
+msgstr "Désactiver l'extension"
+
+#: confirmDialog.js:58
+msgid "Hibernate button: Hibernate failed"
+msgstr "Extension de mise en veille prolongée : échec"
+
+#: confirmDialog.js:59
+msgid ""
+"Looks like hibernation failed.\n"
+"On some linux distributions hibernation is disabled\n"
+"because not all hardware supports it well;\n"
+"please check your distribution documentation\n"
+"on how to enable it."
+msgstr ""
+"La mise en veille prolongée a échoué.\n"
+"Sur certaines distributions Linux, la mise en veille prolongée est désactivée\n"
+"car elle ne fonctionne pas correctement pour quelques appareils;\n"
+"Veuillez vous reporter à la documentation de votre distribution\n"
+"pour savoir comment l'activer."
+
+#: confirmDialog.js:64
+msgid "You are wrong, don't check this anymore!"
+msgstr "Il n'est pas utile de cocher cette case !"
+
+#: prefs.js:99
+msgid "This extension has no settings available"
+msgstr "Cette extension n'a pas de paramètres"
diff --git a/extensions/47/hibernate-status/locale/hu/LC_MESSAGES/hibernate-status-button.po b/extensions/47/hibernate-status/locale/hu/LC_MESSAGES/hibernate-status-button.po
new file mode 100644
index 0000000..70da5aa
--- /dev/null
+++ b/extensions/47/hibernate-status/locale/hu/LC_MESSAGES/hibernate-status-button.po
@@ -0,0 +1,72 @@
+# Hungarian translation of hibernate-status-button
+# Copyright (C) 2023 ViBE
+# This file is distributed under the same license as the hibernate-status-button package.
+# ViBE <vibe@protonmail.com>, 2023.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Hibernate Status Button\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2021-04-11 18:31+0200\n"
+"PO-Revision-Date: 2023-02-25 00:00+0100\n"
+"Last-Translator: ViBE <vibe@protonmail.com>\n"
+"Language-Team: Hungarian <vibe@protonmail.com>\n"
+"Language: hu\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1)\n"
+"X-Generator: Gtranslator 41.0\n"
+
+#: confirmDialog.js:23 confirmDialog.js:32
+msgid "Hibernate"
+msgstr "Hibernálás"
+
+#: extension.js:192
+msgid "Hybrid Sleep"
+msgstr "Hibrid felfüggesztés"
+
+#: confirmDialog.js:24
+msgid "Do you really want to hibernate the system?"
+msgstr "Valóban hibernálni szeretné a rendszert?"
+
+#: confirmDialog.js:27 confirmDialog.js:44 confirmDialog.js:67
+msgid "Cancel"
+msgstr "Mégse"
+
+#: confirmDialog.js:40
+msgid "Hibernate button: Systemd Missing"
+msgstr "Hibernate button: systemd nem található"
+
+#: confirmDialog.js:41
+msgid "Systemd seems to be missing and is required."
+msgstr "Úgy tűnik, hogy a hibernáláshoz szükséges systemd nincs telepítve."
+
+#: confirmDialog.js:49 confirmDialog.js:72
+msgid "Disable Extension"
+msgstr "Kiterjesztés letiltása"
+
+#: confirmDialog.js:58
+msgid "Hibernate button: Hibernate failed"
+msgstr "Hibernate button: Hibernálás meghiúsult"
+
+#: confirmDialog.js:59
+msgid ""
+"Looks like hibernation failed.\n"
+"On some linux distributions hibernation is disabled\n"
+"because not all hardware supports it well;\n"
+"please check your distribution documentation\n"
+"on how to enable it."
+msgstr ""
+"Úgy tűnik, hogy a hibernálás sikertelen volt.\n"
+"Egyes Linux kiadások nem támogatják ezt a funkciót,\n"
+"mert nem minden eszköz támogatja a hibernálást;\n"
+"engedélyezéshez ellenőrizze a rendszer dokumentációját!"
+
+#: confirmDialog.js:64
+msgid "You are wrong, don't check this anymore!"
+msgstr "Ne ellenőrizd ezt többet!"
+
+#: prefs.js:99
+msgid "This extension has no settings available"
+msgstr "Ennek a kiterjesztésnek nincsenek beállításai"
diff --git a/extensions/47/hibernate-status/locale/it/LC_MESSAGES/hibernate-status-button.po b/extensions/47/hibernate-status/locale/it/LC_MESSAGES/hibernate-status-button.po
new file mode 100644
index 0000000..a41e5ac
--- /dev/null
+++ b/extensions/47/hibernate-status/locale/it/LC_MESSAGES/hibernate-status-button.po
@@ -0,0 +1,71 @@
+# Italian translation of hibernate-status-button
+# Copyright (C) 2021 p91paul
+# This file is distributed under the same license as the hibernate-status-button package.
+# p91paul <p91paul@gmail.com>, 2021.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Hibernate Status Button\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2021-04-11 18:31+0200\n"
+"PO-Revision-Date: 2022-10-22 21:30+0200\n"
+"Last-Translator: p91paul <p91paul@gmail.com>\n"
+"Language-Team: Italian <p91paul@gmail.com>\n"
+"Language: it\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: confirmDialog.js:23 confirmDialog.js:32
+msgid "Hibernate"
+msgstr "Iberna"
+
+#: extension.js:192
+msgid "Hybrid Sleep"
+msgstr "Sospensione ibrida"
+
+#: confirmDialog.js:24
+msgid "Do you really want to hibernate the system?"
+msgstr "Vuoi davvero ibernare il sistema?"
+
+#: confirmDialog.js:27 confirmDialog.js:44 confirmDialog.js:67
+msgid "Cancel"
+msgstr "Cancella"
+
+#: confirmDialog.js:40
+msgid "Hibernate button: Systemd Missing"
+msgstr "Systemd non installato"
+
+#: confirmDialog.js:41
+msgid "Systemd seems to be missing and is required."
+msgstr "Systemd non è installato ed è necessario"
+
+#: confirmDialog.js:49 confirmDialog.js:72
+msgid "Disable Extension"
+msgstr "Disabilita estensione"
+
+#: confirmDialog.js:58
+msgid "Hibernate button: Hibernate failed"
+msgstr "Ibernazione fallita"
+
+#: confirmDialog.js:59
+msgid ""
+"Looks like hibernation failed.\n"
+"On some linux distributions hibernation is disabled\n"
+"because not all hardware supports it well;\n"
+"please check your distribution documentation\n"
+"on how to enable it."
+msgstr ""
+"Sembra che l'ibernazione sia fallita.\n"
+"In alcune distribuzioni Linux l'ibernazione è disabilitata\n"
+"perchè non ben supportata da tutte le tipologie di hardware;\n"
+"Verifica la documentazione della tua distribuzione\n"
+"per abilitarla."
+
+#: confirmDialog.js:64
+msgid "You are wrong, don't check this anymore!"
+msgstr "Ti sbagli, va tutto bene, non fare più questa verifica"
+
+#: prefs.js:99
+msgid "This extension has no settings available"
+msgstr "Questa estensione non ha impostazioni disponibili"
diff --git a/extensions/47/hibernate-status/locale/nl/LC_MESSAGES/hibernate-status-button.po b/extensions/47/hibernate-status/locale/nl/LC_MESSAGES/hibernate-status-button.po
new file mode 100644
index 0000000..3146d8a
--- /dev/null
+++ b/extensions/47/hibernate-status/locale/nl/LC_MESSAGES/hibernate-status-button.po
@@ -0,0 +1,72 @@
+# Nederlands translation of hibernate-status-button
+# Copyright (C) 2021 tebaranowski
+# This file is distributed under the same license as the hibernate-status-button package.
+# tebaranowski <tomasz.baranowski@int.pl>, 2021.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Hibernate Status Button\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2021-04-11 18:31+0200\n"
+"PO-Revision-Date: 2021-09-13 17:56+0200\n"
+"Last-Translator: Heimen Stoffels <vistausss@fastmail.com>\n"
+"Language-Team: Dutch <vistausss@fastmail.com>\n"
+"Language: nl\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"
+"X-Generator: Poedit 3.0\n"
+
+#: confirmDialog.js:23 confirmDialog.js:32
+msgid "Hibernate"
+msgstr "Slaapstand"
+
+#: extension.js:192
+msgid "Hybrid Sleep"
+msgstr "Hybride slaapstand"
+
+#: confirmDialog.js:24
+msgid "Do you really want to hibernate the system?"
+msgstr "Weet u zeker dat u het systeem in de slaapstand wilt zetten?"
+
+#: confirmDialog.js:27 confirmDialog.js:44 confirmDialog.js:67
+msgid "Cancel"
+msgstr "Annuleren"
+
+#: confirmDialog.js:40
+msgid "Hibernate button: Systemd Missing"
+msgstr "Slaapstandknop: Systemd ontbreekt"
+
+#: confirmDialog.js:41
+msgid "Systemd seems to be missing and is required."
+msgstr "Systemd is vereist, maar niet aangetroffen."
+
+#: confirmDialog.js:49 confirmDialog.js:72
+msgid "Disable Extension"
+msgstr "Uitbreiding uitschakelen"
+
+#: confirmDialog.js:58
+msgid "Hibernate button: Hibernate failed"
+msgstr "Slaapstandknop: slaapstand mislukt"
+
+#: confirmDialog.js:59
+msgid ""
+"Looks like hibernation failed.\n"
+"On some linux distributions hibernation is disabled\n"
+"because not all hardware supports it well;\n"
+"please check your distribution documentation\n"
+"on how to enable it."
+msgstr ""
+"Het lijkt er op dat de slaapstand niet kan worden ingeschakeld.\n"
+"Op sommige distributies is de slaapstand niet beschikbaar.\n"
+"Neem de documentatie van uw distributie door om te\n"
+"zien of u de slaapstand kunt activeren."
+
+#: confirmDialog.js:64
+msgid "You are wrong, don't check this anymore!"
+msgstr "Dit klopt niet - negeer deze controle!"
+
+#: prefs.js:99
+msgid "This extension has no settings available"
+msgstr "Deze uitbreiding bevat geen voorkeurenscherm"
diff --git a/extensions/47/hibernate-status/locale/oc/LC_MESSAGES/hibernate-status-button.po b/extensions/47/hibernate-status/locale/oc/LC_MESSAGES/hibernate-status-button.po
new file mode 100644
index 0000000..25debf8
--- /dev/null
+++ b/extensions/47/hibernate-status/locale/oc/LC_MESSAGES/hibernate-status-button.po
@@ -0,0 +1,71 @@
+# Occitan translation of hibernate-status-button
+# Copyright (C) 2022 Quentin
+# This file is distributed under the same license as the hibernate-status-button package.
+# Quentin
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Hibernate Status Button\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2021-04-11 18:31+0200\n"
+"PO-Revision-Date: 2023-01-11 17:19+0200\n"
+"Last-Translator: Quentin PAGÈS <>\n"
+"Language-Team: Occitan\n"
+"Language: oc\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: extension.js:189 confirmDialog.js:23 confirmDialog.js:32
+msgid "Hibernate"
+msgstr "Metre en velha perlongada"
+
+#: extension.js:192
+msgid "Hybrid Sleep"
+msgstr "Metre en velha ibrida"
+
+#: confirmDialog.js:24
+msgid "Do you really want to hibernate the system?"
+msgstr "Volètz vertadièrament metre l'aparelh en velha perlongada ?"
+
+#: confirmDialog.js:27 confirmDialog.js:44 confirmDialog.js:67
+msgid "Cancel"
+msgstr "Anullar"
+
+#: confirmDialog.js:40
+msgid "Hibernate button: Systemd Missing"
+msgstr "Extension de mesa en velha perlongada : systemd mancant"
+
+#: confirmDialog.js:41
+msgid "Systemd seems to be missing and is required."
+msgstr "systemd sembla pas installat e es necessari."
+
+#: confirmDialog.js:49 confirmDialog.js:72
+msgid "Disable Extension"
+msgstr "Desactivar l'extension"
+
+#: confirmDialog.js:58
+msgid "Hibernate button: Hibernate failed"
+msgstr "Extension de mesa en velha perlongada : fracàs"
+
+#: confirmDialog.js:59
+msgid ""
+"Looks like hibernation failed.\n"
+"On some linux distributions hibernation is disabled\n"
+"because not all hardware supports it well;\n"
+"please check your distribution documentation\n"
+"on how to enable it."
+msgstr ""
+"La mesa en velha perlongada a fracassat.\n"
+"Amb d'unas distribucions Linux, la mesa en velha perlongada es desactivada\n"
+"pr'amor que fonciona pas coma cal amb d'unes aparelhs ;\n"
+"Mercés de consultar la documentacion de la distribucion\n"
+"per saber cossí l'activar."
+
+#: confirmDialog.js:64
+msgid "You are wrong, don't check this anymore!"
+msgstr "Es pas necessari de marcar aquesta casa !"
+
+#: prefs.js:99
+msgid "This extension has no settings available"
+msgstr "Aquesta extension a pas cap de paramètres"
diff --git a/extensions/47/hibernate-status/locale/pl/LC_MESSAGES/hibernate-status-button.po b/extensions/47/hibernate-status/locale/pl/LC_MESSAGES/hibernate-status-button.po
new file mode 100644
index 0000000..57b735c
--- /dev/null
+++ b/extensions/47/hibernate-status/locale/pl/LC_MESSAGES/hibernate-status-button.po
@@ -0,0 +1,71 @@
+# Polish translation of hibernate-status-button
+# Copyright (C) 2022 tebaranowski
+# This file is distributed under the same license as the hibernate-status-button package.
+# tebaranowski <tomasz.baranowski@int.pl>, 2022.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Hibernate Status Button\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2021-04-11 18:31+0200\n"
+"PO-Revision-Date: 2022-11-01 20:31+0200\n"
+"Last-Translator: tebaranowski <tomasz.baranowski@int.pl>\n"
+"Language-Team: Polish <tomasz.baranowski@int.pl>\n"
+"Language: pl\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: confirmDialog.js:23 confirmDialog.js:32
+msgid "Hibernate"
+msgstr "Hibernacja"
+
+#: extension.js:192
+msgid "Hybrid Sleep"
+msgstr "Uśpienie hybrydowe"
+
+#: confirmDialog.js:24
+msgid "Do you really want to hibernate the system?"
+msgstr "Czy na pewno chcesz zahibernować system?"
+
+#: confirmDialog.js:27 confirmDialog.js:44 confirmDialog.js:67
+msgid "Cancel"
+msgstr "Anuluj"
+
+#: confirmDialog.js:40
+msgid "Hibernate button: Systemd Missing"
+msgstr "Nie odnaleziono systemd"
+
+#: confirmDialog.js:41
+msgid "Systemd seems to be missing and is required."
+msgstr "Brak zainstalowanego systemd, wymaganego do hibernacji"
+
+#: confirmDialog.js:49 confirmDialog.js:72
+msgid "Disable Extension"
+msgstr "Wyłącz rozszerzenie"
+
+#: confirmDialog.js:58
+msgid "Hibernate button: Hibernate failed"
+msgstr "Hibernacja nie powiodła się"
+
+#: confirmDialog.js:59
+msgid ""
+"Looks like hibernation failed.\n"
+"On some linux distributions hibernation is disabled\n"
+"because not all hardware supports it well;\n"
+"please check your distribution documentation\n"
+"on how to enable it."
+msgstr ""
+"Wygląda na to, że hibernacja się nie powiodła.\n"
+"W niektórych dystrybucjach Linuksa hibernacja jest wyłączona,\n"
+"ponieważ nie każdy sprzęt poprawnie ją obsługuje.\n"
+"Sprawdź jak ją włączyć w dokumentacji swojej\n"
+"dystrybucji."
+
+#: confirmDialog.js:64
+msgid "You are wrong, don't check this anymore!"
+msgstr "Nie sprawdzaj tego ponownie!"
+
+#: prefs.js:99
+msgid "This extension has no settings available"
+msgstr "To rozszerzenie nie posiada możliwości zmiany ustawień"
diff --git a/extensions/47/hibernate-status/locale/pt/LC_MESSAGES/hibernate-status-button.po b/extensions/47/hibernate-status/locale/pt/LC_MESSAGES/hibernate-status-button.po
new file mode 100644
index 0000000..143129c
--- /dev/null
+++ b/extensions/47/hibernate-status/locale/pt/LC_MESSAGES/hibernate-status-button.po
@@ -0,0 +1,71 @@
+# Portuguese translation of hibernate-status-button
+# Copyright (C) 2021 p91paul
+# This file is distributed under the same license as the hibernate-status-button package.
+# mantonelli <matheus.antonelli@gmail.com>, 2021.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Hibernate Status Button\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2021-04-11 18:31+0200\n"
+"PO-Revision-Date: 2022-10-22 21:30+0200\n"
+"Last-Translator: mantonelli <matheus.antonelli@gmail.com>\n"
+"Language-Team: Portuguese <matheus.antonelli@gmail.com>\n"
+"Language: it\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: confirmDialog.js:23 confirmDialog.js:32
+msgid "Hibernate"
+msgstr "Hibernar"
+
+#: extension.js:192
+msgid "Hybrid Sleep"
+msgstr "Suspensão Híbrida"
+
+#: confirmDialog.js:24
+msgid "Do you really want to hibernate the system?"
+msgstr "Deseja realmente hibernar o sistema?"
+
+#: confirmDialog.js:27 confirmDialog.js:44 confirmDialog.js:67
+msgid "Cancel"
+msgstr "Cancelar"
+
+#: confirmDialog.js:40
+msgid "Hibernate button: Systemd Missing"
+msgstr "Systemd não está instalado"
+
+#: confirmDialog.js:41
+msgid "Systemd seems to be missing and is required."
+msgstr "Systemd não está instalado e é necessário"
+
+#: confirmDialog.js:49 confirmDialog.js:72
+msgid "Disable Extension"
+msgstr "Desabilitar extensão"
+
+#: confirmDialog.js:58
+msgid "Hibernate button: Hibernate failed"
+msgstr "Hibernação falhou"
+
+#: confirmDialog.js:59
+msgid ""
+"Looks like hibernation failed.\n"
+"On some linux distributions hibernation is disabled\n"
+"because not all hardware supports it well;\n"
+"please check your distribution documentation\n"
+"on how to enable it."
+msgstr ""
+"Parece que a hibernação falhou.\n"
+"Em algumas distribuições Linux a hibernação é desabilitada\n"
+"já que nem todo hardware oferece suporte adequado à ela;\n"
+"Confira a documentação de sua distribuição\n"
+"para aprender como habilitá-la."
+
+#: confirmDialog.js:64
+msgid "You are wrong, don't check this anymore!"
+msgstr "Você errou! Não selecione isso novamente!"
+
+#: prefs.js:99
+msgid "This extension has no settings available"
+msgstr "Essa extensão não possui configurações disponíveis"
diff --git a/extensions/47/hibernate-status/locale/pt_BR/LC_MESSAGES/hibernate-status-button.po b/extensions/47/hibernate-status/locale/pt_BR/LC_MESSAGES/hibernate-status-button.po
new file mode 100644
index 0000000..326481a
--- /dev/null
+++ b/extensions/47/hibernate-status/locale/pt_BR/LC_MESSAGES/hibernate-status-button.po
@@ -0,0 +1,73 @@
+# Portuguese translation of hibernate-status-button
+# Copyright (C) 2021 p91paul
+# This file is distributed under the same license as the hibernate-status-button package.
+# mantonelli <matheus.antonelli@gmail.com>, 2021.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Hibernate Status Button\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2021-04-11 18:31+0200\n"
+"PO-Revision-Date: 2022-10-22 21:30+0200\n"
+"Last-Translator: Fabrício Müller <fabricio8800@gmail.com>\n"
+"Language-Team: Brazilian Portuguese <fabricio8800@gmail.com>\n"
+"Language: pt_BR\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+"X-Generator: Poedit 3.0.1\n"
+
+#: confirmDialog.js:23 confirmDialog.js:32
+msgid "Hibernate"
+msgstr "Hibernar"
+
+#: extension.js:192
+msgid "Hybrid Sleep"
+msgstr "Suspensão Híbrida"
+
+#: confirmDialog.js:24
+msgid "Do you really want to hibernate the system?"
+msgstr "Deseja realmente hibernar o sistema?"
+
+#: confirmDialog.js:27 confirmDialog.js:44 confirmDialog.js:67
+msgid "Cancel"
+msgstr "Cancelar"
+
+#: confirmDialog.js:40
+msgid "Hibernate button: Systemd Missing"
+msgstr "Systemd não está instalado"
+
+#: confirmDialog.js:41
+msgid "Systemd seems to be missing and is required."
+msgstr "Systemd não está instalado e é necessário."
+
+#: confirmDialog.js:49 confirmDialog.js:72
+msgid "Disable Extension"
+msgstr "Desabilitar extensão"
+
+#: confirmDialog.js:58
+msgid "Hibernate button: Hibernate failed"
+msgstr "Hibernação falhou"
+
+#: confirmDialog.js:59
+msgid ""
+"Looks like hibernation failed.\n"
+"On some linux distributions hibernation is disabled\n"
+"because not all hardware supports it well;\n"
+"please check your distribution documentation\n"
+"on how to enable it."
+msgstr ""
+"Parece que a hibernação falhou.\n"
+"Em algumas distribuições Linux a hibernação é desabilitada\n"
+"já que nem todo hardware oferece suporte adequado à ela;\n"
+"Confira a documentação de sua distribuição\n"
+"para aprender como habilitá-la."
+
+#: confirmDialog.js:64
+msgid "You are wrong, don't check this anymore!"
+msgstr "Você errou! Não selecione isso novamente!"
+
+#: prefs.js:99
+msgid "This extension has no settings available"
+msgstr "Essa extensão não possui configurações disponíveis"
diff --git a/extensions/47/hibernate-status/locale/ru/LC_MESSAGES/hibernate-status-button.po b/extensions/47/hibernate-status/locale/ru/LC_MESSAGES/hibernate-status-button.po
new file mode 100644
index 0000000..c55e2c6
--- /dev/null
+++ b/extensions/47/hibernate-status/locale/ru/LC_MESSAGES/hibernate-status-button.po
@@ -0,0 +1,76 @@
+# Russian translation of hibernate-status-button
+# Copyright (C) 2021 Serhii Riznychenko
+# Updated 2023 Dmitriy Sevastyuk
+# This file is distributed under the same license as the hibernate-status-button package.
+# Serhii Riznychenko, 2021.
+# Dmitriy Sevastyuk, 2023.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Hibernate Status Button\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2021-04-11 18:31+0200\n"
+"PO-Revision-Date: 2023-04-01 07:00+0300\n"
+"Last-Translator: Dmitriy Sevastyuk\n"
+"Language-Team: Russian\n"
+"Language: ru\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"
+"X-Generator: Poedit 3.0\n"
+"X-Poedit-Basepath: .\n"
+
+#: extension.js:189 confirmDialog.js:23 confirmDialog.js:32
+msgid "Hibernate"
+msgstr "Режим гибернации"
+
+#: extension.js:192
+msgid "Hybrid Sleep"
+msgstr "Гибридный сон"
+
+#: confirmDialog.js:24
+msgid "Do you really want to hibernate the system?"
+msgstr "Вы действительно хотите перевести систему в режим гибернации?"
+
+#: confirmDialog.js:27 confirmDialog.js:44 confirmDialog.js:67
+msgid "Cancel"
+msgstr "Отмена"
+
+#: confirmDialog.js:40
+msgid "Hibernate button: Systemd Missing"
+msgstr "Не обнаружено systemd"
+
+#: confirmDialog.js:41
+msgid "Systemd seems to be missing and is required."
+msgstr "Кажется отсутствует systemd, но он необходим."
+
+#: confirmDialog.js:49 confirmDialog.js:72
+msgid "Disable Extension"
+msgstr "Отключить расширение"
+
+#: confirmDialog.js:58
+msgid "Hibernate button: Hibernate failed"
+msgstr "Не удалось перевести систему в режим гибернации"
+
+#: confirmDialog.js:59
+msgid ""
+"Looks like hibernation failed.\n"
+"On some linux distributions hibernation is disabled\n"
+"because not all hardware supports it well;\n"
+"please check your distribution documentation\n"
+"on how to enable it."
+msgstr ""
+"Похоже, перевод системы в режим гибернации завершился неудачей.\n"
+"На некоторых дистрибутивах режим гибернации отключён,\n"
+"так как не всё оборудование должным образом его поддерживает;\n"
+"пожалуйста, обратитесь к документации своего дистрибутива\n"
+"чтобы узнать как его включить."
+
+#: confirmDialog.js:64
+msgid "You are wrong, don't check this anymore!"
+msgstr "Вы ошиблись, пожалуйста не трогайте это!"
+
+#: prefs.js:99
+msgid "This extension has no settings available"
+msgstr "Это расширение не имеет параметров"
diff --git a/extensions/47/hibernate-status/locale/uk/LC_MESSAGES/hibernate-status-button.po b/extensions/47/hibernate-status/locale/uk/LC_MESSAGES/hibernate-status-button.po
new file mode 100644
index 0000000..68c6b8c
--- /dev/null
+++ b/extensions/47/hibernate-status/locale/uk/LC_MESSAGES/hibernate-status-button.po
@@ -0,0 +1,74 @@
+# Ukrainian translation of hibernate-status-button
+# Copyright (C) 2021 Serhii Riznychenko
+# This file is distributed under the same license as the hibernate-status-button package.
+# Serhii Riznychenko, 2021.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Hibernate Status Button\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2021-04-11 18:31+0200\n"
+"PO-Revision-Date: 2021-11-11 02:00+0200\n"
+"Last-Translator: Serhii Riznychenko\n"
+"Language-Team: Ukraine\n"
+"Language: uk\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"
+"X-Generator: Poedit 3.0\n"
+"X-Poedit-Basepath: .\n"
+
+#: extension.js:189 confirmDialog.js:23 confirmDialog.js:32
+msgid "Hibernate"
+msgstr "Перейти в сон"
+
+#: extension.js:192
+msgid "Hybrid Sleep"
+msgstr "Перейти в гібридний сон"
+
+#: confirmDialog.js:24
+msgid "Do you really want to hibernate the system?"
+msgstr "Ви дійсно хочете перевести систему в режим сну?"
+
+#: confirmDialog.js:27 confirmDialog.js:44 confirmDialog.js:67
+msgid "Cancel"
+msgstr "Відміна"
+
+#: confirmDialog.js:40
+msgid "Hibernate button: Systemd Missing"
+msgstr "Не виявлено systemd"
+
+#: confirmDialog.js:41
+msgid "Systemd seems to be missing and is required."
+msgstr "Здається відсутній systemd, необхідний режиму сну."
+
+#: confirmDialog.js:49 confirmDialog.js:72
+msgid "Disable Extension"
+msgstr "Вимкнути розширення"
+
+#: confirmDialog.js:58
+msgid "Hibernate button: Hibernate failed"
+msgstr "Не вдалося перевести систему в сон"
+
+#: confirmDialog.js:59
+msgid ""
+"Looks like hibernation failed.\n"
+"On some linux distributions hibernation is disabled\n"
+"because not all hardware supports it well;\n"
+"please check your distribution documentation\n"
+"on how to enable it."
+msgstr ""
+"Спроба перевести систему в сон завершилася невдачею.\n"
+"На деяких дистрибутивах режим сну вимкнено\n"
+"оскільки не кожне обладнання має його підтримку,\n"
+"Будь ласка, зверніться до документації свого дистрибутива\n"
+"щоб дізнатися, як його включити."
+
+#: confirmDialog.js:64
+msgid "You are wrong, don't check this anymore!"
+msgstr "Ви помилилися, будь ласка, не чіпайте це!"
+
+#: prefs.js:99
+msgid "This extension has no settings available"
+msgstr "Це розширення не містить параметрів"
diff --git a/extensions/47/hibernate-status/locale/zh_CN/LC_MESSAGES/hibernate-status-button.po b/extensions/47/hibernate-status/locale/zh_CN/LC_MESSAGES/hibernate-status-button.po
new file mode 100644
index 0000000..d6a6ebe
--- /dev/null
+++ b/extensions/47/hibernate-status/locale/zh_CN/LC_MESSAGES/hibernate-status-button.po
@@ -0,0 +1,67 @@
+# Simplified Chinese translation of hibernate-status-button
+# Copyright (C) 2019 zhmars
+# This file is distributed under the same license as the hibernate-status-button package.
+# zhmars <1403122061@qq.com>, 2019.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Hibernate Status Button\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2019-11-22 00:08+0800\n"
+"PO-Revision-Date: 2019-11-21 20:00+0800\n"
+"Last-Translator: zhmars <1403122061@qq.com>\n"
+"Language-Team: Chinese (Simplified) <>\n"
+"Language: zh_CN\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: extension.js:189 confirmDialog.js:23 confirmDialog.js:32
+msgid "Hibernate"
+msgstr "休眠"
+
+#: extension.js:192
+msgid "Hybrid Sleep"
+msgstr "混合睡眠"
+
+#: confirmDialog.js:24
+msgid "Do you really want to hibernate the system?"
+msgstr "确定要休眠系统吗?"
+
+#: confirmDialog.js:27 confirmDialog.js:44 confirmDialog.js:67
+msgid "Cancel"
+msgstr "取消"
+
+#: confirmDialog.js:40
+msgid "Hibernate button: Systemd Missing"
+msgstr "无法找到 Systemd"
+
+#: confirmDialog.js:41
+msgid "Systemd seems to be missing and is required."
+msgstr "本功能依赖 Systemd,但目前无法找到。"
+
+#: confirmDialog.js:49 confirmDialog.js:72
+msgid "Disable Extension"
+msgstr "禁用扩展"
+
+#: confirmDialog.js:58
+msgid "Hibernate button: Hibernate failed"
+msgstr "休眠失败"
+
+#: confirmDialog.js:59
+msgid ""
+"Looks like hibernation failed.\n"
+"On some linux distributions hibernation is disabled\n"
+"because not all hardware supports it well;\n"
+"please check your distribution documentation\n"
+"on how to enable it."
+msgstr "休眠好像失败了。由于不是所有硬件都对该功能支持良好,"
+"某些发行版默认禁用了休眠,关于如何启用请查阅你所用的发行版文档"
+
+#: confirmDialog.js:64
+msgid "You are wrong, don't check this anymore!"
+msgstr "忽略本项检查"
+
+#: prefs.js:99
+msgid "This extension has no settings available"
+msgstr "这个扩展没有可用的设置" \ No newline at end of file
diff --git a/extensions/47/hibernate-status/metadata.json b/extensions/47/hibernate-status/metadata.json
new file mode 100644
index 0000000..db14afb
--- /dev/null
+++ b/extensions/47/hibernate-status/metadata.json
@@ -0,0 +1,9 @@
+{
+ "uuid": "hibernate-status@dromi",
+ "name": "Hibernate Status Button",
+ "url": "https://github.com/arelange/gnome-shell-extension-hibernate-status",
+ "description": "Adds a Hibernate button in Status menu. Using Alt modifier, you can also select Hybrid Sleep instead.",
+ "shell-version": ["45", "46", "47"],
+ "gettext-domain": "hibernate-status-button",
+ "settings-schema": "org.gnome.shell.extensions.hibernate-status-button"
+}
diff --git a/extensions/47/hibernate-status/prefs.js b/extensions/47/hibernate-status/prefs.js
new file mode 100644
index 0000000..3a04ca6
--- /dev/null
+++ b/extensions/47/hibernate-status/prefs.js
@@ -0,0 +1,168 @@
+import Gio from 'gi://Gio';
+import Gtk from 'gi://Gtk';
+import Adw from 'gi://Adw';
+// Use __() and N__() for the extension gettext domain, and reuse
+// the shell domain with the default _() and N_()
+
+import {
+ ExtensionPreferences,
+ gettext as __,
+} from 'resource:///org/gnome/Shell/Extensions/js/extensions/prefs.js';
+const N__ = function (e) {
+ return e;
+};
+
+export default class Prefs extends ExtensionPreferences {
+ /**
+ * Creates a new Settings-object to access the settings of this extension.
+ * @private
+ */
+ constructor(metadata) {
+ super(metadata);
+ this.KEY_HIBERNATE_WORKS_CHECK = 'hibernate-works-check';
+ this._schemaName = 'org.gnome.shell.extensions.hibernate-status-button';
+ this._setting = this.getSettings()
+ }
+ /**
+ * <p>Binds the given 'callback'-function to the "changed"-signal on the given
+ * key.</p>
+ * <p>The 'callback'-function is passed an argument which holds the new
+ * value of 'key'. The argument is of type "GLib.Variant". Given that the
+ * receiver knows the internal type, use one of the get_XX()-methods to get
+ * it's actual value.</p>
+ * @see http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/GLib.Variant.html
+ * @param key the key to watch for changes.
+ * @param callback the callback-function to call.
+ */
+ bindKey(key, callback) {
+ // Validate:
+ if (key === undefined || key === null || typeof key !== 'string') {
+ throw TypeError("The 'key' should be a string. Got: '" + key + "'");
+ }
+ if (
+ callback === undefined ||
+ callback === null ||
+ typeof callback !== 'function'
+ ) {
+ throw TypeError(
+ "'callback' needs to be a function. Got: " + callback
+ );
+ }
+ // Bind:
+ this._setting.connect('changed::' + key, function (source, key) {
+ callback(source.get_value(key));
+ });
+ }
+ /**
+ * Get if check for working hibernation is enabled. The user might
+ * choose to disable it if we happen to be wrong.
+ *
+ * @returns bool true if we need to check if hibernation works.
+ */
+ getHibernateWorksCheckEnabled() {
+ return this._setting.get_boolean(this.KEY_HIBERNATE_WORKS_CHECK);
+ }
+ /**
+ * Set if check for working hibernation is enabled. The user might
+ * choose to disable it if we happen to be wrong.
+ *
+ * @returns bool true if we need to check if hibernation works.
+ */
+ setHibernateWorksCheckEnabled(enabled) {
+ let key = this.KEY_HIBERNATE_WORKS_CHECK;
+ if (this._setting.is_writable(key)) {
+ if (this._setting.set_boolean(key, enabled)) {
+ Gio.Settings.sync();
+ } else {
+ throw this._errorSet(key);
+ }
+ } else {
+ throw this._errorWritable(key);
+ }
+ }
+ _errorWritable(key) {
+ return "The key '" + key + "' is not writable.";
+ }
+ _errorSet(key) {
+ return "Couldn't set the key '" + key + "'";
+ }
+ fillPreferencesWindow(window) {
+ const page = new Adw.PreferencesPage({
+ title: __('General'),
+ icon_name: 'dialog-information-symbolic',
+ });
+ window.add(page);
+
+ const modes_group = new Adw.PreferencesGroup({
+ title: __('Modes'),
+ description: __('Which buttons should be enabled'),
+ });
+ page.add(modes_group);
+
+ const suspend_row = new Adw.SwitchRow({
+ title: __('Suspend'),
+ });
+ modes_group.add(suspend_row);
+ const hibernate_row = new Adw.SwitchRow({
+ title: __('Hibernate'),
+ });
+ modes_group.add(hibernate_row);
+ const hybrid_row = new Adw.SwitchRow({
+ title: __('Hybrid sleep'),
+ });
+ modes_group.add(hybrid_row);
+ const suspend_then_hibernate_row = new Adw.SwitchRow({
+ title: __('Suspend then hibernate'),
+ });
+ modes_group.add(suspend_then_hibernate_row);
+ const restart_row = new Adw.SwitchRow({
+ title: __('Restart...'),
+ });
+ modes_group.add(restart_row);
+ const shutdown_row = new Adw.SwitchRow({
+ title: __('Shutdown...'),
+ });
+ modes_group.add(shutdown_row);
+
+ const dialog_group = new Adw.PreferencesGroup({
+ title: __('Dialogs'),
+ description: __('Which dialogs should be enabled'),
+ });
+ page.add(dialog_group);
+
+ const hibernate_dialog_row = new Adw.SwitchRow({
+ title: __('Hibernate'),
+ });
+ dialog_group.add(hibernate_dialog_row);
+ const hybrid_dialog_row = new Adw.SwitchRow({
+ title: __('Hybrid sleep'),
+ subtitle: __('Not implemented yet'),
+ });
+ dialog_group.add(hybrid_dialog_row);
+ const suspend_then_hibernate_dialog_row = new Adw.SwitchRow({
+ title: __('Suspend then hibernate'),
+ subtitle: __('Not implemented yet'),
+ });
+ dialog_group.add(suspend_then_hibernate_dialog_row);
+
+ window._settings = this.getSettings();
+ window._settings.bind('show-suspend', suspend_row, 'active',
+ Gio.SettingsBindFlags.DEFAULT);
+ window._settings.bind('show-hibernate', hibernate_row, 'active',
+ Gio.SettingsBindFlags.DEFAULT);
+ window._settings.bind('show-hybrid-sleep', hybrid_row, 'active',
+ Gio.SettingsBindFlags.DEFAULT);
+ window._settings.bind('show-suspend-then-hibernate', suspend_then_hibernate_row, 'active',
+ Gio.SettingsBindFlags.DEFAULT);
+ window._settings.bind('show-restart', restart_row, 'active',
+ Gio.SettingsBindFlags.DEFAULT);
+ window._settings.bind('show-shutdown', shutdown_row, 'active',
+ Gio.SettingsBindFlags.DEFAULT);
+ window._settings.bind('show-hibernate-dialog', hibernate_dialog_row, 'active',
+ Gio.SettingsBindFlags.DEFAULT);
+ window._settings.bind('show-hybrid-sleep-dialog', hybrid_dialog_row, 'active',
+ Gio.SettingsBindFlags.DEFAULT);
+ window._settings.bind('show-suspend-then-hibernate-dialog', suspend_then_hibernate_dialog_row, 'active',
+ Gio.SettingsBindFlags.DEFAULT);
+ }
+}
diff --git a/extensions/47/hibernate-status/schemas/org.gnome.shell.extensions.hibernate-status-button.gschema.xml b/extensions/47/hibernate-status/schemas/org.gnome.shell.extensions.hibernate-status-button.gschema.xml
new file mode 100644
index 0000000..242d9cc
--- /dev/null
+++ b/extensions/47/hibernate-status/schemas/org.gnome.shell.extensions.hibernate-status-button.gschema.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schemalist gettext-domain="hibernate-status-button">
+ <schema path="/org/gnome/shell/extensions/hibernate-status-button/" id="org.gnome.shell.extensions.hibernate-status-button">
+ <key type="b" name="hibernate-works-check">
+ <default>true</default>
+ </key>
+ <key type="b" name="show-suspend">
+ <default>true</default>
+ </key>
+ <key type="b" name="show-hibernate">
+ <default>true</default>
+ </key>
+ <key type="b" name="show-hybrid-sleep">
+ <default>true</default>
+ </key>
+ <key type="b" name="show-suspend-then-hibernate">
+ <default>true</default>
+ </key>
+ <key type="b" name="show-restart">
+ <default>true</default>
+ </key>
+ <key type="b" name="show-shutdown">
+ <default>true</default>
+ </key>
+ <key type="b" name="show-hibernate-dialog">
+ <default>true</default>
+ </key>
+ <key type="b" name="show-hybrid-sleep-dialog">
+ <default>false</default>
+ </key>
+ <key type="b" name="show-suspend-then-hibernate-dialog">
+ <default>false</default>
+ </key>
+ </schema>
+</schemalist>
diff --git a/extensions/47/middleclickclose.mk b/extensions/47/middleclickclose.mk
new file mode 100644
index 0000000..e774c20
--- /dev/null
+++ b/extensions/47/middleclickclose.mk
@@ -0,0 +1,52 @@
+# Progress Linux: gnome-shell-extensions-extra
+
+# Copyright (C) 2010-2024 Daniel Baumann <daniel.baumann@progress-linux.org>
+#
+# SPDX-License-Identifier: GPL-3.0+
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+# Build-Depends:
+# gettext libglib2.0-bin
+
+SHELL := sh -e
+
+EXTENSION := middleclickclose
+UUID := $(shell awk -F\" '/"uuid": / { print $$4 }' $(EXTENSION)/*/metadata.json)
+
+all:
+
+test:
+
+build:
+ $(MAKE) -C $(EXTENSION)
+
+install: build
+ mkdir -p $(DESTDIR)/usr/share/gnome-shell/extensions
+ unzip $(EXTENSION)/*.zip -d $(DESTDIR)/usr/share/gnome-shell/extensions/$(UUID)
+
+uninstall:
+ rm -rf $(DESTDIR)/usr/share/gnome-shell/extensions/$(UUID)
+ rmdir --ignore-fail-on-non-empty --parents $(DESTDIR) || true
+
+clean:
+
+distclean:
+
+reinstall: uninstall install
+
+upstream:
+ rm -rf $(EXTENSION)
+ git clone https://github.com/p91paul/$(EXTENSION)
+ rm -rf $(EXTENSION)/.git
diff --git a/extensions/47/middleclickclose/.gitignore b/extensions/47/middleclickclose/.gitignore
new file mode 100644
index 0000000..cf09213
--- /dev/null
+++ b/extensions/47/middleclickclose/.gitignore
@@ -0,0 +1 @@
+/*.shell-extension.zip
diff --git a/extensions/47/middleclickclose/LICENSE b/extensions/47/middleclickclose/LICENSE
new file mode 100644
index 0000000..22fbe5d
--- /dev/null
+++ b/extensions/47/middleclickclose/LICENSE
@@ -0,0 +1,339 @@
+GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ {description}
+ Copyright (C) {year} {fullname}
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ {signature of Ty Coon}, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. \ No newline at end of file
diff --git a/extensions/47/middleclickclose/Makefile b/extensions/47/middleclickclose/Makefile
new file mode 100644
index 0000000..8960c95
--- /dev/null
+++ b/extensions/47/middleclickclose/Makefile
@@ -0,0 +1,27 @@
+.PHONY: clean all install po pot pack
+
+POT_SOURCE_FILES = $(wildcard src/schemas/*.gschema.xml src/*.js)
+EXTRA_SOURCE_FILES = settingsWatch.js
+
+all: pack
+
+pack:
+ gnome-extensions pack --force src/ $(addprefix --extra-source=, $(EXTRA_SOURCE_FILES))
+
+install: pack
+ gnome-extensions install --force middleclickclose@paolo.tranquilli.gmail.com.shell-extension.zip
+
+po: $(wildcard src/po/*.po)
+pot: src/po/template.pot
+
+clean:
+ rm -f middleclickclose@paolo.tranquilli.gmail.com.shell-extension.zip
+ rm -f src/po/template.pot
+
+# ---
+
+src/po/template.pot: $(POT_SOURCE_FILES)
+ xgettext -F --from-code=UTF-8 --output=src/po/template.pot $(POT_SOURCE_FILES)
+
+src/po/%.po: pot
+ msgmerge --quiet --backup off --update $@ src/po/template.pot
diff --git a/extensions/47/middleclickclose/README.md b/extensions/47/middleclickclose/README.md
new file mode 100644
index 0000000..adcf2f9
--- /dev/null
+++ b/extensions/47/middleclickclose/README.md
@@ -0,0 +1,39 @@
+Quick Close in Overview
+-----------------------
+GNOME shell extension for quickly closing apps in the overview.
+
+[![Download from extensions.gnome.org](img/ego.svg)](https://extensions.gnome.org/extension/352/middle-click-to-close-in-overview/)
+
+## Features
+
+- **Middle click to close**: Just hover over the app you want to close in the overview, and middle
+ click. The mouse button that will trigger closing can be adjusted in the settings.
+- **`Alt+F4` in the overview**: When triggering the close action (typically `Alt+F4`), the focused
+ window will be closed. This can be turned off in the settings.
+- **Adjustable rearrange delay**: After closing an application, GNOME will wait a bit before
+ rearranging the remaining windows. This extension allows configuring that delay.
+
+## Building
+
+Make sure `gettext` is installed on your system and the `gnome-extensions` executable is available
+on your `PATH` (It is typically bundled with `gnome-shell`).
+
+Afterwards, simply run `make` to build a zip suitable for submition to
+[EGO](https://extensions.gnome.org/).
+
+`make install` can also be used to install the extension for the current user.
+
+## Debugging tips & tricks
+
+- `journalctl -f --user` is your friend.
+- `make install && dbus-run-session -- gnome-shell --nested --wayland` allows for quick prototyping
+ without having to log out and back in every single time when running under wayland.
+- `make install`, then `Alt+F2`, `r` and `Enter` allow for quick prototyping under X11.
+
+## Translations
+
+If you're interested in contributing a translation, import the translation template file under
+`src/po/template.pot` to your favourite po-editing software and create a `*.po` file under `src/po`.
+
+To update all existing translations after changing the code, run `make po`. To regenerate only the
+`template.pot` file, run `make pot`.
diff --git a/extensions/47/middleclickclose/img/ego.svg b/extensions/47/middleclickclose/img/ego.svg
new file mode 100644
index 0000000..ae750fa
--- /dev/null
+++ b/extensions/47/middleclickclose/img/ego.svg
@@ -0,0 +1,22 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="200" height="60" viewBox="0 0 500 150">
+ <title>Download From EGO</title>
+ <defs>
+ <linearGradient id="grad">
+ <stop offset="0" stop-color="#003eaa" />
+ <stop offset="1" stop-color="#0060df" />
+ </linearGradient>
+ </defs>
+ <rect fill="url(#grad)" width="100%" height="100%" rx="15" />
+
+ <g fill="white">
+ <path d="M 101.068,15 C 76.466,15 71.851,50.041 85.691,50.041 99.529,50.041 125.671,15 101.068,15 Z" />
+ <path d="m 60.217,45.699 c 7.369,0.45 15.454,-28.122 1.604,-26.325 -13.845,1.797 -8.976,25.875 -1.604,26.325 z" />
+ <path d="M 26.445,63.453 C 31.686,61.146 27.12,38.581 18.208,44.735 9.3,50.89 21.204,65.759 26.445,63.453 Z" />
+ <path d="M 41.212,51.642 C 47.451,50.37 47.793,24.778 36.667,29.369 25.539,33.961 34.978,52.916 41.212,51.642 Z" />
+ <path d="m 73.791,108.913 c 1.107,8.454 -6.202,12.629 -13.36,7.179 C 37.644,98.743 98.16,90.088 94.171,66.386 90.86,46.712 30.495,52.769 23.621,83.553 c -4.653,20.821 19.153,49.707 43.993,49.707 12.22,0 26.315,-11.034 28.952,-25.012 2.014,-10.659 -23.699,-6.388 -22.775,0.665 z" />
+
+ <path d="m 137.55613,63.203362 h -8.57342 V 38.824737 h 8.65523 q 3.66498,0 6.29918,1.472535 2.65056,1.456174 4.07401,4.18854 1.42345,2.716011 1.42345,6.511877 0,3.812229 -1.42345,6.544596 -1.42345,2.73237 -4.09037,4.204905 -2.66693,1.456172 -6.36463,1.456172 z m -3.58316,-4.303074 h 3.33774 q 3.51773,0 5.33385,-1.897931 1.81613,-1.897934 1.81613,-6.004668 0,-4.090374 -1.81613,-5.971946 -1.79976,-1.897934 -5.30113,-1.897934 h -3.37046 z m 27.27461,4.663028 q -2.74873,0 -4.7612,-1.178026 -2.01246,-1.19439 -3.10868,-3.305025 -1.07986,-2.126994 -1.07986,-4.941169 0,-2.830539 1.07986,-4.957533 1.09622,-2.126994 3.10868,-3.305021 2.01247,-1.194389 4.7612,-1.194389 2.74873,0 4.76119,1.194389 2.01247,1.178027 3.09233,3.305021 1.09621,2.126994 1.09621,4.957533 0,2.814175 -1.09621,4.941169 -1.07986,2.110635 -3.09233,3.305025 -2.01246,1.178026 -4.76119,1.178026 z m 0,-3.861311 q 1.96338,0 2.96143,-1.587067 0.99805,-1.587066 0.99805,-3.992205 0,-2.421499 -0.99805,-3.992203 -0.99805,-1.587066 -2.96143,-1.587066 -1.96338,0 -2.96143,1.587066 -0.98169,1.570704 -0.98169,3.992203 0,2.405139 0.98169,3.992205 0.99805,1.587067 2.96143,1.587067 z m 15.72339,3.501357 -5.39929,-18.29215 h 5.15387 l 1.58707,6.757299 q 0.32723,1.521617 0.7199,3.272298 0.39268,1.75068 0.76899,3.795865 0.37632,-1.996102 0.78536,-3.746779 0.42539,-1.767044 0.80171,-3.321384 l 1.66887,-6.757299 h 4.51577 l 1.63615,6.757299 q 0.34359,1.55434 0.75263,3.305021 0.4254,1.75068 0.81808,3.779506 0.34359,-2.028826 0.7199,-3.779506 0.37631,-1.750681 0.73627,-3.305021 l 1.58706,-6.757299 h 5.21932 l -5.43202,18.29215 h -4.99025 l -2.02883,-7.051804 q -0.34359,-1.178026 -0.67082,-2.650562 -0.31087,-1.472535 -0.6381,-2.912343 -0.31087,1.439808 -0.6381,2.928707 -0.32722,1.472535 -0.65446,2.634198 l -2.02882,7.051804 z m 29.58159,-10.585887 v 10.585887 h -4.90845 v -18.29215 h 4.6303 l 0.0654,3.779506 q 0.76899,-1.914294 2.17607,-2.96143 1.40709,-1.047135 3.51773,-1.047135 2.84689,0 4.56485,1.832485 1.71796,1.832489 1.71796,5.055701 v 11.633023 h -4.90845 V 52.421138 q 0,-1.701594 -0.88352,-2.666921 -0.86716,-0.965331 -2.4215,-0.965331 -1.5707,0 -2.56875,1.014413 -0.98169,0.998053 -0.98169,2.814176 z m 20.8609,-13.792738 v 24.378625 h -4.90845 V 38.824737 Z m 12.35293,24.738579 q -2.74873,0 -4.7612,-1.178026 -2.01246,-1.19439 -3.10868,-3.305025 -1.07986,-2.126994 -1.07986,-4.941169 0,-2.830539 1.07986,-4.957533 1.09622,-2.126994 3.10868,-3.305021 2.01247,-1.194389 4.7612,-1.194389 2.74873,0 4.76119,1.194389 2.01247,1.178027 3.09232,3.305021 1.09623,2.126994 1.09623,4.957533 0,2.814175 -1.09623,4.941169 -1.07985,2.110635 -3.09232,3.305025 -2.01246,1.178026 -4.76119,1.178026 z m 0,-3.861311 q 1.96338,0 2.96143,-1.587067 0.99805,-1.587066 0.99805,-3.992205 0,-2.421499 -0.99805,-3.992203 -0.99805,-1.587066 -2.96143,-1.587066 -1.96338,0 -2.96143,1.587066 -0.98169,1.570704 -0.98169,3.992203 0,2.405139 0.98169,3.992205 0.99805,1.587067 2.96143,1.587067 z m 17.8013,3.861311 q -2.61784,0 -4.35215,-1.374367 -1.73433,-1.390726 -1.73433,-4.106733 0,-2.045186 0.9817,-3.206853 0.98169,-1.161667 2.55239,-1.701594 1.5707,-0.539931 3.37047,-0.703545 2.35605,-0.229063 3.38683,-0.474485 1.04713,-0.261782 1.04713,-1.161664 v -0.08181 q 0,-1.161667 -0.75263,-1.799766 -0.73627,-0.638096 -2.11063,-0.638096 -1.42345,0 -2.29061,0.621737 -0.86716,0.605376 -1.16166,1.488894 l -4.49942,-0.752627 q 0.70355,-2.372416 2.79782,-3.681338 2.11063,-1.308917 5.17023,-1.308917 1.96338,0 3.73042,0.621736 1.7834,0.621736 2.89599,1.996103 1.12894,1.358003 1.12894,3.583165 v 12.320205 h -4.64666 v -2.53603 h -0.16362 q -0.67082,1.276195 -1.9961,2.094271 -1.32528,0.801713 -3.35411,0.801714 z m 1.39073,-3.452275 q 1.71796,0 2.79781,-0.998053 1.09623,-0.99805 1.09623,-2.454222 v -1.979743 q -0.29451,0.2127 -0.96533,0.376317 -0.65446,0.147251 -1.39073,0.278146 -0.73627,0.114527 -1.2762,0.179977 -1.358,0.196336 -2.19244,0.768986 -0.83443,0.572654 -0.83443,1.668876 0,1.063495 0.76899,1.619785 0.78535,0.539931 1.9961,0.539931 z m 19.65015,3.403189 q -2.11063,0 -3.79586,-1.079858 -1.68524,-1.096218 -2.68329,-3.190489 -0.98169,-2.110635 -0.98169,-5.153873 0,-3.125044 1.01441,-5.219315 1.01442,-2.094271 2.69965,-3.141407 1.68523,-1.047135 3.71406,-1.047135 1.55434,0 2.58512,0.523567 1.03077,0.523568 1.65251,1.292559 0.6381,0.76899 0.96532,1.488894 h 0.16362 v -9.162436 h 4.90845 v 24.378625 h -4.82664 v -2.928707 h -0.24543 q -0.34359,0.736268 -0.98169,1.488895 -0.63809,0.736267 -1.66887,1.243476 -1.03077,0.507204 -2.51967,0.507204 z m 1.50526,-3.94312 q 1.86521,0 2.89598,-1.505258 1.03078,-1.505254 1.03078,-3.992202 0,-2.486948 -1.03078,-3.975842 -1.01441,-1.488899 -2.89598,-1.488899 -1.93066,0 -2.92871,1.537981 -0.99805,1.521621 -0.99805,3.92676 0,2.421499 0.99805,3.95948 1.01442,1.53798 2.92871,1.53798 z m 31.03775,-14.659898 v 3.746783 H 307.323 v 14.545367 h -4.89209 V 48.657995 h -3.22322 v -3.746783 h 3.22322 v -1.407086 q 0,-2.912348 1.70159,-4.368521 1.7016,-1.456172 4.23763,-1.456172 1.16167,0 2.11063,0.179976 0.94897,0.179976 1.40709,0.32723 l -0.88352,3.697698 q -0.2945,-0.08181 -0.73627,-0.163614 -0.4254,-0.08181 -0.89988,-0.08181 -1.12894,0 -1.58706,0.539931 -0.45812,0.523568 -0.45812,1.488895 v 1.243472 z m 3.15777,18.29215 v -18.29215 h 4.74484 v 3.190493 h 0.19633 q 0.50721,-1.685235 1.68524,-2.552394 1.19439,-0.883522 2.73237,-0.883522 0.83443,0 1.58706,0.163618 v 4.384879 q -0.32723,-0.09817 -0.96532,-0.163614 -0.62174,-0.08181 -1.16167,-0.08181 -1.7016,0 -2.81418,1.063499 -1.09622,1.063495 -1.09622,2.76509 v 10.40591 z m 21.00816,0.359954 q -2.74873,0 -4.76119,-1.178026 -2.01247,-1.19439 -3.10869,-3.305025 -1.07986,-2.126994 -1.07986,-4.941169 0,-2.830539 1.07986,-4.957533 1.09622,-2.126994 3.10869,-3.305021 2.01246,-1.194389 4.76119,-1.194389 2.74873,0 4.76119,1.194389 2.01247,1.178027 3.09233,3.305021 1.09622,2.126994 1.09622,4.957533 0,2.814175 -1.09622,4.941169 -1.07986,2.110635 -3.09233,3.305025 -2.01246,1.178026 -4.76119,1.178026 z m 0,-3.861311 q 1.96338,0 2.96143,-1.587067 0.99805,-1.587066 0.99805,-3.992205 0,-2.421499 -0.99805,-3.992203 -0.99805,-1.587066 -2.96143,-1.587066 -1.96338,0 -2.96143,1.587066 -0.98169,1.570704 -0.98169,3.992203 0,2.405139 0.98169,3.992205 0.99805,1.587067 2.96143,1.587067 z m 12.36929,3.501357 v -18.29215 h 4.5485 l 0.19633,3.550447 q 0.73627,-1.996103 2.15971,-2.912348 1.42347,-0.916244 3.05961,-0.916244 3.46863,0 4.71213,4.106737 0.76897,-2.110634 2.37239,-3.108684 1.61979,-0.998053 3.50136,-0.998053 2.51968,0 4.17219,1.636149 1.66887,1.619789 1.66887,4.597582 v 12.336564 h -4.9248 v -11.40396 q 0,-1.537981 -0.83443,-2.290608 -0.83447,-0.76899 -2.06158,-0.76899 -1.39071,0 -2.2088,0.883518 -0.8017,0.883522 -0.8017,2.323334 v 11.256706 h -4.74482 V 51.668511 q 0,-1.341644 -0.80174,-2.126994 -0.78533,-0.801713 -2.04516,-0.801713 -1.29257,0 -2.17607,0.883518 -0.88354,0.867159 -0.88354,2.519671 v 11.060369 z" />
+ <path d="m 137.08165,105.4651 q -2.69965,0 -4.66302,-1.16166 -1.96338,-1.16167 -3.02688,-3.27231 -1.04714,-2.110626 -1.04714,-4.957528 0,-2.814176 1.03078,-4.957529 1.04714,-2.143357 2.94507,-3.337747 1.89793,-1.210749 4.45032,-1.210749 2.07791,0 3.94312,0.932604 1.88158,0.916244 3.04324,2.94507 1.17803,2.012462 1.17803,5.317483 v 1.276199 h -12.97466 q 0.0982,2.650561 1.50525,4.057647 1.40709,1.39073 3.64862,1.39073 1.50525,0 2.58511,-0.65446 1.09622,-0.65446 1.5707,-1.930656 l 3.38683,0.801716 q -0.65445,2.14335 -2.65056,3.45227 -1.9961,1.30892 -4.92481,1.30892 z m -5.10478,-11.109452 h 9.39149 q -0.19633,-2.159717 -1.358,-3.484998 -1.1453,-1.32528 -3.22322,-1.32528 -2.15971,0 -3.41955,1.423449 -1.24347,1.407086 -1.39072,3.386829 z m 14.69262,10.733142 6.25009,-9.391502 -5.87378,-8.900652 h 4.05765 l 2.06155,3.321384 q 0.58901,0.965327 1.0635,1.865212 0.47448,0.883518 0.91624,1.717954 0.44176,-0.834436 0.88352,-1.717954 0.45812,-0.899885 1.0635,-1.865212 l 2.11063,-3.321384 h 3.99221 l -5.95559,9.031547 6.23373,9.260607 h -4.04129 l -2.45422,-3.89404 q -0.57265,-0.91624 -1.04714,-1.767041 -0.45812,-0.850796 -0.89988,-1.668872 -0.40904,0.818076 -0.8508,1.668872 -0.44176,0.850801 -1.01441,1.767041 l -2.48695,3.89404 z m 28.56717,-18.292154 v 2.928707 h -3.64862 v 10.422277 q 0,1.09621 0.45812,1.61978 0.47449,0.50721 1.53798,0.50721 0.29451,0 0.73627,-0.0654 0.45812,-0.0654 0.78536,-0.1309 l 0.63809,2.87963 q -0.57265,0.19633 -1.24347,0.27814 -0.65446,0.0982 -1.2762,0.0982 -2.48694,0 -3.86131,-1.2762 -1.37436,-1.29255 -1.37436,-3.61589 V 89.725343 h -2.66693 v -2.928707 h 2.66693 V 82.44448 h 3.59952 v 4.352156 z m 11.14217,18.668464 q -2.69964,0 -4.66302,-1.16166 -1.96338,-1.16167 -3.02688,-3.27231 -1.04713,-2.110626 -1.04713,-4.957528 0,-2.814176 1.03077,-4.957529 1.04713,-2.143357 2.94507,-3.337747 1.89793,-1.210749 4.45033,-1.210749 2.0779,0 3.94312,0.932604 1.88157,0.916244 3.04323,2.94507 1.17803,2.012462 1.17803,5.317483 v 1.276199 h -12.97467 q 0.0982,2.650561 1.50526,4.057647 1.40709,1.39073 3.64862,1.39073 1.50526,0 2.58511,-0.65446 1.09622,-0.65446 1.57071,-1.930656 l 3.38683,0.801716 q -0.65447,2.14335 -2.65057,3.45227 -1.9961,1.30892 -4.92481,1.30892 z m -5.10478,-11.109452 h 9.3915 q -0.19635,-2.159717 -1.35801,-3.484998 -1.1453,-1.32528 -3.22321,-1.32528 -2.15972,0 -3.41956,1.423449 -1.24347,1.407086 -1.39072,3.386829 z M 201.775,94.25748 v 10.83131 h -3.59953 V 86.796636 h 3.43591 l 0.0164,3.51772 q 0.85079,-1.930653 2.27425,-2.830535 1.4398,-0.916244 3.37046,-0.916244 2.79782,0 4.49941,1.76704 1.71796,1.75068 1.71796,5.137509 v 11.616664 h -3.59953 V 93.913885 q 0,-1.979739 -1.03077,-3.09232 -1.03078,-1.112582 -2.83054,-1.112582 -1.83249,0 -3.04324,1.19439 -1.21075,1.178027 -1.21075,3.354107 z m 23.11879,11.20762 q -2.97779,0 -4.94117,-1.2762 -1.94702,-1.29255 -2.43786,-3.73042 l 3.38683,-0.70354 q 0.73626,2.79782 4.02492,2.79782 1.75068,0 2.76509,-0.71991 1.03078,-0.73627 1.03078,-1.75068 0,-1.73432 -2.56876,-2.30697 l -3.07596,-0.703545 q -5.03934,-1.128944 -5.03934,-5.055701 0,-1.636149 0.89989,-2.863261 0.91624,-1.227113 2.5033,-1.897935 1.60343,-0.687181 3.68134,-0.687181 2.96143,0 4.64667,1.276194 1.68523,1.259836 2.27424,3.288662 l -3.22321,0.703544 q -0.34359,-0.965327 -1.19439,-1.685235 -0.8508,-0.736267 -2.47059,-0.736267 -1.48889,0 -2.48694,0.670822 -0.99805,0.670822 -0.99805,1.701594 0,0.916245 0.65446,1.488899 0.67082,0.55629 2.17607,0.899881 l 2.94507,0.654459 q 4.99026,1.128944 4.99026,4.941173 0,1.668867 -0.96533,2.961427 -0.94897,1.2762 -2.65056,2.01247 -1.7016,0.7199 -3.92676,0.7199 z m 11.48577,-0.37631 V 86.796636 h 3.59953 v 18.292154 z m 1.81612,-21.08997 q -0.9326,0 -1.60342,-0.621736 -0.65446,-0.621736 -0.65446,-1.505258 0,-0.899881 0.65446,-1.521617 0.67082,-0.621737 1.60342,-0.621737 0.93261,0 1.60343,0.621737 0.67082,0.621736 0.67082,1.521617 0,0.883522 -0.67082,1.505258 -0.67082,0.621736 -1.60343,0.621736 z m 14.31631,21.46628 q -2.56875,0 -4.49941,-1.17803 -1.91429,-1.17802 -2.97779,-3.28866 -1.0635,-2.126992 -1.0635,-4.957531 0,-2.846898 1.0635,-4.973892 1.0635,-2.143357 2.97779,-3.321384 1.93066,-1.178026 4.49941,-1.178026 2.58512,0 4.49941,1.178026 1.93066,1.178027 2.99415,3.321384 1.0635,2.126994 1.0635,4.973892 0,2.830539 -1.0635,4.957531 -1.06349,2.11064 -2.99415,3.28866 -1.91429,1.17803 -4.49941,1.17803 z m 0,-3.04324 q 1.66887,0 2.74873,-0.86716 1.09622,-0.88352 1.61979,-2.323328 0.53993,-1.456172 0.53993,-3.190493 0,-1.750676 -0.53993,-3.206852 -0.52357,-1.472535 -1.61979,-2.339694 -1.07986,-0.883518 -2.74873,-0.883518 -1.65251,0 -2.73237,0.883518 -1.07986,0.867159 -1.61979,2.339694 -0.52356,1.456176 -0.52356,3.206852 0,1.734321 0.52356,3.190493 0.53993,1.439808 1.61979,2.323328 1.07986,0.86716 2.73237,0.86716 z m 16.14879,-8.16438 v 10.83131 h -3.59953 V 86.796636 h 3.43592 l 0.0163,3.51772 q 0.8508,-1.930653 2.27425,-2.830535 1.43981,-0.916244 3.37047,-0.916244 2.79782,0 4.49941,1.76704 1.71796,1.75068 1.71796,5.137509 v 11.616664 h -3.59953 V 93.913885 q 0,-1.979739 -1.03078,-3.09232 -1.03077,-1.112582 -2.83054,-1.112582 -1.83248,0 -3.04323,1.19439 -1.21075,1.178027 -1.21075,3.354107 z m 23.1188,11.20762 q -2.9778,0 -4.94117,-1.2762 -1.94702,-1.29255 -2.43787,-3.73042 l 3.38683,-0.70354 q 0.73627,2.79782 4.02493,2.79782 1.75068,0 2.76509,-0.71991 1.03077,-0.73627 1.03077,-1.75068 0,-1.73432 -2.56875,-2.30697 l -3.07596,-0.703545 q -5.03934,-1.128944 -5.03934,-5.055701 0,-1.636149 0.89988,-2.863261 0.91624,-1.227113 2.50331,-1.897935 1.60343,-0.687181 3.68134,-0.687181 2.96143,0 4.64666,1.276194 1.68523,1.259836 2.27425,3.288662 l -3.22322,0.703544 q -0.34359,-0.965327 -1.19438,-1.685235 -0.8508,-0.736267 -2.47059,-0.736267 -1.4889,0 -2.48695,0.670822 -0.99805,0.670822 -0.99805,1.701594 0,0.916245 0.65446,1.488899 0.67082,0.55629 2.17608,0.899881 l 2.94507,0.654459 q 4.99025,1.128944 4.99025,4.941173 0,1.668867 -0.96532,2.961427 -0.94897,1.2762 -2.65057,2.01247 -1.70159,0.7199 -3.92675,0.7199 z m 14.15269,-0.13089 q -1.01441,0 -1.71796,-0.68718 -0.70354,-0.70355 -0.70354,-1.71796 0,-1.01441 0.70354,-1.71796 0.70355,-0.70354 1.71796,-0.70354 1.01441,0 1.70159,0.70354 0.70355,0.70355 0.70355,1.71796 0,1.01441 -0.70355,1.71796 -0.68718,0.68718 -1.70159,0.68718 z m 15.15074,6.98636 q -3.17413,0 -5.08842,-1.16167 -1.9143,-1.16166 -2.68329,-2.81418 l 3.01052,-1.42344 q 0.32722,0.52356 0.86716,1.09621 0.55629,0.58902 1.47253,0.99806 0.9326,0.40903 2.40514,0.40903 2.07791,0 3.38683,-0.99805 1.30892,-0.98169 1.30892,-3.09232 v -3.56681 h -0.31087 q -0.32723,0.60538 -0.91624,1.30892 -0.57266,0.70355 -1.61979,1.22712 -1.03078,0.5072 -2.69965,0.5072 -2.15972,0 -3.89403,-1.01441 -1.71796,-1.01441 -2.73237,-2.99415 -1.01442,-1.996107 -1.01442,-4.924815 0,-2.912343 0.99806,-4.990255 1.01441,-2.094271 2.74873,-3.206852 1.73431,-1.112581 3.94312,-1.112581 1.68523,0 2.73237,0.57265 1.06349,0.55629 1.65251,1.308921 0.60537,0.752627 0.91624,1.325281 h 0.26178 v -2.977793 h 3.51773 v 18.553934 q 0,2.40514 -1.09622,3.94312 -1.09622,1.53798 -2.96143,2.27425 -1.86522,0.75263 -4.20491,0.75263 z m -0.0327,-10.50408 q 2.29061,0 3.50136,-1.58707 1.22712,-1.587061 1.22712,-4.401237 0,-2.748734 -1.21075,-4.466691 -1.19439,-1.734317 -3.51773,-1.734317 -1.58706,0 -2.66692,0.834435 -1.0635,0.818077 -1.60342,2.225166 -0.52357,1.390727 -0.52357,3.141407 0,2.683285 1.21075,4.335797 1.22711,1.65251 3.58316,1.65251 z m 16.73781,-7.55901 v 10.83131 h -3.59953 V 86.796636 h 3.43592 l 0.0163,3.51772 q 0.8508,-1.930653 2.27425,-2.830535 1.43981,-0.916244 3.37047,-0.916244 2.79781,0 4.49941,1.76704 1.71796,1.75068 1.71796,5.137509 v 11.616664 h -3.59953 V 93.913885 q 0,-1.979739 -1.03078,-3.09232 -1.03077,-1.112582 -2.83053,-1.112582 -1.83249,0 -3.04324,1.19439 -1.21075,1.178027 -1.21075,3.354107 z m 24.24776,11.20762 q -2.56879,0 -4.49943,-1.17803 -1.91429,-1.17802 -2.97781,-3.28866 -1.06348,-2.126992 -1.06348,-4.957531 0,-2.846898 1.06348,-4.973892 1.06352,-2.143357 2.97781,-3.321384 1.93064,-1.178026 4.49943,-1.178026 2.58509,0 4.49939,1.178026 1.93067,1.178027 2.99415,3.321384 1.06352,2.126994 1.06352,4.973892 0,2.830539 -1.06352,4.957531 -1.06348,2.11064 -2.99415,3.28866 -1.9143,1.17803 -4.49939,1.17803 z m 0,-3.04324 q 1.66886,0 2.74872,-0.86716 1.09621,-0.88352 1.6198,-2.323328 0.53989,-1.456172 0.53989,-3.190493 0,-1.750676 -0.53989,-3.206852 -0.52359,-1.472535 -1.6198,-2.339694 -1.07986,-0.883518 -2.74872,-0.883518 -1.65252,0 -2.73238,0.883518 -1.07987,0.867159 -1.6198,2.339694 -0.52358,1.456176 -0.52358,3.206852 0,1.734321 0.52358,3.190493 0.53993,1.439808 1.6198,2.323328 1.07986,0.86716 2.73238,0.86716 z m 12.54924,2.66693 V 86.796636 h 3.41957 l 0.0818,3.419552 q 0.70357,-1.897931 2.11062,-2.814176 1.40709,-0.916244 3.04326,-0.916244 1.78339,0 2.96143,1.014413 1.17801,1.014413 1.71794,2.830538 0.68718,-1.848848 2.2579,-2.846898 1.58707,-0.998053 3.53409,-0.998053 1.61979,0 2.9287,0.703545 1.30891,0.703544 2.07789,2.094271 0.78536,1.390726 0.78536,3.468638 V 105.08879 H 395.8878 V 93.112172 q 0,-1.832485 -1.01441,-2.650562 -1.01441,-0.818072 -2.40515,-0.818072 -1.70159,0 -2.68328,1.047135 -0.96534,1.047136 -0.96534,2.683285 v 11.714832 h -3.55043 V 92.883113 q 0,-1.472535 -0.94895,-2.356057 -0.93261,-0.883518 -2.38878,-0.883518 -1.50526,0 -2.6342,1.047135 -1.11259,1.030773 -1.11259,3.026876 v 11.371241 z m 37.64781,0.37631 q -2.69965,0 -4.66302,-1.16166 -1.9634,-1.16167 -3.02688,-3.27231 -1.04713,-2.110626 -1.04713,-4.957528 0,-2.814176 1.03075,-4.957529 1.04713,-2.143357 2.94508,-3.337747 1.89792,-1.210749 4.45032,-1.210749 2.07793,0 3.94311,0.932604 1.88157,0.916244 3.04327,2.94507 1.178,2.012462 1.178,5.317483 v 1.276199 h -12.97465 q 0.0982,2.650561 1.50527,4.057647 1.40709,1.39073 3.64861,1.39073 1.50523,0 2.58509,-0.65446 1.09625,-0.65446 1.57073,-1.930656 l 3.38683,0.801716 q -0.65449,2.14335 -2.65058,3.45227 -1.99609,1.30892 -4.9248,1.30892 z m -5.10481,-11.109452 h 9.3915 q -0.19632,-2.159717 -1.35798,-3.484998 -1.14532,-1.32528 -3.22321,-1.32528 -2.15972,0 -3.41956,1.423449 -1.24349,1.407086 -1.39075,3.386829 z m 19.56835,10.978562 q -1.01441,0 -1.71793,-0.68718 -0.70357,-0.70355 -0.70357,-1.71796 0,-1.01441 0.70357,-1.71796 0.70352,-0.70354 1.71793,-0.70354 1.01441,0 1.70159,0.70354 0.70357,0.70355 0.70357,1.71796 0,1.01441 -0.70357,1.71796 -0.68718,0.68718 -1.70159,0.68718 z m 15.18349,0.13089 q -2.56875,0 -4.49943,-1.17803 -1.91429,-1.17802 -2.97777,-3.28866 -1.06352,-2.126992 -1.06352,-4.957531 0,-2.846898 1.06352,-4.973892 1.06348,-2.143357 2.97777,-3.321384 1.93068,-1.178026 4.49943,-1.178026 2.5851,0 4.4994,1.178026 1.93067,1.178027 2.99415,3.321384 1.06352,2.126994 1.06352,4.973892 0,2.830539 -1.06352,4.957531 -1.06348,2.11064 -2.99415,3.28866 -1.9143,1.17803 -4.4994,1.17803 z m 0,-3.04324 q 1.66886,0 2.74874,-0.86716 1.0962,-0.88352 1.61979,-2.323328 0.53993,-1.456172 0.53993,-3.190493 0,-1.750676 -0.53993,-3.206852 -0.52359,-1.472535 -1.61979,-2.339694 -1.07988,-0.883518 -2.74874,-0.883518 -1.65252,0 -2.73238,0.883518 -1.07987,0.867159 -1.6198,2.339694 -0.52355,1.456176 -0.52355,3.206852 0,1.734321 0.52355,3.190493 0.53993,1.439808 1.6198,2.323328 1.07986,0.86716 2.73238,0.86716 z m 12.54925,2.66693 V 86.796636 h 3.48502 v 2.94507 h 0.19632 q 0.49086,-1.488895 1.7507,-2.339694 1.27619,-0.867158 2.87963,-0.867158 0.34358,0 0.78533,0.03273 0.45813,0.03273 0.73629,0.06545 v 3.435915 q -0.19636,-0.04909 -0.75264,-0.114531 -0.55631,-0.08181 -1.12893,-0.08181 -1.88161,0 -3.12506,1.161667 -1.22711,1.145304 -1.22711,2.945067 V 105.0888 Z m 19.97742,7.23178 q -3.17414,0 -5.08843,-1.16167 -1.9143,-1.16166 -2.68331,-2.81418 l 3.01054,-1.42344 q 0.32722,0.52356 0.86715,1.09621 0.55628,0.58902 1.47255,0.99806 0.93257,0.40903 2.40511,0.40903 2.07793,0 3.38684,-0.99805 1.30891,-0.98169 1.30891,-3.09232 v -3.56681 h -0.31084 q -0.32723,0.60538 -0.91627,1.30892 -0.57266,0.70355 -1.61979,1.22712 -1.03076,0.5072 -2.69962,0.5072 -2.15973,0 -3.89404,-1.01441 -1.71798,-1.01441 -2.73239,-2.99415 -1.0144,-1.996107 -1.0144,-4.924815 0,-2.912343 0.99806,-4.990255 1.01441,-2.094271 2.74873,-3.206852 1.73431,-1.112581 3.94311,-1.112581 1.68524,0 2.73238,0.57265 1.06348,0.55629 1.65248,1.308921 0.60539,0.752627 0.91627,1.325281 h 0.26177 v -2.977793 h 3.51771 v 18.553934 q 0,2.40514 -1.09621,3.94312 -1.0962,1.53798 -2.96143,2.27425 -1.86522,0.75263 -4.20488,0.75263 z m -0.0328,-10.50408 q 2.2906,0 3.50136,-1.58707 1.22712,-1.587061 1.22712,-4.401237 0,-2.748734 -1.21077,-4.466691 -1.19439,-1.734317 -3.51771,-1.734317 -1.58706,0 -2.66693,0.834435 -1.06351,0.818077 -1.60344,2.225166 -0.52355,1.390727 -0.52355,3.141407 0,2.683285 1.21073,4.335797 1.22711,1.65251 3.58319,1.65251 z" />
+ </g>
+</svg>
+
diff --git a/extensions/47/middleclickclose/src/extension.js b/extensions/47/middleclickclose/src/extension.js
new file mode 100644
index 0000000..69f4c7e
--- /dev/null
+++ b/extensions/47/middleclickclose/src/extension.js
@@ -0,0 +1,182 @@
+/* This extension is a derived work of the Gnome Shell.
+*
+* Copyright (c) 2013 Paolo Tranquilli
+*
+* This extension is free software; you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation; either version 2 of the License, or
+* (at your option) any later version.
+*
+* This extension is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this extension; if not, write to the Free Software
+* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+import GLib from 'gi://GLib';
+import GObject from 'gi://GObject';
+import Meta from 'gi://Meta';
+
+import { Extension, InjectionManager }
+ from 'resource:///org/gnome/shell/extensions/extension.js';
+import { Workspace } from 'resource:///org/gnome/shell/ui/workspace.js';
+import { WindowPreview } from 'resource:///org/gnome/shell/ui/windowPreview.js';
+import { ControlsState } from 'resource:///org/gnome/shell/ui/overviewControls.js';
+
+import { SettingsWatch } from './settingsWatch.js';
+
+export default class MiddleClickClose extends Extension {
+ #settings;
+ #injectionManager;
+
+ #refocusOnClose;
+
+ enable() {
+ this.#settings = new SettingsWatch(this.getSettings(), {
+ close_button: { get: v => v.value, },
+ rearrange_delay: {},
+ keyboard_close: {},
+ });
+
+ this.#refocusOnClose = new WeakSet();
+
+ this.#injectionManager = new InjectionManager();
+ this.#patchClickHandler();
+ this.#patchWindowRepositioningDelay();
+ this.#patchKeyClose();
+ }
+
+ disable() {
+ this.#injectionManager.clear();
+ this.#injectionManager = null;
+
+ this.#refocusOnClose = null;
+
+ this.#settings.clear();
+ this.#settings = null;
+ }
+
+ #patchClickHandler() {
+ // Patch _addWindowClone() to override the clicked signal handler for window clones (which
+ // is what gnome calls window previews).
+ const settings = this.#settings;
+ this.#injectionManager.overrideMethod(Workspace.prototype, '_addWindowClone',
+ original => function () {
+ let clone = original.apply(this, arguments);
+
+ // This relies on implementation details of both gnome and gobject. Mainly the order
+ // the clone's actions are defined and the order with which signal handlers are
+ // connected on the click action. Just pray this never breaks... Or that gnome moves
+ // the click handler into a named function. That'd be nice too :)
+ let [clickAction] = clone.get_actions();
+ let id = GObject.signal_handler_find(clickAction, { signalId: 'clicked' });
+ clickAction.disconnect(id);
+ clickAction.connect('clicked', action => {
+ if (action.get_button() == settings.close_button) {
+ clone._deleteAll();
+ } else {
+ clone._activate();
+ }
+ });
+
+ return clone;
+ }
+ );
+ }
+
+ #patchWindowRepositioningDelay() {
+ // It'd be nice to just change the WINDOW_REPOSITIONING_DELAY in workspace.js, but
+ // apparently that is impossible with the switch to ESM. Instead, we'll monkey-patch
+ // _doRemoveWindow() and change the timeout after the fact.
+ const settings = this.#settings;
+ const refocusOnClose = this.#refocusOnClose;
+ const lastLayoutFrozenIds = new WeakMap();
+
+ this.#injectionManager.overrideMethod(Workspace.prototype, '_doRemoveWindow',
+ original => function (metaWin) {
+
+ // Grab the old window's focus chain index.
+ let focus_idx = this.get_focus_chain()
+ .findIndex(clone => clone.metaWindow == metaWin);
+
+ // Call the original method.
+ const ret = original.apply(this, arguments);
+
+ if (refocusOnClose.has(metaWin)) {
+ // Find a "nearby" window to refocus to, based on the old index
+ const chain = this.get_focus_chain();
+ if (focus_idx >= chain.length) {
+ focus_idx = chain.length - 1;
+ }
+
+ // Focus on the selected window.
+ if (focus_idx >= 0) {
+ global.stage.key_focus = chain[focus_idx];
+ }
+ }
+
+ // Adjust the freeze delay.
+ if (this._layoutFrozenId > 0
+ && this._layoutFrozenId != lastLayoutFrozenIds.get(this)
+ ) {
+ const src = GLib.MainContext.default().find_source_by_id(this._layoutFrozenId);
+ src.set_ready_time(src.get_time() + settings.rearrange_delay * 1000);
+ }
+
+ // Need to keep the last id to avoid adjusting the layout freeze delay more than
+ // once.
+ lastLayoutFrozenIds.set(this, this._layoutFrozenId);
+ return ret;
+ })
+ }
+
+ #patchKeyClose() {
+ // If Meta.KeyBindingAction.CLOSE is fired in while a WindowPreview is focused, close it.
+ const settings = this.#settings;
+ const refocusOnClose = this.#refocusOnClose;
+
+ function handleKeyPress(event) {
+
+ // Keyboard close disabled in settings.
+ if (!settings.keyboard_close) {
+ return false;
+ }
+
+ // We only care about window picker mode.
+ if (this._workspace._overviewAdjustment.value !== ControlsState.WINDOW_PICKER) {
+ return false;
+ }
+
+ const action = global.display.get_keybinding_action(
+ event.get_key_code(), event.get_state());
+ if (action == Meta.KeyBindingAction.CLOSE) {
+
+ if (this._workspace.metaWorkspace?.active) {
+ // Imediately refocus on another window when closing via keyboard.
+ refocusOnClose.add(this.metaWindow);
+
+ // Close the window.
+ this._deleteAll();
+ } else {
+ // Switch to the workspace the focused window is in.
+ this._workspace.metaWorkspace?.activate(global.get_current_time())
+ }
+
+ return true;
+ }
+
+ return false;
+ }
+
+ this.#injectionManager.overrideMethod(WindowPreview.prototype, 'vfunc_key_press_event',
+ original => function () {
+ return handleKeyPress.apply(this, arguments)
+ || original.apply(this, arguments);
+ }
+ )
+ }
+};
diff --git a/extensions/47/middleclickclose/src/metadata.json b/extensions/47/middleclickclose/src/metadata.json
new file mode 100644
index 0000000..23bc0ed
--- /dev/null
+++ b/extensions/47/middleclickclose/src/metadata.json
@@ -0,0 +1,13 @@
+{
+ "name": "Quick Close in Overview",
+ "description": "Close windows with a button click (the middle one by default) when in overview mode",
+ "url": "https://github.com/p91paul/middleclickclose",
+ "shell-version": [
+ "45",
+ "46",
+ "47"
+ ],
+ "uuid": "middleclickclose@paolo.tranquilli.gmail.com",
+ "settings-schema": "org.gnome.shell.extensions.middleclickclose",
+ "gettext-domain": "org.gnome.shell.extensions.middleclickclose"
+} \ No newline at end of file
diff --git a/extensions/47/middleclickclose/src/po/de.po b/extensions/47/middleclickclose/src/po/de.po
new file mode 100644
index 0000000..cf12acc
--- /dev/null
+++ b/extensions/47/middleclickclose/src/po/de.po
@@ -0,0 +1,83 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# Onno Giesmann <nutzer3105@gmail.com>, 2019.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: gnome-shell-extensions-middleclickclose\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2024-07-09 15:57+0300\n"
+"PO-Revision-Date: 2019-06-17 20:44+0200\n"
+"Last-Translator: Onno Giesmann <nutzer3105@gmail.com>\n"
+"Language-Team: German <--->\n"
+"Language: de\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Gtranslator 3.32.1\n"
+"Plural-Forms: nplurals=2; plural=(n != 1)\n"
+
+#: src/prefs.js:31
+msgid "Left"
+msgstr "Linke"
+
+#: src/prefs.js:32
+msgid "Middle"
+msgstr "Mittlere"
+
+#: src/prefs.js:33
+msgid "Right"
+msgstr "Rechte"
+
+#: src/prefs.js:34
+msgid "Button 4"
+msgstr "Taste 4"
+
+#: src/prefs.js:35
+msgid "Button 5"
+msgstr "Taste 5"
+
+#: src/prefs.js:36
+msgid "Button 6"
+msgstr "Taste 6"
+
+#: src/prefs.js:37
+msgid "Button 7"
+msgstr "Taste 7"
+
+#: src/prefs.js:38
+msgid "Button 8"
+msgstr "Taste 8"
+
+#: src/prefs.js:39
+msgid "Button 9"
+msgstr "Taste 9"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:17
+msgid "Mouse button to close"
+msgstr "Maustaste zum Schließen"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:18
+msgid "Which mouse button triggers closing in overview."
+msgstr "Gibt an, welche Maustaste das Schließen in der Übersicht auslöst."
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:22
+msgid "Close with keyboard"
+msgstr ""
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23
+msgid "Allow closing windows in overview via keyboard shortcuts."
+msgstr ""
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:28
+msgid "Rearrange delay"
+msgstr "Verzögerung bis zur Neuanordnung"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:29
+msgid ""
+"How much time must pass with the pointer not moving for windows in overview "
+"to rearrange after one was closed."
+msgstr ""
+"Gibt die Zeit an, die bei stillstehender Maus vergehen muss, bevor sich die "
+"Fenster in der Übersicht neu anordnen, nachdem ein Fenster geschlossen wurde."
diff --git a/extensions/47/middleclickclose/src/po/el.po b/extensions/47/middleclickclose/src/po/el.po
new file mode 100644
index 0000000..cc5f21e
--- /dev/null
+++ b/extensions/47/middleclickclose/src/po/el.po
@@ -0,0 +1,84 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# George Tsiamasiotis <gtsiam@windowslive.com>, 2023.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: gnome-shell-extensions-middleclickclose\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2024-07-09 15:57+0300\n"
+"PO-Revision-Date: 2024-07-09 16:01+0300\n"
+"Last-Translator: George Tsiamasiotis <gtsiam@windowslive.com>\n"
+"Language-Team: \n"
+"Language: el\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 3.4.2\n"
+
+#: src/prefs.js:31
+msgid "Left"
+msgstr "Αριστερό"
+
+#: src/prefs.js:32
+msgid "Middle"
+msgstr "Μεσαίο"
+
+#: src/prefs.js:33
+msgid "Right"
+msgstr "Δεξί"
+
+#: src/prefs.js:34
+msgid "Button 4"
+msgstr "Κουμπί 4"
+
+#: src/prefs.js:35
+msgid "Button 5"
+msgstr "Κουμπί 5"
+
+#: src/prefs.js:36
+msgid "Button 6"
+msgstr "Κουμπί 6"
+
+#: src/prefs.js:37
+msgid "Button 7"
+msgstr "Κουμπί 7"
+
+#: src/prefs.js:38
+msgid "Button 8"
+msgstr "Κουμπί 8"
+
+#: src/prefs.js:39
+msgid "Button 9"
+msgstr "Κουμπί 9"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:17
+msgid "Mouse button to close"
+msgstr "Κουμπί ποντικιού για κλείσιμο"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:18
+msgid "Which mouse button triggers closing in overview."
+msgstr "Ποιό κουμπί του ποντικιού κλείνει παράθυρα στην επισκόπηση."
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:22
+msgid "Close with keyboard"
+msgstr "Κλείσιμο με πληκτρολόγιο"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23
+msgid "Allow closing windows in overview via keyboard shortcuts."
+msgstr ""
+"Επιτρέπει το κλείσιμο παραθύρων στην επισκόπηση μέσω συντομεύσεων "
+"πληκτρολογίου."
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:28
+msgid "Rearrange delay"
+msgstr "Καθυστέρηση ανακατονομής"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:29
+msgid ""
+"How much time must pass with the pointer not moving for windows in overview "
+"to rearrange after one was closed."
+msgstr ""
+"Πόσος χρόνος πρέπει να περάσει με τον κέρσορα αδρανή στην επισκόπηση μετά το "
+"κλείσιμο ενός παραθύρου για να γίνει ανακατανομή."
diff --git a/extensions/47/middleclickclose/src/po/fr.po b/extensions/47/middleclickclose/src/po/fr.po
new file mode 100644
index 0000000..f7acb45
--- /dev/null
+++ b/extensions/47/middleclickclose/src/po/fr.po
@@ -0,0 +1,85 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: gnome-shell-extensions-middleclickclose\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2024-07-09 15:57+0300\n"
+"PO-Revision-Date: 2015-12-30 07:08+0100\n"
+"Last-Translator: DAEM Q.\n"
+"Language-Team: \n"
+"Language: fr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 1.8.5\n"
+"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
+
+#: src/prefs.js:31
+msgid "Left"
+msgstr "Gauche"
+
+#: src/prefs.js:32
+msgid "Middle"
+msgstr "Milieu"
+
+#: src/prefs.js:33
+msgid "Right"
+msgstr "Droit"
+
+#: src/prefs.js:34
+msgid "Button 4"
+msgstr "Bouton 4"
+
+#: src/prefs.js:35
+msgid "Button 5"
+msgstr "Bouton 5"
+
+#: src/prefs.js:36
+msgid "Button 6"
+msgstr "Bouton 6"
+
+#: src/prefs.js:37
+msgid "Button 7"
+msgstr "Bouton 7"
+
+#: src/prefs.js:38
+msgid "Button 8"
+msgstr "Bouton 8"
+
+#: src/prefs.js:39
+msgid "Button 9"
+msgstr "Bouton 9"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:17
+msgid "Mouse button to close"
+msgstr "Bouton de souris pour fermer la fenêtre"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:18
+msgid "Which mouse button triggers closing in overview."
+msgstr ""
+"Le bouton de la souris qui déclenche la fermeture d'une fenêtre dans la Vue "
+"d'ensemble."
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:22
+msgid "Close with keyboard"
+msgstr ""
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23
+msgid "Allow closing windows in overview via keyboard shortcuts."
+msgstr ""
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:28
+msgid "Rearrange delay"
+msgstr "Délai avant réarrangement"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:29
+msgid ""
+"How much time must pass with the pointer not moving for windows in overview "
+"to rearrange after one was closed."
+msgstr ""
+"Temps qu'il doit se passer sans que le pointeur de la souris ne bouge dans "
+"la Vue d'ensemble avant réarrangement des fenêtres."
diff --git a/extensions/47/middleclickclose/src/po/it.po b/extensions/47/middleclickclose/src/po/it.po
new file mode 100644
index 0000000..dbb0a96
--- /dev/null
+++ b/extensions/47/middleclickclose/src/po/it.po
@@ -0,0 +1,83 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: gnome-shell-extensions-middleclickclose\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2024-07-09 15:57+0300\n"
+"PO-Revision-Date: 2017-04-21 10:06+0200\n"
+"Last-Translator: Jimmy Scionti <jimmy.scionti@gmail.com>\n"
+"Language-Team: Jimmy Scionti <jimmy.scionti@gmail.com>\n"
+"Language: it\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 1.8.7.1\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#: src/prefs.js:31
+msgid "Left"
+msgstr "Sinistro"
+
+#: src/prefs.js:32
+msgid "Middle"
+msgstr "Centrale"
+
+#: src/prefs.js:33
+msgid "Right"
+msgstr "Destro"
+
+#: src/prefs.js:34
+msgid "Button 4"
+msgstr "Pulsante 4"
+
+#: src/prefs.js:35
+msgid "Button 5"
+msgstr "Pulsante 5"
+
+#: src/prefs.js:36
+msgid "Button 6"
+msgstr "Pulsante 6"
+
+#: src/prefs.js:37
+msgid "Button 7"
+msgstr "Pulsante 7"
+
+#: src/prefs.js:38
+msgid "Button 8"
+msgstr "Pulsante 8"
+
+#: src/prefs.js:39
+msgid "Button 9"
+msgstr "Pulsante 9"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:17
+msgid "Mouse button to close"
+msgstr "Pulsante del mouse per chiudere la finestra"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:18
+msgid "Which mouse button triggers closing in overview."
+msgstr "Seleziona quale pulsante del mouse premere per chiudere una finestra."
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:22
+msgid "Close with keyboard"
+msgstr ""
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23
+msgid "Allow closing windows in overview via keyboard shortcuts."
+msgstr ""
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:28
+msgid "Rearrange delay"
+msgstr "Ritardo del riordinamento"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:29
+msgid ""
+"How much time must pass with the pointer not moving for windows in overview "
+"to rearrange after one was closed."
+msgstr ""
+"Seleziona il tempo di attesa tra la chiusura di una finestra e il "
+"riordinamento delle altre finestre nell'anteprima."
diff --git a/extensions/47/middleclickclose/src/po/nl.po b/extensions/47/middleclickclose/src/po/nl.po
new file mode 100644
index 0000000..39aa13c
--- /dev/null
+++ b/extensions/47/middleclickclose/src/po/nl.po
@@ -0,0 +1,82 @@
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+#
+# Heimen Stoffels <vistausss@outlook.com>, 2019.
+msgid ""
+msgstr ""
+"Project-Id-Version: gnome-shell-extensions-middleclickclose\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2024-07-09 15:57+0300\n"
+"PO-Revision-Date: 2019-09-15 20:17+0200\n"
+"Last-Translator: Heimen Stoffels <vistausss@outlook.com>\n"
+"Language-Team: Dutch <kde-i18n-doc@kde.org>\n"
+"Language: it\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 2.2.1\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#: src/prefs.js:31
+msgid "Left"
+msgstr "Links"
+
+#: src/prefs.js:32
+msgid "Middle"
+msgstr "Scrollwiel"
+
+#: src/prefs.js:33
+msgid "Right"
+msgstr "Rechts"
+
+#: src/prefs.js:34
+msgid "Button 4"
+msgstr "Knop 4"
+
+#: src/prefs.js:35
+msgid "Button 5"
+msgstr "Knop 5"
+
+#: src/prefs.js:36
+msgid "Button 6"
+msgstr "Knop 6"
+
+#: src/prefs.js:37
+msgid "Button 7"
+msgstr "Knop 7"
+
+#: src/prefs.js:38
+msgid "Button 8"
+msgstr "Knop 8"
+
+#: src/prefs.js:39
+msgid "Button 9"
+msgstr "Knop 9"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:17
+msgid "Mouse button to close"
+msgstr "Muisknop om vensters mee te sluiten"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:18
+msgid "Which mouse button triggers closing in overview."
+msgstr "Met welke muisknop je vensters kunt sluiten op het overzicht."
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:22
+msgid "Close with keyboard"
+msgstr ""
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23
+msgid "Allow closing windows in overview via keyboard shortcuts."
+msgstr ""
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:28
+msgid "Rearrange delay"
+msgstr "Vertraging bij herschikken"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:29
+msgid ""
+"How much time must pass with the pointer not moving for windows in overview "
+"to rearrange after one was closed."
+msgstr ""
+"Hoeveel tijd er moet verstrijken na het sluiten van een venster voordat "
+"vensters worden herschikt."
diff --git a/extensions/47/middleclickclose/src/po/pt.po b/extensions/47/middleclickclose/src/po/pt.po
new file mode 100644
index 0000000..1dd92d9
--- /dev/null
+++ b/extensions/47/middleclickclose/src/po/pt.po
@@ -0,0 +1,80 @@
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# Tomás Marques <tomasm576@gmail.com>, 2023
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: gnome-shell-extensions-middleclickclose\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2024-07-09 15:57+0300\n"
+"PO-Revision-Date: 2023-10-11 23:56+0100\n"
+"Last-Translator: Tomás Marques <tomasm576@gmail.com>\n"
+"Language-Team: \n"
+"Language: pt\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/prefs.js:31
+msgid "Left"
+msgstr "Esquerda"
+
+#: src/prefs.js:32
+msgid "Middle"
+msgstr "Meio"
+
+#: src/prefs.js:33
+msgid "Right"
+msgstr "Direita"
+
+#: src/prefs.js:34
+msgid "Button 4"
+msgstr "Botão 4"
+
+#: src/prefs.js:35
+msgid "Button 5"
+msgstr "Botão 5"
+
+#: src/prefs.js:36
+msgid "Button 6"
+msgstr "Botão 6"
+
+#: src/prefs.js:37
+msgid "Button 7"
+msgstr "Botão 7"
+
+#: src/prefs.js:38
+msgid "Button 8"
+msgstr "Botão 8"
+
+#: src/prefs.js:39
+msgid "Button 9"
+msgstr "Botão 9"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:17
+msgid "Mouse button to close"
+msgstr "Botão do meio do rato"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:18
+msgid "Which mouse button triggers closing in overview."
+msgstr "Qual o botão do rato que fecha uma janela na vista geral."
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:22
+msgid "Close with keyboard"
+msgstr ""
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23
+msgid "Allow closing windows in overview via keyboard shortcuts."
+msgstr ""
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:28
+msgid "Rearrange delay"
+msgstr "Duração de reorganizar"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:29
+msgid ""
+"How much time must pass with the pointer not moving for windows in overview "
+"to rearrange after one was closed."
+msgstr ""
+"Quanto tempo tem de passar sem que o cursor se mova para que as janelas na "
+"visão geral se reorganizem depois de uma ter sido fechada."
diff --git a/extensions/47/middleclickclose/src/po/sk.po b/extensions/47/middleclickclose/src/po/sk.po
new file mode 100644
index 0000000..c9e79a8
--- /dev/null
+++ b/extensions/47/middleclickclose/src/po/sk.po
@@ -0,0 +1,83 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: gnome-shell-extensions-middleclickclose\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2024-07-09 15:57+0300\n"
+"PO-Revision-Date: 2015-10-30 07:08+0100\n"
+"Last-Translator: Juraj Fiala <doctorjellyface@riseup.net>\n"
+"Language-Team: \n"
+"Language: sk\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 1.8.5\n"
+"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
+
+#: src/prefs.js:31
+msgid "Left"
+msgstr "Ľavé"
+
+#: src/prefs.js:32
+msgid "Middle"
+msgstr "Stredné"
+
+#: src/prefs.js:33
+msgid "Right"
+msgstr "Pravé"
+
+#: src/prefs.js:34
+msgid "Button 4"
+msgstr "Tlačidlo 4"
+
+#: src/prefs.js:35
+msgid "Button 5"
+msgstr "Tlačidlo 5"
+
+#: src/prefs.js:36
+msgid "Button 6"
+msgstr "Tlačidlo 6"
+
+#: src/prefs.js:37
+msgid "Button 7"
+msgstr "Tlačidlo 7"
+
+#: src/prefs.js:38
+msgid "Button 8"
+msgstr "Tlačidlo 8"
+
+#: src/prefs.js:39
+msgid "Button 9"
+msgstr "Tlačidlo 9"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:17
+msgid "Mouse button to close"
+msgstr "Tlačidlo myši na zavretie"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:18
+msgid "Which mouse button triggers closing in overview."
+msgstr "Ktoré tlačidlo myši spustí zavretie v prehľade aktivít."
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:22
+msgid "Close with keyboard"
+msgstr ""
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23
+msgid "Allow closing windows in overview via keyboard shortcuts."
+msgstr ""
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:28
+msgid "Rearrange delay"
+msgstr "Oneskorenie preskúpenia"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:29
+msgid ""
+"How much time must pass with the pointer not moving for windows in overview "
+"to rearrange after one was closed."
+msgstr ""
+"Koľko času musí prejsť od posledného pohnutia kurzora myši aby sa okná v "
+"prehľade znovu usporiadali po tom ako bolo jedno zavreté."
diff --git a/extensions/47/middleclickclose/src/po/sr.po b/extensions/47/middleclickclose/src/po/sr.po
new file mode 100644
index 0000000..037eb5c
--- /dev/null
+++ b/extensions/47/middleclickclose/src/po/sr.po
@@ -0,0 +1,83 @@
+# Translation for gnome-shell-extension-middleclickclose in Serbian (Cyrillic).
+# Copyright (C) 2023
+# This file is distributed under the same license as the gnome-shell-extension-middleclickclose package.
+# Fifty Dinar <srbaizoki4@tuta.io>, 2023.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: \n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2024-07-09 15:57+0300\n"
+"PO-Revision-Date: 2023-10-15 18:51+0200\n"
+"Last-Translator: \n"
+"Language-Team: \n"
+"Language: sr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 3.4\n"
+
+#: src/prefs.js:31
+msgid "Left"
+msgstr "Лево"
+
+#: src/prefs.js:32
+msgid "Middle"
+msgstr "Средње"
+
+#: src/prefs.js:33
+msgid "Right"
+msgstr "Десно"
+
+#: src/prefs.js:34
+msgid "Button 4"
+msgstr "Дугме 4"
+
+#: src/prefs.js:35
+msgid "Button 5"
+msgstr "Дугме 5"
+
+#: src/prefs.js:36
+msgid "Button 6"
+msgstr "Дугме 6"
+
+#: src/prefs.js:37
+msgid "Button 7"
+msgstr "Дугме 7"
+
+#: src/prefs.js:38
+msgid "Button 8"
+msgstr "Дугме 8"
+
+#: src/prefs.js:39
+msgid "Button 9"
+msgstr "Дугме 9"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:17
+msgid "Mouse button to close"
+msgstr "Дугме на мишу за затварање апликација"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:18
+msgid "Which mouse button triggers closing in overview."
+msgstr "Које дугме на мишу затвара апликацију у прегледнику."
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:22
+msgid "Close with keyboard"
+msgstr ""
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23
+msgid "Allow closing windows in overview via keyboard shortcuts."
+msgstr ""
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:28
+msgid "Rearrange delay"
+msgstr "Задршка у распоређивању"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:29
+msgid ""
+"How much time must pass with the pointer not moving for windows in overview "
+"to rearrange after one was closed."
+msgstr ""
+"Колико времена мора да прође приликом непомерања показивача миша за прозоре "
+"апликација у прегледнику, како би се прозори распоредили након затварања "
+"апликације."
diff --git a/extensions/47/middleclickclose/src/po/sr@latin.po b/extensions/47/middleclickclose/src/po/sr@latin.po
new file mode 100644
index 0000000..e6bc7f0
--- /dev/null
+++ b/extensions/47/middleclickclose/src/po/sr@latin.po
@@ -0,0 +1,83 @@
+# Translation for gnome-shell-extension-middleclickclose in Serbian (Latin).
+# Copyright (C) 2023
+# This file is distributed under the same license as the gnome-shell-extension-middleclickclose package.
+# Fifty Dinar <srbaizoki4@tuta.io>, 2023.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: \n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2024-07-09 15:57+0300\n"
+"PO-Revision-Date: 2023-10-15 18:52+0200\n"
+"Last-Translator: \n"
+"Language-Team: \n"
+"Language: sr@latin\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 3.4\n"
+
+#: src/prefs.js:31
+msgid "Left"
+msgstr "Levo"
+
+#: src/prefs.js:32
+msgid "Middle"
+msgstr "Srednje"
+
+#: src/prefs.js:33
+msgid "Right"
+msgstr "Desno"
+
+#: src/prefs.js:34
+msgid "Button 4"
+msgstr "Dugme 4"
+
+#: src/prefs.js:35
+msgid "Button 5"
+msgstr "Dugme 5"
+
+#: src/prefs.js:36
+msgid "Button 6"
+msgstr "Dugme 6"
+
+#: src/prefs.js:37
+msgid "Button 7"
+msgstr "Dugme 7"
+
+#: src/prefs.js:38
+msgid "Button 8"
+msgstr "Dugme 8"
+
+#: src/prefs.js:39
+msgid "Button 9"
+msgstr "Dugme 9"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:17
+msgid "Mouse button to close"
+msgstr "Dugme na mišu za zatvaranje aplikacija"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:18
+msgid "Which mouse button triggers closing in overview."
+msgstr "Koje dugme na mišu zatvara aplikaciju u pregledniku."
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:22
+msgid "Close with keyboard"
+msgstr ""
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23
+msgid "Allow closing windows in overview via keyboard shortcuts."
+msgstr ""
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:28
+msgid "Rearrange delay"
+msgstr "Zadrška u raspoređivanju"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:29
+msgid ""
+"How much time must pass with the pointer not moving for windows in overview "
+"to rearrange after one was closed."
+msgstr ""
+"Koliko vremena mora da prođe prilikom nepomeranja pokazivača miša za prozore "
+"aplikacija u pregledniku, kako bi se prozori rasporedili nakon zatvaranja "
+"aplikacije."
diff --git a/extensions/47/middleclickclose/src/po/template.pot b/extensions/47/middleclickclose/src/po/template.pot
new file mode 100644
index 0000000..38cf0e2
--- /dev/null
+++ b/extensions/47/middleclickclose/src/po/template.pot
@@ -0,0 +1,80 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2024-07-09 15:57+0300\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/prefs.js:31
+msgid "Left"
+msgstr ""
+
+#: src/prefs.js:32
+msgid "Middle"
+msgstr ""
+
+#: src/prefs.js:33
+msgid "Right"
+msgstr ""
+
+#: src/prefs.js:34
+msgid "Button 4"
+msgstr ""
+
+#: src/prefs.js:35
+msgid "Button 5"
+msgstr ""
+
+#: src/prefs.js:36
+msgid "Button 6"
+msgstr ""
+
+#: src/prefs.js:37
+msgid "Button 7"
+msgstr ""
+
+#: src/prefs.js:38
+msgid "Button 8"
+msgstr ""
+
+#: src/prefs.js:39
+msgid "Button 9"
+msgstr ""
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:17
+msgid "Mouse button to close"
+msgstr ""
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:18
+msgid "Which mouse button triggers closing in overview."
+msgstr ""
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:22
+msgid "Close with keyboard"
+msgstr ""
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23
+msgid "Allow closing windows in overview via keyboard shortcuts."
+msgstr ""
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:28
+msgid "Rearrange delay"
+msgstr ""
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:29
+msgid ""
+"How much time must pass with the pointer not moving for windows in overview "
+"to rearrange after one was closed."
+msgstr ""
diff --git a/extensions/47/middleclickclose/src/po/uk.po b/extensions/47/middleclickclose/src/po/uk.po
new file mode 100644
index 0000000..5224afc
--- /dev/null
+++ b/extensions/47/middleclickclose/src/po/uk.po
@@ -0,0 +1,81 @@
+# StandWithUkraine
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# Artem Prokop <artem.prokop.dev@gmail.com>, 2023.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: gnome-shell-extensions-middleclickclose\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2024-07-09 15:57+0300\n"
+"PO-Revision-Date: 2023-10-22 00:00+0300\n"
+"Last-Translator: Artem Prokop <artem.prokop.dev@gmail.com>\n"
+"Language-Team: \n"
+"Language: uk\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/prefs.js:31
+msgid "Left"
+msgstr "Ліва"
+
+#: src/prefs.js:32
+msgid "Middle"
+msgstr "Середня"
+
+#: src/prefs.js:33
+msgid "Right"
+msgstr "Права"
+
+#: src/prefs.js:34
+msgid "Button 4"
+msgstr "Кнопка 4"
+
+#: src/prefs.js:35
+msgid "Button 5"
+msgstr "Кнопка 5"
+
+#: src/prefs.js:36
+msgid "Button 6"
+msgstr "Кнопка 6"
+
+#: src/prefs.js:37
+msgid "Button 7"
+msgstr "Кнопка 7"
+
+#: src/prefs.js:38
+msgid "Button 8"
+msgstr "Кнопка 8"
+
+#: src/prefs.js:39
+msgid "Button 9"
+msgstr "Кнопка 9"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:17
+msgid "Mouse button to close"
+msgstr "Кнопка миші для закриття"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:18
+msgid "Which mouse button triggers closing in overview."
+msgstr "Яка кнопка миші закриває вікно в оверв'ю"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:22
+msgid "Close with keyboard"
+msgstr ""
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23
+msgid "Allow closing windows in overview via keyboard shortcuts."
+msgstr ""
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:28
+msgid "Rearrange delay"
+msgstr "Затримка перерозташування"
+
+#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:29
+msgid ""
+"How much time must pass with the pointer not moving for windows in overview "
+"to rearrange after one was closed."
+msgstr ""
+"Скільки часу курсор має не рухатись щоб вікна в оверв'ю перерозташувалися "
+"після закриття вікна."
diff --git a/extensions/47/middleclickclose/src/prefs.js b/extensions/47/middleclickclose/src/prefs.js
new file mode 100644
index 0000000..99d8858
--- /dev/null
+++ b/extensions/47/middleclickclose/src/prefs.js
@@ -0,0 +1,124 @@
+/**
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+**/
+
+import Adw from 'gi://Adw';
+import Gtk from 'gi://Gtk';
+import GLib from 'gi://GLib';
+import GObject from 'gi://GObject';
+
+import { ExtensionPreferences, gettext as _ }
+ from 'resource:///org/gnome/Shell/Extensions/js/extensions/prefs.js';
+
+export default class MiddleClickClosePreferences extends ExtensionPreferences {
+ getPreferencesWidget() {
+ let page = new Adw.PreferencesPage();
+ let group = new Adw.PreferencesGroup();
+
+ group.add(this.buildPreference("close-button", {
+ nicks: {
+ left: _("Left"),
+ middle: _("Middle"),
+ right: _("Right"),
+ 'button 4': _("Button 4"),
+ 'button 5': _("Button 5"),
+ 'button 6': _("Button 6"),
+ 'button 7': _("Button 7"),
+ 'button 8': _("Button 8"),
+ 'button 9': _("Button 9"),
+ },
+ }));
+
+ group.add(this.buildPreference("rearrange-delay", {
+ step: 50,
+ }));
+
+ group.add(this.buildPreference("keyboard-close"))
+
+ page.add(group);
+ return page;
+ }
+
+ buildPreference(key, opts) {
+ opts ??= {}
+
+ const settings = this.getSettings();
+ const setting = settings.create_action(key);
+ const schema = settings.settings_schema.get_key(key);
+
+ opts.title ??= schema.get_summary() || schema.get_name();
+ opts.subtitle ??= schema.get_description();
+
+ const ty = schema.get_value_type().dup_string();
+ const [range_ty, range] = schema.get_range().recursiveUnpack();
+
+ if (range_ty == "enum") {
+ opts.nicks ??= {};
+ let row = new Adw.ComboRow({
+ title: opts.title,
+ subtitle: opts.subtitle,
+ model: new Gtk.StringList({ strings: range.map(nick => opts.nicks[nick]) }),
+ selected: range.indexOf(setting.state.unpack()),
+ });
+
+ row.connect('notify::selected', () => {
+ setting.change_state(GLib.Variant.new_string(range[row.selected]));
+ });
+
+ return row;
+ } else if (range_ty == "range") {
+ opts.lower ??= range[0]
+ opts.upper ??= range[1]
+ }
+
+ if (ty == "b") {
+ let row = new Adw.SwitchRow({
+ title: opts.title,
+ subtitle: opts.subtitle,
+ active: setting.state.unpack()
+ });
+
+ row.connect('notify::active', () => {
+ setting.change_state(GLib.Variant.new_boolean(row.active));
+ });
+
+ return row;
+
+ } else if (ty == "i") {
+ let adjustment = new Gtk.Adjustment({
+ lower: opts.lower,
+ upper: opts.upper,
+ step_increment: opts.step,
+ value: setting.state.unpack(),
+ });
+
+ let row = new Adw.SpinRow({
+ title: opts.title,
+ subtitle: opts.subtitle,
+ numeric: true,
+ adjustment,
+ });
+
+ adjustment.connect("value-changed", adj => {
+ setting.change_state(GLib.Variant.new_int32(adj.value));
+ });
+
+ return row;
+ }
+
+ // Yeah... I'm not gonna implement a full introspector here. Just add whatever is required
+ // when needed.
+ throw new GObject.NotImplementedError();
+ }
+};
diff --git a/extensions/47/middleclickclose/src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml b/extensions/47/middleclickclose/src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml
new file mode 100644
index 0000000..93f3793
--- /dev/null
+++ b/extensions/47/middleclickclose/src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schemalist gettext-domain="org.gnome.shell.extensions.middleclickclose">
+ <enum id='org.gnome.shell.extensions.middleclickclose.buttons'>
+ <value value='1' nick='left'/>
+ <value value='2' nick='middle'/>
+ <value value='3' nick='right'/>
+ <value value='4' nick='button 4'/>
+ <value value='5' nick='button 5'/>
+ <value value='6' nick='button 6'/>
+ <value value='7' nick='button 7'/>
+ <value value='8' nick='button 8'/>
+ <value value='9' nick='button 9'/>
+ </enum>
+ <schema id="org.gnome.shell.extensions.middleclickclose" path="/org/gnome/shell/extensions/middleclickclose/">
+ <key name="close-button" enum="org.gnome.shell.extensions.middleclickclose.buttons">
+ <default>'middle'</default>
+ <summary>Mouse button to close</summary>
+ <description>Which mouse button triggers closing in overview.</description>
+ </key>
+ <key type="b" name="keyboard-close">
+ <default>true</default>
+ <summary>Close with keyboard</summary>
+ <description>Allow closing windows in overview via keyboard shortcuts.</description>
+ </key>
+ <key type="i" name="rearrange-delay">
+ <default>750</default>
+ <range min="0" max="5000" />
+ <summary>Rearrange delay</summary>
+ <description>How much time must pass with the pointer not moving for windows in overview to rearrange after one was closed.</description>
+ </key>
+ </schema>
+</schemalist>
diff --git a/extensions/47/middleclickclose/src/settingsWatch.js b/extensions/47/middleclickclose/src/settingsWatch.js
new file mode 100644
index 0000000..fd8b8bd
--- /dev/null
+++ b/extensions/47/middleclickclose/src/settingsWatch.js
@@ -0,0 +1,87 @@
+export class SettingsWatch {
+ #settings;
+ #key_data = new Map();
+
+ constructor(settings, ...opts) {
+ this.#settings = settings;
+
+ for (const opt of opts) {
+ if (typeof opt == 'string') {
+ this.#addSetting(opt, {});
+ } else {
+ for (const [prop_name, opts] of Object.entries(opt)) {
+ this.#addSetting(prop_name, opts)
+ }
+ }
+ }
+ }
+
+ #addSetting(prop_name, opts) {
+ let key;
+ if (typeof opts == 'string') {
+ key = opts;
+ opts = {};
+ } else {
+ key = opts.key ?? prop_name.replace('_', '-');
+ }
+
+ const settings = this.#settings;
+ const raw_getter = opts.get_raw ?? this.#defaultRawGetter(settings, key);
+ const getter = opts.get ?? (x => x);
+
+ const update_cb = () => {
+ let value = getter(raw_getter(settings.get_value(key)));
+ this.#key_data.get(prop_name).value = value;
+
+ return value;
+ };
+
+ this.#key_data.set(prop_name, {});
+ Object.defineProperty(this, prop_name, {
+ enumerable: true,
+ configurable: true,
+ get() {
+ let data = this.#key_data.get(prop_name);
+ if (data.value === undefined) {
+ data.handler_id = settings.connect('changed::' + key, update_cb);
+ data.value = update_cb();
+ }
+
+ return data.value;
+ }
+ });
+ }
+
+ #defaultRawGetter(settings, key) {
+ const schema = settings.settings_schema.get_key(key);
+ const [range_ty, _range] = schema.get_range().recursiveUnpack();
+
+ if (range_ty == "enum") {
+ return value => {
+ return {
+ nick: value.unpack(),
+
+ // FIXME: remove unnecessary lookup if/when g_settings_schema_key_to_enum()
+ // becomes available. But for now, an extra lookup will have to do.
+ value: settings.get_enum(key),
+ };
+ };
+ }
+
+ return value => value.recursiveUnpack();
+ }
+
+ clear() {
+ for (const [key, data] of this.#key_data.entries()) {
+ if (data.handler_id !== undefined)
+ this.#settings.disconnect(data.handler_id);
+
+ delete this[key];
+ }
+
+ this.#key_data.clear();
+ }
+}
+
+// Allow calling clear as a static function.
+SettingsWatch.clear = obj => SettingsWatch.prototype.clear.apply(obj);
diff --git a/extensions/47/no-overview.mk b/extensions/47/no-overview.mk
new file mode 100644
index 0000000..e2a604c
--- /dev/null
+++ b/extensions/47/no-overview.mk
@@ -0,0 +1,58 @@
+# Progress Linux: gnome-shell-extensions-extra
+
+# Copyright (C) 2010-2024 Daniel Baumann <daniel.baumann@progress-linux.org>
+#
+# SPDX-License-Identifier: GPL-3.0+
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+# Build-Depends:
+# none
+
+SHELL := sh -e
+
+EXTENSION := no-overview
+UUID := no-overview@fthx
+
+all:
+
+test:
+
+build:
+
+install:
+ mkdir -p $(DESTDIR)/usr/share/gnome-shell/extensions
+ cp -a $(EXTENSION) $(DESTDIR)/usr/share/gnome-shell/extensions/$(UUID)
+
+ # removing unused files
+ rm -f $(DESTDIR)/usr/share/gnome-shell/extensions/$(UUID)/LICENSE
+ rm -f $(DESTDIR)/usr/share/gnome-shell/extensions/$(UUID)/README.md
+
+uninstall:
+ rm -rf $(DESTDIR)/usr/share/gnome-shell/extensions/$(UUID)
+ rmdir --ignore-fail-on-non-empty --parents $(DESTDIR) || true
+
+clean:
+
+distclean:
+
+reinstall: uninstall install
+
+upstream:
+ rm -rf $(EXTENSION)
+ git clone https://github.com/fthx/$(EXTENSION)
+ rm -rf $(EXTENSION)/.git
+
+ # dfsg
+ rm -f $(EXTENSION)/metadata.json
diff --git a/extensions/47/no-overview/LICENSE b/extensions/47/no-overview/LICENSE
new file mode 100644
index 0000000..f288702
--- /dev/null
+++ b/extensions/47/no-overview/LICENSE
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ <program> Copyright (C) <year> <name of author>
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<https://www.gnu.org/licenses/>.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+<https://www.gnu.org/licenses/why-not-lgpl.html>.
diff --git a/extensions/47/no-overview/README.md b/extensions/47/no-overview/README.md
new file mode 100644
index 0000000..25fb2aa
--- /dev/null
+++ b/extensions/47/no-overview/README.md
@@ -0,0 +1,3 @@
+GNOME Shell 40+ extension
+
+https://extensions.gnome.org/extension/4099/no-overview/
diff --git a/extensions/47/no-overview/extension.js b/extensions/47/no-overview/extension.js
new file mode 100644
index 0000000..f0a6f28
--- /dev/null
+++ b/extensions/47/no-overview/extension.js
@@ -0,0 +1,26 @@
+/*
+ No overview at start-up
+ GNOME Shell 45+ extension
+ Contributors: @fthx
+ License: GPL v3
+*/
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+
+export default class NoOverviewExtension {
+ enable() {
+ if (!Main.layoutManager._startingUp) {
+ return;
+ }
+
+ Main.layoutManager.connectObject(
+ 'startup-complete',
+ () => Main.overview.hide(),
+ this
+ );
+ }
+
+ disable() {
+ Main.layoutManager.disconnectObject(this);
+ }
+}
diff --git a/extensions/47/no-overview/metadata.json b/extensions/47/no-overview/metadata.json
new file mode 100644
index 0000000..1926a58
--- /dev/null
+++ b/extensions/47/no-overview/metadata.json
@@ -0,0 +1,10 @@
+{
+ "_generated": "Generated by SweetTooth, do not edit",
+ "description": "No overview at start-up. Nothing more.",
+ "name": "No overview at start-up",
+ "original-authors": ["fthx"],
+ "shell-version": ["46", "47"],
+ "url": "https://github.com/fthx/no-overview",
+ "uuid": "no-overview@fthx",
+ "version": 999
+} \ No newline at end of file
diff --git a/extensions/47/vertical-workspaces.mk b/extensions/47/vertical-workspaces.mk
new file mode 100644
index 0000000..db823e4
--- /dev/null
+++ b/extensions/47/vertical-workspaces.mk
@@ -0,0 +1,56 @@
+# Progress Linux: gnome-shell-extensions-extra
+
+# Copyright (C) 2010-2024 Daniel Baumann <daniel.baumann@progress-linux.org>
+#
+# SPDX-License-Identifier: GPL-3.0+
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+# Build-Depends:
+# gettext libglib2.0-bin unzip zip
+
+SHELL := sh -e
+
+EXTENSION := vertical-workspaces
+UUID := $(shell awk -F\" '/"uuid": / { print $$4 }' $(EXTENSION)/metadata.json)
+
+all:
+
+test:
+
+build:
+ $(MAKE) -C $(EXTENSION) zip
+
+install: build
+ mkdir -p $(DESTDIR)/usr/share/gnome-shell/extensions/$(UUID)
+ unzip -d $(DESTDIR)/usr/share/gnome-shell/extensions/$(UUID) $(EXTENSION)/*.zip
+
+ # removing unused files
+ rm -f $(DESTDIR)/usr/share/gnome-shell/extensions/$(UUID)/LICENSE
+
+uninstall:
+ rm -rf $(DESTDIR)/usr/share/gnome-shell/extensions/$(UUID)
+ rmdir --ignore-fail-on-non-empty --parents $(DESTDIR) || true
+
+clean:
+ $(MAKE) -C $(EXTENSION) clean
+
+distclean:
+
+reinstall: uninstall install
+
+upstream:
+ rm -rf $(EXTENSION)
+ git clone https://github.com/G-dH/$(EXTENSION) $(EXTENSION)
+ rm -rf $(EXTENSION)/.git
diff --git a/extensions/47/vertical-workspaces/.github/ISSUE_TEMPLATE/bug_report.md b/extensions/47/vertical-workspaces/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 0000000..74daf6a
--- /dev/null
+++ b/extensions/47/vertical-workspaces/.github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,39 @@
+---
+name: Bug report
+about: Create a report to help us improve
+title: "[BUG]"
+labels: bug
+assignees: ''
+
+---
+
+**Describe the bug**
+A clear and concise description of what the bug is.
+
+**Basic debug information**
+ - Did disabling all other extensions help?
+ - Did you find conflicting extension?
+
+**To Reproduce**
+Steps to reproduce the behavior:
+1. Go to '...'
+2. Click on '....'
+3. Scroll down to '....'
+4. See error
+
+**Expected behavior**
+A clear and concise description of what you expected to happen.
+
+**Screenshots**
+If applicable, add screenshots to help explain your problem.
+
+**System:**
+ - OS: [e.g. Fedora 38]
+ - Version of V-Shell extension: [e.g. 25]
+ - Source of installation: [e.g. extension.gnome.org, GitHub]
+ - Other installed and enabled extensions: ...
+
+**System log output**
+open terminal, execute:
+`journalctl /usr/bin/{gjs,gnome-shell} -fo cat`
+reproduce the bug, copy the output from terminal if any.
diff --git a/extensions/47/vertical-workspaces/.github/ISSUE_TEMPLATE/feature_request.md b/extensions/47/vertical-workspaces/.github/ISSUE_TEMPLATE/feature_request.md
new file mode 100644
index 0000000..f455865
--- /dev/null
+++ b/extensions/47/vertical-workspaces/.github/ISSUE_TEMPLATE/feature_request.md
@@ -0,0 +1,20 @@
+---
+name: Feature request
+about: Suggest an idea for this project
+title: "[FEATURE]"
+labels: enhancement
+assignees: ''
+
+---
+
+**Is your feature request related to a problem? Please describe.**
+A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
+
+**Describe the solution you'd like**
+A clear and concise description of what you want to happen.
+
+**Describe alternatives you've considered**
+A clear and concise description of any alternative solutions or features you've considered.
+
+**Additional context**
+Add any other context or screenshots about the feature request here.
diff --git a/extensions/47/vertical-workspaces/CHANGELOG.md b/extensions/47/vertical-workspaces/CHANGELOG.md
new file mode 100644
index 0000000..ac557c0
--- /dev/null
+++ b/extensions/47/vertical-workspaces/CHANGELOG.md
@@ -0,0 +1,429 @@
+## Changelog:
+### v46.4 for GNOME 45.2+ (), v44.14 for GNOME 42-44 (not yet released)
+**Fixed:**
+- App grid: Inconsistent grid size on the same monitor when switching monitors (#160)
+- App grid: The grid layout manager's current page being out of sync with the grid's current page causes page shifts while dragging app icons and incorrect page navigation controls (#160, upstream bug)
+- App grid: After dragging an icon out of a multi-page folder, the folder view shows navigation hints the next time it is opened (#160, upstream bug)
+- App grid: Grid page switches to the page with selected icon when user starts dragging an icon on another page
+- App grid: Page indicators don't accept drop, so the app icon can't be moved to a new page
+- App grid: Keyboard navigation inside a folder doesn't work (upstream bug, fixed in GS 47)
+- App grid: Workspace thumbnails not re-scaling after switching workspace outside of the overview using a trackpad
+- Vertical dash: Running dot position in GNOME 46.0 (Ubuntu 24.04)
+
+**Added:**
+- GNOME 47 support
+- *Adaptive* options for the maximum dash and app search icon size that supports low resolution and highly scaled displays
+- Search view scroll bar style to make it visible
+- App grid: Drag-and-drop between folders
+- App grid: Added an option *App Grid Search Mode* that can be set to *Filter App Grid View*, which filters the app grid icons while you're typing, instead of switching to the default search view
+- App grid: Added *Alphabet* sorting option that sorts folders along with apps
+
+
+### v46.3.1 for GNOME 45.2+ (2024-06-10), v44.14 for GNOME 42-44 (not yet released)
+**Fixed:**
+- *App Grid Page Height Scale* option affects folder icon size
+- *Smooth App Grid Animations* options has no effect
+
+
+### v46.3 for GNOME 45.2+ (2024-06-08), v44.14 for GNOME 42-44 (not yet released)
+**Fixed:**
+- App grid icon order and grid dimensions issues (#160)
+- App grid partially visible after login
+- Vertical dash running app indicator position in GNOME 46.2 (#150)
+- Dash label border radius is set too high for multiline labels
+- Search entry position in some overview configurations (#161)
+- Window attention handler options don't work properly
+
+**Added**
+- App grid *App Grid Page Height Scale* option
+- Separated *Folder Grid Spacing* option
+
+
+### v46.2 for GNOME 45.2+ (2024-05-15), v44.13 for GNOME 42-44 (2024-05-15)
+**Fixed:**
+- Inconsistent behavior of dash icons and app grid icons (#152)
+- Sorting option doesn't work for app folders (#154)
+- V-Shell overrides Dash to Dock's background opacity setting (#155)
+- Conflicts with Dash2Dock Animated (#153)
+- When the main panel is set to show only in the overview, its content might be unclickable (#157)
+- Workspace thumbnails DND can be difficult to use when creating new workspaces (#128)
+
+
+### v46.1 for GNOME 45.2+ (2024-05-09), v44.12 for GNOME 42-44 (2024-05-09)
+**Fixed:**
+- Fixed conflicts with Dash to Dock that could cause GNOME to crash at startup
+- Resolved issue where V-Shell affected Dash to Dock icon highlighting
+- Corrected search entry and results allocation to consider Dash to Dock
+- Adjusted app folder dialogs for proper sizing and positioning
+- Aligned secondary monitor overview with the primary one (option)
+- Removed all code related to previously removed modules
+- Fixed GNOME Shell recovery when V-Shell is disabled
+- The *App Grid Page Width Scale* option now works for all configurations
+
+**Added:**
+- Added *Delay at Startup* option to allow delaying activation of V-Shell after login. Automatically enabled when Dash to Dock, Ubuntu Dock, or Dash to Panel is detected
+- Added *Click Empty Space To Close* option
+- Added close button to the app folder dialog
+
+**Changed**
+- Refactored the app grid module for improved efficiency and reliability
+- Removed the 32px option for app grid icon size
+- Moved the *Remove* folder button to the left side of the folder dialog
+- Adjusted folder grid columns and rows settings to serve as maximum limits rather than fixed page size, allowing for better control over the default adaptive algorithm
+- Relocated all app grid settings to a separate tab for better organization
+
+
+### v46.0 for GNOME 45.2+ (2024-03-30 ego), v44.12 for GNOME 42-44 (not released)
+**Added**
+- Support for GNOME 46
+- Option *Fix New Window Not On Current Monitor* tries to work around that issue. However, success rate is not 100%
+
+**Changed**
+- Windows and Extensions search providers have been removed from the V-Shell and released as a standalone WSP and ESP extensions. Respective module switches has been replaced in Settings by the links to these new extensions
+- Window thumbnails (PiP) module moved to the standalone extension WTMB, link added to the *Modules* tab of Settings window
+- Shortcuts in the overview - `Ctrl+Space` - Extensions Search Provider, `Shift+Space` - Recent Files Search Provider, `Ctrl+Shift+Space` - V-Shell Settings
+- Bottom OSD position moved so it's not overlapping dock, if used
+- Active folder icons hover animation from scale, which makes icons blurry, to the move 3px up
+
+**Fixed:**
+- Running app indicators too close to the app name on the app grid
+- OverlayKey module deactivates itself even if its configuration isn't consistent with the default GNOME Shell behavior
+
+
+### v45.3 for GNOME 45.2+, v44.11 for GNOME 42-44 (2023-12-20)
+**Added:**
+- Option *Workspace Switcher Mode (Isolate Monitors)* can simulate independent switching of workspaces on any monitor
+- Improved *Extensions Search Provider* allows seamless extension de/activation
+
+**Fixed:**
+- DtD breaks overview on the primary monitor because of incorrect dash/dock position readings
+- *Window Switcher > Ignore Last (empty) Workspace* should work only for dynamic workspaces mode
+- *OverlayKey* module should remain disabled when the overlay-key functionality is set to default to minimize conflicts with other extensions
+- Errors from parental manager when registering search provider modules
+- Extension settings window sometimes fails to open when another extension settings window is already open
+- Vertically oriented dash items should be selectable even with the mouse pointer at the edge of the screen
+
+
+### v45.2 for GNOME 45.2+, v44.10 for GNOME 42-44 (2023-12-02)
+**Added:**
+- *Dash* option *Isolate Workspaces* on *Behavior* tab
+- *Brightness for Search View* option allows adjusting background wallpaper brightness in overview search view
+- *Extensions Search Provider* module allows to search for extensions from the overview, open their settings and enable or disable them
+
+
+### v45.1 for GNOME 45.1+ (EGO 2023-11-25) v44.9 for GNOME 42-44 (not released)
+**Added:**
+- *Window Thumbnail - PIP* option in app icon menu and as an click actions for Window Preview
+- Workspace switcher options *Wraparound* and *Ignore Last (empty)*
+- *Overlay key (Super)* and *Hot Corner* actions offer different overview modes independent on global *Overview Mode*
+- Workspace thumbnails background without wallpaper is now semi-transparent to match other overview elements
+- App Grid sorting options allow alphabetical order with folders
+
+**Fixed:**
+- App grid has less rows than it should
+- Many minor fixes that reflect gnome-shell development and backports
+- Centered app folder position on multi-monitor system
+- Window can't be activated using touchscreen
+- Setting background wallpaper too early on startup can crash Wayland session
+
+**Other changes:**
+- Since GNOME 45 V-Shell has 2 versions - one for GS 45 and the second for GS 42-44. Versioning no longer depends on EGO's upload counter
+- Dash light style background opacity is not limited
+- Refactored Recent Files Search Provider and other modules
+- Settings window - ComboBox replaced with (finally fixed) DropDown
+
+
+### v37 (2023-07-01)
+**Fixed:**
+- False detections of conflicting extensions
+
+
+### v36 (2023-07-01) (35/34/33/32/31 skipped due to issues with extensions.gnome.org)
+**Added:**
+- Option *Fix New Windows Not In Focus* on *Misc* tab
+
+**Fixed:**
+- Improved compatibility with Dash to Dock extension - hidden dock in the overview, broken layout after startup
+- Compatibility with Hide Top Bar extension
+- App search provider ignores non-localized app names
+- App folders grid dimensions wrong if set to *Adaptive* and folder icon is set to a fixed size
+- Dash and active app folder icons running indicator position
+- Blur/Brightness transitions in static overview mode
+- Hot corner edge barrier can be active even if hot corner is disabled
+- Disabling dash module does not reset dash position to default
+
+**Other changes:**
+- Removed css class reducing Quick Settings buttons height in GNOME 44
+
+
+### v30 (2023-06-09)
+**Added:**
+- Dash option - Click Behavior: *Prefer Current Workspace* - opens a new window if app not present on the active workspace
+- Window search provider sorting options
+- Esc key behavior options
+- Window preview - middle and secondary mouse button behavior options, close button can be hidden
+- GNOME 3 vertical dash style is now optional
+- Window preview title position option
+- Light dash background option
+- Remove app folder button in folder dialog
+- *Updating V-Shell* banner appears during updating V-Shell settings when settings window is irresponsive
+- Dutch translation by @Vistaus
+
+**Fixed:**
+- Dash icon scroll action conflicts with Dash to Dock
+- Open new window by middle click on app icon or Ctrl+Enter doesn't work
+- Dash icon label can extend to the adjacent display
+- WindowPreview module not updated when "always-activate-selected-window" changed
+- App folder dialog position if secondary monitor connected
+- App folder dialog sizing and positioning
+- Background brightness in search view reduced independently to avoid unreadable text and consistent style
+- Compatibility with Burn My Windows - freeze after screen unlocked, or extensions re-enabled
+- Window and Recent files search providers modes not isolated well from results of other providers
+- Recent file search provider results sorting
+- App grid icons with multi-line label move on hover when label expands
+- Search view animation skipped id triggered from app grid state
+- DING desktop icons not visible during static background workspace animation
+
+
+**Other changes:**
+- Added `unlock-dialog` session mode to avoid unnecessary system load when using screen lock
+- App Grid refactored, added transparent app folder dialogs on clean background
+- Search view transparency and fixed background brightness in classic overview
+- Search view in static workspace overview with full opacity and close to default style
+- Settings window - Profiles tab moved at first position, Dash icons position options moved back to layout
+- Updated default profiles
+
+
+### v29 (2023-04-11)
+**Fixed:**
+- Window switcher/highlighter logic when scrolling over an dash icon
+- Unhandled promise rejection warnings on GS 43+
+
+
+### v28 (2023-04-06)
+**Added:**
+- App Grid - vertical app folder orientation
+- App Grid - *App Grid Page Width Scale* and *Grid Spacing* options
+- Dash - *Click Behavior* option *Open New Window (if supported)* - switches primary and middle mouse buttons action
+- Improved support for scaled display and icon sizing
+
+**Fixed:**
+- Missing default profile names
+- App Grid - *Allow Incomplete Pages* option has no effect
+- App Grid - adaptive folder grid size can exceed display/dialog size
+- App Grid - unnecessary side spacing when dash and workspace thumbnails are horizontal
+- Workspace switcher popup when switching workspaces using gestures
+
+**Other changes:**
+- Default profiles values
+- Settings window - Profile buttons order
+
+
+### v27 (2023-03-24)
+**Added:**
+- Predefined customizable profiles for quick configuration changes. The predefined profiles can set the V-Shell to behave like GNOME Shell 3.xx or 40+, make work with the default hot corner more efficient, or make overview behave more like a dock.
+- Super key double-press behavior options
+- Brightness setting for background wallpaper in the overview
+- Hot corner position and hot edge options
+- Window preview option *Always Activate Selected* allows to switch windows using the overview without clicking
+- Scrolling over the app icon in the dash can switch between application window previews
+- OSD position options
+- Customizable workspace preview corner radius
+
+**Changed:**
+- Default max result rows changed from 10 to 5
+- Max result rows for recent file search provider set to fixed 20 (these results are not included in the standard search)
+
+**Fixed:**
+- Dash style affects Dash to Dock / Ubuntu Dock background
+- GS44 app grid folders - DND with pinned/favorite/running apps can crash the Shell
+- Compatibility with Dash to Panel and Hide Top Bar extensions
+- Compatibility with Desktop Cube extension (in horizontal mode)
+- Dash icon click behavior options moved from appDisplay to dash module
+- Bg blur transition to the search view
+
+
+### v26 (2023-03-08)
+**Added:**
+- V-Shell modules control - allows disabling expendable modules if they are in conflict with preferred other extensions, or misbehave.
+- Hot corner options
+
+**Fixed:**
+- App grid's adaptive grid size algorithm doesn't support screen scaling.
+- App grid label option *Always Expanded* doesn't expand labels until the icon is hovered by the pointer.
+- Scroll over panel that is in the *Overview Only* mode switches workspace.
+- Leaving the overview using gesture if any window is selected fills the system log with errors - upstream bug.
+- Panel style transitions in other than default modes.
+- Overview keyboard navigation.
+
+
+### v24/25 (2023-03-03)
+**Added:**
+- Support for GNOME Shell 44.
+- Support for horizontally stacked workspaces, the orientation follows `Workspaces Thumbnails Position` option.
+- `Dash Max Icon Size` menu now offers 80, 96, 112 and 128 px options.
+- Dash can use available space better if resizes its icons when there is not enough space on the screen for the chosen icon size.
+- Options `Dash Icon Click`: `Activate Last Used Window Immediately` (default behavior) and `Switch to Workspace with Recently Used Window` which allows you to see an overview of the workspace with the app window before activating it and closing the overview.
+- Options `Workspaces Scale` and `Workspaces Spacing` adjustments for workspace preview.
+- Option `Workspace Switcher Animation` / `Static Background` for static background while switching workspaces outside of the overview.
+- Options `Main Panel Position` and `Main Panel Visibility` allows moving the main panel at the bottom of the screen, hide it, or only show it in the Activities overview.
+- Options `App Search Icon Size` with reduced spacing between icons and `Search Results Width`.
+- Option `Max Search Results Rows` allows to set maximum number of rows for all search providers (except for the app search provider that uses grid instead of the list).
+- Optional Search view transition animation.
+- Optional `Window Search Provider` directly accessible via an optional icon in the dash, by pressing the Space key in the overview, or by secondary mouse button click on the 'Show Apps' dash icon.
+- Secondary mouse button click on a window preview opens window search provider searching for the window app name.
+- Optional `Recent Files Search Provider` directly accessible via an optional icon in the dash or by pressing the Ctr+Space key in the overview.
+- Text shadow in labels of app grid view icons for better visibility on lighter backgrounds, in case you use `Show Static Background` option for the overview.
+- Open preferences by middle click on *Show Applications button* in the dash (default dash only).
+- Option to show current window title in the workspace thumbnail label.
+- `Close Workspace Button` option can add close button to workspace thumbnails that allows you to close all windows on the workspace/monitor. You can choose whether it close on single click, double-click or single click while holding down the Ctrl key.
+- App Grid options - `Icon Size`, `Columns/Rows per Page`, `Apps Order` - `Custom`, `Alphabet`, `Usage`, option to `Include Dash Items`, `Reset App Grid Layout`, `Remove App Grid Folders`.
+- App Grid's *Include Dash Items* option changed to `App Grid Content` and allows exclude favorites and/or running apps from the grid also in the default custom layout mode.
+- Option `App Labels Behavior` offers setting App Grid app labels to show always expanded or hide them if the app icon is not selected.
+- Option `Active Icons in Preview Folders` allows you using icons in the folder preview as normal app icons without opening the folder.
+- App folder preview icons can be displayed in 3x3 grid instead of 2x2 and icon/folder size can be set up to 256px to allow bigger Active folder icons.
+- Improved app search, now you can find *Firefox* even if you enter *fox* and with the (pseudo) fuzzy search enabled, you'll find it even if you enter *ffx*.
+- Notification banners position option.
+- `Window Attention Handler` options - `Disable Notifications`, `Immediately Focus Window`.
+- New options for secondary monitor overview allow independent workspace thumbnails and workspace preview scales and also can move the ws preview as if there was the main panel, like on the primary monitor.
+- Custom workspace switcher popup position and visibility.
+
+**Fixed:**
+- Some options related to the workspace preview don't work for secondary monitors if workspaces set to "primary monitor only".
+- Optimized blur effect transitions.
+- Smaller single windows not properly scaling with workspace preview in `Expose Windows on Hover` mode.
+- (upstream bug) Closing windows in the overview fills log with "access to destroyed" object errors.
+- (upstream bug) Glitching transition when minimizing full-screen window.
+- Workspace thumbnails size breathing during adding/removing workspaces
+
+**Changed:**
+- Extension renamed to V-Shell, because the vertical workspace orientation is not the only option any more and the 'V' might stand for *Vertical*, but also for *Variable*.
+
+### v23 (v19, v20, v21, v22) (2022-12-22)
+**Added:**
+- Overview modes `Expose Windows on Hover` and `Static Workspace`
+- Option `Always Show Window Titles`
+- Option `Dash Background Radius`
+- Option `Animation Speed`
+
+**Fixed:**
+- Startup animation can still freeze Shell in certain configuration. Injection replaced by complete override of the *startupAnimation()* function.
+- Workaround for upstream bug - stuttering first animation of App Grid with many icons.
+
+**Other changes:**
+- Preferences split into more sections for better readability.
+
+### v17, v18 (2022-12-07)
+**Added:**
+- Separate scales for blur amount in overview window picker and app grid/search results.
+- Option `Smooth Blur Transitions` allows to disable smooth blur transitions on slower hw.
+
+**Fixed:**
+- Startup animation can freeze Shell if `Show Workspace Preview Background` option disabled.
+- Secondary workspace thumbnails not visible in overview after starting GS.
+- Dash, WS thumbnails and Search entry animations exceptions.
+- App grid animates over the Dash instead below it.
+
+**Other changes:**
+- Default Dash background opacity set to 40.
+- Workspace thumbnail caption style.
+
+### v16 (2022-12-05)
+**Fixed:**
+- Dash to Dock compatibility.
+- Improved static background transitions.
+
+### v15 (2022-12-01)
+**Fixed:**
+- Dash / ws thumbnails shifted after disable, if ws preview background is disabled.
+- Delayed dash / ws thumbnails animation after screen unlocks.
+
+### v14 (2022-11-29 e.g.o only)
+**Added:**
+- Option `Show Static Background` allows keep background wallpaper in the Activities overview.
+- Slider `Blur Static Background` allows add blur to the static background image.
+- Search result style - added bit of transparency to look better with static background.
+- Link to changelog on About page.
+
+**Fixed:**
+- Option `Override Page Up/Down Shortcuts` doesn't work reliably.
+
+**Other changes:**
+- Next/Prev page indicators in GS43 are hard to switch from horizontal orientation to vertical, so for now I added style that makes them look more like vertical arrows indicating direction to the prev/next page.
+
+### v13 (2022-10-20)
+**Added:**
+- Horizontal 3 finger gesture automatically changes its direction depending on the workspace thumbnails position to match direction of the transition animation.
+- Vertically oriented Dash items can be selected and activated even with the pointer at the edge of the screen.
+- Option `Startup State` allows to change GNOME Shell's startup state from Overview to Desktop.
+- Option `Always Show Search Entry` now allows showing the search entry even if the search is not active.
+
+**Fixed**
+- 3 finger gestures not having proper orientation when used for the first time after enabling the extension.
+- Dash overlapping workspace during transition between normal view and overview when using a 3 finger gesture.
+- Dash icons can get out of border when dash size reach its maximum.
+- Smaller workspace preview size if DtD set to auto-hide.
+- Dash startup animation doesn't respect Dash position, workspace thumbnails don't animate at all.
+
+### v12 2022-09-04
+**Fixed:**
+- Dash to Dock compatibility issue when original Dash set to vertical position
+
+### v11 2022-09-04
+**Added**
+- Window preview app icon size
+- About page
+- Reset button that allows to set all options to their default values
+- GNOME Shell 43 support
+- Automatic `Fix for Dash to Dock` option activation when DtD detected during enabling
+
+**Fixed**
+- App Grid page indicator not vertical
+- Workspace thumbnail caption can show window title from different workspace (typically VBox Machine)
+
+### v10 2022-08-03
+**Added:**
+- Option `Show Workspace Preview Background` allows to hide background wallpaper in the overview.
+
+**Fixed:**
+- Broken overview after *Dash to Dock* disabled.
+
+**Other changes:**
+- Preferences reorganized
+
+### v9 2022-07-31
+**Added:**
+- Option `Show Workspace Labels` allows to show label on each workspace thumbnail. Options: `Index`, `Index + Workspace Name`, `Index + App Name`
+- Option `Show Workspace Label on Hover` hides the labels until mouse hovers over a thumbnail.
+- Option to hide Workspace Thumbnails on primary and secondary monitors individually in their position option list.
+- Independent position adjustment for secondary monitors workspace thumbnails.
+- Vertical workspace switcher popup.
+- Settings page `Content` has been removed and `Disable` options were added to the position option list of the `Dash` and `Workspace Thumbnails`.
+
+### v8 22-07-27
+**Added:**
+- **Vertical Dash** which can be placed at the left and right side of the screen, in addition to top and bottom positions.
+- `Fine Tune Position` sliders for Dash and window switcher.
+- `Dash Height Max Scale` option has been replaced by `Dash Max Icon Size` option which allows more precise setting.
+
+### v7 22-07-23
+**Fixed:**
+- Fix of `Fix for Dash to Dock`
+
+### v6 22-07-23
+**Added:**
+- Option `Auto` to App Grid Animation menu, changes animation direction according to workspace switcher position and visibility.
+- Option `Fix for Dash to Dock` helps to keep VW consistent when DtD updates its position and while updating monitors configuration.
+
+**Fixed:**
+- Dash position can be off a little bit with `Center Dash to WS` option.
+- Secondary monitor overview transitions
+
+### v5 2022-07-20
+**Added:**
+- `Content` page in Preferences window with options to hide Dash, workspace switcher and wallpaper in workspace thumbnails.
+- New transition animations between Window Picker, App Grid and Desktop views.
+- Workspace and App Grid animation options.
+- Option to automatically switch `(Shift +) Super + Page Up/Down` keyboard shortcuts for the current workspace orientation.
+- Option to expand workspace thumbnails to entire height of the work area at the expense of Dash width.
+
diff --git a/extensions/47/vertical-workspaces/LICENSE b/extensions/47/vertical-workspaces/LICENSE
new file mode 100644
index 0000000..f288702
--- /dev/null
+++ b/extensions/47/vertical-workspaces/LICENSE
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ <program> Copyright (C) <year> <name of author>
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<https://www.gnu.org/licenses/>.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+<https://www.gnu.org/licenses/why-not-lgpl.html>.
diff --git a/extensions/47/vertical-workspaces/Makefile b/extensions/47/vertical-workspaces/Makefile
new file mode 100644
index 0000000..b0afba4
--- /dev/null
+++ b/extensions/47/vertical-workspaces/Makefile
@@ -0,0 +1,90 @@
+SHELL := /bin/bash
+
+# Replace these with the name and domain of your extension!
+NAME := vertical-workspaces
+DOMAIN := G-dH.github.com
+ZIP_NAME := $(NAME)@$(DOMAIN).zip
+
+# Some of the recipes below depend on some of these files.
+JS_FILES = $(shell find -type f -and \( -name "*.js" \))
+UI_FILES = $(shell find -type f -and \( -name "*.ui" \))
+#RESOURCE_FILES = $(shell find resources -mindepth 2 -type f)
+LOCALES_PO = $(wildcard po/*.po)
+LOCALES_MO = $(patsubst po/%.po,locale/%/LC_MESSAGES/$(NAME).mo,$(LOCALES_PO))
+
+# These files will be included in the extension zip file.
+ZIP_CONTENT = $(JS_FILES) $(LOCALES_MO) \
+ schemas/* schemas/gschemas.compiled metadata.json LICENSE stylesheet.css
+
+# These six recipes can be invoked by the user.
+.PHONY: all zip install uninstall pot clean
+
+all: $(ZIP_CONTENT)
+
+# The zip recipes only bundles the extension without installing it.
+zip: $(ZIP_NAME)
+
+# The install recipes creates the extension zip and installs it.
+install: $(ZIP_NAME)
+ gnome-extensions install "$(ZIP_NAME)" --force
+ @echo "Extension installed successfully! Now restart the Shell ('Alt'+'F2', then 'r' or log out/log in on Wayland)."
+
+# This uninstalls the previously installed extension.
+uninstall:
+ gnome-extensions uninstall "$(NAME)@$(DOMAIN)"
+
+# Use gettext to generate a translation template file.
+pot: $(JS_FILES) $(UI_FILES)
+ @echo "Generating '$(NAME).pot'..."
+ @xgettext --from-code=UTF-8 \
+ --add-comments=Translators \
+ --copyright-holder="GdH" \
+ --package-name="$(NAME)" \
+ --output=po/$(NAME).pot \
+ $(JS_FILES) $(UI_FILES)
+
+# This removes all temporary files created with the other recipes.
+clean:
+ rm -rf $(ZIP_NAME) \
+ schemas/gschemas.compiled \
+ locale
+
+# This bundles the extension and checks whether it is small enough to be uploaded to
+# extensions.gnome.org. We do not use "gnome-extensions pack" for this, as this is not
+# readily available on the GitHub runners.
+$(ZIP_NAME): $(ZIP_CONTENT)
+ @echo "Packing zip file..."
+ @rm --force $(ZIP_NAME)
+ @zip $(ZIP_NAME) -- $(ZIP_CONTENT)
+
+ @#Check if the zip size is too big to be uploaded
+ @SIZE=$$(unzip -Zt $(ZIP_NAME) | awk '{print $$3}') ; \
+ if [[ $$SIZE -gt 5242880 ]]; then \
+ echo "ERROR! The extension is too big to be uploaded to" \
+ "the extensions website, keep it smaller than 5 MB!"; \
+ exit 1; \
+ fi
+
+# Compiles the gschemas.compiled file from the gschema.xml file.
+schemas/gschemas.compiled: schemas/org.gnome.shell.extensions.$(NAME).gschema.xml
+ @echo "Compiling schemas..."
+ @glib-compile-schemas schemas
+
+# Compiles the gresource file from the gresources.xml.
+#resources/$(NAME).gresource: resources/$(NAME).gresource.xml
+# @echo "Compiling resources..."
+# @glib-compile-resources --sourcedir="resources" --generate resources/$(NAME).gresource.xml
+
+# Generates the gresources.xml based on all files in the resources subdirectory.
+#resources/$(NAME).gresource.xml: $(RESOURCE_FILES)
+# @echo "Creating resources xml..."
+# @FILES=$$(find "resources" -mindepth 2 -type f -printf "%P\n" | xargs -i echo "<file>{}</file>") ; \
+ echo "<?xml version='1.0' encoding='UTF-8'?><gresources><gresource> $$FILES </gresource></gresources>" \
+ > resources/$(NAME).gresource.xml
+
+# Compiles all *.po files to *.mo files.
+locale/%/LC_MESSAGES/$(NAME).mo: po/%.po
+ @echo "Compiling $@"
+ @mkdir -p locale/$*/LC_MESSAGES
+ @msgfmt -c -o $@ $<
+
diff --git a/extensions/47/vertical-workspaces/README.md b/extensions/47/vertical-workspaces/README.md
new file mode 100644
index 0000000..f094027
--- /dev/null
+++ b/extensions/47/vertical-workspaces/README.md
@@ -0,0 +1,190 @@
+# V-Shell (Vertical Workspaces)
+
+A GNOME Shell extension that lets you customize your GNOME Shell UX to suit your workflow, whether you like horizontally or vertically stacked workspaces.
+
+Currently supported GNOME versions: 42 - 46
+
+[<img alt="" height="100" src="https://raw.githubusercontent.com/andyholmes/gnome-shell-extensions-badge/master/get-it-on-ego.svg?sanitize=true">](https://extensions.gnome.org/extension/5177/vertical-workspaces/)
+
+![Custom Overview Layout](screenshots/screenshot.jpg)
+
+## Features
+- Supports both vertically and horizontally stacked workspaces
+- Customizable overview layout, appearance, behavior, shortcuts
+- Customizable secondary monitor overview
+- Static overview modes minimize screen content movement
+- Customizable app grid and app folders - icon size, dimensions, sorting, active folder previews
+- Customizable dash - icon size, appearance and behavior, workspace isolation, click and scroll actions
+- Customizable search - results width, number of results, improved searching
+- Customizable workspace switcher - static background
+- Notification and OSD positions and behavior
+- Window attention handler behavior
+- Hot corner/edge position
+- Customizable Super key behavior
+- Keyboard and mouse shortcuts allow advanced workspace and window control
+- 4 predefined and fully customizable profiles
+- Supports Dash to Dock / Ubuntu Dock / Dash to Panel
+
+
+## Added functionality
+This section explains some of the less obvious or less visible additions to the Shell's behavior.
+
+### Overview - keyboard and mouse shortcuts
+|Shortcut| Description|
+|--------|------------|
+|`Shift + click on app icon in dash` | Move all windows of the application to the current workspace|
+|`Secondary mouse click on the activities indicator` | Open app grid|
+|`Shift + Scroll`, `Shift + Page Up/Down` | Reorder current workspace|
+|`Shift + Ctrl + Space` | Open V-Shell *Settings* window|
+|`Space` | Activate window search with all open windows if *WSP (Window Search Provider)* is installed and enabled|
+|`Ctrl + Space` | Activate extensions search with all installed extensions if *ESP (Extensions Search Provider)* is installed and enabled|
+|`Alt + Space` | Focus dash so you can use arrow keys to select app icon and `Space`/`Enter` to activate it
+
+
+ ### New buttons
+|Button| Description|
+|------|------------|
+| *Close button in workspace thumbnail* | Close all windows on the workspace. Default setting requires double-click |
+| *Trash button in app folder* | Remove folder - move all icons to the main grid. Requires double-click |
+
+### Active icons in app folder previews
+To enhance the efficiency of the application menu, V-Shell offers the 'Active Icons in Folder Preview' option. When enabled, icons in the folder preview (folder icon) behave like regular app icons, allowing users to interact with them without opening the folder. V-Shell allows you to increase the number of icons in the preview from 4 to 9, as well as adjust the size of the app grid icons. This feature enables the folder icons to divide the main app grid into sections, with the most frequently used apps readily accessible while others remain hidden deeper within folders.
+
+![Custom Overview Layout](screenshots/screenshot0.jpg)
+
+### Open all apps in the folder at once
+Simply drag-and-drop folder onto a workspace thumbnail to open all containing applications.
+
+## Known issues
+### Workspace navigation shortcuts
+The default GNOME Shell configuration includes predefined shortcuts for workspaces oriented in both axis:
+`(Shift)+Ctrl+Alt+ Arrow Keys`
+and for horizontal only:
+`(Shift)+Super+PageUp/Down`
+
+The default GNOME *Settings* application only offers options to configure keyboard shortcuts for horizontally oriented workspaces. However, the `gSettings` configuration scheme provides keys for shortcuts for vertically oriented workspaces as well. You can access and configure these shortcuts using the **dconf Editor**.
+
+When V-Shell is configured to use vertically stacked workspaces, the `(Shift)+Super+PageUp/Down` shortcuts for switching workspaces stop working.
+V-Shell provides the option `Override Page Up/Down Shortcuts` to automatically switch the default `Super+PageUp/Down` and `Shift+Super+PageUp/Down` shortcuts for the current workspace orientation. If enabled, this option will move the shortcuts between following gSettings keys:
+| Horizontal orientation | Vertical orientation |
+|------------------------|----------------------|
+| `switch-to-workspace-left` | `switch-to-workspace-up`|
+| `switch-to-workspace-right` | `switch-to-workspace-down`|
+| `move-to-workspace-left` | `move-to-workspace-up`|
+| `move-to-workspace-right` | `move-to-workspace-down`|
+
+Note that unlike the GNOME *Settings* application, *dconf Editor* allows you to add more than one keyboard shortcut to each action. V-Shell preserves all other shortcuts, only moves following strings between related gSetting keys:
+- `<Super>Page_Up`
+- `<Super>Page_Down`
+- `<Super><Shift>Page_Up`
+- `<Super><Shift>Page_Down`
+
+The key order follows the order in which GNOME Settings stores the shortcuts. If you add the same shortcut but with a different key order, V-Shell will not recognize it, and you might end up with the same shortcut assigned to two actions.
+
+
+### Stuttering overview animations
+On weaker hardware, you may experience stuttering in overview animations. This usually occurs due to blur effect transitions. In this scenario, you should avoid configurations where blur transitions are needed. Here are some tips on how to use the blur effect without affecting overview animations:
+- Enable `Show Workspace Preview Background`, which removes the need for blur transitions between desktop view and overview.
+- Set the same amount of blur for *Window Picker View* and *App Grid*
+- If your configuration requires blur transitions, keep the `Smooth Blur Transitions` option disabled
+
+
+### Compatibility with other extensions
+V-Shell overrides parts of the GNOME Shell's UI code, and many extensions do the same, so conflicts are inevitable. V-Shell tries to mitigate the consequences of conflicts with the most popular extensions, which includes disabling its own modules. This means that some of V-Shell's settings may not function when conflicting extensions are enabled. V-Shell also provides manual control over its modules so the user can disable problematic ones if needed.
+
+Please, report any incompatibility, you encounter while using V-Shell.
+
+#### Incompatible extensions
+- *Search Light* - You can achieve similar behavior by switching V-Shell to the `Static Workspace` `Overview mode`
+
+#### V-Shell modules automatically disabled when conflicting extensions are detected
+| Module | Extensions causing module to disable |
+|-----------------------|--------------------------------------|
+| Dash | *Dash to Dock*, *Ubuntu Dock*, *Dash to Panel*, *Dash2Dock Animated* |
+| Panel | *Dash to Panel*, *Hide Top Bar* |
+| Layout | *Dash to Panel*, *CHC-E*, |
+| WorkspaceSwitcherPopup| *WSM (Workspace Switcher Manager)* |
+
+#### Extensions causing V-Shell to automatically delay its activation
+to prevent crashes upon GNOME Shell starting up:
+- *Dash to Dock*
+- *Ubuntu Dock*
+- *Dash to Panel*
+- *Dash2Dock Animated*
+
+You can enable this option manually if needed, using the `Delay at Startup` option on the *Misc* tab of the *Settings* window.
+
+#### Extensions whose functionality is included in V-Shell
+and should be disabled or restricted by the user:
+- Partially *Blur My Shell* - V-Shell provides a basic settings for the overview background, including brightness and blur effects. If you want to use *Blur My Shell*, consider disabling its options for the overview, including app folders, to prevent visual glitches and inconsistency during transitions between overview states.
+- *Alphabetical App Grid* - V-Shell provides much more options than alphabetical sorting
+- *Grand Theft Focus* and other extensions preventing showing notification instead of immediately focusing the window that demands attention
+- *Hot Edge* - V-Shell provides this functionality as an option of the `Hot Corner Position` setting
+- Some of the *Just Perfection* options including notifications/OSD positions, hiding main panel, animation speed, dash icon size and more
+- *Impatience* and extensions adjusting animation speed
+- *Click to close overview* - V-Shell provides the `Click Empty Space To Close` option
+
+
+## Changelog
+See what's changed in recent versions
+[CHANGELOG.md](CHANGELOG.md)
+
+
+## Installation
+
+### Installation from extensions.gnome.org
+The easiest way to install the latest stable release of V-Shell: go to [extensions.gnome.org](https://extensions.gnome.org/extension/5177/vertical-workspaces/) and toggle the switch.
+
+### Installation from the latest Github release
+Download the latest release archive using following command:
+
+ wget https://github.com/G-dH/vertical-workspaces/releases/latest/download/vertical-workspaces@G-dH.github.com.zip
+
+Install the extension (`--force` switch needs to be used only if some version of the extension is already installed):
+
+ gnome-extensions install --force vertical-workspaces@G-dH.github.com.zip
+
+### Installation from GitHub repository
+The most recent version in the repository is the one I'm currently using and developing on my own systems, problems may occur, but usually nothing serious. The repository version may change often and doesn't updates automatically on your system. If you want to help me, use this latest version and report bugs.
+You may need to install `git`, `make`, `gettext` and `glib2.0` for successful installation.
+Navigate to the directory you want to download the source code and execute following commands in the terminal:
+
+**GNOME 45+:**
+
+ git clone https://github.com/G-dH/vertical-workspaces.git
+ cd vertical-workspaces
+ make install
+
+**GNOME 42 - 44:**
+
+ git clone https://github.com/G-dH/vertical-workspaces.git
+ cd vertical-workspaces
+ git checkout gnome-42-44
+ make install
+
+If you get `Can't recursively copy directory` error, take a look at issue [#51](https://github.com/G-dH/vertical-workspaces/issues/51).
+
+### Enabling the extension
+After installation you need to enable the extension and access its settings.
+
+- First restart GNOME Shell (`ALt` + `F2`, `r`, `Enter`, or Log Out/Log In if you use Wayland)
+- Now you should see *Vertical Workspaces* extension in *Extensions* application (re-open the app if needed to load new data), where you can enable it and access its Preferences window by pressing `Settings` button.
+
+## Credits
+V-Shell contains modified GNOME Shell source code and was originally based on parts of [Vertical Overview extension](https://github.com/RensAlthuis/vertical-overview).
+
+
+## Contribution
+If you want to help with V-Shell development, please provide feedback, whether it's positive, negative, a bug report, or a feature request. Even if I don't agree with you, it can help improve V-Shell.
+
+
+## Donations
+If you enjoy using my extensions, you can help me with my coffee expenses:
+
+[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png)](https://www.buymeacoffee.com/georgdh)
+
+Any support is greatly appreciated!
+
+
+## License
+This program is distributed under the terms of the GNU General Public License, version 3 or later. See [LICENSE](./LICENSE) file for details.
diff --git a/extensions/47/vertical-workspaces/extension.js b/extensions/47/vertical-workspaces/extension.js
new file mode 100644
index 0000000..64336f0
--- /dev/null
+++ b/extensions/47/vertical-workspaces/extension.js
@@ -0,0 +1,812 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * extension.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ *
+ */
+
+'use strict';
+
+import GLib from 'gi://GLib';
+import Meta from 'gi://Meta';
+import St from 'gi://St';
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+
+import * as Config from 'resource:///org/gnome/shell/misc/config.js';
+
+import * as Extension from 'resource:///org/gnome/shell/extensions/extension.js';
+
+// Me imports
+import * as Settings from './lib/settings.js';
+import * as _Util from './lib/util.js';
+
+// Me Modules import
+import { LayoutModule } from './lib/layout.js';
+import { WorkspacesViewModule } from './lib/workspacesView.js';
+import { WorkspaceThumbnailModule } from './lib/workspaceThumbnail.js';
+import { AppDisplayModule } from './lib/appDisplay.js';
+import { AppFavoritesModule } from './lib/appFavorites.js';
+import { DashModule } from './lib/dash.js';
+import { IconGridModule } from './lib/iconGrid.js';
+import { MessageTrayModule } from './lib/messageTray.js';
+import { OsdWindowModule } from './lib/osdWindow.js';
+import { OverlayKeyModule } from './lib/overlayKey.js';
+import { OverviewModule } from './lib/overview.js';
+import { OverviewControlsModule } from './lib/overviewControls.js';
+import { PanelModule } from './lib/panel.js';
+import { SearchControllerModule } from './lib/searchController.js';
+import { SearchModule } from './lib/search.js';
+import { SwipeTrackerModule } from './lib/swipeTracker.js';
+import { WindowAttentionHandlerModule } from './lib/windowAttentionHandler.js';
+import { WindowManagerModule } from './lib/windowManager.js';
+import { WindowPreviewModule } from './lib/windowPreview.js';
+import { WorkspaceAnimationModule } from './lib/workspaceAnimation.js';
+import { WorkspaceModule } from './lib/workspace.js';
+import { WorkspaceSwitcherPopupModule } from './lib/workspaceSwitcherPopup.js';
+
+let Me;
+// gettext
+let _;
+let opt;
+
+export default class VShell extends Extension.Extension {
+ _init() {
+ Me = {};
+
+ Me.getSettings = this.getSettings.bind(this);
+ Me.shellVersion = parseFloat(Config.PACKAGE_VERSION);
+ Me.metadata = this.metadata;
+ Me.gSettings = this.getSettings();
+ Me.Settings = Settings;
+ Me.Util = _Util;
+ Me.gettext = this.gettext.bind(this);
+ _ = Me.gettext;
+
+ // search prefixes for supported search providers
+ Me.WSP_PREFIX = 'wq//';
+ Me.RFSP_PREFIX = 'fq//';
+ Me.ESP_PREFIX = 'eq//';
+
+ Me.opt = new Me.Settings.Options(Me);
+ opt = Me.opt;
+
+ Me.Util.init(Me);
+
+ Me.updateMessageDialog = new Me.Util.RestartMessage();
+ }
+
+ _cleanGlobals() {
+ Me = null;
+ opt = null;
+ _ = null;
+ }
+
+ enable() {
+ this._init();
+ this._initModules();
+
+ // prevent conflicts during startup
+ let skipStartup = Me.gSettings.get_boolean('delay-startup') ||
+ Me.Util.getEnabledExtensions('ubuntu-dock').length ||
+ Me.Util.getEnabledExtensions('dash-to-dock').length ||
+ Me.Util.getEnabledExtensions('dash2dock').length ||
+ Me.Util.getEnabledExtensions('dash-to-panel').length;
+ if (skipStartup && Main.layoutManager._startingUp) {
+ this._startupConId = Main.layoutManager.connect('startup-complete', () => {
+ this._delayedStartup = true;
+ this._activateVShell();
+ // Since VShell has been activated with a delay, move it in extensionOrder
+ let extensionOrder = Main.extensionManager._extensionOrder;
+ const idx = extensionOrder.indexOf(this.metadata.uuid);
+ extensionOrder.push(extensionOrder.splice(idx, 1)[0]);
+ Main.layoutManager.disconnect(this._startupConId);
+ this._startupConId = 0;
+ });
+ } else {
+ this._activateVShell();
+ }
+
+ console.debug(`${Me.metadata.name}: enabled`);
+ }
+
+ // Reason for using "unlock-dialog" session mode:
+ // Updating the "appDisplay" content every time the screen is locked/unlocked takes quite a lot of time and affects the user experience.
+ disable() {
+ if (this._startupConId)
+ Main.layoutManager.disconnect(this._startupConId);
+ this.removeVShell();
+ this._disposeModules();
+
+ console.debug(`${Me.metadata.name}: disabled`);
+ Me.updateMessageDialog.destroy();
+ Me.updateMessageDialog = null;
+ this._cleanGlobals();
+ }
+
+ _getModuleList() {
+ return Object.keys(Me.Modules);
+ }
+
+ _initModules() {
+ Me.Modules = {};
+ Me.Modules.appDisplayModule = new AppDisplayModule(Me);
+ Me.Modules.appFavoritesModule = new AppFavoritesModule(Me);
+ Me.Modules.dashModule = new DashModule(Me);
+ Me.Modules.iconGridModule = new IconGridModule(Me);
+ Me.Modules.layoutModule = new LayoutModule(Me);
+ Me.Modules.messageTrayModule = new MessageTrayModule(Me);
+ Me.Modules.overviewModule = new OverviewModule(Me);
+ Me.Modules.overviewControlsModule = new OverviewControlsModule(Me);
+ Me.Modules.osdWindowModule = new OsdWindowModule(Me);
+ Me.Modules.overlayKeyModule = new OverlayKeyModule(Me);
+ Me.Modules.panelModule = new PanelModule(Me);
+ Me.Modules.searchModule = new SearchModule(Me);
+ Me.Modules.searchControllerModule = new SearchControllerModule(Me);
+ Me.Modules.swipeTrackerModule = new SwipeTrackerModule(Me);
+ Me.Modules.windowAttentionHandlerModule = new WindowAttentionHandlerModule(Me);
+ Me.Modules.windowPreviewModule = new WindowPreviewModule(Me);
+ Me.Modules.windowManagerModule = new WindowManagerModule(Me);
+ Me.Modules.workspaceModule = new WorkspaceModule(Me);
+ Me.Modules.workspaceAnimationModule = new WorkspaceAnimationModule(Me);
+ Me.Modules.workspaceSwitcherPopupModule = new WorkspaceSwitcherPopupModule(Me);
+ Me.Modules.workspaceThumbnailModule = new WorkspaceThumbnailModule(Me);
+ Me.Modules.workspacesViewModule = new WorkspacesViewModule(Me);
+ }
+
+ _disposeModules() {
+ Me.opt.destroy();
+ Me.opt = null;
+
+ for (let module of this._getModuleList()) {
+ if (!Me.Modules[module].moduleEnabled)
+ Me.Modules[module].cleanGlobals();
+ }
+
+ Me.Util.cleanGlobals();
+ Me.Modules = null;
+ }
+
+ _activateVShell() {
+ this._enabled = true;
+
+ if (!this._delayedStartup && !Main.sessionMode.isLocked) {
+ Me.updateMessageDialog.showMessage();
+ this._delayedStartup = false;
+ }
+
+ this._originalGetNeighbor = Meta.Workspace.prototype.get_neighbor;
+
+ this._removeTimeouts();
+ this._timeouts = {};
+
+ if (!Main.layoutManager._startingUp)
+ this._ensureOverviewIsHidden();
+
+ // store dash _workId so we will be able to detect replacement when entering overview
+ this._storeDashId();
+
+ // load VShell configuration
+ this._updateSettings();
+
+ // activate all enabled VShell modules
+ this._updateOverrides();
+
+ // connect signals to help VShell adapt to changes in DE configuration
+ this._updateConnections();
+
+ // switch PageUp/PageDown workspace switcher shortcuts
+ this._switchPageShortcuts();
+
+ // if Dash to Dock detected force enable "Fix for DtD" option
+ this._updateFixDashToDockOption();
+
+ // update overview background wallpaper if enabled, but don't set it too early on session startup
+ // because it crashes wayland
+ if (!Main.layoutManager._startingUp || Meta.is_restart())
+ Main.overview._overview.controls._setBackground();
+
+ this._updateSettingsConnection();
+
+ // workaround for upstream bug - overview always shows workspace 1 instead of the active one after restart
+ this._setInitialWsIndex();
+
+ this._resetShellProperties();
+ }
+
+ removeVShell() {
+ // Rebasing V-Shell when overview is open causes problems
+ // also if Dash to Dock is enabled, disabling V-Shell can result in a broken overview
+ this._ensureOverviewIsHidden();
+ this._resetShellProperties();
+
+ this._enabled = false;
+
+ const reset = true;
+ this._removeTimeouts();
+
+ this._removeConnections();
+ Main.overview._overview.controls._setBackground(reset);
+
+ // remove changes mede by VShell modules
+ this._updateOverrides(reset);
+
+ // switch PageUp/PageDown workspace switcher shortcuts
+ this._switchPageShortcuts();
+
+ this._prevDash = null;
+
+ // restore default animation speed
+ St.Settings.get().slow_down_factor = 1;
+
+ Meta.Workspace.prototype.get_neighbor = this._originalGetNeighbor;
+ }
+
+ _ensureOverviewIsHidden() {
+ if (Main.overview._shown) {
+ Main.overview._shown = false;
+ Main.overview._visibleTarget = false;
+ Main.overview._overview.prepareToLeaveOverview();
+ Main.overview._changeShownState('HIDING');
+ Main.overview._hideDone();
+ Main.overview.dash.showAppsButton.checked = false;
+ }
+ }
+
+ _resetShellProperties() {
+ const controls = Main.overview._overview.controls;
+ // layoutManager._dash retains reference to the default dash even when DtD is enabled
+ const dash = controls.layoutManager._dash;
+ // Restore default dash background style
+ dash._background.set_style('');
+
+ dash.translation_x = 0;
+ dash.translation_y = 0;
+ controls._thumbnailsBox.translation_x = 0;
+ controls._thumbnailsBox.translation_y = 0;
+ controls._searchEntryBin.translation_y = 0;
+ controls._workspacesDisplay.scale_x = 1;
+ controls.set_child_above_sibling(controls._workspacesDisplay, null);
+
+ // following properties may be reduced if extensions are rebased while the overview is open
+ controls._thumbnailsBox.remove_all_transitions();
+ controls._thumbnailsBox.scale_x = 1;
+ controls._thumbnailsBox.scale_y = 1;
+ controls._thumbnailsBox.opacity = 255;
+
+ controls._searchController._searchResults.opacity = 255;
+ }
+
+ _removeTimeouts() {
+ if (this._timeouts) {
+ Object.values(this._timeouts).forEach(id => {
+ if (id)
+ GLib.source_remove(id);
+ });
+ }
+ this._timeouts = null;
+ }
+
+ _storeDashId() {
+ this._prevDash = Main.overview.dash._workId;
+ }
+
+ _setInitialWsIndex() {
+ if (Main.layoutManager._startingUp) {
+ GLib.idle_add(GLib.PRIORITY_LOW, () => {
+ Main.overview._overview.controls._workspaceAdjustment.set_value(global.workspace_manager.get_active_workspace_index());
+ });
+ }
+ }
+
+ _updateSettingsConnection() {
+ if (!opt._extensionUpdateId)
+ opt._extensionUpdateId = opt.connect('changed', this._updateSettings.bind(this));
+ }
+
+ _updateFixDashToDockOption() {
+ const dtdEnabled = !!(Me.Util.getEnabledExtensions('dash-to-dock').length ||
+ Me.Util.getEnabledExtensions('ubuntu-dock').length);
+
+ // force enable Fix Dash to Dock option if DtD detected
+ this._watchDashToDock = dtdEnabled;
+ }
+
+ _updateConnections() {
+ if (!this._monitorsChangedConId)
+ this._monitorsChangedConId = Main.layoutManager.connect('monitors-changed', () => this._adaptToSystemChange());
+
+ if (!this._showingOverviewConId)
+ this._showingOverviewConId = Main.overview.connect('showing', this._onShowingOverview.bind(this));
+
+ if (!this._sessionModeConId) {
+ // the panel must be visible when screen is locked
+ this._sessionModeConId = Main.sessionMode.connect('updated', session => {
+ if (session.currentMode === 'user' || session.parentMode === 'user') {
+ this._timeouts.unlock = GLib.idle_add(GLib.PRIORITY_LOW,
+ () => {
+ Me.Modules.panelModule.update();
+ Me.Modules.overviewControlsModule.update();
+
+ this._timeouts.unlock = 0;
+ return GLib.SOURCE_REMOVE;
+ }
+ );
+ } else if (session.currentMode === 'unlock-dialog') {
+ Me.Modules.panelModule.update();
+ Main.layoutManager.panelBox.translation_y = 0;
+ Main.panel.opacity = 255;
+ }
+ });
+ }
+
+ if (!this._watchDockSigId) {
+ this._watchDockSigId = Main.extensionManager.connect('extension-state-changed',
+ (source, extension) => {
+ const uuid = extension.uuid;
+ // ExtensionState = {
+ // ENABLED: 1,
+ // DISABLED: 2,
+ // ERROR: 3,
+ // OUT_OF_DATE: 4,
+ // DOWNLOADING: 5,
+ // INITIALIZED: 6,
+ // DISABLING: 7,
+ // ENABLING: 8,
+ //
+ // // Used as an error state for operations on unknown extensions,
+ // // should never be in a real extensionMeta object.
+ // UNINSTALLED: 99,
+ // };
+ // no need to restart on disable/remove
+ // - if DtD was enabled before VShell, VShell will be rebased by the extensionSystem
+ // - If DtD was enabled after VShell, the first _showingOverview detects the replacement of the dash and repairs VShell
+ const reset = [1, 2].includes(extension.state);
+ const dashReplacement = uuid.includes('dash-to-dock') || uuid.includes('ubuntu-dock') || uuid.includes('dash-to-panel');
+ if (dashReplacement && reset)
+ this._watchDashToDock = true;
+ if (!Main.layoutManager._startingUp && reset && dashReplacement)
+ this._adaptToSystemChange(2000);
+ }
+ );
+ }
+
+ this._updateNewWindowConnection();
+ }
+
+ _updateNewWindowConnection() {
+ const nMonitors = global.display.get_n_monitors();
+ if (nMonitors > 1 && opt.FIX_NEW_WINDOW_MONITOR && !this._newWindowCreatedConId) {
+ this._newWindowCreatedConId = global.display.connect_after('window-created', (w, win) => {
+ if (Main.layoutManager._startingUp || win.get_window_type() !== Meta.WindowType.NORMAL)
+ return;
+ const winActor = win.get_compositor_private();
+ const _moveWinToMonitor = () => {
+ const currentMonitor = global.display.get_current_monitor();
+ if (win.get_monitor() !== currentMonitor) {
+ // some windows ignore this action if executed immediately
+ GLib.idle_add(GLib.PRIORITY_LOW, () => {
+ win.move_to_monitor(currentMonitor);
+ return GLib.SOURCE_REMOVE;
+ });
+ }
+ };
+ if (!winActor.realized) {
+ const realizeId = winActor.connect('realize', () => {
+ winActor.disconnect(realizeId);
+ _moveWinToMonitor();
+ });
+ } else {
+ _moveWinToMonitor();
+ }
+ });
+ } else if ((nMonitors.length === 1 || !opt.FIX_NEW_WINDOW_MONITOR) && this._newWindowCreatedConId) {
+ global.display.disconnect(this._newWindowCreatedConId);
+ this._newWindowCreatedConId = 0;
+ }
+ }
+
+ _removeConnections() {
+ if (this._monitorsChangedConId) {
+ Main.layoutManager.disconnect(this._monitorsChangedConId);
+ this._monitorsChangedConId = 0;
+ }
+
+ if (this._showingOverviewConId) {
+ Main.overview.disconnect(this._showingOverviewConId);
+ this._showingOverviewConId = 0;
+ }
+
+ if (this._sessionModeConId) {
+ Main.sessionMode.disconnect(this._sessionModeConId);
+ this._sessionModeConId = 0;
+ }
+
+ if (this._watchDockSigId) {
+ Main.extensionManager.disconnect(this._watchDockSigId);
+ this._watchDockSigId = 0;
+ }
+
+ if (this._newWindowCreatedConId) {
+ global.display.disconnect(this._newWindowCreatedConId);
+ this._newWindowCreatedConId = 0;
+ }
+ }
+
+ _updateOverrides(reset = false) {
+ Me.Modules.workspacesViewModule.update(reset);
+ Me.Modules.workspaceThumbnailModule.update(reset);
+ Me.Modules.overviewModule.update(reset);
+ Me.Modules.overviewControlsModule.update(reset);
+
+ Me.Modules.workspaceModule.update(reset);
+ Me.Modules.windowPreviewModule.update(reset);
+ Me.Modules.windowManagerModule.update(reset);
+
+ Me.Modules.layoutModule.update(reset);
+ Me.Modules.dashModule.update(reset);
+ Me.Modules.panelModule.update(reset);
+
+ Me.Modules.workspaceAnimationModule.update(reset);
+ Me.Modules.workspaceSwitcherPopupModule.update(reset);
+ Me.Modules.swipeTrackerModule.update(reset);
+ Me.Modules.searchModule.update(reset);
+
+ Me.Modules.appDisplayModule.update(reset);
+
+ Me.Modules.windowAttentionHandlerModule.update(reset);
+ Me.Modules.appFavoritesModule.update(reset);
+ Me.Modules.messageTrayModule.update(reset);
+ Me.Modules.osdWindowModule.update(reset);
+ Me.Modules.overlayKeyModule.update(reset);
+ Me.Modules.searchControllerModule.update(reset);
+
+ if (Main.sessionMode.isLocked)
+ this._sessionLockActive = true;
+
+ if (!Main.sessionMode.isLocked)
+ this._sessionLockActive = false;
+
+ if (!reset && !Main.layoutManager._startingUp)
+ Main.overview._overview.controls.setInitialTranslations();
+ if (this._sessionLockActive) {
+ Main.layoutManager.panelBox.translation_y = 0;
+ Main.panel.opacity = 255;
+ }
+ }
+
+ _onShowingOverview() {
+ if (Main.layoutManager._startingUp)
+ return;
+
+ if (this._watchDashToDock) {
+ // Workaround for Dash to Dock (Ubuntu Dock) breaking overview allocations after enabling and changing its position
+ // DtD replaces its _workId on every position change
+ const dash = Main.overview.dash;
+ if (this._prevDash !== dash._workId)
+ this._adaptToSystemChange(0);
+ }
+ }
+
+ _adaptToSystemChange(timeout = 200, full = false) {
+ if (!this._enabled || Main.layoutManager._startingUp)
+ return;
+
+ if (this._timeouts.reset)
+ GLib.source_remove(this._timeouts.reset);
+ this._timeouts.reset = GLib.timeout_add(
+ GLib.PRIORITY_DEFAULT,
+ timeout,
+ () => {
+ if (!this._enabled)
+ return GLib.SOURCE_REMOVE;
+
+ const dash = Main.overview.dash;
+ if (!full) {
+ console.warn(`[${Me.metadata.name}] Warning: Updating overrides ...`);
+ this._prevDash = dash._workId;
+ Me._resetInProgress = true;
+ // Only update modules that might be affected by the dock extension
+ this._repairOverrides();
+ Me._resetInProgress = false;
+ } else {
+ console.warn(`[${Me.metadata.name}] Warning: Rebuilding V-Shell ...`);
+ Me._resetInProgress = true;
+ this._activateVShell();
+ Me._resetInProgress = false;
+ }
+ this._timeouts.reset = 0;
+ return GLib.SOURCE_REMOVE;
+ }
+ );
+ }
+
+ // Modules possibly affected by supported but incompatible extensions
+ _repairOverrides() {
+ Me.Modules.overviewModule.update();
+ Me.Modules.overviewControlsModule.update();
+ Me.Modules.layoutModule.update();
+ Me.Modules.workspacesViewModule.update();
+ Me.Modules.windowPreviewModule.update();
+ Me.Modules.panelModule.update();
+ Me.Modules.dashModule.update();
+ this._updateSettings();
+ Main.overview._overview.controls._setBackground();
+ }
+
+ _updateSettings(settings, key) {
+ // update settings cache and option variables
+ opt._updateSettings();
+
+ // avoid overload while loading profile - update only once
+ // delayed gsettings writes are processed alphabetically
+ if (key === 'aaa-loading-profile') {
+ if (this._timeouts.loadingProfile)
+ GLib.source_remove(this._timeouts.loadingProfile);
+ this._timeouts.loadingProfile = GLib.timeout_add(
+ GLib.PRIORITY_DEFAULT,
+ 100, () => {
+ this._activateVShell();
+ this._timeouts.loadingProfile = 0;
+ return GLib.SOURCE_REMOVE;
+ }
+ );
+ Me.updateMessageDialog.showMessage();
+ }
+ if (this._timeouts.loadingProfile)
+ return;
+
+ if (key?.includes('profile-data')) {
+ const index = key.replace('profile-data-', '');
+ Main.notify(`${Me.metadata.name}`, `Profile ${index} has been updated`);
+ }
+
+ opt.WORKSPACE_MIN_SPACING = Main.overview._overview._controls._thumbnailsBox.get_theme_node().get_length('spacing');
+ // update variables that cannot be processed within settings
+ const dash = Main.overview.dash;
+ if (Me.Util.dashIsDashToDock()) {
+ opt.DASH_POSITION = dash._position;
+ opt.DASH_TOP = opt.DASH_POSITION === 0;
+ opt.DASH_RIGHT = opt.DASH_POSITION === 1;
+ opt.DASH_BOTTOM = opt.DASH_POSITION === 2;
+ opt.DASH_LEFT = opt.DASH_POSITION === 3;
+ opt.DASH_VERTICAL = opt.DASH_LEFT || opt.DASH_RIGHT;
+ }
+
+ opt.DASH_VISIBLE = opt.DASH_VISIBLE && !Me.Util.getEnabledExtensions('dash-to-panel@jderose9.github.com').length;
+
+ // adjust search entry style for OM2
+ if (opt.OVERVIEW_MODE2)
+ Main.overview.searchEntry.add_style_class_name('search-entry-om2');
+ else
+ Main.overview.searchEntry.remove_style_class_name('search-entry-om2');
+
+ if (opt.OVERVIEW_MODE === 1)
+ Me.Modules.workspaceModule.setWindowPreviewMaxScale(0.1);
+ else
+ Me.Modules.workspaceModule.setWindowPreviewMaxScale(0.95);
+
+ Main.overview.searchEntry.visible = opt.SHOW_SEARCH_ENTRY;
+ Main.overview.searchEntry.opacity = 255;
+ St.Settings.get().slow_down_factor = opt.ANIMATION_TIME_FACTOR;
+
+ // Options for workspace switcher, apply custom function only if needed
+ if (opt.WS_WRAPAROUND || opt.WS_IGNORE_LAST)
+ Meta.Workspace.prototype.get_neighbor = this._getNeighbor;
+ else
+ Meta.Workspace.prototype.get_neighbor = this._originalGetNeighbor;
+
+ // delay search so it doesn't make the search view transition stuttering
+ // 150 is the default value in GNOME Shell, but the search feels laggy
+ // Of course there is some overload for fast keyboard typist
+ if (opt.SEARCH_VIEW_ANIMATION)
+ opt.SEARCH_DELAY = 150;
+
+ if (settings)
+ this._applySettings(key);
+ }
+
+ _applySettings(key) {
+ if (key?.endsWith('-module')) {
+ for (let module of this._getModuleList()) {
+ if (opt.options[module] && key === opt.options[module][1]) {
+ Me.Modules[module].update();
+ break;
+ }
+ }
+ }
+
+ this._switchPageShortcuts();
+
+ if (key?.includes('panel'))
+ Me.Modules.panelModule.update();
+
+ if (key?.includes('dash') || key?.includes('icon') || key?.includes('dot-style') || key?.includes('provider'))
+ Me.Modules.dashModule.update();
+
+ if (key?.includes('hot-corner') || key?.includes('dash'))
+ Me.Modules.layoutModule.update();
+
+ if (key?.includes('overlay-key'))
+ Me.Modules.overlayKeyModule.update();
+
+ switch (key) {
+ case 'ws-thumbnails-position':
+ this._updateOverrides();
+ break;
+ case 'workspace-switcher-animation':
+ Me.Modules.workspaceAnimationModule.update();
+ break;
+ case 'search-width-scale':
+ Me.Modules.searchModule.update();
+ break;
+ case 'favorites-notify':
+ Me.Modules.appFavoritesModule.update();
+ break;
+ case 'window-attention-mode':
+ Me.Modules.windowAttentionHandlerModule.update();
+ break;
+ case 'show-ws-preview-bg':
+ Me.Modules.panelModule.update();
+ break;
+ case 'notification-position':
+ Me.Modules.messageTrayModule.update();
+ break;
+ case 'osd-position':
+ Me.Modules.osdWindowModule.update();
+ break;
+ case 'always-activate-selected-window':
+ Me.Modules.windowPreviewModule.update();
+ break;
+ case 'ws-switcher-mode':
+ Me.Modules.windowManagerModule.update();
+ break;
+ case 'new-window-monitor-fix':
+ this._updateNewWindowConnection();
+ break;
+ case 'click-empty-close':
+ Me.Modules.overviewControlsModule.update();
+ }
+
+ if (key?.includes('app-grid') ||
+ key?.includes('app-folder') ||
+ key?.includes('dot-style') ||
+ key === 'show-search-entry' ||
+ key === 'ws-thumbnail-scale' ||
+ key === 'ws-thumbnail-scale-appgrid')
+ Me.Modules.appDisplayModule.update();
+ }
+
+ _switchPageShortcuts() {
+ // ignore screen lock
+ if (!opt.get('enablePageShortcuts') || this._sessionLockActive)
+ return;
+
+ const vertical = global.workspaceManager.layout_rows === -1;
+ const schema = 'org.gnome.desktop.wm.keybindings';
+ const settings = Me.getSettings(schema);
+
+ const keyLeft = 'switch-to-workspace-left';
+ const keyRight = 'switch-to-workspace-right';
+ const keyUp = 'switch-to-workspace-up';
+ const keyDown = 'switch-to-workspace-down';
+
+ const keyMoveLeft = 'move-to-workspace-left';
+ const keyMoveRight = 'move-to-workspace-right';
+ const keyMoveUp = 'move-to-workspace-up';
+ const keyMoveDown = 'move-to-workspace-down';
+
+ const switchPrevSc = '<Super>Page_Up';
+ const switchNextSc = '<Super>Page_Down';
+ const movePrevSc = '<Super><Shift>Page_Up';
+ const moveNextSc = '<Super><Shift>Page_Down';
+
+ let switchLeft = settings.get_strv(keyLeft);
+ let switchRight = settings.get_strv(keyRight);
+ let switchUp = settings.get_strv(keyUp);
+ let switchDown = settings.get_strv(keyDown);
+
+ let moveLeft = settings.get_strv(keyMoveLeft);
+ let moveRight = settings.get_strv(keyMoveRight);
+ let moveUp = settings.get_strv(keyMoveUp);
+ let moveDown = settings.get_strv(keyMoveDown);
+
+ if (vertical) {
+ if (switchLeft.includes(switchPrevSc))
+ switchLeft.splice(switchLeft.indexOf(switchPrevSc), 1);
+ if (switchRight.includes(switchNextSc))
+ switchRight.splice(switchRight.indexOf(switchNextSc), 1);
+ if (moveLeft.includes(movePrevSc))
+ moveLeft.splice(moveLeft.indexOf(movePrevSc), 1);
+ if (moveRight.includes(moveNextSc))
+ moveRight.splice(moveRight.indexOf(moveNextSc), 1);
+
+ if (!switchUp.includes(switchPrevSc))
+ switchUp.push(switchPrevSc);
+ if (!switchDown.includes(switchNextSc))
+ switchDown.push(switchNextSc);
+ if (!moveUp.includes(movePrevSc))
+ moveUp.push(movePrevSc);
+ if (!moveDown.includes(moveNextSc))
+ moveDown.push(moveNextSc);
+ } else {
+ if (!switchLeft.includes(switchPrevSc))
+ switchLeft.push(switchPrevSc);
+ if (!switchRight.includes(switchNextSc))
+ switchRight.push(switchNextSc);
+ if (!moveLeft.includes(movePrevSc))
+ moveLeft.push(movePrevSc);
+ if (!moveRight.includes(moveNextSc))
+ moveRight.push(moveNextSc);
+
+ if (switchUp.includes(switchPrevSc))
+ switchUp.splice(switchUp.indexOf(switchPrevSc), 1);
+ if (switchDown.includes(switchNextSc))
+ switchDown.splice(switchDown.indexOf(switchNextSc), 1);
+ if (moveUp.includes(movePrevSc))
+ moveUp.splice(moveUp.indexOf(movePrevSc), 1);
+ if (moveDown.includes(moveNextSc))
+ moveDown.splice(moveDown.indexOf(moveNextSc), 1);
+ }
+
+ settings.set_strv(keyLeft, switchLeft);
+ settings.set_strv(keyRight, switchRight);
+ settings.set_strv(keyUp, switchUp);
+ settings.set_strv(keyDown, switchDown);
+
+ settings.set_strv(keyMoveLeft, moveLeft);
+ settings.set_strv(keyMoveRight, moveRight);
+ settings.set_strv(keyMoveUp, moveUp);
+ settings.set_strv(keyMoveDown, moveDown);
+ }
+
+ _getNeighbor(direction) {
+ // workspace matrix is supported
+ const activeIndex = this.index();
+ const ignoreLast = opt.WS_IGNORE_LAST && Meta.prefs_get_dynamic_workspaces() && !Main.overview._shown ? 1 : 0;
+ const wraparound = opt.WS_WRAPAROUND;
+ const nWorkspaces = global.workspace_manager.n_workspaces;
+ const lastIndex = nWorkspaces - 1 - ignoreLast;
+ const rows = global.workspace_manager.layout_rows > -1 ? global.workspace_manager.layout_rows : nWorkspaces;
+ const columns = global.workspace_manager.layout_columns > -1 ? global.workspace_manager.layout_columns : nWorkspaces;
+
+ let index = activeIndex;
+ let neighborExists;
+
+ if (direction === Meta.MotionDirection.LEFT) {
+ index -= 1;
+ const currentRow = Math.floor(activeIndex / columns);
+ const indexRow = Math.floor(index / columns);
+ neighborExists = index > -1 && indexRow === currentRow;
+ if (wraparound && !neighborExists) {
+ index = currentRow * columns + columns - 1;
+ const maxIndexOnLastRow = lastIndex % columns;
+ index = index < (lastIndex - ignoreLast) ? index : currentRow * columns + maxIndexOnLastRow;
+ }
+ } else if (direction === Meta.MotionDirection.RIGHT) {
+ index += 1;
+ const currentRow = Math.floor(activeIndex / columns);
+ const indexRow = Math.floor(index / columns);
+ neighborExists = index <= lastIndex && indexRow === currentRow;
+ if (wraparound && !neighborExists)
+ index = currentRow * columns;
+ } else if (direction === Meta.MotionDirection.UP) {
+ index -= columns;
+ neighborExists = index > -1;
+ if (wraparound && !neighborExists) {
+ index = rows * columns + index;
+ index = index < nWorkspaces - ignoreLast ? index : index - columns;
+ }
+ } else if (direction === Meta.MotionDirection.DOWN) {
+ index += columns;
+ neighborExists = index <= lastIndex;
+ if (wraparound && !neighborExists)
+ index %= columns;
+ }
+
+ return global.workspace_manager.get_workspace_by_index(neighborExists || wraparound ? index : activeIndex);
+ }
+}
diff --git a/extensions/47/vertical-workspaces/lib/appDisplay.js b/extensions/47/vertical-workspaces/lib/appDisplay.js
new file mode 100644
index 0000000..d94f7df
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/appDisplay.js
@@ -0,0 +1,2014 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * appDisplay.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ *
+ */
+
+'use strict';
+
+import Clutter from 'gi://Clutter';
+import Gio from 'gi://Gio';
+import GLib from 'gi://GLib';
+import GObject from 'gi://GObject';
+import Graphene from 'gi://Graphene';
+import Meta from 'gi://Meta';
+import Pango from 'gi://Pango';
+import Shell from 'gi://Shell';
+import St from 'gi://St';
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+import * as AppDisplay from 'resource:///org/gnome/shell/ui/appDisplay.js';
+import * as DND from 'resource:///org/gnome/shell/ui/dnd.js';
+import * as PageIndicators from 'resource:///org/gnome/shell/ui/pageIndicators.js';
+
+import { IconSize } from './iconGrid.js';
+
+let Me;
+let opt;
+// gettext
+let _;
+
+let _appDisplay;
+let _timeouts;
+
+const APP_ICON_TITLE_EXPAND_TIME = 200;
+const APP_ICON_TITLE_COLLAPSE_TIME = 100;
+
+const shellVersion46 = !Clutter.Container; // Container has been removed in 46
+
+function _getCategories(info) {
+ let categoriesStr = info.get_categories();
+ if (!categoriesStr)
+ return [];
+ return categoriesStr.split(';');
+}
+
+function _listsIntersect(a, b) {
+ for (let itemA of a) {
+ if (b.includes(itemA))
+ return true;
+ }
+ return false;
+}
+
+export const AppDisplayModule = class {
+ constructor(me) {
+ Me = me;
+ opt = Me.opt;
+ _ = Me.gettext;
+
+ _appDisplay = Main.overview._overview.controls._appDisplay;
+
+ this._firstActivation = true;
+ this.moduleEnabled = false;
+ this._overrides = null;
+
+ this._appSystemStateConId = 0;
+ this._appGridLayoutConId = 0;
+ this._origAppViewItemAcceptDrop = null;
+ this._updateFolderIcons = 0;
+ }
+
+ cleanGlobals() {
+ Me = null;
+ opt = null;
+ _ = null;
+ _appDisplay = null;
+ }
+
+ update(reset) {
+ this._removeTimeouts();
+ this.moduleEnabled = opt.get('appDisplayModule');
+ const conflict = false;
+
+ reset = reset || !this.moduleEnabled || conflict;
+
+ // don't touch the original code if module disabled
+ if (reset && !this._firstActivation) {
+ this._disableModule();
+ this.moduleEnabled = false;
+ } else if (!reset) {
+ this._firstActivation = false;
+ this._activateModule();
+ }
+ if (reset && this._firstActivation) {
+ this.moduleEnabled = false;
+ console.debug(' AppDisplayModule - Keeping untouched');
+ }
+ }
+
+ _activateModule() {
+ Me.Modules.iconGridModule.update();
+
+ if (!this._overrides)
+ this._overrides = new Me.Util.Overrides();
+
+ _timeouts = {};
+
+ this._applyOverrides();
+ this._updateAppDisplay();
+ _appDisplay.add_style_class_name('app-display-46');
+
+ console.debug(' AppDisplayModule - Activated');
+ }
+
+ _disableModule() {
+ Me.Modules.iconGridModule.update(true);
+
+ if (this._overrides)
+ this._overrides.removeAll();
+ this._overrides = null;
+
+ const reset = true;
+ this._updateAppDisplay(reset);
+ this._restoreOverviewGroup();
+
+ _appDisplay.remove_style_class_name('app-display-46');
+
+ console.debug(' AppDisplayModule - Disabled');
+ }
+
+ _removeTimeouts() {
+ if (_timeouts) {
+ Object.values(_timeouts).forEach(t => {
+ if (t)
+ GLib.source_remove(t);
+ });
+ _timeouts = null;
+ }
+ }
+
+ _applyOverrides() {
+ // Common/appDisplay
+ // this._overrides.addOverride('BaseAppViewCommon', AppDisplay.BaseAppView.prototype, BaseAppViewCommon);
+ // instead of overriding inaccessible BaseAppView class, we override its subclasses - AppDisplay and FolderView
+ this._overrides.addOverride('BaseAppViewCommonApp', AppDisplay.AppDisplay.prototype, BaseAppViewCommon);
+ this._overrides.addOverride('AppDisplay', AppDisplay.AppDisplay.prototype, AppDisplayCommon);
+ this._overrides.addOverride('AppViewItem', AppDisplay.AppViewItem.prototype, AppViewItemCommon);
+ this._overrides.addOverride('AppGridCommon', AppDisplay.AppGrid.prototype, AppGridCommon);
+ this._overrides.addOverride('AppIcon', AppDisplay.AppIcon.prototype, AppIcon);
+ if (opt.ORIENTATION) {
+ this._overrides.removeOverride('AppGridLayoutHorizontal');
+ this._overrides.addOverride('AppGridLayoutVertical', _appDisplay._appGridLayout, BaseAppViewGridLayoutVertical);
+ } else {
+ this._overrides.removeOverride('AppGridLayoutVertical');
+ this._overrides.addOverride('AppGridLayoutHorizontal', _appDisplay._appGridLayout, BaseAppViewGridLayoutHorizontal);
+ }
+
+ // Custom folders
+ this._overrides.addOverride('BaseAppViewCommonFolder', AppDisplay.FolderView.prototype, BaseAppViewCommon);
+ this._overrides.addOverride('FolderView', AppDisplay.FolderView.prototype, FolderView);
+ this._overrides.addOverride('AppFolderDialog', AppDisplay.AppFolderDialog.prototype, AppFolderDialog);
+ this._overrides.addOverride('FolderIcon', AppDisplay.FolderIcon.prototype, FolderIcon);
+
+ // Prevent changing grid page size when showing/hiding _pageIndicators
+ this._overrides.addOverride('PageIndicators', PageIndicators.PageIndicators.prototype, PageIndicatorsCommon);
+ }
+
+ _updateAppDisplay(reset) {
+ const orientation = reset ? Clutter.Orientation.HORIZONTAL : opt.ORIENTATION;
+ BaseAppViewCommon._adaptForOrientation.bind(_appDisplay)(orientation);
+
+ this._updateFavoritesConnection(reset);
+
+ _appDisplay.visible = true;
+ if (reset) {
+ _appDisplay._grid.layoutManager.fixedIconSize = -1;
+ _appDisplay._grid.layoutManager.allow_incomplete_pages = true;
+ _appDisplay._grid._currentMode = -1;
+ _appDisplay._grid.setGridModes();
+ _appDisplay._grid.set_style('');
+ _appDisplay._prevPageArrow.set_scale(1, 1);
+ _appDisplay._nextPageArrow.set_scale(1, 1);
+ if (this._appGridLayoutConId) {
+ global.settings.disconnect(this._appGridLayoutConId);
+ this._appGridLayoutConId = 0;
+ }
+ this._repopulateAppDisplay(reset);
+ } else {
+ _appDisplay._grid._currentMode = -1;
+ // update grid on layout reset
+ if (!this._appGridLayoutConId)
+ this._appGridLayoutConId = global.settings.connect('changed::app-picker-layout', this._updateLayout.bind(this));
+
+ // avoid resetting appDisplay before startup animation
+ // x11 shell restart skips startup animation
+ if (!Main.layoutManager._startingUp) {
+ this._repopulateAppDisplay();
+ } else if (Main.layoutManager._startingUp && Meta.is_restart()) {
+ _timeouts.three = GLib.idle_add(GLib.PRIORITY_LOW, () => {
+ this._repopulateAppDisplay();
+ _timeouts.three = 0;
+ return GLib.SOURCE_REMOVE;
+ });
+ }
+ }
+ }
+
+ _updateFavoritesConnection(reset) {
+ if (!reset) {
+ if (!this._appSystemStateConId && opt.APP_GRID_INCLUDE_DASH >= 3) {
+ this._appSystemStateConId = Shell.AppSystem.get_default().connect(
+ 'app-state-changed',
+ () => {
+ this._updateFolderIcons = true;
+ _appDisplay._redisplay();
+ }
+ );
+ }
+ } else if (this._appSystemStateConId) {
+ Shell.AppSystem.get_default().disconnect(this._appSystemStateConId);
+ this._appSystemStateConId = 0;
+ }
+ }
+
+ _restoreOverviewGroup() {
+ Main.overview.dash.showAppsButton.checked = false;
+ Main.layoutManager.overviewGroup.opacity = 255;
+ Main.layoutManager.overviewGroup.scale_x = 1;
+ Main.layoutManager.overviewGroup.scale_y = 1;
+ Main.layoutManager.overviewGroup.hide();
+ _appDisplay.translation_x = 0;
+ _appDisplay.translation_y = 0;
+ _appDisplay.visible = true;
+ _appDisplay.opacity = 255;
+ }
+
+ _updateLayout(settings, key) {
+ // Reset the app grid only if the user layout has been completely removed
+ if (!settings.get_value(key).deep_unpack().length) {
+ this._repopulateAppDisplay();
+ }
+ }
+
+ _repopulateAppDisplay(reset = false, callback) {
+ // Remove all icons so they can be re-created with the current configuration
+ // Updating appGrid content while rebasing extensions when session is locked makes no sense (relevant for GS version < 46)
+ if (!Main.sessionMode.isLocked)
+ AppDisplayCommon.removeAllItems.bind(_appDisplay)();
+
+ // appDisplay disabled
+ if (reset) {
+ _appDisplay._redisplay();
+ return;
+ }
+
+ _appDisplay._readyToRedisplay = true;
+ _appDisplay._redisplay();
+
+ // Setting OffscreenRedirect should improve performance when opacity transitions are used
+ _appDisplay.offscreen_redirect = Clutter.OffscreenRedirect.ALWAYS;
+
+ if (opt.APP_GRID_PERFORMANCE)
+ this._realizeAppDisplay(callback);
+ else if (callback)
+ callback();
+ }
+
+ _realizeAppDisplay(callback) {
+ // Workaround - silently realize appDisplay
+ // The realization takes some time and affects animations during the first use
+ // If we do it invisibly before the user needs the app grid, it can improve the user's experience
+ _appDisplay.opacity = 1;
+
+ this._exposeAppGrid();
+ _appDisplay._redisplay();
+ this._exposeAppFolders();
+
+ // Let the main loop process our changes before we continue
+ _timeouts.updateAppGrid = GLib.idle_add(GLib.PRIORITY_LOW, () => {
+ this._restoreAppGrid();
+ Me._resetInProgress = false;
+
+ if (callback)
+ callback();
+
+ _timeouts.updateAppGrid = 0;
+ return GLib.SOURCE_REMOVE;
+ });
+ }
+
+ _exposeAppGrid() {
+ const overviewGroup = Main.layoutManager.overviewGroup;
+ if (!overviewGroup.visible) {
+ // scale down the overviewGroup so it don't cover uiGroup
+ overviewGroup.scale_y = 0.001;
+ // make it invisible to the eye, but visible for the renderer
+ overviewGroup.opacity = 1;
+ // if overview is hidden, show it
+ overviewGroup.visible = true;
+ }
+ }
+
+ _restoreAppGrid() {
+ if (opt.APP_GRID_PERFORMANCE)
+ this._hideAppFolders();
+
+ const overviewGroup = Main.layoutManager.overviewGroup;
+ if (!Main.overview._shown)
+ overviewGroup.hide();
+ overviewGroup.scale_y = 1;
+ overviewGroup.opacity = 255;
+ _appDisplay.opacity = 0;
+ _appDisplay.visible = false;
+ }
+
+ _exposeAppFolders() {
+ _appDisplay._folderIcons.forEach(d => {
+ d._ensureFolderDialog();
+ d._dialog.scale_y = 0.0001;
+ d._dialog.show();
+ d._dialog._updateFolderSize();
+ });
+ }
+
+ _hideAppFolders() {
+ _appDisplay._folderIcons.forEach(d => {
+ if (d._dialog) {
+ d._dialog.hide();
+ d._dialog.scale_y = 1;
+ }
+ });
+ }
+};
+
+function _getViewFromIcon(icon) {
+ icon = icon._sourceItem ? icon._sourceItem : icon;
+ for (let parent = icon.get_parent(); parent; parent = parent.get_parent()) {
+ if (parent instanceof AppDisplay.AppDisplay || parent instanceof AppDisplay.FolderView) {
+ return parent;
+ }
+ }
+ return null;
+}
+
+const AppDisplayCommon = {
+ _ensureDefaultFolders() {
+ // disable creation of default folders if user deleted them
+ },
+
+ removeAllItems() {
+ this._orderedItems.slice().forEach(item => {
+ if (item._dialog)
+ Main.layoutManager.overviewGroup.remove_child(item._dialog);
+
+ this._removeItem(item);
+ item.destroy();
+ });
+ this._folderIcons = [];
+ },
+
+ // apps load adapted for custom sorting and including dash items
+ _loadApps() {
+ let appIcons = [];
+ const runningApps = Shell.AppSystem.get_default().get_running().map(a => a.id);
+
+ this._appInfoList = Shell.AppSystem.get_default().get_installed().filter(appInfo => {
+ try {
+ appInfo.get_id(); // catch invalid file encodings
+ } catch (e) {
+ return false;
+ }
+
+ const appIsRunning = runningApps.includes(appInfo.get_id());
+ const appIsFavorite = this._appFavorites.isFavorite(appInfo.get_id());
+ const excludeApp = (opt.APP_GRID_EXCLUDE_RUNNING && appIsRunning) || (opt.APP_GRID_EXCLUDE_FAVORITES && appIsFavorite);
+
+ return this._parentalControlsManager.shouldShowApp(appInfo) && !excludeApp;
+ });
+
+ let apps = this._appInfoList.map(app => app.get_id());
+
+ let appSys = Shell.AppSystem.get_default();
+
+ const appsInsideFolders = new Set();
+ this._folderIcons = [];
+ if (!opt.APP_GRID_USAGE) {
+ let folders = this._folderSettings.get_strv('folder-children');
+ folders.forEach(id => {
+ let path = `${this._folderSettings.path}folders/${id}/`;
+ let icon = this._items.get(id);
+ if (!icon) {
+ icon = new AppDisplay.FolderIcon(id, path, this);
+ icon.connect('apps-changed', () => {
+ this._redisplay();
+ this._savePages();
+ });
+ icon.connect('notify::pressed', () => {
+ if (icon.pressed)
+ this.updateDragFocus(icon);
+ });
+ } else if (this._updateFolderIcons && opt.APP_GRID_EXCLUDE_RUNNING) {
+ // if any app changed its running state, update folder icon
+ icon.icon.update();
+ }
+
+ // remove empty folder icons
+ if (!icon.visible) {
+ icon.destroy();
+ return;
+ }
+
+ appIcons.push(icon);
+ this._folderIcons.push(icon);
+
+ icon.getAppIds().forEach(appId => appsInsideFolders.add(appId));
+ });
+ }
+
+ // reset request to update active icon
+ this._updateFolderIcons = false;
+
+ // Allow dragging of the icon only if the Dash would accept a drop to
+ // change favorite-apps. There are no other possible drop targets from
+ // the app picker, so there's no other need for a drag to start,
+ // at least on single-monitor setups.
+ // This also disables drag-to-launch on multi-monitor setups,
+ // but we hope that is not used much.
+ const isDraggable =
+ global.settings.is_writable('favorite-apps') ||
+ global.settings.is_writable('app-picker-layout');
+
+ apps.forEach(appId => {
+ if (!opt.APP_GRID_USAGE && appsInsideFolders.has(appId))
+ return;
+
+ let icon = this._items.get(appId);
+ if (!icon) {
+ let app = appSys.lookup_app(appId);
+ icon = new AppDisplay.AppIcon(app, { isDraggable });
+ icon.connect('notify::pressed', () => {
+ if (icon.pressed)
+ this.updateDragFocus(icon);
+ });
+ }
+
+ appIcons.push(icon);
+ });
+
+ // At last, if there's a placeholder available, add it
+ if (this._placeholder)
+ appIcons.push(this._placeholder);
+
+ return appIcons;
+ },
+
+ _onDragBegin(overview, source) {
+ // let sourceId;
+ // support active preview icons
+ if (source._sourceItem) {
+ // sourceId = source._sourceFolder._id;
+ source = source._sourceItem;
+ } /* else {
+ sourceId = source.id;
+ }*/
+ // Prevent switching page when an item on another page is selected
+ // by removing the focus from all icons
+ // This is an upstream bug
+ // this.selectApp(sourceId);
+ this.grab_key_focus();
+
+ this._dragMonitor = {
+ dragMotion: this._onDragMotion.bind(this),
+ dragDrop: this._onDragDrop.bind(this),
+ };
+ DND.addDragMonitor(this._dragMonitor);
+
+ this._appGridLayout.showPageIndicators();
+ this._dragFocus = null;
+ this._swipeTracker.enabled = false;
+
+ // When dragging from a folder dialog, the dragged app icon doesn't
+ // exist in AppDisplay. We work around that by adding a placeholder
+ // icon that is either destroyed on cancel, or becomes the effective
+ // new icon when dropped.
+ if (/* AppDisplay.*/_getViewFromIcon(source) instanceof AppDisplay.FolderView ||
+ (opt.APP_GRID_EXCLUDE_FAVORITES && this._appFavorites.isFavorite(source.id)))
+ this._ensurePlaceholder(source);
+ },
+
+ _ensurePlaceholder(source) {
+ if (this._placeholder)
+ return;
+
+ if (source._sourceItem)
+ source = source._sourceItem;
+
+ const appSys = Shell.AppSystem.get_default();
+ const app = appSys.lookup_app(source.id);
+
+ const isDraggable =
+ global.settings.is_writable('favorite-apps') ||
+ global.settings.is_writable('app-picker-layout');
+
+ this._placeholder = new AppDisplay.AppIcon(app, { isDraggable });
+ this._placeholder.connect('notify::pressed', () => {
+ if (this._placeholder?.pressed)
+ this.updateDragFocus(this._placeholder);
+ });
+ this._placeholder.scaleAndFade();
+ this._redisplay();
+ },
+
+ // accept source from active folder preview
+ acceptDrop(source) {
+ if (opt.APP_GRID_USAGE)
+ return false;
+ if (source._sourceItem)
+ source = source._sourceItem;
+ if (!this._acceptDropCommon(source))
+ return false;
+
+ this._savePages();
+
+ const view = /* AppDisplay.*/_getViewFromIcon(source);
+ if (view instanceof AppDisplay.FolderView)
+ view.removeApp(source.app);
+
+ if (this._currentDialog)
+ this._currentDialog.popdown();
+
+ if (opt.APP_GRID_EXCLUDE_FAVORITES && this._appFavorites.isFavorite(source.id))
+ this._appFavorites.removeFavorite(source.id);
+ return true;
+ },
+
+ _savePages() {
+ // Skip saving pages when search app grid mode is active
+ // and the grid is showing search results
+ if (Main.overview._overview.controls._origAppGridContent)
+ return;
+
+ const pages = [];
+
+ for (let i = 0; i < this._grid.nPages; i++) {
+ const pageItems =
+ this._grid.getItemsAtPage(i).filter(c => c.visible);
+ const pageData = {};
+
+ pageItems.forEach((item, index) => {
+ pageData[item.id] = {
+ position: GLib.Variant.new_int32(index),
+ };
+ });
+ pages.push(pageData);
+ }
+
+ this._pageManager.pages = pages;
+ },
+};
+
+const BaseAppViewCommon = {
+ after__init() {
+ // Only folders can run this init
+ this._isFolder = true;
+
+ this._adaptForOrientation(opt.ORIENTATION, true);
+
+ // Because the original class prototype is not exported, we need to inject every instance
+ const overrides = new Me.Util.Overrides();
+ if (opt.ORIENTATION) {
+ overrides.addOverride('FolderGridLayoutVertical', this._appGridLayout, BaseAppViewGridLayoutVertical);
+ this._pageIndicators.set_style('margin-right: 12px;');
+ } else {
+ overrides.addOverride('FolderGridLayoutHorizontal', this._appGridLayout, BaseAppViewGridLayoutHorizontal);
+ this._pageIndicators.set_style('margin-bottom: 12px;');
+ }
+ },
+
+ _adaptForOrientation(orientation, folder) {
+ const vertical = !!orientation;
+
+ this._grid.layoutManager.fixedIconSize = folder ? opt.APP_GRID_FOLDER_ICON_SIZE : opt.APP_GRID_ICON_SIZE;
+ this._grid.layoutManager._orientation = orientation;
+ this._orientation = orientation;
+ this._swipeTracker.orientation = orientation;
+ this._swipeTracker._reset();
+
+ this._adjustment = vertical
+ ? this._scrollView.get_vscroll_bar().adjustment
+ : this._scrollView.get_hscroll_bar().adjustment;
+
+ this._prevPageArrow.pivot_point = new Graphene.Point({ x: 0.5, y: 0.5 });
+ this._prevPageArrow.rotation_angle_z = vertical ? 90 : 0;
+
+ this._nextPageArrow.pivot_point = new Graphene.Point({ x: 0.5, y: 0.5 });
+ this._nextPageArrow.rotation_angle_z = vertical ? 90 : 0;
+
+ const pageIndicators = this._pageIndicators;
+ pageIndicators.vertical = vertical;
+ this._box.vertical = !vertical;
+ pageIndicators.x_expand = !vertical;
+ pageIndicators.y_align = vertical ? Clutter.ActorAlign.CENTER : Clutter.ActorAlign.START;
+ pageIndicators.x_align = vertical ? Clutter.ActorAlign.START : Clutter.ActorAlign.CENTER;
+
+ this._grid.layoutManager.allow_incomplete_pages = folder ? false : opt.APP_GRID_ALLOW_INCOMPLETE_PAGES;
+ const spacing = folder ? opt.APP_GRID_FOLDER_SPACING : opt.APP_GRID_SPACING;
+ this._grid.set_style(`column-spacing: ${spacing}px; row-spacing: ${spacing}px;`);
+
+ if (vertical) {
+ this._scrollView.set_policy(St.PolicyType.NEVER, St.PolicyType.EXTERNAL);
+ if (!this._scrollConId) {
+ this._scrollConId = this._adjustment.connect('notify::value', adj => {
+ const value = adj.value / adj.page_size;
+ this._pageIndicators.setCurrentPosition(value);
+ });
+ }
+ pageIndicators.remove_style_class_name('page-indicators-horizontal');
+ pageIndicators.add_style_class_name('page-indicators-vertical');
+ this._prevPageIndicator.add_style_class_name('prev-page-indicator');
+ this._nextPageIndicator.add_style_class_name('next-page-indicator');
+ this._nextPageArrow.translationY = 0;
+ this._prevPageArrow.translationY = 0;
+ this._nextPageIndicator.translationX = 0;
+ this._prevPageIndicator.translationX = 0;
+ } else {
+ this._scrollView.set_policy(St.PolicyType.EXTERNAL, St.PolicyType.NEVER);
+ if (this._scrollConId) {
+ this._adjustment.disconnect(this._scrollConId);
+ this._scrollConId = 0;
+ }
+ pageIndicators.remove_style_class_name('page-indicators-vertical');
+ pageIndicators.add_style_class_name('page-indicators-horizontal');
+ this._prevPageIndicator.remove_style_class_name('prev-page-indicator');
+ this._nextPageIndicator.remove_style_class_name('next-page-indicator');
+ this._nextPageArrow.translationX = 0;
+ this._prevPageArrow.translationX = 0;
+ this._nextPageIndicator.translationY = 0;
+ this._prevPageIndicator.translationY = 0;
+ }
+
+ const scale = opt.APP_GRID_SHOW_PAGE_ARROWS ? 1 : 0;
+ this._prevPageArrow.set_scale(scale, scale);
+ this._nextPageArrow.set_scale(scale, scale);
+ },
+
+ _sortItemsByName(items) {
+ items.sort((a, b) => a.name.toLowerCase().localeCompare(b.name.toLowerCase()));
+ },
+
+ _updateItemPositions(icons, allowIncompletePages = false) {
+ // Avoid recursion when relocating icons
+ this._grid.layoutManager._skipRelocateSurplusItems = true;
+
+ const { itemsPerPage } = this._grid;
+
+ icons.slice().forEach((icon, index) => {
+ const [currentPage, currentPosition] = this._grid.layoutManager.getItemPosition(icon);
+
+ let page, position;
+ if (allowIncompletePages) {
+ [page, position] = this._getItemPosition(icon);
+ } else {
+ page = Math.floor(index / itemsPerPage);
+ position = index % itemsPerPage;
+ }
+
+ if (currentPage !== page || currentPosition !== position) {
+ this._moveItem(icon, page, position);
+ }
+ });
+
+ this._grid.layoutManager._skipRelocateSurplusItems = false;
+ // Disable animating the icons to their new positions
+ // since it can cause glitches when the app grid search mode is active
+ // and many icons are repositioning at once
+ this._grid.layoutManager._shouldEaseItems = false;
+ },
+
+ // Adds sorting options
+ _redisplay() {
+ // different options for main app grid and app folders
+ const thisIsFolder = this instanceof AppDisplay.FolderView;
+ const thisIsAppDisplay = !thisIsFolder;
+
+ // When an app was dragged from a folder and dropped to the main grid
+ // folders (if exist) need to be redisplayed even if we temporary block it for the appDisplay
+ this._folderIcons?.forEach(icon => {
+ icon.view._redisplay();
+ });
+
+ // Avoid unwanted updates
+ if (thisIsAppDisplay && !this._readyToRedisplay)
+ return;
+
+ const oldApps = this._orderedItems.slice();
+ const oldAppIds = oldApps.map(icon => icon.id);
+
+ const newApps = this._loadApps();
+ const newAppIds = newApps.map(icon => icon.id);
+
+ const addedApps = newApps.filter(icon => !oldAppIds.includes(icon.id));
+ const removedApps = oldApps.filter(icon => !newAppIds.includes(icon.id));
+
+ // Don't update folder without dialog if its content didn't change
+ if (!addedApps.length && !removedApps.length && thisIsFolder && !this.get_parent())
+ return;
+
+ // Remove old app icons
+ removedApps.forEach(icon => {
+ this._removeItem(icon);
+ icon.destroy();
+ });
+
+ // For the main app grid only
+ let allowIncompletePages = thisIsAppDisplay && opt.APP_GRID_ALLOW_INCOMPLETE_PAGES;
+
+ const customOrder = !((opt.APP_GRID_ORDER && thisIsAppDisplay) || (opt.APP_FOLDER_ORDER && thisIsFolder));
+ if (!customOrder) {
+ allowIncompletePages = false;
+
+ // Sort by name
+ this._sortItemsByName(newApps);
+
+ // Sort by usage
+ if ((opt.APP_GRID_USAGE && thisIsAppDisplay) ||
+ (opt.APP_FOLDER_USAGE && thisIsFolder)) {
+ newApps.sort((a, b) => Shell.AppUsage.get_default().compare(a.app?.id, b.app?.id));
+ }
+
+ // Sort favorites first
+ if (!opt.APP_GRID_EXCLUDE_FAVORITES && opt.APP_GRID_DASH_FIRST) {
+ const fav = Object.keys(this._appFavorites._favorites);
+ newApps.sort((a, b) => {
+ let aFav = fav.indexOf(a.id);
+ if (aFav < 0)
+ aFav = 999;
+ let bFav = fav.indexOf(b.id);
+ if (bFav < 0)
+ bFav = 999;
+ return bFav < aFav;
+ });
+ }
+
+ // Sort running first
+ if (!opt.APP_GRID_EXCLUDE_RUNNING && opt.APP_GRID_DASH_FIRST) {
+ newApps.sort((a, b) => a.app?.get_state() !== Shell.AppState.RUNNING && b.app?.get_state() === Shell.AppState.RUNNING);
+ }
+
+ // Sort folders first
+ if (thisIsAppDisplay && opt.APP_GRID_FOLDERS_FIRST)
+ newApps.sort((a, b) => b._folder && !a._folder);
+
+ // Sort folders last
+ else if (thisIsAppDisplay && opt.APP_GRID_FOLDERS_LAST)
+ newApps.sort((a, b) => a._folder && !b._folder);
+ } else {
+ // Sort items according to the custom order stored in pageManager
+ newApps.sort(this._compareItems.bind(this));
+ }
+
+ // Add new app icons to the grid
+ newApps.forEach(icon => {
+ const [page, position] = this._grid.getItemPosition(icon);
+ if (page === -1 && position === -1)
+ this._addItem(icon, -1, -1);
+ });
+ // When a placeholder icon was added to the custom sorted grid during DND from a folder
+ // update its initial position on the page
+ if (customOrder)
+ newApps.sort(this._compareItems.bind(this));
+
+ this._orderedItems = newApps;
+
+ // Update icon positions if needed
+ this._updateItemPositions(this._orderedItems, allowIncompletePages);
+
+ // Relocate items with invalid positions
+ if (thisIsAppDisplay) {
+ const nPages = this._grid.layoutManager.nPages;
+ for (let pageIndex = 0; pageIndex < nPages; pageIndex++)
+ this._grid.layoutManager._relocateSurplusItems(pageIndex);
+ }
+
+ this.emit('view-loaded');
+ },
+
+ _canAccept(source) {
+ return source instanceof AppDisplay.AppViewItem;
+ },
+
+ // this method is replacing BaseAppVew.acceptDrop which can't be overridden directly
+ _acceptDropCommon(source) {
+ const dropTarget = this._dropTarget;
+ delete this._dropTarget;
+ if (!this._canAccept(source))
+ return false;
+
+ if (dropTarget === this._prevPageIndicator ||
+ dropTarget === this._nextPageIndicator) {
+ let increment;
+ increment = dropTarget === this._prevPageIndicator ? -1 : 1;
+ const { currentPage, nPages } = this._grid;
+ const page = Math.min(currentPage + increment, nPages);
+ const position = page < nPages ? -1 : 0;
+
+ this._moveItem(source, page, position);
+ this.goToPage(page);
+ } else if (this._delayedMoveData) {
+ // Dropped before the icon was moved
+ const { page, position } = this._delayedMoveData;
+ try {
+ this._moveItem(source, page, position);
+ } catch (e) {
+ console.warn(`Warning:${e}`);
+ }
+ this._removeDelayedMove();
+ }
+
+ return true;
+ },
+
+ // support active preview icons
+ _onDragMotion(dragEvent) {
+ if (!(dragEvent.source instanceof AppDisplay.AppViewItem))
+ return DND.DragMotionResult.CONTINUE;
+
+ if (dragEvent.source._sourceItem)
+ dragEvent.source = dragEvent.source._sourceItem;
+
+ const appIcon = dragEvent.source;
+
+ if (appIcon instanceof AppDisplay.AppViewItem) {
+ if (!this._dragMaybeSwitchPageImmediately(dragEvent)) {
+ // Two ways of switching pages during DND:
+ // 1) When "bumping" the cursor against the monitor edge, we switch
+ // page immediately.
+ // 2) When hovering over the next-page indicator for a certain time,
+ // we also switch page.
+
+ const { targetActor } = dragEvent;
+
+ if (targetActor === this._prevPageIndicator ||
+ targetActor === this._nextPageIndicator)
+ this._maybeSetupDragPageSwitchInitialTimeout(dragEvent);
+ else
+ this._resetDragPageSwitch();
+ }
+ }
+
+ const thisIsFolder = this instanceof AppDisplay.FolderView;
+ const thisIsAppDisplay = !thisIsFolder;
+
+ // Prevent reorganizing the main app grid icons when an app folder is open and when sorting is not custom
+ // For some reason in V-Shell the drag motion events propagate from folder to main grid, which is not a problem in default code - so test the open dialog
+ if (!this._currentDialog && (!opt.APP_GRID_ORDER && thisIsAppDisplay) || (!opt.APP_FOLDER_ORDER && thisIsFolder))
+ this._maybeMoveItem(dragEvent);
+
+ return DND.DragMotionResult.CONTINUE;
+ },
+};
+
+const BaseAppViewGridLayoutHorizontal = {
+ _getIndicatorsWidth(box) {
+ const [width, height] = box.get_size();
+ const arrows = [
+ this._nextPageArrow,
+ this._previousPageArrow,
+ ];
+
+ let minArrowsWidth;
+
+ minArrowsWidth = arrows.reduce(
+ (previousWidth, accessory) => {
+ const [min] = accessory.get_preferred_width(height);
+ return Math.max(previousWidth, min);
+ }, 0);
+
+ minArrowsWidth = opt.APP_GRID_SHOW_PAGE_ARROWS ? minArrowsWidth : 0;
+
+ const indicatorWidth = !this._grid._isFolder
+ ? minArrowsWidth + ((width - minArrowsWidth) * (1 - opt.APP_GRID_PAGE_WIDTH_SCALE)) / 2
+ : minArrowsWidth + 6;
+
+ return Math.round(indicatorWidth);
+ },
+
+ vfunc_allocate(container, box) {
+ const ltr = container.get_text_direction() !== Clutter.TextDirection.RTL;
+ const indicatorsWidth = this._getIndicatorsWidth(box);
+
+ const pageIndicatorsHeight = 20; // _appDisplay._pageIndicators.height is unstable, 20 is determined by the style
+ const availHeight = box.get_height() - pageIndicatorsHeight;
+ const vPadding = Math.round((availHeight - availHeight * opt.APP_GRID_PAGE_HEIGHT_SCALE) / 2);
+ this._grid.indicatorsPadding = new Clutter.Margin({
+ left: indicatorsWidth,
+ right: indicatorsWidth,
+ top: vPadding + pageIndicatorsHeight,
+ bottom: vPadding,
+ });
+
+ this._scrollView.allocate(box);
+
+ const leftBox = box.copy();
+ leftBox.x2 = leftBox.x1 + indicatorsWidth;
+
+ const rightBox = box.copy();
+ rightBox.x1 = rightBox.x2 - indicatorsWidth;
+
+ this._previousPageIndicator.allocate(ltr ? leftBox : rightBox);
+ this._previousPageArrow.allocate_align_fill(ltr ? leftBox : rightBox,
+ 0.5, 0.5, false, false);
+ this._nextPageIndicator.allocate(ltr ? rightBox : leftBox);
+ this._nextPageArrow.allocate_align_fill(ltr ? rightBox : leftBox,
+ 0.5, 0.5, false, false);
+
+ this._pageWidth = box.get_width();
+
+ // Center page arrow buttons
+ this._previousPageArrow.translationY = pageIndicatorsHeight / 2;
+ this._nextPageArrow.translationY = pageIndicatorsHeight / 2;
+ // Reset page indicators vertical position
+ this._nextPageIndicator.translationY = 0;
+ this._previousPageIndicator.translationY = 0;
+ },
+};
+
+const BaseAppViewGridLayoutVertical = {
+ _getIndicatorsHeight(box) {
+ const [width, height] = box.get_size();
+ const arrows = [
+ this._nextPageArrow,
+ this._previousPageArrow,
+ ];
+
+ let minArrowsHeight;
+
+ minArrowsHeight = arrows.reduce(
+ (previousHeight, accessory) => {
+ const [min] = accessory.get_preferred_height(width);
+ return Math.max(previousHeight, min);
+ }, 0);
+
+ minArrowsHeight = opt.APP_GRID_SHOW_PAGE_ARROWS ? minArrowsHeight : 0;
+
+ const indicatorHeight = !this._grid._isFolder
+ ? minArrowsHeight + ((height - minArrowsHeight) * (1 - opt.APP_GRID_PAGE_HEIGHT_SCALE)) / 2
+ : minArrowsHeight + 6;
+
+ return Math.round(indicatorHeight);
+ },
+
+ _syncPageIndicators() {
+ if (!this._container)
+ return;
+
+ const { value } = this._pageIndicatorsAdjustment;
+
+ const { top, bottom } = this._grid.indicatorsPadding;
+ const topIndicatorOffset = -top * (1 - value);
+ const bottomIndicatorOffset = bottom * (1 - value);
+
+ this._previousPageIndicator.translationY =
+ topIndicatorOffset;
+ this._nextPageIndicator.translationY =
+ bottomIndicatorOffset;
+
+ const leftArrowOffset = -top * value;
+ const rightArrowOffset = bottom * value;
+
+ this._previousPageArrow.translationY =
+ leftArrowOffset;
+ this._nextPageArrow.translationY =
+ rightArrowOffset;
+
+ // Page icons
+ this._translatePreviousPageIcons(value);
+ this._translateNextPageIcons(value);
+
+ if (this._grid.nPages > 0) {
+ this._grid.getItemsAtPage(this._currentPage).forEach(icon => {
+ icon.translationY = 0;
+ });
+ }
+ },
+
+ _translatePreviousPageIcons(value) {
+ if (this._currentPage === 0)
+ return;
+
+ const pageHeight = this._grid.layoutManager._pageHeight;
+ const previousPage = this._currentPage - 1;
+ const icons = this._grid.getItemsAtPage(previousPage).filter(i => i.visible);
+ if (icons.length === 0)
+ return;
+
+ const { top } = this._grid.indicatorsPadding;
+ const { rowSpacing } = this._grid.layoutManager;
+ const endIcon = icons[icons.length - 1];
+ let iconOffset;
+
+ const currentPageOffset = pageHeight * this._currentPage;
+ iconOffset = currentPageOffset - endIcon.allocation.y1 - endIcon.width + top - rowSpacing;
+
+ for (const icon of icons)
+ icon.translationY = iconOffset * value;
+ },
+
+ _translateNextPageIcons(value) {
+ if (this._currentPage >= this._grid.nPages - 1)
+ return;
+
+ const nextPage = this._currentPage + 1;
+ const icons = this._grid.getItemsAtPage(nextPage).filter(i => i.visible);
+ if (icons.length === 0)
+ return;
+
+ const { bottom } = this._grid.indicatorsPadding;
+ const { rowSpacing } = this._grid.layoutManager;
+ let iconOffset;
+
+ const pageOffset = this._pageHeight * nextPage;
+ iconOffset = pageOffset - icons[0].allocation.y1 - bottom + rowSpacing;
+
+ for (const icon of icons)
+ icon.translationY = iconOffset * value;
+ },
+
+ vfunc_allocate(container, box) {
+ const indicatorsHeight = this._getIndicatorsHeight(box);
+
+ const pageIndicatorsWidth = 20; // _appDisplay._pageIndicators.width is not stable, 20 is determined by the style
+ const availWidth = box.get_width() - pageIndicatorsWidth;
+ const hPadding = Math.round((availWidth - availWidth * opt.APP_GRID_PAGE_WIDTH_SCALE) / 2);
+
+ this._grid.indicatorsPadding = new Clutter.Margin({
+ top: indicatorsHeight,
+ bottom: indicatorsHeight,
+ left: hPadding + pageIndicatorsWidth,
+ right: hPadding,
+ });
+
+ this._scrollView.allocate(box);
+
+ const topBox = box.copy();
+ topBox.y2 = topBox.y1 + indicatorsHeight;
+
+ const bottomBox = box.copy();
+ bottomBox.y1 = bottomBox.y2 - indicatorsHeight;
+
+ this._previousPageIndicator.allocate(topBox);
+ this._previousPageArrow.allocate_align_fill(topBox,
+ 0.5, 0.5, false, false);
+ this._nextPageIndicator.allocate(bottomBox);
+ this._nextPageArrow.allocate_align_fill(bottomBox,
+ 0.5, 0.5, false, false);
+
+ this._pageHeight = box.get_height();
+
+ // Center page arrow buttons
+ this._previousPageArrow.translationX = pageIndicatorsWidth / 2;
+ this._nextPageArrow.translationX = pageIndicatorsWidth / 2;
+ // Reset page indicators vertical position
+ this._nextPageIndicator.translationX = 0;
+ this._previousPageIndicator.translationX = 0;
+ },
+};
+
+const AppGridCommon = {
+ _updatePadding() {
+ const { rowSpacing, columnSpacing } = this.layoutManager;
+
+ const padding = this._indicatorsPadding.copy();
+
+ padding.left += rowSpacing;
+ padding.right += rowSpacing;
+ padding.top += columnSpacing;
+ padding.bottom += columnSpacing;
+
+ this.layoutManager.pagePadding = padding;
+ },
+};
+
+const FolderIcon = {
+ after__init() {
+ this.button_mask = St.ButtonMask.ONE | St.ButtonMask.TWO;
+ if (shellVersion46)
+ this.add_style_class_name('app-folder-46');
+ else
+ this.add_style_class_name('app-folder-45');
+ },
+
+ open() {
+ // Prevent switching page when an item on another page is selected
+ GLib.idle_add(GLib.PRIORITY_DEFAULT, () => {
+ // Select folder icon to prevent switching page to the one with currently selected icon
+ this._parentView._selectAppInternal(this._id);
+ // Remove key focus from the selected icon to prevent switching page after dropping the removed folder icon on another page of the main grid
+ this._parentView.grab_key_focus();
+ this._ensureFolderDialog();
+ this._dialog.popup();
+ });
+ },
+
+ vfunc_clicked() {
+ this.open();
+ },
+
+ _canAccept(source) {
+ if (!(source instanceof AppDisplay.AppIcon))
+ return false;
+
+ const view = _getViewFromIcon(source);
+ if (!view /* || !(view instanceof AppDisplay.AppDisplay)*/)
+ return false;
+
+ // Disable this test to allow the user to cancel the current DND by dropping the icon on its original source
+ /* if (this._folder.get_strv('apps').includes(source.id))
+ return false;*/
+
+ return true;
+ },
+
+ acceptDrop(source) {
+ if (source._sourceItem)
+ source = source._sourceItem;
+
+ const accepted = AppViewItemCommon.acceptDrop.bind(this)(source);
+
+ if (!accepted)
+ return false;
+
+ // If the icon is already in the folder (user dropped it back on the same folder), skip re-adding it
+ if (this._folder.get_strv('apps').includes(source.id))
+ return true;
+
+ this._onDragEnd();
+
+ this.view.addApp(source.app);
+
+ return true;
+ },
+};
+
+const FolderView = {
+ _createGrid() {
+ let grid = new FolderGrid();
+ grid._view = this;
+ return grid;
+ },
+
+ createFolderIcon(size) {
+ const layout = new Clutter.GridLayout({
+ row_homogeneous: true,
+ column_homogeneous: true,
+ });
+
+ let icon = new St.Widget({
+ layout_manager: layout,
+ x_align: Clutter.ActorAlign.CENTER,
+ style: `width: ${size}px; height: ${size}px;`,
+ });
+
+ const numItems = this._orderedItems.length;
+ // decide what number of icons switch to 3x3 grid
+ // APP_GRID_FOLDER_ICON_GRID: 3 -> more than 4
+ // : 4 -> more than 8
+ const threshold = opt.APP_GRID_FOLDER_ICON_GRID % 3 ? 8 : 4;
+ const gridSize = opt.APP_GRID_FOLDER_ICON_GRID > 2 && numItems > threshold ? 3 : 2;
+ const FOLDER_SUBICON_FRACTION = gridSize === 2 ? 0.4 : 0.27;
+
+ let subSize = Math.floor(FOLDER_SUBICON_FRACTION * size);
+ let rtl = icon.get_text_direction() === Clutter.TextDirection.RTL;
+ for (let i = 0; i < gridSize * gridSize; i++) {
+ const style = `width: ${subSize}px; height: ${subSize}px;`;
+ let bin = new St.Bin({ style, reactive: true });
+ bin.pivot_point = new Graphene.Point({ x: 0.5, y: 0.5 });
+ if (i < numItems) {
+ if (!opt.APP_GRID_ACTIVE_PREVIEW) {
+ bin.child = this._orderedItems[i].app.create_icon_texture(subSize);
+ } else {
+ const app = this._orderedItems[i].app;
+ const child = new AppDisplay.AppIcon(app, {
+ setSizeManually: true,
+ showLabel: false,
+ });
+
+ child._sourceItem = this._orderedItems[i];
+ child._sourceFolder = this;
+ child.icon.style_class = '';
+ child.set_style_class_name('');
+ child.icon.set_style('margin: 0; padding: 0;');
+ child._dot.set_style('margin-bottom: 1px;');
+ child.icon.setIconSize(subSize);
+ child._canAccept = () => false;
+
+ bin.child = child;
+
+ bin.connect('enter-event', () => {
+ bin.ease({
+ duration: 100,
+ translation_y: -3,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+ });
+ bin.connect('leave-event', () => {
+ bin.ease({
+ duration: 100,
+ translation_y: 0,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+ });
+ }
+ }
+
+ layout.attach(bin, rtl ? (i + 1) % gridSize : i % gridSize, Math.floor(i / gridSize), 1, 1);
+ }
+
+ return icon;
+ },
+
+ _loadApps() {
+ this._apps = [];
+ const excludedApps = this._folder.get_strv('excluded-apps');
+ const appSys = Shell.AppSystem.get_default();
+ const addAppId = appId => {
+ if (excludedApps.includes(appId))
+ return;
+
+ if (opt.APP_GRID_EXCLUDE_FAVORITES && this._appFavorites.isFavorite(appId))
+ return;
+
+ const app = appSys.lookup_app(appId);
+ if (!app)
+ return;
+
+ if (opt.APP_GRID_EXCLUDE_RUNNING) {
+ const runningApps = Shell.AppSystem.get_default().get_running().map(a => a.id);
+ if (runningApps.includes(appId))
+ return;
+ }
+
+ if (!this._parentalControlsManager.shouldShowApp(app.get_app_info()))
+ return;
+
+ if (this._apps.indexOf(app) !== -1)
+ return;
+
+ this._apps.push(app);
+ };
+
+ const folderApps = this._folder.get_strv('apps');
+ folderApps.forEach(addAppId);
+
+ const folderCategories = this._folder.get_strv('categories');
+ const appInfos = this._parentView.getAppInfos();
+ appInfos.forEach(appInfo => {
+ let appCategories = /* AppDisplay.*/_getCategories(appInfo);
+ if (!_listsIntersect(folderCategories, appCategories))
+ return;
+
+ addAppId(appInfo.get_id());
+ });
+
+ let items = [];
+ this._apps.forEach(app => {
+ let icon = this._items.get(app.get_id());
+ if (!icon)
+ icon = new AppDisplay.AppIcon(app);
+
+ items.push(icon);
+ });
+
+ return items;
+ },
+
+ acceptDrop(source) {
+ /* if (!BaseAppViewCommon.acceptDrop.bind(this)(source))
+ return false;*/
+ if (opt.APP_FOLDER_ORDER)
+ return false;
+ if (source._sourceItem)
+ source = source._sourceItem;
+
+ if (!this._acceptDropCommon(source))
+ return false;
+
+ const folderApps = this._orderedItems.map(item => item.id);
+ this._folder.set_strv('apps', folderApps);
+
+ return true;
+ },
+};
+
+const FolderGrid = GObject.registerClass({
+ // Registered name should be unique
+ GTypeName: `FolderGrid${Math.floor(Math.random() * 1000)}`,
+}, class FolderGrid extends AppDisplay.AppGrid {
+ _init() {
+ super._init({
+ allow_incomplete_pages: false,
+ // For adaptive size (0), set the numbers high enough to fit all the icons
+ // to avoid splitting the icons to pages upon creating the grid
+ columns_per_page: 20,
+ rows_per_page: 20,
+ page_halign: Clutter.ActorAlign.CENTER,
+ page_valign: Clutter.ActorAlign.CENTER,
+ });
+ this.layoutManager._isFolder = true;
+ this._isFolder = true;
+ const spacing = opt.APP_GRID_FOLDER_SPACING;
+ this.set_style(`column-spacing: ${spacing}px; row-spacing: ${spacing}px;`);
+ this.layoutManager.fixedIconSize = opt.APP_GRID_FOLDER_ICON_SIZE;
+
+ this.setGridModes([
+ {
+ columns: 20,
+ rows: 20,
+ },
+ ]);
+ }
+
+ _updatePadding() {
+ const { scaleFactor } = St.ThemeContext.get_for_stage(global.stage);
+ const padding = this._indicatorsPadding.copy();
+ const pageIndicatorSize = opt.ORIENTATION
+ ? this._view._pageIndicators.get_preferred_width(1000)[1] / scaleFactor
+ : this._view._pageIndicators.get_preferred_height(1000)[1] / scaleFactor;
+ Math.round(Math.min(...this._view._pageIndicators.get_size()));// / scaleFactor);// ~28;
+ padding.left = opt.ORIENTATION ? pageIndicatorSize : 0;
+ padding.right = 0;
+ padding.top = opt.ORIENTATION ? 0 : pageIndicatorSize;
+ padding.bottom = 0;
+ this.layoutManager.pagePadding = padding;
+ }
+});
+
+
+const FOLDER_DIALOG_ANIMATION_TIME = 200; // AppDisplay.FOLDER_DIALOG_ANIMATION_TIME
+const AppFolderDialog = {
+ // injection to _init()
+ after__init() {
+ // GS 46 changed the aligning to CENTER which restricts max folder dialog size
+ this._viewBox.set({
+ x_align: Clutter.ActorAlign.FILL,
+ y_align: Clutter.ActorAlign.FILL,
+ });
+
+ // delegate this dialog to the FolderIcon._view
+ // so its _createFolderIcon function can update the dialog if folder content changed
+ this._view._dialog = this;
+
+ // right click into the folder popup should close it
+ this.child.reactive = true;
+ const clickAction = new Clutter.ClickAction();
+ clickAction.connect('clicked', act => {
+ if (act.get_button() === Clutter.BUTTON_PRIMARY)
+ return Clutter.EVENT_STOP;
+ const [x, y] = clickAction.get_coords();
+ const actor = global.stage.get_actor_at_pos(Clutter.PickMode.ALL, x, y);
+ // if it's not entry for editing folder title
+ if (actor !== this._entry)
+ this.popdown();
+ return Clutter.EVENT_STOP;
+ });
+
+ this.child.add_action(clickAction);
+ },
+
+ after__addFolderNameEntry() {
+ // edit-folder-button class has been replaced with icon-button class which is not transparent in 46
+ this._editButton.add_style_class_name('edit-folder-button');
+
+ // Edit button
+ this._removeButton = new St.Button({
+ style_class: 'icon-button edit-folder-button',
+ button_mask: St.ButtonMask.ONE,
+ toggle_mode: false,
+ reactive: true,
+ can_focus: true,
+ x_align: Clutter.ActorAlign.END,
+ y_align: Clutter.ActorAlign.CENTER,
+ child: new St.Icon({
+ icon_name: 'user-trash-symbolic',
+ icon_size: 16,
+ }),
+ });
+
+ this._removeButton.connect('clicked', () => {
+ if (Date.now() - this._removeButton._lastClick < Clutter.Settings.get_default().double_click_time) {
+ // Close dialog to avoid crashes
+ this._isOpen = false;
+ this._grabHelper.ungrab({ actor: this });
+ this.emit('open-state-changed', false);
+ this.hide();
+ this._popdownCallbacks.forEach(func => func());
+ this._popdownCallbacks = [];
+ _appDisplay.ease({
+ opacity: 255,
+ duration: FOLDER_DIALOG_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+
+ // Reset all keys to delete the relocatable schema
+ this._view._deletingFolder = true; // Upstream property
+ let keys = this._folder.settings_schema.list_keys();
+ for (const key of keys)
+ this._folder.reset(key);
+
+ let settings = new Gio.Settings({ schema_id: 'org.gnome.desktop.app-folders' });
+ let folders = settings.get_strv('folder-children');
+ folders.splice(folders.indexOf(this._view._id), 1);
+
+ // remove all abandoned folders (usually my own garbage and unwanted default folders...)
+ /* const appFolders = _appDisplay._folderIcons.map(icon => icon._id);
+ folders.forEach(folder => {
+ if (!appFolders.includes(folder)) {
+ folders.splice(folders.indexOf(folder._id), 1);
+ }
+ });*/
+ settings.set_strv('folder-children', folders);
+
+ this._view._deletingFolder = false;
+ return;
+ }
+ this._removeButton._lastClick = Date.now();
+ });
+
+ this._entryBox.add_child(this._removeButton);
+ this._entryBox.set_child_at_index(this._removeButton, 0);
+
+ this._closeButton = new St.Button({
+ style_class: 'icon-button edit-folder-button',
+ button_mask: St.ButtonMask.ONE,
+ toggle_mode: false,
+ reactive: true,
+ can_focus: true,
+ x_align: Clutter.ActorAlign.END,
+ y_align: Clutter.ActorAlign.CENTER,
+ child: new St.Icon({
+ icon_name: 'window-close-symbolic',
+ icon_size: 16,
+ }),
+ });
+
+ this._closeButton.connect('clicked', () => {
+ this.popdown();
+ });
+
+ this._entryBox.add_child(this._closeButton);
+ },
+
+ popup() {
+ if (this._isOpen)
+ return;
+
+ this._isOpen = this._grabHelper.grab({
+ actor: this,
+ focus: this._editButton,
+ onUngrab: () => this.popdown(),
+ });
+
+ if (!this._isOpen)
+ return;
+
+ this.get_parent().set_child_above_sibling(this, null);
+
+ // _zoomAndFadeIn() is called from the dialog's allocate()
+ this._needsZoomAndFade = true;
+
+ this.show();
+ // force update folder size
+ this._folderAreaBox = null;
+ this._updateFolderSize();
+
+ this.emit('open-state-changed', true);
+ },
+
+ _setupPopdownTimeout() {
+ if (this._popdownTimeoutId > 0)
+ return;
+
+ // This timeout is handled in the original code and removed in _onDestroy()
+ // All dialogs are destroyed on extension disable()
+ this._popdownTimeoutId =
+ GLib.timeout_add(GLib.PRIORITY_DEFAULT, 500, () => {
+ this._popdownTimeoutId = 0;
+ // Following line fixes upstream bug
+ // https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6164
+ this._view._onDragEnd();
+ this.popdown();
+ return GLib.SOURCE_REMOVE;
+ });
+ },
+
+ vfunc_allocate(box) {
+ this._updateFolderSize();
+
+ // super.allocate(box)
+ St.Bin.prototype.vfunc_allocate.bind(this)(box);
+
+ // Override any attempt to resize the folder dialog, that happens when some child gets wild
+ // Re-allocate the child only if necessary, because it terminates grid animations
+ if (this._width && this._height && (this._width !== this.child.width || this._height !== this.child.height))
+ this._allocateChild();
+
+ // We can only start zooming after receiving an allocation
+ if (this._needsZoomAndFade)
+ this._zoomAndFadeIn();
+ },
+
+ _allocateChild() {
+ const childBox = new Clutter.ActorBox();
+ childBox.set_size(this._width, this._height);
+ this.child.allocate(childBox);
+ },
+
+ // Note that the appDisplay may be off-screen so its coordinates may be shifted
+ // However, for _updateFolderSize() it doesn't matter
+ // and when _zoomAndFadeIn() is called, appDisplay is on the right place
+ _getFolderAreaBox() {
+ const appDisplay = this._source._parentView;
+ const folderAreaBox = appDisplay.get_allocation_box().copy();
+ const searchEntryHeight = opt.SHOW_SEARCH_ENTRY ? Main.overview._overview.controls._searchEntryBin.height : 0;
+ folderAreaBox.y1 -= searchEntryHeight;
+
+ // _zoomAndFadeIn() needs an absolute position within a multi-monitor workspace
+ const monitorGeometry = global.display.get_monitor_geometry(global.display.get_primary_monitor());
+ folderAreaBox.x1 += monitorGeometry.x;
+ folderAreaBox.x2 += monitorGeometry.x;
+ folderAreaBox.y1 += monitorGeometry.y;
+ folderAreaBox.y2 += monitorGeometry.y;
+
+ return folderAreaBox;
+ },
+
+ _updateFolderSize() {
+ const view = this._view;
+ const nItems = view._orderedItems.length;
+ const [firstItem] = view._grid.layoutManager._container;
+ if (!firstItem)
+ return;
+
+ const { scaleFactor } = St.ThemeContext.get_for_stage(global.stage);
+ const margin = 18; // see stylesheet .app-folder-dialog-container;
+
+ const folderAreaBox = this._getFolderAreaBox();
+
+ const maxDialogWidth = folderAreaBox.get_width() / scaleFactor;
+ const maxDialogHeight = folderAreaBox.get_height() / scaleFactor;
+
+ // We can't build folder if the available space is not available
+ if (!isFinite(maxDialogWidth) || !isFinite(maxDialogHeight) || !maxDialogWidth || !maxDialogHeight)
+ return;
+
+ // We don't need to recalculate grid if nothing changed
+ if (
+ this._folderAreaBox?.get_width() === folderAreaBox.get_width() &&
+ this._folderAreaBox?.get_height() === folderAreaBox.get_height() &&
+ nItems === this._nItems
+ )
+ return;
+
+ const layoutManager = view._grid.layoutManager;
+ const spacing = opt.APP_GRID_FOLDER_SPACING;
+ const padding = 40;
+
+ const titleBoxHeight =
+ Math.round(this._entryBox.get_preferred_height(-1)[1] / scaleFactor); // ~75
+ const minDialogWidth = Math.max(640,
+ Math.round(this._entryBox.get_preferred_width(-1)[1] / scaleFactor + 2 * margin));
+ const navigationArrowsSize = // padding + one arrow width is sufficient for both arrows
+ Math.round(view._nextPageArrow.get_preferred_width(-1)[1] / scaleFactor);
+ const pageIndicatorSize =
+ Math.round(Math.min(...view._pageIndicators.get_size()) / scaleFactor);// ~28;
+ const horizontalNavigation = opt.ORIENTATION ? pageIndicatorSize : navigationArrowsSize; // either add padding or arrows
+ const verticalNavigation = opt.ORIENTATION ? navigationArrowsSize : pageIndicatorSize;
+
+ // Horizontal size
+ const baseWidth = horizontalNavigation + 3 * padding + 2 * margin;
+ const maxGridPageWidth = maxDialogWidth - baseWidth;
+ // Vertical size
+ const baseHeight = titleBoxHeight + verticalNavigation + 2 * padding + 2 * margin;
+ const maxGridPageHeight = maxDialogHeight - baseHeight;
+
+ // Will be updated to the actual value later
+ let itemPadding = 55;
+ const minItemSize = 48 + itemPadding;
+
+ let columns = opt.APP_GRID_FOLDER_COLUMNS;
+ let rows = opt.APP_GRID_FOLDER_ROWS;
+ const maxColumns = columns ? columns : 100;
+ const maxRows = rows ? rows : 100;
+
+ // Find best icon size
+ let iconSize = opt.APP_GRID_FOLDER_ICON_SIZE < 0 ? opt.APP_GRID_FOLDER_ICON_SIZE_DEFAULT : opt.APP_GRID_FOLDER_ICON_SIZE;
+ if (opt.APP_GRID_FOLDER_ICON_SIZE === -1) {
+ let maxIconSize;
+ if (columns) {
+ const maxItemWidth = (maxGridPageWidth - (columns - 1) * opt.APP_GRID_FOLDER_SPACING) / columns;
+ maxIconSize = maxItemWidth - itemPadding;
+ }
+ if (rows) {
+ const maxItemHeight = (maxGridPageHeight - (rows - 1) * spacing) / rows;
+ maxIconSize = Math.min(maxItemHeight - itemPadding, maxIconSize);
+ }
+
+ if (maxIconSize) {
+ // We only need sizes from the default to the smallest
+ let iconSizes = Object.values(IconSize).sort((a, b) => b - a);
+ iconSizes = iconSizes.slice(iconSizes.indexOf(iconSize));
+ for (const size of iconSizes) {
+ iconSize = size;
+ if (iconSize <= maxIconSize)
+ break;
+ }
+ }
+ }
+
+ if ((!columns && !rows) || opt.APP_GRID_FOLDER_ICON_SIZE !== -1) {
+ columns = Math.ceil(Math.sqrt(nItems));
+ rows = columns;
+ if (columns * (columns - 1) >= nItems) {
+ rows = columns - 1;
+ } else if ((columns + 1) * (columns - 1) >= nItems) {
+ rows = columns - 1;
+ columns += 1;
+ }
+ } else if (columns && !rows) {
+ rows = Math.ceil(nItems / columns);
+ } else if (rows && !columns) {
+ columns = Math.ceil(nItems / rows);
+ }
+
+ columns = Math.clamp(columns, 1, maxColumns);
+ columns = Math.min(nItems, columns);
+ rows = Math.clamp(rows, 1, maxRows);
+
+ let itemSize = iconSize + itemPadding;
+ // First run sets the grid before we can read the real icon size
+ // so we estimate the size from default properties
+ // and correct it in the second run
+ if (this.realized) {
+ firstItem.icon.setIconSize(iconSize);
+ // Item height is inconsistent because it depends on its label height
+ const [, firstItemWidth] = firstItem.get_preferred_width(-1);
+ const realSize = firstItemWidth / scaleFactor;
+ itemSize = realSize;
+ itemPadding = realSize - iconSize;
+ }
+
+ const gridWidth = columns * (itemSize + spacing);
+ let width = gridWidth + baseWidth;
+ const gridHeight = rows * (itemSize + spacing);
+ let height = gridHeight + baseHeight;
+
+ // Folder must fit the appDisplay area plus searchEntryBin if visible
+ // reduce columns/rows if needed
+ while (height > maxDialogHeight && rows > 1) {
+ height -= itemSize + spacing;
+ rows -= 1;
+ }
+
+ while (width > maxDialogWidth && columns > 1) {
+ width -= itemSize + spacing;
+ columns -= 1;
+ }
+
+ // Try to compensate for the previous reduction if there is a space
+ while ((nItems > columns * rows) && ((width + (itemSize + spacing)) <= maxDialogWidth) && (columns < maxColumns)) {
+ width += itemSize + spacing;
+ columns += 1;
+ }
+
+ // remove columns that cannot be displayed
+ if (((columns * minItemSize + (columns - 1) * spacing)) > maxDialogWidth)
+ columns = Math.floor(maxDialogWidth / (minItemSize + spacing));
+
+ while ((nItems > columns * rows) && ((height + (itemSize + spacing)) <= maxDialogHeight) && (rows < maxRows)) {
+ height += itemSize + spacing;
+ rows += 1;
+ }
+ // remove rows that cannot be displayed
+ if ((((rows * minItemSize + (rows - 1) * spacing))) > maxDialogHeight)
+ rows = Math.floor(maxDialogWidth / (minItemSize + spacing));
+
+ // remove size for rows that are empty
+ const rowsNeeded = Math.ceil(nItems / columns);
+ if (rows > rowsNeeded) {
+ height -= (rows - rowsNeeded) * (itemSize + spacing);
+ rows -= rows - rowsNeeded;
+ }
+
+ // Remove space reserved for page controls and indicator if not used
+ if (rows * columns >= nItems) {
+ width -= horizontalNavigation;
+ height -= verticalNavigation;
+ }
+
+ width = Math.clamp(width, minDialogWidth, maxDialogWidth);
+ height = Math.min(height, maxDialogHeight);
+
+ layoutManager.columns_per_page = columns;
+ layoutManager.rows_per_page = rows;
+
+ layoutManager.fixedIconSize = iconSize;
+
+
+ // Store data for further use
+ this._width = width * scaleFactor;
+ this._height = height * scaleFactor;
+ this._folderAreaBox = folderAreaBox;
+ this._nItems = nItems;
+
+ // Set fixed dialog size to prevent size instability
+ this.child.set_size(this._width, this._height);
+ this._viewBox.set_style(`width: ${this._width - 2 * margin}px; height: ${this._height - 2 * margin}px;`);
+ this._viewBox.set_size(this._width - 2 * margin, this._height - 2 * margin);
+
+ view._redisplay();
+ },
+
+ _zoomAndFadeIn() {
+ let [sourceX, sourceY] =
+ this._source.get_transformed_position();
+ let [dialogX, dialogY] =
+ this.child.get_transformed_position();
+
+ const sourceCenterX = sourceX + this._source.width / 2;
+ const sourceCenterY = sourceY + this._source.height / 2;
+
+ // this. covers the whole screen
+ let dialogTargetX = dialogX;
+ let dialogTargetY = dialogY;
+
+ const appDisplay = this._source._parentView;
+
+ const folderAreaBox = this._getFolderAreaBox();
+
+ let folderAreaX = folderAreaBox.x1;
+ let folderAreaY = folderAreaBox.y1;
+ const folderAreaWidth = folderAreaBox.get_width();
+ const folderAreaHeight = folderAreaBox.get_height();
+ const folder = this.child;
+
+ if (opt.APP_GRID_FOLDER_CENTER) {
+ dialogTargetX = folderAreaX + folderAreaWidth / 2 - folder.width / 2;
+ dialogTargetY = folderAreaY + (folderAreaHeight / 2 - folder.height / 2) / 2;
+ } else {
+ const { pagePadding } = appDisplay._grid.layoutManager;
+ const hPadding = (pagePadding.left + pagePadding.right) / 2;
+ const vPadding = (pagePadding.top + pagePadding.bottom) / 2;
+ const minX = Math.min(folderAreaX + hPadding, folderAreaX + (folderAreaWidth - folder.width) / 2);
+ const maxX = Math.max(folderAreaX + folderAreaWidth - hPadding - folder.width, folderAreaX + folderAreaWidth / 2 - folder.width / 2);
+ const minY = Math.min(folderAreaY + vPadding, folderAreaY + (folderAreaHeight - folder.height) / 2);
+ const maxY = Math.max(folderAreaY + folderAreaHeight - vPadding - folder.height, folderAreaY + folderAreaHeight / 2 - folder.height / 2);
+
+ dialogTargetX = sourceCenterX - folder.width / 2;
+ dialogTargetX = Math.clamp(dialogTargetX, minX, maxX);
+ dialogTargetY = sourceCenterY - folder.height / 2;
+ dialogTargetY = Math.clamp(dialogTargetY, minY, maxY);
+
+ // keep the dialog in the appDisplay area
+ dialogTargetX = Math.clamp(
+ dialogTargetX,
+ folderAreaX,
+ folderAreaX + folderAreaWidth - folder.width
+ );
+
+ dialogTargetY = Math.clamp(
+ dialogTargetY,
+ folderAreaY,
+ folderAreaY + folderAreaHeight - folder.height
+ );
+ }
+
+ const dialogOffsetX = Math.round(dialogTargetX - dialogX);
+ const dialogOffsetY = Math.round(dialogTargetY - dialogY);
+
+ this.child.set({
+ translation_x: sourceX - dialogX,
+ translation_y: sourceY - dialogY,
+ scale_x: this._source.width / this.child.width,
+ scale_y: this._source.height / this.child.height,
+ opacity: 0,
+ });
+
+ this.child.ease({
+ translation_x: dialogOffsetX,
+ translation_y: dialogOffsetY,
+ scale_x: 1,
+ scale_y: 1,
+ opacity: 255,
+ duration: FOLDER_DIALOG_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+
+ appDisplay.ease({
+ opacity: 0,
+ duration: FOLDER_DIALOG_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+
+ if (opt.SHOW_SEARCH_ENTRY) {
+ Main.overview.searchEntry.ease({
+ opacity: 0,
+ duration: FOLDER_DIALOG_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+ }
+
+ this._needsZoomAndFade = false;
+
+ if (this._sourceMappedId === 0) {
+ this._sourceMappedId = this._source.connect(
+ 'notify::mapped', this._zoomAndFadeOut.bind(this));
+ }
+ },
+
+ _zoomAndFadeOut() {
+ if (!this._isOpen)
+ return;
+
+ if (!this._source.mapped) {
+ this.hide();
+ return;
+ }
+
+ // if the dialog was shown silently, skip animation
+ if (this.scale_y < 1) {
+ this._needsZoomAndFade = false;
+ this.hide();
+ this._popdownCallbacks.forEach(func => func());
+ this._popdownCallbacks = [];
+ return;
+ }
+
+ let [sourceX, sourceY] =
+ this._source.get_transformed_position();
+ let [dialogX, dialogY] =
+ this.child.get_transformed_position();
+
+ this.child.ease({
+ translation_x: sourceX - dialogX + this.child.translation_x,
+ translation_y: sourceY - dialogY + this.child.translation_y,
+ scale_x: this._source.width / this.child.width,
+ scale_y: this._source.height / this.child.height,
+ opacity: 0,
+ duration: FOLDER_DIALOG_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_IN_QUAD,
+ onComplete: () => {
+ this.child.set({
+ translation_x: 0,
+ translation_y: 0,
+ scale_x: 1,
+ scale_y: 1,
+ opacity: 255,
+ });
+ this.hide();
+
+ this._popdownCallbacks.forEach(func => func());
+ this._popdownCallbacks = [];
+ },
+ });
+
+ const appDisplay = this._source._parentView;
+ appDisplay.ease({
+ opacity: 255,
+ duration: FOLDER_DIALOG_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_IN_QUAD,
+ });
+
+ if (opt.SHOW_SEARCH_ENTRY) {
+ Main.overview.searchEntry.ease({
+ opacity: 255,
+ duration: FOLDER_DIALOG_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_IN_QUAD,
+ });
+ }
+
+ this._needsZoomAndFade = false;
+ },
+
+ _setLighterBackground(lighter) {
+ let opacity = 255;
+ if (this._isOpen)
+ opacity = lighter ? 20 : 0;
+
+ _appDisplay.ease({
+ opacity,
+ duration: FOLDER_DIALOG_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+ },
+
+ vfunc_key_press_event(event) {
+ if (global.focus_manager.navigate_from_event(event))
+ return Clutter.EVENT_STOP;
+ return Clutter.EVENT_PROPAGATE;
+ },
+
+ _showFolderLabel() {
+ if (this._editButton.checked)
+ this._editButton.checked = false;
+
+ this._maybeUpdateFolderName();
+ this._switchActor(this._entry, this._folderNameLabel);
+ // This line has been added in 47 to fix focus after editing the folder name
+ this.navigate_focus(this, St.DirectionType.TAB_FORWARD, false);
+ },
+};
+
+const AppIcon = {
+ after__init() {
+ // update the app label behavior
+ this._updateMultiline();
+ },
+
+ // avoid accepting by placeholder when dragging active preview
+ // and also by icon if usage sorting is used
+ _canAccept(source) {
+ if (source._sourceItem)
+ source = source._sourceItem;
+
+ // Folders in folder are not supported
+ if (!(_getViewFromIcon(this) instanceof AppDisplay.AppDisplay) || !this.opacity)
+ return false;
+
+ const view = /* AppDisplay.*/_getViewFromIcon(source);
+ return source !== this &&
+ (source instanceof this.constructor) &&
+ // Include drops from folders
+ // (view instanceof AppDisplay.AppDisplay &&
+ (view &&
+ !opt.APP_GRID_USAGE);
+ },
+};
+
+const AppViewItemCommon = {
+ _updateMultiline() {
+ const { label } = this.icon;
+ if (label)
+ label.opacity = 255;
+ if (!this._expandTitleOnHover || !this.icon.label)
+ return;
+
+ const { clutterText } = label;
+
+ const isHighlighted = this.has_key_focus() || this.hover || this._forcedHighlight;
+
+ if (opt.APP_GRID_NAMES_MODE === 2 && this._expandTitleOnHover) { // !_expandTitleOnHover indicates search result icon
+ label.opacity = isHighlighted || !this.app ? 255 : 0;
+ }
+ if (isHighlighted)
+ this.get_parent()?.set_child_above_sibling(this, null);
+
+ if (!opt.APP_GRID_NAMES_MODE) {
+ const layout = clutterText.get_layout();
+ if (!layout.is_wrapped() && !layout.is_ellipsized())
+ return;
+ }
+
+ label.remove_transition('allocation');
+
+ const id = label.connect('notify::allocation', () => {
+ label.restore_easing_state();
+ label.disconnect(id);
+ });
+
+ const expand = opt.APP_GRID_NAMES_MODE === 1 || this._forcedHighlight || this.hover || this.has_key_focus();
+
+ label.save_easing_state();
+ label.set_easing_duration(expand
+ ? APP_ICON_TITLE_EXPAND_TIME
+ : APP_ICON_TITLE_COLLAPSE_TIME);
+ clutterText.set({
+ line_wrap: expand,
+ line_wrap_mode: expand ? Pango.WrapMode.WORD_CHAR : Pango.WrapMode.NONE,
+ ellipsize: expand ? Pango.EllipsizeMode.NONE : Pango.EllipsizeMode.END,
+ });
+ },
+
+ // support active preview icons
+ acceptDrop(source, _actor, x) {
+ if (opt.APP_GRID_USAGE)
+ return DND.DragMotionResult.NO_DROP;
+
+ this._setHoveringByDnd(false);
+
+ if (!this._canAccept(source))
+ return false;
+
+ if (this._withinLeeways(x))
+ return false;
+
+ // added - remove app from the source folder after dnd to other folder
+ let view = /* AppDisplay.*/_getViewFromIcon(source);
+ if (view instanceof AppDisplay.FolderView)
+ view.removeApp(source.app);
+
+ return true;
+ },
+
+};
+
+const PageIndicatorsCommon = {
+ after_setNPages() {
+ this.visible = true;
+ this.opacity = this._nPages > 1 ? 255 : 0;
+ },
+};
diff --git a/extensions/47/vertical-workspaces/lib/appFavorites.js b/extensions/47/vertical-workspaces/lib/appFavorites.js
new file mode 100644
index 0000000..977e65a
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/appFavorites.js
@@ -0,0 +1,79 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * appFavorites.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ *
+ */
+
+'use strict';
+
+import * as AppFavorites from 'resource:///org/gnome/shell/ui/appFavorites.js';
+
+let Me;
+let opt;
+
+export const AppFavoritesModule = class {
+ constructor(me) {
+ Me = me;
+ opt = Me.opt;
+
+ this._firstActivation = true;
+ this.moduleEnabled = false;
+ this._overrides = null;
+ }
+
+ cleanGlobals() {
+ Me = null;
+ opt = null;
+ }
+
+ update(reset) {
+ this.moduleEnabled = opt.get('appFavoritesModule');
+
+ // if notifications are enabled no override is needed
+ reset = reset || !this.moduleEnabled || opt.SHOW_FAV_NOTIFICATION;
+
+ // don't touch original code if module disabled
+ if (reset && !this._firstActivation) {
+ this._disableModule();
+ } else if (!reset) {
+ this._firstActivation = false;
+ this._activateModule();
+ }
+ if (reset && this._firstActivation) {
+ this.moduleEnabled = false;
+ console.debug(' AppFavoritesModule - Keeping untouched');
+ }
+ }
+
+ _activateModule() {
+ if (!this._overrides)
+ this._overrides = new Me.Util.Overrides();
+
+ // use actual instance instead of prototype
+ this._overrides.addOverride('AppFavorites', AppFavorites.getAppFavorites(), AppFavoritesCommon);
+
+ console.debug(' AppFavoritesModule - Activated');
+ }
+
+ _disableModule() {
+ if (this._overrides)
+ this._overrides.removeAll();
+ this._overrides = null;
+
+ console.debug(' AppFavoritesModule - Deactivated');
+ }
+};
+
+const AppFavoritesCommon = {
+ addFavoriteAtPos(appId, pos) {
+ this._addFavorite(appId, pos);
+ },
+
+ removeFavorite(appId) {
+ this._removeFavorite(appId);
+ },
+};
diff --git a/extensions/47/vertical-workspaces/lib/dash.js b/extensions/47/vertical-workspaces/lib/dash.js
new file mode 100644
index 0000000..c7ebbff
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/dash.js
@@ -0,0 +1,1307 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * dash.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022-2024
+ * @license GPL-3.0
+ */
+
+'use strict';
+
+import Clutter from 'gi://Clutter';
+import GLib from 'gi://GLib';
+import Meta from 'gi://Meta';
+import Shell from 'gi://Shell';
+import St from 'gi://St';
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+import * as Dash from 'resource:///org/gnome/shell/ui/dash.js';
+import * as AppDisplay from 'resource:///org/gnome/shell/ui/appDisplay.js';
+import * as AppFavorites from 'resource:///org/gnome/shell/ui/appFavorites.js';
+import * as AppMenu from 'resource:///org/gnome/shell/ui/appMenu.js';
+import * as BoxPointer from 'resource:///org/gnome/shell/ui/boxpointer.js';
+import * as DND from 'resource:///org/gnome/shell/ui/dnd.js';
+import * as PopupMenu from 'resource:///org/gnome/shell/ui/popupMenu.js';
+
+let Me;
+let opt;
+// gettext
+let _;
+
+let _moduleEnabled;
+let _timeouts;
+
+// added values to achieve a better ability to scale down according to available space
+export const BaseIconSizes = [16, 24, 32, 40, 44, 48, 56, 64, 72, 80, 96, 112, 128];
+
+const DASH_ITEM_LABEL_SHOW_TIME = 150;
+
+const shellVersion46 = !Clutter.Container; // Container has been removed in 46
+
+export const DashModule = class {
+ constructor(me) {
+ Me = me;
+ opt = Me.opt;
+ _ = Me.gettext;
+
+ this._firstActivation = true;
+ this.moduleEnabled = false;
+ this._overrides = null;
+ this._horizontalWorkId = null;
+ this._verticalWorkId = null;
+ this._showAppsIconBtnPressId = 0;
+ }
+
+ cleanGlobals() {
+ Me = null;
+ opt = null;
+ _ = null;
+ }
+
+ update(reset) {
+ this._removeTimeouts();
+
+ this.moduleEnabled = opt.get('dashModule');
+ const conflict = !!(Me.Util.getEnabledExtensions('dash-to-dock').length ||
+ Me.Util.getEnabledExtensions('dash2dock').length ||
+ Me.Util.getEnabledExtensions('ubuntu-dock').length ||
+ Me.Util.getEnabledExtensions('dash-to-panel').length);
+
+ if (conflict && !reset)
+ console.warn(`[${Me.metadata.name}] Warning: "Dash" module disabled due to potential conflict with another extension`);
+
+ reset = reset || !this.moduleEnabled || conflict;
+ this._conflict = conflict;
+
+ // don't touch the original code if module disabled
+ if (reset && !this._firstActivation) {
+ this._disableModule();
+ } else if (!reset) {
+ this._firstActivation = false;
+ this._activateModule();
+ }
+ if (reset && this._firstActivation)
+ console.debug(' DashModule - Keeping untouched');
+ }
+
+ updateStyle(dash) {
+ if (opt.DASH_BG_LIGHT)
+ dash._background.add_style_class_name('dash-background-light');
+ else
+ dash._background.remove_style_class_name('dash-background-light');
+
+ dash._background.opacity = opt.DASH_BG_OPACITY;
+ let radius = opt.DASH_BG_RADIUS;
+ if (radius) {
+ let style;
+ switch (opt.DASH_POSITION) {
+ case 1:
+ style = opt.DASH_BG_GS3_STYLE ? `border-radius: ${radius}px 0 0 ${radius}px;` : `border-radius: ${radius}px;`;
+ break;
+ case 3:
+ style = opt.DASH_BG_GS3_STYLE ? `border-radius: 0 ${radius}px ${radius}px 0;` : `border-radius: ${radius}px;`;
+ break;
+ default:
+ style = `border-radius: ${radius}px;`;
+ }
+ dash._background.set_style(style);
+ } else {
+ dash._background.set_style('');
+ }
+ }
+
+ _activateModule() {
+ _moduleEnabled = true;
+ _timeouts = {};
+ const dash = Main.overview._overview._controls.layoutManager._dash;
+
+ if (!this._originalWorkId)
+ this._originalWorkId = dash._workId;
+
+ if (!this._overrides)
+ this._overrides = new Me.Util.Overrides();
+
+ this._resetStyle(dash);
+ this.updateStyle(dash);
+
+ this._overrides.addOverride('DashItemContainer', Dash.DashItemContainer.prototype, DashItemContainerCommon);
+ this._overrides.addOverride('DashCommon', Dash.Dash.prototype, DashCommon);
+ this._overrides.addOverride('AppIcon', AppDisplay.AppIcon.prototype, AppIconCommon);
+ this._overrides.addOverride('DashIcon', Dash.DashIcon.prototype, DashIconCommon);
+ this._overrides.addOverride('AppMenu', AppMenu.AppMenu.prototype, AppMenuCommon);
+
+ if (shellVersion46)
+ dash.add_style_class_name('dash-46');
+
+ if (opt.DASH_VERTICAL) {
+ // this._overrides.addOverride('Dash', Dash.Dash.prototype, DashVerticalOverride);
+ dash.add_style_class_name(shellVersion46
+ ? 'vertical-46'
+ : 'vertical'
+ );
+
+ this._setOrientation(Clutter.Orientation.VERTICAL);
+ } else {
+ this._setOrientation(Clutter.Orientation.HORIZONTAL);
+ }
+
+ if (opt.DASH_VERTICAL && opt.DASH_BG_GS3_STYLE) {
+ if (opt.DASH_LEFT) {
+ dash.add_style_class_name(shellVersion46
+ ? 'vertical-46-gs3-left'
+ : 'vertical-gs3-left');
+ } else if (opt.DASH_RIGHT) {
+ dash.add_style_class_name(shellVersion46
+ ? 'vertical-46-gs3-right'
+ : 'vertical-gs3-right');
+ }
+ } else {
+ dash.remove_style_class_name('vertical-gs3-left');
+ dash.remove_style_class_name('vertical-gs3-right');
+ dash.remove_style_class_name('vertical-46-gs3-left');
+ dash.remove_style_class_name('vertical-46-gs3-right');
+ }
+
+ if (!this._customWorkId)
+ this._customWorkId = Main.initializeDeferredWork(dash._box, dash._redisplay.bind(dash));
+ dash._workId = this._customWorkId;
+
+ this._moveDashAppGridIcon();
+ this._connectShowAppsIcon();
+
+ dash.visible = opt.DASH_VISIBLE;
+ // dash._background.add_style_class_name('dash-background-reduced');
+ dash._queueRedisplay();
+
+ if (opt.DASH_ISOLATE_WS && !this._wmSwitchWsConId) {
+ this._wmSwitchWsConId = global.windowManager.connect('switch-workspace', () => dash._queueRedisplay());
+ this._newWindowConId = global.display.connect_after('window-created', () => dash._queueRedisplay());
+ }
+
+ console.debug(' DashModule - Activated');
+ }
+
+ _disableModule() {
+ const dash = Main.overview._overview._controls.layoutManager._dash;
+
+ if (this._overrides)
+ this._overrides.removeAll();
+ this._overrides = null;
+
+ dash._workId = this._originalWorkId;
+
+ if (this._wmSwitchWsConId) {
+ global.windowManager.disconnect(this._wmSwitchWsConId);
+ this._wmSwitchWsConId = 0;
+ }
+ if (this._newWindowConId) {
+ global.windowManager.disconnect(this._newWindowConId);
+ this._newWindowConId = 0;
+ }
+
+ const reset = true;
+ this._setOrientation(Clutter.Orientation.HORIZONTAL);
+ this._moveDashAppGridIcon(reset);
+ this._connectShowAppsIcon(reset);
+
+ this._resetStyle(dash);
+ dash.visible = !this._conflict;
+ dash._background.opacity = 255;
+
+ _moduleEnabled = false;
+ console.debug(' DashModule - Disabled');
+ }
+
+ _resetStyle(dash) {
+ dash.remove_style_class_name('dash-46');
+ dash.remove_style_class_name('vertical');
+ dash.remove_style_class_name('vertical-46');
+ dash.remove_style_class_name('vertical-gs3-left');
+ dash.remove_style_class_name('vertical-gs3-right');
+ dash.remove_style_class_name('vertical-46-gs3-left');
+ dash.remove_style_class_name('vertical-46-gs3-right');
+ dash.remove_style_class_name('vertical-left');
+ dash.remove_style_class_name('vertical-right');
+ dash._background.remove_style_class_name('dash-background-light');
+ dash._background.remove_style_class_name('dash-background-reduced');
+ dash._background.set_style('');
+ }
+
+ _removeTimeouts() {
+ if (_timeouts) {
+ Object.values(_timeouts).forEach(t => {
+ if (t)
+ GLib.source_remove(t);
+ });
+ _timeouts = null;
+ }
+ }
+
+ _setOrientation(orientation, dash) {
+ dash = dash ?? Main.overview._overview._controls.layoutManager._dash;
+
+ dash._box.layout_manager.orientation = orientation;
+ dash._dashContainer.layout_manager.orientation = orientation;
+ dash._dashContainer.y_expand = !orientation;
+ dash._dashContainer.x_expand = !!orientation;
+ dash.x_align = orientation ? Clutter.ActorAlign.START : Clutter.ActorAlign.CENTER;
+ dash.y_align = orientation ? Clutter.ActorAlign.CENTER : Clutter.ActorAlign.FILL;
+
+ let sizerBox = dash._background.get_children()[0];
+ sizerBox.clear_constraints();
+ sizerBox.add_constraint(new Clutter.BindConstraint({
+ source: dash._showAppsIcon.icon,
+ coordinate: orientation ? Clutter.BindCoordinate.WIDTH : Clutter.BindCoordinate.HEIGHT,
+ }));
+ sizerBox.add_constraint(new Clutter.BindConstraint({
+ source: dash._dashContainer,
+ coordinate: orientation ? Clutter.BindCoordinate.HEIGHT : Clutter.BindCoordinate.WIDTH,
+ }));
+ dash._box.remove_all_children();
+ dash._separator = null;
+ dash._queueRedisplay();
+ dash._adjustIconSize();
+ }
+
+ _moveDashAppGridIcon(reset = false) {
+ // move dash app grid icon to the front
+ const dash = Main.overview._overview._controls.layoutManager._dash;
+
+ const appIconPosition = opt.get('showAppsIconPosition');
+ dash._showAppsIcon.remove_style_class_name('show-apps-icon-vertical-hide');
+ dash._showAppsIcon.remove_style_class_name('show-apps-icon-horizontal-hide');
+ dash._showAppsIcon.opacity = 255;
+ if (!reset && appIconPosition === 0) // 0 - start
+ dash._dashContainer.set_child_at_index(dash._showAppsIcon, 0);
+ if (reset || appIconPosition === 1) { // 1 - end
+ const index = dash._dashContainer.get_children().length - 1;
+ dash._dashContainer.set_child_at_index(dash._showAppsIcon, index);
+ }
+ if (!reset && appIconPosition === 2) { // 2 - hide
+ const style = opt.DASH_VERTICAL ? 'show-apps-icon-vertical-hide' : 'show-apps-icon-horizontal-hide';
+ dash._showAppsIcon.add_style_class_name(style);
+ // for some reason even if the icon height in vertical mode should be set to 0 by the style, it stays visible in full size returning height 1px
+ dash._showAppsIcon.opacity = 0;
+ }
+ }
+
+ _connectShowAppsIcon(reset = false, dash) {
+ dash = dash ?? Main.overview._overview._controls.layoutManager._dash;
+ if (!reset) {
+ if (this._showAppsIconBtnPressId || Me.Util.dashIsDashToDock()) {
+ // button is already connected || dash is Dash to Dock
+ return;
+ }
+ dash._showAppsIcon.reactive = true;
+ this._showAppsIconBtnPressId = dash._showAppsIcon.connect('button-press-event', (actor, event) => {
+ const button = event.get_button();
+ if (button === Clutter.BUTTON_MIDDLE)
+ Me.Util.openPreferences();
+ else if (button === Clutter.BUTTON_SECONDARY)
+ Me.Util.activateSearchProvider(Me.WSP_PREFIX);
+ else
+ return Clutter.EVENT_PROPAGATE;
+ return Clutter.EVENT_STOP;
+ });
+ } else if (this._showAppsIconBtnPressId) {
+ dash._showAppsIcon.disconnect(this._showAppsIconBtnPressId);
+ this._showAppsIconBtnPressId = 0;
+ dash._showAppsIcon.reactive = false;
+ }
+ }
+};
+
+function getAppFromSource(source) {
+ if (source instanceof AppDisplay.AppIcon)
+ return source.app;
+ else
+ return null;
+}
+
+const DashItemContainerCommon = {
+ // move labels according dash position
+ showLabel() {
+ if (!this._labelText)
+ return;
+
+ const windows = this.child.app?.get_windows();
+ const recentWindowTitle = windows && windows.length ? windows[0].get_title() : '';
+ const windowCount = this.child.app?.get_windows().length;
+ let labelSuffix = '';
+ if (windowCount > 1)
+ labelSuffix = ` (${windowCount})`;
+ if (recentWindowTitle && recentWindowTitle !== this._labelText)
+ labelSuffix += `\n ${recentWindowTitle}`;
+
+ this.label.set_text(this._labelText + labelSuffix);
+
+ this.label.opacity = 0;
+ this.label.show();
+
+ let [stageX, stageY] = this.get_transformed_position();
+
+ const itemWidth = this.allocation.get_width();
+ const itemHeight = this.allocation.get_height();
+
+ const labelWidth = this.label.get_width();
+ const labelHeight = this.label.get_height();
+ let xOffset = Math.floor((itemWidth - labelWidth) / 2);
+ let x = Math.clamp(stageX + xOffset, 0, global.stage.width - labelWidth);
+ const primaryMonitor = global.display.get_monitor_geometry(global.display.get_primary_monitor());
+ x = Math.clamp(x, primaryMonitor.x, primaryMonitor.x + primaryMonitor.width - labelWidth);
+
+ let node = this.label.get_theme_node();
+ let y;
+
+ if (opt.DASH_TOP) {
+ const yOffset = itemHeight + (shellVersion46 ? 0 : -3);
+ y = stageY + yOffset;
+ } else if (opt.DASH_BOTTOM) {
+ const yOffset = node.get_length('-y-offset');
+ y = stageY - this.label.height - yOffset;
+ } else if (opt.DASH_RIGHT) {
+ const yOffset = Math.floor((itemHeight - labelHeight) / 2);
+ xOffset = shellVersion46 ? 8 : 4;
+
+ x = stageX - xOffset - this.label.width;
+ y = Math.clamp(stageY + yOffset, 0, global.stage.height - labelHeight);
+ } else if (opt.DASH_LEFT) {
+ const yOffset = Math.floor((itemHeight - labelHeight) / 2);
+ xOffset = shellVersion46 ? 8 : 4;
+
+ x = stageX + this.width + xOffset;
+ y = Math.clamp(stageY + yOffset, 0, global.stage.height - labelHeight);
+ }
+
+ this.label.set_position(x, y);
+ this.label.ease({
+ opacity: 255,
+ duration: DASH_ITEM_LABEL_SHOW_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+
+ this.label.set_position(x, y);
+ this.label.ease({
+ opacity: 255,
+ duration: DASH_ITEM_LABEL_SHOW_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+ },
+};
+
+const DashCommon = {
+ _redisplay() {
+ // After disabling V-Shell queueRedisplay() may call this function
+ // In that case redirect the call to the current _redisplay()
+ if (!_moduleEnabled) {
+ this._redisplay();
+ return;
+ }
+
+ let favorites = AppFavorites.getAppFavorites().getFavoriteMap();
+
+ let running = this._appSystem.get_running();
+
+ if (opt.DASH_ISOLATE_WS) {
+ const currentWs = global.workspace_manager.get_active_workspace();
+ running = running.filter(app => {
+ return app.get_windows().filter(w => w.get_workspace() === currentWs).length;
+ });
+ this._box.get_children().forEach(a => a.child?._updateRunningStyle());
+ }
+
+ let children = this._box.get_children().filter(actor => {
+ return actor.child &&
+ actor.child._delegate &&
+ actor.child._delegate.app;
+ });
+ // Apps currently in the dash
+ let oldApps = children.map(actor => actor.child._delegate.app);
+ // Apps supposed to be in the dash
+ let newApps = [];
+
+ for (let id in favorites)
+ newApps.push(favorites[id]);
+
+ for (let i = 0; i < running.length; i++) {
+ let app = running[i];
+ if (app.get_id() in favorites)
+ continue;
+ newApps.push(app);
+ }
+
+ // Figure out the actual changes to the list of items; we iterate
+ // over both the list of items currently in the dash and the list
+ // of items expected there, and collect additions and removals.
+ // Moves are both an addition and a removal, where the order of
+ // the operations depends on whether we encounter the position
+ // where the item has been added first or the one from where it
+ // was removed.
+ // There is an assumption that only one item is moved at a given
+ // time; when moving several items at once, everything will still
+ // end up at the right position, but there might be additional
+ // additions/removals (e.g. it might remove all the launchers
+ // and add them back in the new order even if a smaller set of
+ // additions and removals is possible).
+ // If above assumptions turns out to be a problem, we might need
+ // to use a more sophisticated algorithm, e.g. Longest Common
+ // Subsequence as used by diff.
+ let addedItems = [];
+ let removedActors = [];
+
+ let newIndex = 0;
+ let oldIndex = 0;
+ while (newIndex < newApps.length || oldIndex < oldApps.length) {
+ let oldApp = oldApps.length > oldIndex ? oldApps[oldIndex] : null;
+ let newApp = newApps.length > newIndex ? newApps[newIndex] : null;
+
+ // No change at oldIndex/newIndex
+ if (oldApp === newApp) {
+ oldIndex++;
+ newIndex++;
+ continue;
+ }
+
+ // App removed at oldIndex
+ if (oldApp && !newApps.includes(oldApp)) {
+ removedActors.push(children[oldIndex]);
+ oldIndex++;
+ continue;
+ }
+
+ // App added at newIndex
+ if (newApp && !oldApps.includes(newApp)) {
+ addedItems.push({
+ app: newApp,
+ item: this._createAppItem(newApp),
+ pos: newIndex,
+ });
+ newIndex++;
+ continue;
+ }
+
+ // App moved
+ let nextApp = newApps.length > newIndex + 1
+ ? newApps[newIndex + 1] : null;
+ let insertHere = nextApp && nextApp === oldApp;
+ let alreadyRemoved = removedActors.reduce((result, actor) => {
+ let removedApp = actor.child._delegate.app;
+ return result || removedApp === newApp;
+ }, false);
+
+ if (insertHere || alreadyRemoved) {
+ let newItem = this._createAppItem(newApp);
+ addedItems.push({
+ app: newApp,
+ item: newItem,
+ pos: newIndex + removedActors.length,
+ });
+ newIndex++;
+ } else {
+ removedActors.push(children[oldIndex]);
+ oldIndex++;
+ }
+ }
+
+ for (let i = 0; i < addedItems.length; i++) {
+ this._box.insert_child_at_index(
+ addedItems[i].item,
+ addedItems[i].pos);
+ }
+
+ for (let i = 0; i < removedActors.length; i++) {
+ let item = removedActors[i];
+
+ // Don't animate item removal when the overview is transitioning
+ // or hidden
+ if (Main.overview.visible && !Main.overview.animationInProgress)
+ item.animateOutAndDestroy();
+ else
+ item.destroy();
+ }
+
+ this._adjustIconSize();
+
+ // Skip animations on first run when adding the initial set
+ // of items, to avoid all items zooming in at once
+
+ let animate = this._shownInitially && Main.overview.visible &&
+ !Main.overview.animationInProgress;
+
+ if (!this._shownInitially)
+ this._shownInitially = true;
+
+ for (let i = 0; i < addedItems.length; i++)
+ addedItems[i].item.show(animate);
+
+ // Update separator
+ const nFavorites = Object.keys(favorites).length;
+ const nIcons = children.length + addedItems.length - removedActors.length;
+ if (nFavorites > 0 && nFavorites < nIcons) {
+ // destroy the horizontal separator if it exists.
+ // this is incredibly janky, but I can't think of a better way atm.
+ if (this._separator && this._separator.height !== 1) {
+ this._separator.destroy();
+ this._separator = null;
+ }
+
+ if (!this._separator) {
+ this._separator = new St.Widget({
+ style_class: 'dash-separator',
+ x_align: Clutter.ActorAlign.CENTER,
+ y_align: Clutter.ActorAlign.CENTER,
+ width: opt.DASH_VERTICAL ? this.iconSize : 1,
+ height: opt.DASH_VERTICAL ? 1 : this.iconSize,
+ });
+ this._box.add_child(this._separator);
+ }
+
+ // FIXME: separator placement is broken (also in original dash)
+ let pos = nFavorites + this._animatingPlaceholdersCount;
+ if (this._dragPlaceholder)
+ pos++;
+ this._box.set_child_at_index(this._separator, pos);
+ } else if (this._separator) {
+ this._separator.destroy();
+ this._separator = null;
+ }
+ // Workaround for https://bugzilla.gnome.org/show_bug.cgi?id=692744
+ // Without it, StBoxLayout may use a stale size cache
+ this._box.queue_relayout();
+ },
+
+ _createAppItem(app) {
+ let appIcon = new Dash.DashIcon(app);
+
+ let indicator = appIcon._dot;
+ if (opt.DASH_VERTICAL) {
+ indicator.x_align = opt.DASH_LEFT ? Clutter.ActorAlign.START : Clutter.ActorAlign.END;
+ indicator.y_align = Clutter.ActorAlign.CENTER;
+ } else {
+ indicator.x_align = Clutter.ActorAlign.CENTER;
+ indicator.y_align = Clutter.ActorAlign.END;
+ }
+
+ appIcon.connect('menu-state-changed',
+ (o, opened) => {
+ this._itemMenuStateChanged(item, opened);
+ });
+
+ let item = new Dash.DashItemContainer();
+ item.setChild(appIcon);
+
+ // Override default AppIcon label_actor, now the
+ // accessible_name is set at DashItemContainer.setLabelText
+ appIcon.label_actor = null;
+ item.setLabelText(app.get_name());
+
+ appIcon.icon.setIconSize(this.iconSize);
+ this._hookUpLabel(item, appIcon);
+
+ return item;
+ },
+
+ // use custom BaseIconSizes and add support for custom icons
+ _adjustIconSize() {
+ // if a user launches multiple apps at once, this function may be called again before the previous call has finished
+ // as a result, new icons will not reach their full size, or will be missing, if adding a new icon and changing the dash size due to lack of space at the same time
+ if (this._adjustingInProgress)
+ return;
+
+ // For the icon size, we only consider children which are "proper"
+ // icons (i.e. ignoring drag placeholders) and which are not
+ // animating out (which means they will be destroyed at the end of
+ // the animation)
+ let iconChildren = this._box.get_children().filter(actor => {
+ return actor.child &&
+ actor.child._delegate &&
+ actor.child._delegate.icon &&
+ !actor.animatingOut;
+ });
+
+ // add new custom icons to the list
+ if (this._showAppsIcon.visible)
+ iconChildren.push(this._showAppsIcon);
+
+
+ // showWindowsIcon and extensionsIcon can be provided by the WSP and ESP extensions
+ if (this._showWindowsIcon)
+ iconChildren.push(this._showWindowsIcon);
+
+ if (this._extensionsIcon)
+ iconChildren.push(this._extensionsIcon);
+
+
+ if (!iconChildren.length)
+ return;
+
+ if (this._maxWidth === -1 || this._maxHeight === -1)
+ return;
+
+ const dashHorizontal = !opt.DASH_VERTICAL;
+
+ const themeNode = this.get_theme_node();
+ const maxAllocation = new Clutter.ActorBox({
+ x1: 0,
+ y1: 0,
+ x2: dashHorizontal ? this._maxWidth : 42, // not whatever
+ y2: dashHorizontal ? 42 : this._maxHeight,
+ });
+
+ let maxContent = themeNode.get_content_box(maxAllocation);
+
+ let spacing = themeNode.get_length('spacing');
+
+ let firstButton = iconChildren[0].child;
+ let firstIcon = firstButton._delegate.icon;
+
+ if (!firstIcon.icon)
+ return;
+
+ // Enforce valid spacings during the size request
+ firstIcon.icon.ensure_style();
+ const [, , iconWidth, iconHeight] = firstIcon.icon.get_preferred_size();
+ const [, , buttonWidth, buttonHeight] = firstButton.get_preferred_size();
+ let scaleFactor = St.ThemeContext.get_for_stage(global.stage).scale_factor;
+
+ let maxIconSize = opt.MAX_ICON_SIZE;
+ if (!maxIconSize) {
+ maxIconSize = Me.Util.monitorHasLowResolution()
+ ? 48
+ : 64;
+ }
+
+ let availWidth, availHeight;
+ if (dashHorizontal) {
+ availWidth = maxContent.x2 - maxContent.x1;
+ // Subtract icon padding and box spacing from the available width
+ availWidth -= iconChildren.length * (buttonWidth - iconWidth) +
+ (iconChildren.length - 1) * spacing +
+ 2 * this._background.get_theme_node().get_horizontal_padding();
+
+ availHeight = this._maxHeight;
+ availHeight -= this.margin_top + this.margin_bottom;
+ availHeight -= this._background.get_theme_node().get_vertical_padding();
+ availHeight -= themeNode.get_vertical_padding();
+ availHeight -= buttonHeight - iconHeight;
+
+ maxIconSize = Math.min(availWidth / iconChildren.length, availHeight, maxIconSize * scaleFactor);
+ } else {
+ availWidth = this._maxWidth;
+ availWidth -= this._background.get_theme_node().get_horizontal_padding();
+ availWidth -= themeNode.get_horizontal_padding();
+ availWidth -= buttonWidth - iconWidth;
+
+ availHeight = maxContent.y2 - maxContent.y1;
+ availHeight -= iconChildren.length * (buttonHeight - iconHeight) +
+ (iconChildren.length - 1) * spacing +
+ 2 * this._background.get_theme_node().get_vertical_padding();
+
+ maxIconSize = Math.min(availWidth, availHeight / iconChildren.length, maxIconSize * scaleFactor);
+ }
+
+ let iconSizes = BaseIconSizes.map(s => s * scaleFactor);
+
+ let newIconSize = BaseIconSizes[0];
+ for (let i = 0; i < iconSizes.length; i++) {
+ if (iconSizes[i] <= maxIconSize)
+ newIconSize = BaseIconSizes[i];
+ }
+
+ if (newIconSize === this.iconSize)
+ return;
+
+ // set the in-progress state here after all the possible cancels
+ this._adjustingInProgress = true;
+
+ let oldIconSize = this.iconSize;
+ this.iconSize = newIconSize;
+ this.emit('icon-size-changed');
+
+ let scale = oldIconSize / newIconSize;
+ for (let i = 0; i < iconChildren.length; i++) {
+ let icon = iconChildren[i].child._delegate.icon;
+
+ // Set the new size immediately, to keep the icons' sizes
+ // in sync with this.iconSize
+ icon.setIconSize(this.iconSize);
+
+ // Don't animate the icon size change when the overview
+ // is transitioning, not visible or when initially filling
+ // the dash
+ if (!Main.overview.visible || Main.overview.animationInProgress ||
+ !this._shownInitially)
+ continue;
+
+ let [targetWidth, targetHeight] = icon.icon.get_size();
+
+ // Scale the icon's texture to the previous size and
+ // tween to the new size
+ icon.icon.set_size(icon.icon.width * scale,
+ icon.icon.height * scale);
+
+ icon.icon.ease({
+ width: targetWidth,
+ height: targetHeight,
+ duration: Dash.DASH_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+ }
+
+ if (this._separator) {
+ this._separator.ease({
+ width: dashHorizontal ? 1 : this.iconSize,
+ height: dashHorizontal ? this.iconSize : 1,
+ duration: Dash.DASH_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+ }
+
+ this._adjustingInProgress = false;
+ },
+
+ handleDragOver(source, actor, x, y, _time) {
+ let app = getAppFromSource(source);
+
+ // Don't allow favoriting of transient apps
+ if (app === null || app.is_window_backed())
+ return DND.DragMotionResult.NO_DROP;
+ if (!global.settings.is_writable('favorite-apps'))
+ return DND.DragMotionResult.NO_DROP;
+ let favorites = AppFavorites.getAppFavorites().getFavorites();
+ let numFavorites = favorites.length;
+
+ let favPos = favorites.indexOf(app);
+
+ let children = this._box.get_children();
+ let numChildren = children.length;
+ let boxSize = opt.DASH_VERTICAL ? this._box.height : this._box.width;
+
+ // Keep the placeholder out of the index calculation; assuming that
+ // the remove target has the same size as "normal" items, we don't
+ // need to do the same adjustment there.
+ if (this._dragPlaceholder) {
+ boxSize -= opt.DASH_VERTICAL ? this._dragPlaceholder.height : this._dragPlaceholder.width;
+ numChildren--;
+ }
+
+ // Same with the separator
+ if (this._separator) {
+ boxSize -= opt.DASH_VERTICAL ? this._separator.height : this._separator.width;
+ numChildren--;
+ }
+
+ let pos;
+ if (this._emptyDropTarget)
+ pos = 0; // always insert at the start when dash is empty
+ else if (this.text_direction === Clutter.TextDirection.RTL)
+ pos = numChildren - Math.floor((opt.DASH_VERTICAL ? y : x) * numChildren / boxSize);
+ else
+ pos = Math.floor((opt.DASH_VERTICAL ? y : x) * numChildren / boxSize);
+
+ // Put the placeholder after the last favorite if we are not
+ // in the favorites zone
+ if (pos > numFavorites)
+ pos = numFavorites;
+
+ if (pos !== this._dragPlaceholderPos && this._animatingPlaceholdersCount === 0) {
+ this._dragPlaceholderPos = pos;
+
+ // Don't allow positioning before or after self
+ if (favPos !== -1 && (pos === favPos || pos === favPos + 1)) {
+ this._clearDragPlaceholder();
+ return DND.DragMotionResult.CONTINUE;
+ }
+
+ // If the placeholder already exists, we just move
+ // it, but if we are adding it, expand its size in
+ // an animation
+ let fadeIn;
+ if (this._dragPlaceholder) {
+ this._dragPlaceholder.destroy();
+ fadeIn = false;
+ } else {
+ fadeIn = true;
+ }
+
+ // this._dragPlaceholder = new Dash.DragPlaceholderItem(); // not exported in 45
+ this._dragPlaceholder = new Dash.DashItemContainer();
+ this._dragPlaceholder.setChild(new St.Bin({ style_class: 'placeholder' }));
+ this._dragPlaceholder.child.set_width(this.iconSize / (opt.DASH_VERTICAL ? 2 : 1));
+ this._dragPlaceholder.child.set_height(this.iconSize / (opt.DASH_VERTICAL ? 1 : 2));
+ this._box.insert_child_at_index(
+ this._dragPlaceholder,
+ this._dragPlaceholderPos);
+ this._dragPlaceholder.show(fadeIn);
+ }
+
+ if (!this._dragPlaceholder)
+ return DND.DragMotionResult.NO_DROP;
+
+ let srcIsFavorite = favPos !== -1;
+
+ if (srcIsFavorite)
+ return DND.DragMotionResult.MOVE_DROP;
+
+ return DND.DragMotionResult.COPY_DROP;
+ },
+};
+
+const AppIconCommon = {
+ after__init() {
+ if (this._updateRunningDotStyle)
+ this._updateRunningDotStyle();
+ },
+
+ _updateRunningDotStyle() {
+ if (opt.RUNNING_DOT_STYLE)
+ this._dot.add_style_class_name('app-grid-running-dot-custom');
+ else
+ this._dot.remove_style_class_name('app-grid-running-dot-custom');
+ },
+
+ activate(button) {
+ const event = Clutter.get_current_event();
+ const state = event ? event.get_state() : 0;
+ const isMiddleButton = button && button === Clutter.BUTTON_MIDDLE;
+ const isCtrlPressed = Me.Util.isCtrlPressed(state);
+ const isShiftPressed = Me.Util.isShiftPressed(state);
+
+ const currentWS = global.workspace_manager.get_active_workspace();
+ const appRecentWorkspace = this._getAppRecentWorkspace(this.app);
+ // this feature shouldn't affect search results, dash icons don't have labels, so we use them as a condition
+ const showWidowsBeforeActivation = opt.DASH_CLICK_ACTION === 1 && !this.icon.label;
+
+ let targetWindowOnCurrentWs = false;
+ if (opt.DASH_FOLLOW_RECENT_WIN) {
+ targetWindowOnCurrentWs = appRecentWorkspace === currentWS;
+ } else {
+ this.app.get_windows().forEach(
+ w => {
+ targetWindowOnCurrentWs = targetWindowOnCurrentWs || (w.get_workspace() === currentWS);
+ }
+ );
+ }
+
+ const openNewWindow = this.app.can_open_new_window() &&
+ this.app.state === Shell.AppState.RUNNING &&
+ (((isCtrlPressed || isMiddleButton) && !opt.DASH_CLICK_OPEN_NEW_WIN) ||
+ (opt.DASH_CLICK_OPEN_NEW_WIN && !this._selectedMetaWin && !isMiddleButton) ||
+ ((opt.DASH_CLICK_PREFER_WORKSPACE || opt.DASH_ISOLATE_WS) && !targetWindowOnCurrentWs));
+
+ if ((this.app.state === Shell.AppState.STOPPED || openNewWindow) && !isShiftPressed)
+ this.animateLaunch();
+
+ if (openNewWindow) {
+ this.app.open_new_window(-1);
+ // if DASH_CLICK_ACTION == "SHOW_WINS_BEFORE", the app has more than one window and has no window on the current workspace,
+ // don't activate the app immediately, only move the overview to the workspace with the app's recent window
+ } else if (showWidowsBeforeActivation && !isShiftPressed && this.app.get_n_windows() > 1 && !targetWindowOnCurrentWs/* && !(opt.OVERVIEW_MODE && !opt.WORKSPACE_MODE)*/) {
+
+ Main.wm.actionMoveWorkspace(appRecentWorkspace);
+ Main.overview.dash.showAppsButton.checked = false;
+ return;
+ } else if (this._selectedMetaWin) {
+ this._selectedMetaWin.activate(global.get_current_time());
+ } else if (showWidowsBeforeActivation && opt.OVERVIEW_MODE2 && !opt.WORKSPACE_MODE && !isShiftPressed && this.app.get_n_windows() > 1) {
+ // expose windows
+ Main.overview._overview._controls._thumbnailsBox._activateThumbnailAtPoint(0, 0, global.get_current_time(), true);
+ return;
+ } else if (((opt.DASH_SHIFT_CLICK_MV && isShiftPressed) || ((opt.DASH_CLICK_PREFER_WORKSPACE || opt.DASH_ISOLATE_WS) && !openNewWindow)) && this.app.get_windows().length) {
+ this._moveAppToCurrentWorkspace();
+ if (opt.DASH_ISOLATE_WS) {
+ this.app.activate();
+ // hide the overview after the window is re-created
+ GLib.idle_add(GLib.PRIORITY_LOW, () => Main.overview.hide());
+ }
+ return;
+ } else if (isShiftPressed) {
+ return;
+ } else {
+ this.app.activate();
+ }
+
+ Main.overview.hide();
+ },
+
+ _moveAppToCurrentWorkspace() {
+ this.app.get_windows().forEach(w => w.change_workspace(global.workspace_manager.get_active_workspace()));
+ },
+
+ popupMenu(side = St.Side.LEFT) {
+ this.setForcedHighlight(true);
+ this._removeMenuTimeout();
+ this.fake_release();
+
+ if (!this._getWindowsOnCurrentWs) {
+ this._getWindowsOnCurrentWs = function () {
+ const winList = [];
+ this.app.get_windows().forEach(w => {
+ if (w.get_workspace() === global.workspace_manager.get_active_workspace())
+ winList.push(w);
+ });
+ return winList;
+ };
+
+ this._windowsOnOtherWs = function () {
+ return (this.app.get_windows().length - this._getWindowsOnCurrentWs().length) > 0;
+ };
+ }
+
+ if (!this._menu) {
+ this._menu = new AppMenu.AppMenu(this, side, {
+ favoritesSection: true,
+ showSingleWindows: true,
+ });
+
+ this._menu.setApp(this.app);
+ this._openSigId = this._menu.connect('open-state-changed', (menu, isPoppedUp) => {
+ if (!isPoppedUp)
+ this._onMenuPoppedDown();
+ });
+ // Main.overview.connectObject('hiding',
+ this._hidingSigId = Main.overview.connect('hiding',
+ () => this._menu.close(), this);
+
+ Main.uiGroup.add_child(this._menu.actor);
+ this._menuManager.addMenu(this._menu);
+ }
+
+ // once the menu is created, it stays unchanged and we need to modify our items based on current situation
+ if (this._addedMenuItems && this._addedMenuItems.length)
+ this._addedMenuItems.forEach(i => i.destroy());
+
+
+ const popupItems = [];
+
+ const separator = new PopupMenu.PopupSeparatorMenuItem();
+ this._menu.addMenuItem(separator);
+
+ if (this.app.get_n_windows()) {
+ // if (/* opt.APP_MENU_FORCE_QUIT*/true) {}
+ popupItems.push([_('Force Quit'), () => {
+ this.app.get_windows()[0].kill();
+ }]);
+
+ // if (opt.APP_MENU_CLOSE_WS) {}
+ const nWin = this._getWindowsOnCurrentWs().length;
+ if (nWin) {
+ popupItems.push([_(`Close ${nWin} Windows on Current Workspace`), () => {
+ const windows = this._getWindowsOnCurrentWs();
+ let time = global.get_current_time();
+ for (let win of windows) {
+ // increase time by 1 ms for each window to avoid errors from GS
+ win.delete(time++);
+ }
+ }]);
+ }
+
+ popupItems.push([_('Move App to Current Workspace ( Shift + Click )'), this._moveAppToCurrentWorkspace]);
+ // WTMB (Windows Thumbnails) extension required
+ if (global.windowThumbnails) {
+ popupItems.push([_('Create Window Thumbnail/PiP'), () => {
+ global.windowThumbnails?.createThumbnail(this.app.get_windows()[0]);
+ }]);
+ }
+ }
+
+ this._addedMenuItems = [];
+ this._addedMenuItems.push(separator);
+ popupItems.forEach(i => {
+ let item = new PopupMenu.PopupMenuItem(i[0]);
+ this._menu.addMenuItem(item);
+ item.connect('activate', i[1].bind(this));
+ if (i[1] === this._moveAppToCurrentWorkspace && !this._windowsOnOtherWs())
+ item.setSensitive(false);
+ this._addedMenuItems.push(item);
+ });
+
+ this.emit('menu-state-changed', true);
+
+ this._menu.open(BoxPointer.PopupAnimation.FULL);
+ this._menuManager.ignoreRelease();
+ this.emit('sync-tooltip');
+
+ return false;
+ },
+
+ _getWindowApp(metaWin) {
+ const tracker = Shell.WindowTracker.get_default();
+ return tracker.get_window_app(metaWin);
+ },
+
+ _getAppLastUsedWindow(app) {
+ let recentWin;
+ global.display.get_tab_list(Meta.TabList.NORMAL_ALL, null).forEach(metaWin => {
+ const winApp = this._getWindowApp(metaWin);
+ if (!recentWin && winApp === app)
+ recentWin = metaWin;
+ });
+ return recentWin;
+ },
+
+ _getAppRecentWorkspace(app) {
+ const recentWin = this._getAppLastUsedWindow(app);
+ if (recentWin)
+ return recentWin.get_workspace();
+
+ return null;
+ },
+};
+
+const DashIconCommon = {
+ after__init() {
+ if (opt.DASH_ICON_SCROLL && !Me.Util.dashNotDefault()) {
+ this._scrollConId = this.connect('scroll-event', DashExtensions.onScrollEvent.bind(this));
+ this._leaveConId = this.connect('leave-event', DashExtensions.onLeaveEvent.bind(this));
+ }
+ },
+
+ popupMenu() {
+ const side = opt.DASH_VERTICAL ? St.Side.LEFT : St.Side.BOTTOM;
+ AppIconCommon.popupMenu.bind(this)(side);
+ },
+
+ _updateRunningDotStyle() {
+ if (opt.RUNNING_DOT_STYLE)
+ this._dot.add_style_class_name('app-grid-running-dot-custom');
+ else
+ this._dot.remove_style_class_name('app-grid-running-dot-custom');
+
+ this._dot.translation_x = 0;
+ // _updateDotStyle() has been added in GS 46.2 to apply translation_y value from the CSS on style change
+ if (shellVersion46 && !this._updateDotStyle && !opt.DASH_VERTICAL)
+ this._dot.translation_y = 8;
+
+ // GS 46.0 (Ubuntu) only
+ if (opt.DASH_VERTICAL)
+ this._dot.translationY = 0;
+ },
+
+ _updateRunningStyle() {
+ const currentWs = global.workspace_manager.get_active_workspace();
+ const show = opt.DASH_ISOLATE_WS
+ ? this.app.get_windows().filter(w => w.get_workspace() === currentWs).length
+ : this.app.state !== Shell.AppState.STOPPED;
+
+ if (show)
+ this._dot.show();
+ else
+ this._dot.hide();
+ },
+};
+
+const DashExtensions = {
+ onScrollEvent(source, event) {
+ if ((this.app && !opt.DASH_ICON_SCROLL) || (this._isSearchWindowsIcon && !opt.SEARCH_WINDOWS_ICON_SCROLL)) {
+ if (this._scrollConId) {
+ this.disconnect(this._scrollConId);
+ this._scrollConId = 0;
+ }
+ if (this._leaveConId) {
+ this.disconnect(this._leaveConId);
+ this._leaveConId = 0;
+ }
+ return Clutter.EVENT_PROPAGATE;
+ }
+
+ if (Main.overview._overview.controls._stateAdjustment.value > 1)
+ return Clutter.EVENT_PROPAGATE;
+
+ let direction = Me.Util.getScrollDirection(event);
+ if (direction === Clutter.ScrollDirection.UP)
+ direction = 1;
+ else if (direction === Clutter.ScrollDirection.DOWN)
+ direction = -1;
+ else
+ return Clutter.EVENT_STOP;
+
+ // avoid uncontrollable switching if smooth scroll wheel or trackpad is used
+ if (this._lastScroll && Date.now() - this._lastScroll < 160)
+ return Clutter.EVENT_STOP;
+
+ this._lastScroll = Date.now();
+
+ DashExtensions.switchWindow.bind(this)(direction);
+ return Clutter.EVENT_STOP;
+ },
+
+ onLeaveEvent() {
+ if (!this._selectedMetaWin || this.has_pointer || this.toggleButton?.has_pointer)
+ return;
+
+ this._selectedPreview._activateSelected = false;
+ this._selectedMetaWin = null;
+ this._scrolledWindows = null;
+ DashExtensions.showWindowPreview.bind(this)(null);
+ },
+
+
+ switchWindow(direction) {
+ if (!this._scrolledWindows) {
+ this._initialSelection = true;
+ // source is app icon
+ if (this.app) {
+ this._scrolledWindows = this.app.get_windows();
+ if (opt.DASH_ISOLATE_WS) {
+ const currentWs = global.workspaceManager.get_active_workspace();
+ this._scrolledWindows = this._scrolledWindows.filter(w => w.get_workspace() === currentWs);
+ }
+
+ const wsList = [];
+ this._scrolledWindows.forEach(w => {
+ const ws = w.get_workspace();
+ if (!wsList.includes(ws))
+ wsList.push(ws);
+ });
+
+ // sort windows by workspaces in MRU order
+ this._scrolledWindows.sort((a, b) => wsList.indexOf(a.get_workspace()) > wsList.indexOf(b.get_workspace()));
+ // source is Search Windows icon
+ } else if (this._isSearchWindowsIcon) {
+ if (opt.SEARCH_WINDOWS_ICON_SCROLL === 1) // all windows
+ this._scrolledWindows = Me.Util.getWindows(null);
+ else
+ this._scrolledWindows = Me.Util.getWindows(global.workspace_manager.get_active_workspace());
+ }
+ }
+
+ let windows = this._scrolledWindows;
+
+ if (!windows.length)
+ return;
+
+ // if window selection is in the process, the previewed window must be the current one
+ let currentWin = this._selectedMetaWin ? this._selectedMetaWin : windows[0];
+
+ const currentIdx = windows.indexOf(currentWin);
+ let targetIdx = currentIdx;
+ // const focusWindow = Me.Util.getWindows(null)[0]; // incompatible 45
+ const focusWindow = Me.Util.getWindows(null)[0];
+ const appFocused = this._scrolledWindows[0] === focusWindow && this._scrolledWindows[0].get_workspace() === global.workspace_manager.get_active_workspace();
+ // only if the app has focus, immediately switch to the previous window
+ // otherwise just set the current window above others
+ if (!this._initialSelection || appFocused)
+ targetIdx += direction;
+ else
+ this._initialSelection = false;
+
+ if (targetIdx > windows.length - 1)
+ targetIdx = 0;
+ else if (targetIdx < 0)
+ targetIdx = windows.length - 1;
+
+ const metaWin = windows[targetIdx];
+ DashExtensions.showWindowPreview.bind(this)(metaWin);
+ this._selectedMetaWin = metaWin;
+ },
+
+ showWindowPreview(metaWin) {
+ const views = Main.overview._overview.controls._workspacesDisplay._workspacesViews;
+ const viewsIter = [views[0]];
+ // secondary monitors use different structure
+ views.forEach(v => {
+ if (v._workspacesView)
+ viewsIter.push(v._workspacesView);
+ });
+
+ viewsIter.forEach(view => {
+ // if workspaces are on primary monitor only
+ if (!view || !view._workspaces)
+ return;
+
+ view._workspaces.forEach(ws => {
+ ws._windows.forEach(windowPreview => {
+ // metaWin === null resets opacity
+ let opacity = metaWin ? 50 : 255;
+ windowPreview._activateSelected = false;
+
+ // minimized windows are invisible if windows are not exposed (WORKSPACE_MODE === 0)
+ if (!windowPreview.opacity)
+ windowPreview.opacity = 255;
+
+ // app windows set to lower opacity, so they can be recognized
+ if (this._scrolledWindows && this._scrolledWindows.includes(windowPreview.metaWindow)) {
+ if (opt.DASH_ICON_SCROLL === 2)
+ opacity = 254;
+ }
+ if (windowPreview.metaWindow === metaWin) {
+ if (metaWin && metaWin.get_workspace() !== global.workspace_manager.get_active_workspace()) {
+ Main.wm.actionMoveWorkspace(metaWin.get_workspace());
+ if (_timeouts.wsSwitcherAnimation)
+ GLib.source_remove(_timeouts.wsSwitcherAnimation);
+ // setting window preview above siblings before workspace switcher animation has no effect
+ // we need to set the window above after the ws preview become visible on the screen
+ // the default switcher animation time is 250, 200 ms delay should be enough
+ _timeouts.wsSwitcherAnimation = GLib.timeout_add(0, 200 * St.Settings.get().slow_down_factor, () => {
+ windowPreview.get_parent().set_child_above_sibling(windowPreview, null);
+ _timeouts.wsSwitcherAnimation = 0;
+ return GLib.SOURCE_REMOVE;
+ });
+ } else {
+ windowPreview.get_parent().set_child_above_sibling(windowPreview, null);
+ }
+
+ opacity = 255;
+ this._selectedPreview = windowPreview;
+ windowPreview._activateSelected = true;
+ }
+
+ // if windows are exposed, highlight selected using opacity
+ if ((opt.OVERVIEW_MODE && opt.WORKSPACE_MODE) || !opt.OVERVIEW_MODE) {
+ if (metaWin && opacity === 255)
+ windowPreview.showOverlay(true);
+ else
+ windowPreview.hideOverlay(true);
+ windowPreview.ease({
+ duration: 200,
+ opacity,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+ }
+ });
+ });
+ });
+ },
+};
+
+const AppMenuCommon = {
+ _updateWindowsSection() {
+ if (global.compositor) {
+ if (this._updateWindowsLaterId) {
+ const laters = global.compositor.get_laters();
+ laters.remove(this._updateWindowsLaterId);
+ }
+ } else if (this._updateWindowsLaterId) {
+ Meta.later_remove(this._updateWindowsLaterId);
+ }
+
+ this._updateWindowsLaterId = 0;
+
+ this._windowSection.removeAll();
+ this._openWindowsHeader.hide();
+
+ if (!this._app)
+ return;
+
+ const minWindows = this._showSingleWindows ? 1 : 2;
+ const currentWs = global.workspaceManager.get_active_workspace();
+ const isolateWs = opt.DASH_ISOLATE_WS && !Main.overview.dash.showAppsButton.checked;
+ const windows = this._app.get_windows().filter(w => !w.skip_taskbar && (isolateWs ? w.get_workspace() === currentWs : true));
+ if (windows.length < minWindows)
+ return;
+
+ this._openWindowsHeader.show();
+
+ windows.forEach(window => {
+ const title = window.title || this._app.get_name();
+ const item = this._windowSection.addAction(title, event => {
+ Main.activateWindow(window, event.get_time());
+ });
+ window.connectObject('notify::title', () => {
+ item.label.text = window.title || this._app.get_name();
+ }, item);
+ });
+ },
+};
diff --git a/extensions/47/vertical-workspaces/lib/iconGrid.js b/extensions/47/vertical-workspaces/lib/iconGrid.js
new file mode 100644
index 0000000..f0c6b18
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/iconGrid.js
@@ -0,0 +1,429 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * iconGrid.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ *
+ */
+
+'use strict';
+
+import St from 'gi://St';
+import GLib from 'gi://GLib';
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+import * as IconGrid from 'resource:///org/gnome/shell/ui/iconGrid.js';
+
+let Me;
+let opt;
+
+// added sizes for better scaling
+export const IconSize = {
+ LARGEST: 256,
+ 224: 224,
+ 208: 208,
+ 192: 192,
+ 176: 176,
+ 160: 160,
+ 144: 144,
+ 128: 128,
+ 112: 112,
+ LARGE: 96,
+ 80: 80,
+ 64: 64,
+ TINY: 48,
+};
+
+export const IconGridModule = class {
+ constructor(me) {
+ Me = me;
+ opt = Me.opt;
+
+ this._firstActivation = true;
+ this.moduleEnabled = false;
+ this._overrides = null;
+ }
+
+ cleanGlobals() {
+ Me = null;
+ opt = null;
+ }
+
+ update(reset) {
+ this.moduleEnabled = opt.get('appDisplayModule');
+ // if notifications are enabled no override is needed
+ reset = reset || !this.moduleEnabled;
+
+ // don't touch original code if module disabled
+ if (reset && !this._firstActivation) {
+ this._disableModule();
+ } else if (!reset) {
+ this._firstActivation = false;
+ this._activateModule();
+ }
+ }
+
+ _activateModule() {
+ if (!this._overrides)
+ this._overrides = new Me.Util.Overrides();
+
+ this._overrides.addOverride('IconGrid', IconGrid.IconGrid.prototype, IconGridCommon);
+ this._overrides.addOverride('IconGridLayout', IconGrid.IconGridLayout.prototype, IconGridLayoutCommon);
+ }
+
+ _disableModule() {
+ if (this._overrides)
+ this._overrides.removeAll();
+ this._overrides = null;
+ }
+};
+
+const IconGridCommon = {
+ getItemsAtPage(page) {
+ if (page < 0 || page >= this.nPages)
+ return [];
+ // throw new Error(`Page ${page} does not exist at IconGrid`);
+
+ const layoutManager = this.layout_manager;
+ return layoutManager.getItemsAtPage(page);
+ },
+
+ _shouldUpdateGrid(width, height) {
+ if (this.layoutManager._isFolder)
+ return false;
+ else if (this._currentMode === -1)
+ return true;
+
+ // Update if page size changed
+ // Page dimensions may change within a small range
+ const range = 5;
+ return (Math.abs(width - (this._gridForWidth ?? 0)) > range) ||
+ (Math.abs(height - (this._gridForHeight ?? 0)) > range);
+ },
+
+ _findBestModeForSize(width, height) {
+ // this function is for main grid only, folder grid calculation is in appDisplay.AppFolderDialog class
+ if (!this._shouldUpdateGrid(width, height))
+ return;
+
+ this._gridForWidth = width;
+ this._gridForHeight = height;
+
+ this._updateDefaultIconSize();
+ const { pagePadding } = this.layout_manager;
+ const { scaleFactor } = St.ThemeContext.get_for_stage(global.stage);
+ const itemPadding = 55;
+
+ // pagePadding is already affected by the scaleFactor
+ width -= pagePadding.left + pagePadding.right;
+ height -= pagePadding.top + pagePadding.bottom;
+
+ // Sync with _findBestIconSize()
+ this.layoutManager._gridSizeChanged = true;
+ this.layoutManager._gridWidth = width;
+ this.layoutManager._gridHeight = height;
+
+ // All widgets are affected by the scaleFactor so we need to apply it also on the page size
+ width /= scaleFactor;
+ height /= scaleFactor;
+
+ const spacing = opt.APP_GRID_SPACING;
+ const iconSize = opt.APP_GRID_ICON_SIZE > 0 ? opt.APP_GRID_ICON_SIZE : opt.APP_GRID_ICON_SIZE_DEFAULT;
+ const itemSize = iconSize + itemPadding;
+ let columns = opt.APP_GRID_COLUMNS;
+ let rows = opt.APP_GRID_ROWS;
+ // 0 means adaptive size
+ let unusedSpaceH = -1;
+ if (!columns) {
+ // calculate #columns + 1 without spacing
+ columns = Math.floor(width / itemSize) + 1;
+ // check if columns with spacing fits the available width
+ // and reduce the number until it fits
+ while (unusedSpaceH < 0) {
+ columns -= 1;
+ unusedSpaceH = width - columns * itemSize - (columns - 1) * spacing;
+ }
+ }
+ let unusedSpaceV = -1;
+ if (!rows) {
+ rows = Math.floor(height / itemSize) + 1;
+ while (unusedSpaceV < 0) {
+ rows -= 1;
+ unusedSpaceV = height - rows * itemSize - ((rows - 1) * spacing);
+ }
+ }
+
+ this._gridModes = [{ columns, rows }];
+ this._currentMode = -1;
+ this._setGridMode(0);
+ this.layoutManager.updateIconSize();
+ // Call _redisplay() from timeout to avoid allocation errors
+ GLib.idle_add(GLib.PRIORITY_LOW, () =>
+ Main.overview._overview.controls.appDisplay._redisplay()
+ );
+ },
+
+ _updateDefaultIconSize() {
+ // Reduce default icon size for low resolution screens and high screen scales
+ if (Me.Util.monitorHasLowResolution()) {
+ opt.APP_GRID_ICON_SIZE_DEFAULT = opt.APP_GRID_ACTIVE_PREVIEW && !opt.APP_GRID_USAGE ? 128 : 64;
+ opt.APP_GRID_FOLDER_ICON_SIZE_DEFAULT = 64;
+ } else {
+ opt.APP_GRID_ICON_SIZE_DEFAULT = opt.APP_GRID_ACTIVE_PREVIEW && !opt.APP_GRID_USAGE ? 192 : 96;
+ }
+ },
+
+ // Workaround for the upstream bug
+ // https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5753
+ // https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5240
+ // https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6892
+ // The appGridLayout._currentPage is not updated when the page is changed in the grid
+ // For example, when user navigates app icons using a keyboard
+ // Related issues open on GNOME's gitlab:
+ after_goToPage() {
+ if (this._delegate._appGridLayout._currentPage !== this._currentPage)
+ this._delegate._appGridLayout.goToPage(this._currentPage);
+ },
+
+ // Workaround for the upstream bug
+ // https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7700
+ // Return INVALID target if x or y is out of the grid view to prevent pages[page] undefined error (horizontal orientation only)
+ getDropTarget(x, y) {
+ if (x < 0 || y < 0)
+ return [0, 0, 0]; // [0, 0, DragLocation.INVALID]
+ const layoutManager = this.layout_manager;
+ return layoutManager.getDropTarget(x, y, this._currentPage);
+ },
+};
+
+const IconGridLayoutCommon = {
+ _findBestIconSize() {
+ if (this.fixedIconSize !== -1)
+ return this.fixedIconSize;
+
+ if (!this._isFolder && !this._gridSizeChanged)
+ return this._iconSize;
+ this._gridSizeChanged = false;
+
+
+ const { scaleFactor } = St.ThemeContext.get_for_stage(global.stage);
+ const nColumns = this.columnsPerPage;
+ const nRows = this.rowsPerPage;
+
+ // If grid is not defined, return default icon size
+ if (nColumns < 1 && nRows < 1) {
+ return this._isFolder
+ ? opt.APP_GRID_FOLDER_ICON_SIZE_DEFAULT
+ : opt.APP_GRID_ICON_SIZE_DEFAULT;
+ }
+
+ const spacing = this._isFolder
+ ? opt.APP_GRID_FOLDER_SPACING
+ : opt.APP_GRID_SPACING;
+
+ const columnSpacingPerPage = spacing * (nColumns - 1);
+ const rowSpacingPerPage = spacing * (nRows - 1);
+ const itemPadding = 55;
+
+ const width = (this._gridWidth ? this._gridWidth : this._pageWidth) / scaleFactor;
+ let height = (this._gridHeight ? this._gridHeight : this._pageHeight) / scaleFactor;
+
+ if (!width || !height)
+ return opt.APP_GRID_ICON_SIZE_DEFAULT;
+
+ const [firstItem] = this._container;
+
+ let iconSizes = Object.values(IconSize).sort((a, b) => b - a);
+ // Limit max icon size for folders and fully adaptive folder grids, the whole range is for the main grid with active folders
+ if (this._isFolder && opt.APP_GRID_FOLDER_ICON_SIZE < 0)
+ iconSizes = iconSizes.slice(iconSizes.indexOf(opt.APP_GRID_FOLDER_ICON_SIZE_DEFAULT), -1);
+ else if (this._isFolder)
+ iconSizes = iconSizes.slice(iconSizes.indexOf(IconSize.LARGE), -1);
+ else if (opt.APP_GRID_ICON_SIZE < 0)
+ iconSizes = iconSizes.slice(iconSizes.indexOf(opt.APP_GRID_ICON_SIZE_DEFAULT), -1);
+
+ let sizeInvalid = false;
+ for (const size of iconSizes) {
+ let usedWidth, usedHeight;
+
+ if (firstItem) {
+ firstItem.icon.setIconSize(size);
+ const [firstItemWidth] = firstItem.get_preferred_size();
+
+ const itemSize = firstItemWidth / scaleFactor;
+ if (itemSize < size)
+ sizeInvalid = true;
+
+ usedWidth = itemSize * nColumns;
+ usedHeight = itemSize * nRows;
+ }
+
+ if (!firstItem || sizeInvalid) {
+ usedWidth = (size + itemPadding) * nColumns;
+ usedHeight = (size + itemPadding) * nRows;
+ }
+ const emptyHSpace =
+ width - usedWidth - columnSpacingPerPage;
+ const emptyVSpace =
+ height - usedHeight - rowSpacingPerPage;
+
+ if (emptyHSpace >= 0 && emptyVSpace >= 0)
+ return size;
+ }
+
+ return IconSize.TINY;
+ },
+
+ removeItem(item) {
+ if (!this._items.has(item)) {
+ console.error(`iconGrid: Item ${item} is not part of the IconGridLayout`);
+ return;
+ // throw new Error(`Item ${item} is not part of the IconGridLayout`);
+ }
+
+ if (!this._container)
+ return;
+
+ this._shouldEaseItems = true;
+
+ this._container.remove_child(item);
+ this._removeItemData(item);
+ },
+
+ addItem(item, page = -1, index = -1) {
+ if (this._items.has(item)) {
+ console.error(`iconGrid: Item ${item} already added to IconGridLayout`);
+ return;
+ // throw new Error(`Item ${item} already added to IconGridLayout`);
+ }
+
+ if (page > this._pages.length) {
+ console.error(`iconGrid: Cannot add ${item} to page ${page}`);
+ page = -1;
+ index = -1;
+ // throw new Error(`Cannot add ${item} to page ${page}`);
+ }
+
+ if (!this._container)
+ return;
+
+ if (page !== -1 && index === -1)
+ page = this._findBestPageToAppend(page);
+
+ this._shouldEaseItems = true;
+
+ if (!this._container.get_children().includes(item))
+ this._container.add_child(item);
+ this._addItemToPage(item, page, index);
+ },
+
+ moveItem(item, newPage, newPosition) {
+ if (!this._items.has(item)) {
+ console.error(`iconGrid: Item ${item} is not part of the IconGridLayout`);
+ return;
+ // throw new Error(`Item ${item} is not part of the IconGridLayout`);
+ }
+
+ this._shouldEaseItems = true;
+
+ this._removeItemData(item);
+
+ if (newPage !== -1 && newPosition === -1)
+ newPage = this._findBestPageToAppend(newPage);
+ this._addItemToPage(item, newPage, newPosition);
+ },
+
+ _addItemToPage(item, pageIndex, index) {
+ // Ensure we have at least one page
+ if (this._pages.length === 0)
+ this._appendPage();
+
+ // Append a new page if necessary
+ if (pageIndex === this._pages.length)
+ this._appendPage();
+
+ if (pageIndex >= this._pages.length) {
+ pageIndex = -1;
+ index = -1;
+ }
+
+ if (pageIndex === -1)
+ pageIndex = this._pages.length - 1;
+
+ if (index === -1)
+ index = this._pages[pageIndex].children.length;
+
+ this._items.set(item, {
+ actor: item,
+ pageIndex,
+ destroyId: item.connect('destroy', () => this._removeItemData(item)),
+ visibleId: item.connect('notify::visible', () => {
+ const itemData = this._items.get(item);
+
+ this._updateVisibleChildrenForPage(itemData.pageIndex);
+
+ if (item.visible)
+ this._relocateSurplusItems(itemData.pageIndex);
+ else if (!this.allowIncompletePages)
+ this._fillItemVacancies(itemData.pageIndex);
+ }),
+ queueRelayoutId: item.connect('queue-relayout', () => {
+ this._childrenMaxSize = -1;
+ }),
+ });
+
+ item.icon.setIconSize(this._iconSize);
+ this._pages[pageIndex].children.splice(index, 0, item);
+ this._updateVisibleChildrenForPage(pageIndex);
+ this._relocateSurplusItems(pageIndex);
+ },
+
+ _relocateSurplusItems(pageIndex) {
+ // Avoid recursion during relocations in _redisplay()
+ if (this._skipRelocateSurplusItems)
+ return;
+
+ const visiblePageItems = this._pages[pageIndex].visibleChildren;
+ const itemsPerPage = this.columnsPerPage * this.rowsPerPage;
+
+ // No overflow
+ if (visiblePageItems.length <= itemsPerPage)
+ return;
+
+ const nExtraItems = visiblePageItems.length - itemsPerPage;
+ for (let i = 0; i < nExtraItems; i++) {
+ const overflowIndex = visiblePageItems.length - i - 1;
+ const overflowItem = visiblePageItems[overflowIndex];
+
+ this._removeItemData(overflowItem);
+ this._addItemToPage(overflowItem, pageIndex + 1, 0);
+ }
+ },
+
+ _findBestPageToAppend(startPage) {
+ const itemsPerPage = this.columnsPerPage * this.rowsPerPage;
+
+ for (let i = startPage; i < this._pages.length; i++) {
+ const visibleItems = this._pages[i].visibleChildren;
+
+ if (visibleItems.length < itemsPerPage)
+ return i;
+ }
+
+ return this._pages.length;
+ },
+
+ updateIconSize() {
+ const iconSize = this._findBestIconSize();
+ if (this._iconSize !== iconSize) {
+ this._iconSize = iconSize;
+
+ for (const child of this._container)
+ child.icon.setIconSize(iconSize);
+
+ this.notify('icon-size');
+ }
+ },
+};
diff --git a/extensions/47/vertical-workspaces/lib/layout.js b/extensions/47/vertical-workspaces/lib/layout.js
new file mode 100644
index 0000000..807f9e0
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/layout.js
@@ -0,0 +1,473 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * layout.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ *
+ */
+
+'use strict';
+
+import GLib from 'gi://GLib';
+import Meta from 'gi://Meta';
+import Gio from 'gi://Gio';
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+import * as Layout from 'resource:///org/gnome/shell/ui/layout.js';
+
+let Me;
+let opt;
+let _timeouts;
+
+export const LayoutModule = class {
+ constructor(me) {
+ Me = me;
+ opt = Me.opt;
+ _timeouts = {};
+
+ this._firstActivation = true;
+ this.moduleEnabled = false;
+ this._overrides = null;
+ this._originalUpdateHotCorners = null;
+ }
+
+ cleanGlobals() {
+ Me = null;
+ opt = null;
+ }
+
+ update(reset) {
+ this._removeTimeouts();
+
+ this.moduleEnabled = opt.get('layoutModule');
+ const conflict = Me.Util.getEnabledExtensions('custom-hot-corners').length ||
+ Me.Util.getEnabledExtensions('dash-to-panel').length;
+
+ if (conflict && !reset)
+ console.warn(`[${Me.metadata.name}] Warning: "Layout" module disabled due to potential conflict with another extension`);
+
+ reset = reset || !this.moduleEnabled || conflict;
+
+ // don't touch the original code if module disabled
+ if (reset && !this._firstActivation) {
+ this._disableModule();
+ } else if (!reset) {
+ this._firstActivation = false;
+ this._activateModule();
+ }
+ if (reset && this._firstActivation)
+ console.debug(' LayoutModule - Keeping untouched');
+ }
+
+ _activateModule() {
+ if (!this._overrides)
+ this._overrides = new Me.Util.Overrides();
+
+ _timeouts = {};
+
+ this._overrides.addOverride('LayoutManager', Main.layoutManager, LayoutManagerCommon);
+ this._overrides.addOverride('HotCorner', Layout.HotCorner.prototype, HotCornerCommon);
+
+ Main.layoutManager._updatePanelBarrier();
+ Main.layoutManager._updateHotCorners();
+
+ if (!this._hotCornersEnabledConId) {
+ this._interfaceSettings = new Gio.Settings({
+ schema_id: 'org.gnome.desktop.interface',
+ });
+ this._hotCornersEnabledConId = this._interfaceSettings.connect('changed::enable-hot-corners',
+ () => Main.layoutManager._updateHotCorners());
+ }
+
+ console.debug(' LayoutModule - Activated');
+ }
+
+ _disableModule() {
+ if (this._overrides)
+ this._overrides.removeAll();
+ this._overrides = null;
+
+ Main.layoutManager._updateHotCorners();
+
+ if (this._hotCornersEnabledConId) {
+ this._interfaceSettings.disconnect(this._hotCornersEnabledConId);
+ this._hotCornersEnabledConId = 0;
+ this._interfaceSettings = null;
+ }
+
+ console.debug(' LayoutModule - Disabled');
+ }
+
+ _removeTimeouts() {
+ if (_timeouts) {
+ Object.values(_timeouts).forEach(t => {
+ if (t)
+ GLib.source_remove(t);
+ });
+ _timeouts = null;
+ }
+ }
+};
+
+const LayoutManagerCommon = {
+ _updatePanelBarrier() {
+ if (this._rightPanelBarrier) {
+ this._rightPanelBarrier.destroy();
+ this._rightPanelBarrier = null;
+ }
+
+ if (this._leftPanelBarrier) {
+ this._leftPanelBarrier.destroy();
+ this._leftPanelBarrier = null;
+ }
+
+ if (!this.primaryMonitor || !opt || Me.Util.getEnabledExtensions('hidetopbar'))
+ return;
+
+ if (this.panelBox.height) {
+ const backend = !!Meta.Barrier.prototype.backend;
+ let params = {};
+ if (backend)
+ params['backend'] = global.backend;
+ else
+ params['display'] = global.display;
+
+ let primary = this.primaryMonitor;
+ if ([0, 1, 3].includes(opt.HOT_CORNER_POSITION)) {
+ params = Object.assign({}, params, {
+ x1: primary.x + primary.width, y1: this.panelBox.allocation.y1,
+ x2: primary.x + primary.width, y2: this.panelBox.allocation.y2,
+ directions: Meta.BarrierDirection.NEGATIVE_X,
+ });
+ this._rightPanelBarrier = new Meta.Barrier(params);
+ }
+
+ if ([2, 4].includes(opt.HOT_CORNER_POSITION)) {
+ params = Object.assign({}, params, {
+ x1: primary.x, y1: this.panelBox.allocation.y1,
+ x2: primary.x, y2: this.panelBox.allocation.y2,
+ directions: Meta.BarrierDirection.POSITIVE_X,
+ });
+ this._leftPanelBarrier = new Meta.Barrier(params);
+ }
+ }
+ },
+
+ _updateHotCorners() {
+ // avoid errors if called from foreign override
+ if (!opt)
+ return;
+
+ // destroy old hot corners
+ this.hotCorners.forEach(corner => corner?.destroy());
+ this.hotCorners = [];
+
+ if (!this._interfaceSettings.get_boolean('enable-hot-corners')) {
+ this.emit('hot-corners-changed');
+ return;
+ }
+
+ let size = this.panelBox.height ? this.panelBox.height : 27;
+
+ // position 0 - default, 1-TL, 2-TR, 3-BL, 4-BR
+ const position = opt.HOT_CORNER_POSITION;
+
+ // build new hot corners
+ for (let i = 0; i < this.monitors.length; i++) {
+ let monitor = this.monitors[i];
+ let cornerX, cornerY;
+
+ if (position === 0) {
+ cornerX = this._rtl ? monitor.x + monitor.width : monitor.x;
+ cornerY = monitor.y;
+ } else if (position === 1) {
+ cornerX = monitor.x;
+ cornerY = monitor.y;
+ } else if (position === 2) {
+ cornerX = monitor.x + monitor.width;
+ cornerY = monitor.y;
+ } else if (position === 3) {
+ cornerX = monitor.x;
+ cornerY = monitor.y + monitor.height;
+ } else {
+ cornerX = monitor.x + monitor.width;
+ cornerY = monitor.y + monitor.height;
+ }
+
+ let haveCorner = true;
+
+ if (i !== this.primaryIndex) {
+ // Check if we have a top left (right for RTL) corner.
+ // I.e. if there is no monitor directly above or to the left(right)
+ let besideX = this._rtl ? monitor.x + 1 : cornerX - 1;
+ let besideY = cornerY;
+ let aboveX = cornerX;
+ let aboveY = cornerY - 1;
+
+ for (let j = 0; j < this.monitors.length; j++) {
+ if (i === j)
+ continue;
+ let otherMonitor = this.monitors[j];
+ if (besideX >= otherMonitor.x &&
+ besideX < otherMonitor.x + otherMonitor.width &&
+ besideY >= otherMonitor.y &&
+ besideY < otherMonitor.y + otherMonitor.height) {
+ haveCorner = false;
+ break;
+ }
+ if (aboveX >= otherMonitor.x &&
+ aboveX < otherMonitor.x + otherMonitor.width &&
+ aboveY >= otherMonitor.y &&
+ aboveY < otherMonitor.y + otherMonitor.height) {
+ haveCorner = false;
+ break;
+ }
+ }
+ }
+
+ if (haveCorner) {
+ let corner = new Layout.HotCorner(this, monitor, cornerX, cornerY);
+ corner.setBarrierSize(size, false);
+ this.hotCorners.push(corner);
+ } else {
+ this.hotCorners.push(null);
+ }
+ }
+
+ this.emit('hot-corners-changed');
+ },
+};
+
+const HotCornerCommon = {
+ after__init() {
+ let angle = 0;
+ switch (opt.HOT_CORNER_POSITION) {
+ case 2:
+ angle = 90;
+ break;
+ case 3:
+ angle = 270;
+ break;
+ case 4:
+ angle = 180;
+ break;
+ }
+
+ this._ripples._ripple1.rotation_angle_z = angle;
+ this._ripples._ripple2.rotation_angle_z = angle;
+ this._ripples._ripple3.rotation_angle_z = angle;
+ },
+
+ setBarrierSize(size, notMyCall = true) {
+ // ignore calls from the original _updateHotCorners() callback to avoid building barriers outside screen
+ if (notMyCall && size > 0)
+ return;
+
+ if (this._verticalBarrier) {
+ this._pressureBarrier.removeBarrier(this._verticalBarrier);
+ this._verticalBarrier.destroy();
+ this._verticalBarrier = null;
+ }
+
+ if (this._horizontalBarrier) {
+ this._pressureBarrier.removeBarrier(this._horizontalBarrier);
+ this._horizontalBarrier.destroy();
+ this._horizontalBarrier = null;
+ }
+
+ if (size > 0) {
+ const primaryMonitor = global.display.get_primary_monitor();
+ const monitor = this._monitor;
+ const extendV = opt && opt.HOT_CORNER_ACTION && opt.HOT_CORNER_EDGE && opt.DASH_VERTICAL && monitor.index === primaryMonitor;
+ const extendH = opt && opt.HOT_CORNER_ACTION && opt.HOT_CORNER_EDGE && !opt.DASH_VERTICAL && monitor.index === primaryMonitor;
+
+ const backend = !!Meta.Barrier.prototype.backend;
+ let params = {};
+ if (backend)
+ params['backend'] = global.backend;
+ else
+ params['display'] = global.display;
+
+ if (opt.HOT_CORNER_POSITION <= 1) {
+ params = Object.assign({}, params, {
+ x1: this._x, x2: this._x,
+ y1: this._y, y2: this._y + (extendV ? monitor.height : size),
+ directions: Meta.BarrierDirection.POSITIVE_X,
+ });
+ this._verticalBarrier = new Meta.Barrier(params);
+ params = Object.assign({}, params, {
+ x1: this._x, x2: this._x + (extendH ? monitor.width : size),
+ y1: this._y, y2: this._y,
+ directions: Meta.BarrierDirection.POSITIVE_Y,
+ });
+ this._horizontalBarrier = new Meta.Barrier(params);
+ } else if (opt.HOT_CORNER_POSITION === 2) {
+ params = Object.assign({}, params, {
+ x1: this._x, x2: this._x,
+ y1: this._y, y2: this._y + (extendV ? monitor.height : size),
+ directions: Meta.BarrierDirection.NEGATIVE_X,
+ });
+ this._verticalBarrier = new Meta.Barrier(params);
+ params = Object.assign({}, params, {
+ x1: this._x - size, x2: this._x,
+ y1: this._y, y2: this._y,
+ directions: Meta.BarrierDirection.POSITIVE_Y,
+ });
+ this._horizontalBarrier = new Meta.Barrier(params);
+ } else if (opt.HOT_CORNER_POSITION === 3) {
+ params = Object.assign({}, params, {
+ x1: this._x, x2: this._x,
+ y1: this._y, y2: this._y - size,
+ directions: Meta.BarrierDirection.POSITIVE_X,
+ });
+ this._verticalBarrier = new Meta.Barrier(params);
+ params = Object.assign({}, params, {
+ x1: this._x, x2: this._x + (extendH ? monitor.width : size),
+ y1: this._y, y2: this._y,
+ directions: Meta.BarrierDirection.NEGATIVE_Y,
+ });
+ this._horizontalBarrier = new Meta.Barrier(params);
+ } else if (opt.HOT_CORNER_POSITION === 4) {
+ params = Object.assign({}, params, {
+ x1: this._x, x2: this._x,
+ y1: this._y, y2: this._y - size,
+ directions: Meta.BarrierDirection.NEGATIVE_X,
+ });
+ this._verticalBarrier = new Meta.Barrier(params);
+ params = Object.assign({}, params, {
+ x1: this._x, x2: this._x - size,
+ y1: this._y, y2: this._y,
+ directions: Meta.BarrierDirection.NEGATIVE_Y,
+ });
+ this._horizontalBarrier = new Meta.Barrier(params);
+ }
+
+ this._pressureBarrier.addBarrier(this._verticalBarrier);
+ this._pressureBarrier.addBarrier(this._horizontalBarrier);
+ }
+ },
+
+ _toggleOverview() {
+ if (!opt.HOT_CORNER_ACTION || (!opt.HOT_CORNER_FULLSCREEN && this._monitor.inFullscreen && !Main.overview.visible))
+ return;
+
+ if (Main.overview.shouldToggleByCornerOrButton()) {
+ if (Main.overview._shown) {
+ this._toggleWindowPicker(true);
+ } else if ((opt.HOT_CORNER_ACTION === 2 && !Me.Util.isCtrlPressed()) || ([3, 4, 5, 6].includes(opt.HOT_CORNER_ACTION) && Me.Util.isCtrlPressed())) {
+ // Default overview
+ opt.OVERVIEW_MODE = 0;
+ opt.OVERVIEW_MODE2 = false;
+ opt.WORKSPACE_MODE = 1;
+ this._toggleWindowPicker(true, true);
+ } else if (opt.HOT_CORNER_ACTION === 1) {
+ Main.overview.resetOverviewMode();
+ this._toggleWindowPicker(true, true);
+ } else if ((opt.HOT_CORNER_ACTION === 3 && !Me.Util.isCtrlPressed()) || (opt.HOT_CORNER_ACTION === 2 && Me.Util.isCtrlPressed()) || (opt.HOT_CORNER_ACTION === 6 && Me.Util.isCtrlPressed())) {
+ // Applications
+ this._toggleApplications(true);
+ } else if (opt.HOT_CORNER_ACTION === 4 && !Me.Util.isCtrlPressed()) {
+ // Overview - static ws preview
+ opt.OVERVIEW_MODE = 1;
+ opt.OVERVIEW_MODE2 = false;
+ opt.WORKSPACE_MODE = 0;
+ this._toggleWindowPicker(true, true);
+ } else if (opt.HOT_CORNER_ACTION === 5 && !Me.Util.isCtrlPressed()) {
+ // Overview - static ws
+ opt.OVERVIEW_MODE = 2;
+ opt.OVERVIEW_MODE2 = true;
+ opt.WORKSPACE_MODE = 0;
+ this._toggleWindowPicker(true, true);
+ } else if (opt.HOT_CORNER_ACTION === 6 && !Me.Util.isCtrlPressed()) {
+ // Window search provider
+ opt.OVERVIEW_MODE = 2;
+ opt.OVERVIEW_MODE2 = true;
+ opt.WORKSPACE_MODE = 0;
+ this._toggleWindowSearchProvider();
+ }
+ if (opt.HOT_CORNER_RIPPLES && Main.overview.animationInProgress)
+ this._ripples.playAnimation(this._x, this._y);
+ }
+ },
+
+ _toggleWindowPicker(leaveOverview = false, customOverviewMode = false) {
+ if (Main.overview._shown && (leaveOverview || !Main.overview.dash.showAppsButton.checked)) {
+ Main.overview.hide();
+ } else if (Main.overview.dash.showAppsButton.checked) {
+ Main.overview.dash.showAppsButton.checked = false;
+ } else {
+ const focusWindow = global.display.get_focus_window();
+ // at least GS 42 is unable to show overview in X11 session if VirtualBox Machine window grabbed keyboard
+ if (!Meta.is_wayland_compositor() && focusWindow && focusWindow.wm_class.includes('VirtualBox Machine')) {
+ // following should help when windowed VBox Machine has focus.
+ global.stage.set_key_focus(Main.panel);
+ // key focus doesn't take the effect immediately, we must wait for it
+ // still looking for better solution!
+ _timeouts.releaseKeyboardTimeoutId = GLib.timeout_add(
+ GLib.PRIORITY_DEFAULT,
+ // delay cannot be too short
+ 200,
+ () => {
+ Main.overview.show(1, customOverviewMode);
+
+ _timeouts.releaseKeyboardTimeoutId = 0;
+ return GLib.SOURCE_REMOVE;
+ }
+ );
+ } else {
+ Main.overview.show(1, customOverviewMode);
+ }
+ }
+ },
+
+ _toggleApplications(leaveOverview = false) {
+ if ((leaveOverview && Main.overview._shown) || Main.overview.dash.showAppsButton.checked) {
+ Main.overview.hide();
+ } else {
+ const focusWindow = global.display.get_focus_window();
+ // at least GS 42 is unable to show overview in X11 session if VirtualBox Machine window grabbed keyboard
+ if (!Meta.is_wayland_compositor() && focusWindow && focusWindow.wm_class.includes('VirtualBox Machine')) {
+ // following should help when windowed VBox Machine has focus.
+ global.stage.set_key_focus(Main.panel);
+ // key focus doesn't take the effect immediately, we must wait for it
+ // still looking for better solution!
+ _timeouts.releaseKeyboardTimeoutId = GLib.timeout_add(
+ GLib.PRIORITY_DEFAULT,
+ // delay cannot be too short
+ 200,
+ () => {
+ Main.overview.show(2);
+
+ _timeouts.releaseKeyboardTimeoutId = 0;
+ return GLib.SOURCE_REMOVE;
+ }
+ );
+ } else if (Main.overview._shown) {
+ Main.overview.dash.showAppsButton.checked = true;
+ } else {
+ Main.overview.show(2); // 2 for App Grid
+ }
+ }
+ },
+
+ _toggleWindowSearchProvider() {
+ if (!Main.overview.searchController._searchActive) {
+ opt.OVERVIEW_MODE = 2;
+ opt.OVERVIEW_MODE2 = true;
+ opt.WORKSPACE_MODE = 0;
+ this._toggleWindowPicker(false, true);
+ const prefix = Me.WSP_PREFIX;
+ const position = prefix.length;
+ const searchEntry = Main.overview.searchEntry;
+ searchEntry.set_text(prefix);
+ // searchEntry.grab_key_focus();
+ searchEntry.get_first_child().set_cursor_position(position);
+ searchEntry.get_first_child().set_selection(position, position);
+ } else {
+ // Main.overview.searchEntry.text = '';
+ Main.overview.hide();
+ }
+ },
+};
diff --git a/extensions/47/vertical-workspaces/lib/messageTray.js b/extensions/47/vertical-workspaces/lib/messageTray.js
new file mode 100644
index 0000000..28d6b1d
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/messageTray.js
@@ -0,0 +1,91 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * messageTray.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ *
+ */
+
+'use strict';
+
+import Clutter from 'gi://Clutter';
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+
+let Me;
+let opt;
+
+export const MessageTrayModule = class {
+ constructor(me) {
+ Me = me;
+ opt = Me.opt;
+
+ this._firstActivation = true;
+ this.moduleEnabled = false;
+ }
+
+ cleanGlobals() {
+ Me = null;
+ opt = null;
+ }
+
+ update(reset) {
+ this.moduleEnabled = opt.get('messageTrayModule');
+ const conflict = false;
+
+ reset = reset || !this.moduleEnabled || conflict;
+
+ // don't touch the original code if module disabled
+ if (reset && !this._firstActivation) {
+ this._disableModule();
+ } else if (!reset) {
+ this._firstActivation = false;
+ this._activateModule();
+ }
+ if (reset && this._firstActivation)
+ console.debug(' MessageTrayModule - Keeping untouched');
+ }
+
+ _activateModule() {
+ this._setNotificationPosition(opt.NOTIFICATION_POSITION);
+
+ console.debug(' MessageTrayModule - Activated');
+ }
+
+ _disableModule() {
+ this._setNotificationPosition(1);
+
+ console.debug(' MessageTrayModule - Disabled');
+ }
+
+ _setNotificationPosition(position) {
+ switch (position) {
+ case 0:
+ Main.messageTray._bannerBin.x_align = Clutter.ActorAlign.START;
+ Main.messageTray._bannerBin.y_align = Clutter.ActorAlign.START;
+ break;
+ case 1:
+ Main.messageTray._bannerBin.x_align = Clutter.ActorAlign.CENTER;
+ Main.messageTray._bannerBin.y_align = Clutter.ActorAlign.START;
+ break;
+ case 2:
+ Main.messageTray._bannerBin.x_align = Clutter.ActorAlign.END;
+ Main.messageTray._bannerBin.y_align = Clutter.ActorAlign.START;
+ break;
+ case 3:
+ Main.messageTray._bannerBin.x_align = Clutter.ActorAlign.START;
+ Main.messageTray._bannerBin.y_align = Clutter.ActorAlign.END;
+ break;
+ case 4:
+ Main.messageTray._bannerBin.x_align = Clutter.ActorAlign.CENTER;
+ Main.messageTray._bannerBin.y_align = Clutter.ActorAlign.END;
+ break;
+ case 5:
+ Main.messageTray._bannerBin.x_align = Clutter.ActorAlign.END;
+ Main.messageTray._bannerBin.y_align = Clutter.ActorAlign.END;
+ break;
+ }
+ }
+};
diff --git a/extensions/47/vertical-workspaces/lib/optionsFactory.js b/extensions/47/vertical-workspaces/lib/optionsFactory.js
new file mode 100644
index 0000000..7284085
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/optionsFactory.js
@@ -0,0 +1,496 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * optionsFactory.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ */
+
+'use strict';
+
+import Adw from 'gi://Adw';
+import Gio from 'gi://Gio';
+import GObject from 'gi://GObject';
+import Gtk from 'gi://Gtk';
+
+let Me;
+
+// gettext
+let _;
+
+export function init(me) {
+ Me = me;
+ _ = Me.gettext;
+}
+
+export const ItemFactory = class ItemFactory {
+ constructor() {
+ this._settings = Me.Opt._gsettings;
+ }
+
+ getRowWidget(text, caption, widget, variable, options = [], dependsOn) {
+ let item = [];
+ let label;
+ if (widget) {
+ label = new Gtk.Box({
+ orientation: Gtk.Orientation.VERTICAL,
+ spacing: 4,
+ halign: Gtk.Align.START,
+ valign: Gtk.Align.CENTER,
+ });
+ const option = new Gtk.Label({
+ halign: Gtk.Align.START,
+ });
+ option.set_text(text);
+ label.append(option);
+
+ if (caption) {
+ const captionLabel = new Gtk.Label({
+ halign: Gtk.Align.START,
+ wrap: true,
+ /* width_chars: 80, */
+ xalign: 0,
+ });
+ const context = captionLabel.get_style_context();
+ context.add_class('dim-label');
+ context.add_class('caption');
+ captionLabel.set_text(caption);
+ label.append(captionLabel);
+ }
+ label._title = text;
+ } else {
+ label = text;
+ }
+ item.push(label);
+ item.push(widget);
+
+ let key;
+
+ if (variable && Me.Opt.options[variable]) {
+ const opt = Me.Opt.options[variable];
+ key = opt[1];
+ }
+
+ if (widget) {
+ if (widget._isSwitch)
+ this._connectSwitch(widget, key, variable);
+ else if (widget._isSpinButton || widget._isScale)
+ this._connectSpinButton(widget, key, variable);
+ else if (widget._isComboBox)
+ this._connectComboBox(widget, key, variable, options);
+ else if (widget._isDropDown)
+ this._connectDropDown(widget, key, variable, options);
+
+ if (dependsOn) {
+ const dKey = Me.Opt.options[dependsOn][1];
+ this._settings.bind(dKey, widget, 'sensitive', Gio.SettingsBindFlags.GET);
+ }
+ }
+
+ return item;
+ }
+
+ _connectSwitch(widget, key /* , variable */) {
+ this._settings.bind(key, widget, 'active', Gio.SettingsBindFlags.DEFAULT);
+ }
+
+ _connectSpinButton(widget, key /* , variable */) {
+ this._settings.bind(key, widget.adjustment, 'value', Gio.SettingsBindFlags.DEFAULT);
+ }
+
+ _connectComboBox(widget, key, variable, options) {
+ let model = widget.get_model();
+ widget._comboMap = {};
+ const currentValue = Me.Opt.get(variable);
+ for (const [label, value] of options) {
+ let iter;
+ model.set(iter = model.append(), [0, 1], [label, value]);
+ if (value === currentValue)
+ widget.set_active_iter(iter);
+
+ widget._comboMap[value] = iter;
+ }
+ Me.Opt.connect(`changed::${key}`, () => {
+ widget.set_active_iter(widget._comboMap[Me.Opt.get(variable, true)]);
+ });
+ widget.connect('changed', () => {
+ const [success, iter] = widget.get_active_iter();
+
+ if (!success)
+ return;
+
+ Me.Opt.set(variable, model.get_value(iter, 1));
+ });
+ }
+
+ _connectDropDown(widget, key, variable, options) {
+ const model = widget.get_model();
+ const currentValue = Me.Opt.get(variable);
+ for (let i = 0; i < options.length; i++) {
+ const text = options[i][0];
+ const id = options[i][1];
+ model.append(new DropDownItem({ text, id }));
+ if (id === currentValue)
+ widget.set_selected(i);
+ }
+
+ const factory = new Gtk.SignalListItemFactory();
+ factory.connect('setup', (fact, listItem) => {
+ const label = new Gtk.Label({ xalign: 0 });
+ listItem.set_child(label);
+ });
+ factory.connect('bind', (fact, listItem) => {
+ const label = listItem.get_child();
+ const item = listItem.get_item();
+ label.set_text(item.text);
+ });
+
+ widget.connect('notify::selected-item', dropDown => {
+ const item = dropDown.get_selected_item();
+ Me.Opt.set(variable, item.id);
+ });
+
+ Me.Opt.connect(`changed::${key}`, () => {
+ const newId = Me.Opt.get(variable, true);
+ for (let i = 0; i < options.length; i++) {
+ const id = options[i][1];
+ if (id === newId)
+ widget.set_selected(i);
+ }
+ });
+
+ widget.set_factory(factory);
+ }
+
+ newSwitch() {
+ let sw = new Gtk.Switch({
+ halign: Gtk.Align.END,
+ valign: Gtk.Align.CENTER,
+ hexpand: true,
+ });
+ sw._isSwitch = true;
+ return sw;
+ }
+
+ newSpinButton(adjustment) {
+ let spinButton = new Gtk.SpinButton({
+ halign: Gtk.Align.END,
+ valign: Gtk.Align.CENTER,
+ hexpand: true,
+ vexpand: false,
+ xalign: 0.5,
+ });
+ spinButton.set_adjustment(adjustment);
+ spinButton._isSpinButton = true;
+ return spinButton;
+ }
+
+ newComboBox() {
+ const model = new Gtk.ListStore();
+ model.set_column_types([GObject.TYPE_STRING, GObject.TYPE_INT]);
+ const comboBox = new Gtk.ComboBox({
+ model,
+ halign: Gtk.Align.END,
+ valign: Gtk.Align.CENTER,
+ hexpand: true,
+ });
+ const renderer = new Gtk.CellRendererText();
+ comboBox.pack_start(renderer, true);
+ comboBox.add_attribute(renderer, 'text', 0);
+ comboBox._isComboBox = true;
+ return comboBox;
+ }
+
+ newDropDown() {
+ const dropDown = new Gtk.DropDown({
+ model: new Gio.ListStore({
+ item_type: DropDownItem,
+ }),
+ halign: Gtk.Align.END,
+ valign: Gtk.Align.CENTER,
+ hexpand: true,
+ });
+ dropDown._isDropDown = true;
+ return dropDown;
+ }
+
+ newScale(adjustment) {
+ const scale = new Gtk.Scale({
+ orientation: Gtk.Orientation.HORIZONTAL,
+ draw_value: true,
+ has_origin: false,
+ value_pos: Gtk.PositionType.LEFT,
+ digits: 0,
+ halign: Gtk.Align.END,
+ valign: Gtk.Align.CENTER,
+ hexpand: true,
+ vexpand: false,
+ });
+ scale.set_size_request(300, -1);
+ scale.set_adjustment(adjustment);
+ scale._isScale = true;
+ return scale;
+ }
+
+ newLabel(text = '') {
+ const label = new Gtk.Label({
+ label: text,
+ halign: Gtk.Align.END,
+ valign: Gtk.Align.CENTER,
+ hexpand: true,
+ });
+ label._activatable = false;
+ return label;
+ }
+
+ newLinkButton(uri) {
+ const linkBtn = new Gtk.LinkButton({
+ uri,
+ halign: Gtk.Align.END,
+ valign: Gtk.Align.CENTER,
+ hexpand: true,
+ icon_name: 'emblem-symbolic-link',
+ });
+ return linkBtn;
+ }
+
+ newButton() {
+ const btn = new Gtk.Button({
+ halign: Gtk.Align.END,
+ valign: Gtk.Align.CENTER,
+ hexpand: true,
+ });
+
+ btn._activatable = true;
+ return btn;
+ }
+
+ newPresetButton(opt, profileIndex) {
+ const load = opt.loadProfile.bind(opt);
+ const save = opt.storeProfile.bind(opt);
+ const reset = opt.resetProfile.bind(opt);
+
+ const box = new Gtk.Box({
+ halign: Gtk.Align.END,
+ valign: Gtk.Align.CENTER,
+ hexpand: true,
+ spacing: 8,
+ });
+ box.is_profile_box = true;
+
+ const entry = new Gtk.Entry({
+ width_chars: 40,
+ halign: Gtk.Align.END,
+ valign: Gtk.Align.CENTER,
+ hexpand: true,
+ xalign: 0,
+ });
+ entry.set_text(opt.get(`profileName${profileIndex}`));
+ entry.set_icon_from_icon_name(Gtk.EntryIconPosition.SECONDARY, 'edit-clear-symbolic');
+ entry.set_icon_activatable(Gtk.EntryIconPosition.SECONDARY, true);
+
+ const resetProfile = this.newButton();
+ resetProfile.set({
+ tooltip_text: _('Reset profile to defaults'),
+ icon_name: 'document-revert-symbolic',
+ hexpand: false,
+ css_classes: ['destructive-action'],
+ });
+
+ function setName() {
+ const ProfileNames = [
+ _('GNOME 3 Layout (Vertical WS)'),
+ _('GNOME 4x Layout, Bottom Hot Edge (Horizontal WS)'),
+ _('Top Left Hot Corner Centric (Vertical WS)'),
+ _('Dock-Like Overview, Bottom Hot Edge (Horizontal WS)'),
+ ];
+
+ let name = opt.get(`profileName${profileIndex}`, true);
+ if (!name)
+ name = ProfileNames[profileIndex - 1];
+ entry.set_text(name);
+ }
+
+ setName();
+
+ entry.connect('icon-press', e => e.set_text(''));
+ entry.connect('changed', e => opt.set(`profileName${profileIndex}`, e.get_text()));
+
+ resetProfile.connect('clicked', () => {
+ reset(profileIndex);
+ setName();
+ });
+ resetProfile._activatable = false;
+
+ const loadProfile = this.newButton();
+ loadProfile.set({
+ tooltip_text: _('Load profile'),
+ icon_name: 'view-refresh-symbolic',
+ hexpand: false,
+ });
+ loadProfile.connect('clicked', () => load(profileIndex));
+ loadProfile._activatable = false;
+
+ const saveProfile = this.newButton();
+ saveProfile.set({
+ tooltip_text: _('Save current settings into this profile'),
+ icon_name: 'document-save-symbolic',
+ hexpand: false,
+ });
+ saveProfile.connect('clicked', () => save(profileIndex));
+ saveProfile._activatable = false;
+
+ box.append(resetProfile);
+ box.append(entry);
+ box.append(saveProfile);
+ box.append(loadProfile);
+ return box;
+ }
+
+ newResetButton(callback) {
+ const btn = this.newButton();
+ btn.set({
+ css_classes: ['destructive-action'],
+ icon_name: 'edit-delete-symbolic',
+ });
+
+ btn.connect('clicked', callback);
+ btn._activatable = false;
+ return btn;
+ }
+
+ newOptionsResetButton() {
+ const btn = new Gtk.Button({
+ halign: Gtk.Align.END,
+ valign: Gtk.Align.CENTER,
+ hexpand: true,
+ css_classes: ['destructive-action'],
+ icon_name: 'document-revert-symbolic',
+ });
+
+ btn.connect('clicked', () => {
+ const settings = this._settings;
+ settings.list_keys().forEach(
+ key => settings.reset(key)
+ );
+ });
+ btn._activatable = false;
+ return btn;
+ }
+};
+
+export const AdwPrefs = class {
+ constructor(gOptions) {
+ Me.Opt = gOptions;
+ }
+
+ getFilledWindow(window, pages) {
+ for (let page of pages) {
+ const title = page.title;
+ const iconName = page.iconName;
+ const optionList = page.optionList;
+
+ window.add(
+ this._getAdwPage(optionList, {
+ title,
+ icon_name: iconName,
+ })
+ );
+ }
+
+ window.set_search_enabled(true);
+
+ return window;
+ }
+
+ _getAdwPage(optionList, pageProperties = {}) {
+ // pageProperties.width_request = 740;
+ const page = new Adw.PreferencesPage(pageProperties);
+ let group;
+ for (let item of optionList) {
+ // label can be plain text for Section Title
+ // or GtkBox for Option
+ const option = item[0];
+ const widget = item[1];
+ if (!widget) {
+ if (group)
+ page.add(group);
+
+ group = new Adw.PreferencesGroup({
+ title: option,
+ hexpand: true,
+ width_request: 700,
+ });
+ continue;
+ }
+
+ const row = new Adw.ActionRow({
+ title: option._title,
+ });
+
+ const grid = new Gtk.Grid({
+ column_homogeneous: false,
+ column_spacing: 20,
+ margin_start: 8,
+ margin_end: 8,
+ margin_top: 8,
+ margin_bottom: 8,
+ hexpand: true,
+ });
+ /* for (let i of item) {
+ box.append(i);*/
+ grid.attach(option, 0, 0, 1, 1);
+ if (widget)
+ grid.attach(widget, 1, 0, 1, 1);
+
+ row.set_child(grid);
+ if (widget._activatable === false)
+ row.activatable = false;
+ else
+ row.activatable_widget = widget;
+
+ group.add(row);
+ }
+ page.add(group);
+ return page;
+ }
+};
+
+const DropDownItem = GObject.registerClass({
+ // Registered name should be unique
+ GTypeName: `DropDownItem${Math.floor(Math.random() * 1000)}`,
+ Properties: {
+ 'text': GObject.ParamSpec.string(
+ 'text',
+ 'Text',
+ 'DropDown item text',
+ GObject.ParamFlags.READWRITE,
+ ''
+ ),
+ 'id': GObject.ParamSpec.int(
+ 'id',
+ 'Id',
+ 'Item id stored in settings',
+ GObject.ParamFlags.READWRITE,
+ // min, max, default
+ -2147483648, 2147483647, 0
+ ),
+ },
+}, class DropDownItem extends GObject.Object {
+ get text() {
+ return this._text;
+ }
+
+ set text(text) {
+ this._text = text;
+ }
+
+ get id() {
+ return this._id;
+ }
+
+ set id(id) {
+ this._id = id;
+ }
+});
diff --git a/extensions/47/vertical-workspaces/lib/osdWindow.js b/extensions/47/vertical-workspaces/lib/osdWindow.js
new file mode 100644
index 0000000..a06a331
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/osdWindow.js
@@ -0,0 +1,118 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * osdWindow.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ *
+ */
+
+'use strict';
+
+import Clutter from 'gi://Clutter';
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+import * as OsdWindow from 'resource:///org/gnome/shell/ui/osdWindow.js';
+
+let Me;
+let opt;
+
+let OsdPositions;
+
+export const OsdWindowModule = class {
+ constructor(me) {
+ Me = me;
+ opt = Me.opt;
+
+ this._firstActivation = true;
+ this.moduleEnabled = false;
+ this._overrides = null;
+
+ OsdPositions = {
+ 1: {
+ x_align: Clutter.ActorAlign.START,
+ y_align: Clutter.ActorAlign.START,
+ },
+ 2: {
+ x_align: Clutter.ActorAlign.CENTER,
+ y_align: Clutter.ActorAlign.START,
+ },
+ 3: {
+ x_align: Clutter.ActorAlign.END,
+ y_align: Clutter.ActorAlign.START,
+ },
+ 4: {
+ x_align: Clutter.ActorAlign.CENTER,
+ y_align: Clutter.ActorAlign.CENTER,
+ },
+ 5: {
+ x_align: Clutter.ActorAlign.START,
+ y_align: Clutter.ActorAlign.END,
+ },
+ 6: {
+ x_align: Clutter.ActorAlign.CENTER,
+ y_align: Clutter.ActorAlign.END,
+ },
+ 7: {
+ x_align: Clutter.ActorAlign.END,
+ y_align: Clutter.ActorAlign.END,
+ },
+ };
+ }
+
+ cleanGlobals() {
+ Me = null;
+ opt = null;
+ OsdPositions = null;
+ }
+
+ update(reset) {
+ this.moduleEnabled = opt.get('osdWindowModule');
+ const conflict = false;
+
+ reset = reset || !this.moduleEnabled || conflict;
+
+ // don't touch the original code if module disabled
+ if (reset && !this._firstActivation) {
+ this._disableModule();
+ } else if (!reset) {
+ this._firstActivation = false;
+ this._activateModule();
+ }
+ if (reset && this._firstActivation)
+ console.debug(' OsdWindowModule - Keeping untouched');
+ }
+
+ _activateModule() {
+ if (!this._overrides)
+ this._overrides = new Me.Util.Overrides();
+
+ this._overrides.addOverride('osdWindow', OsdWindow.OsdWindow.prototype, OsdWindowCommon);
+ console.debug(' OsdWindowModule - Activated');
+ }
+
+ _disableModule() {
+ if (this._overrides)
+ this._overrides.removeAll();
+ this._overrides = null;
+ this._updateExistingOsdWindows(6);
+
+ console.debug(' WorkspaceSwitcherPopupModule - Disabled');
+ }
+
+ _updateExistingOsdWindows(position) {
+ position = position ? position : opt.OSD_POSITION;
+ Main.osdWindowManager._osdWindows.forEach(osd => {
+ osd.set(OsdPositions[position]);
+ });
+ }
+};
+
+const OsdWindowCommon = {
+ after_show() {
+ if (!opt.OSD_POSITION)
+ this.opacity = 0;
+ this.set(OsdPositions[opt.OSD_POSITION]);
+ },
+};
diff --git a/extensions/47/vertical-workspaces/lib/overlayKey.js b/extensions/47/vertical-workspaces/lib/overlayKey.js
new file mode 100644
index 0000000..5ffd973
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/overlayKey.js
@@ -0,0 +1,170 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * overlayKey.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ *
+ */
+
+'use strict';
+
+import GLib from 'gi://GLib';
+import St from 'gi://St';
+import Meta from 'gi://Meta';
+import GObject from 'gi://GObject';
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+import * as Overview from 'resource:///org/gnome/shell/ui/overview.js';
+
+let Me;
+let opt;
+
+export const OverlayKeyModule = class {
+ constructor(me) {
+ Me = me;
+ opt = Me.opt;
+
+ this._firstActivation = true;
+ this.moduleEnabled = false;
+ this._originalOverlayKeyHandlerId = 0;
+ this._overlayKeyHandlerId = 0;
+ }
+
+ cleanGlobals() {
+ Me = null;
+ opt = null;
+ }
+
+ update(reset) {
+ this.moduleEnabled = opt.get('overlayKeyModule');
+ const conflict = false;
+ // Avoid modifying the overlay key if its configuration is consistent with the GNOME default
+ const defaultConfig = opt.OVERVIEW_MODE === 0 && opt.OVERLAY_KEY_PRIMARY === 2 && opt.OVERLAY_KEY_SECONDARY === 1;
+
+ reset = reset || !this.moduleEnabled || conflict || defaultConfig;
+
+ if (reset && !this._firstActivation) {
+ this._disableModule();
+ } else if (!reset) {
+ this._firstActivation = false;
+ this._activateModule();
+ }
+ if (reset && this._firstActivation)
+ console.debug(' OverlayKeyModule - Keeping untouched');
+ }
+
+ _activateModule() {
+ if (!this._originalOverlayKeyHandlerId) {
+ this._originalOverlayKeyHandlerId = GObject.signal_handler_find(global.display, { signalId: 'overlay-key' });
+ if (this._originalOverlayKeyHandlerId !== null) {
+ global.display.block_signal_handler(this._originalOverlayKeyHandlerId);
+ this._connectOverlayKey();
+ }
+ }
+ console.debug(' OverlayKeyModule - Activated');
+ }
+
+ _disableModule() {
+ this._restoreOverlayKeyHandler();
+
+ console.debug(' OverlayKeyModule - Disabled');
+ }
+
+ _restoreOverlayKeyHandler() {
+ // Disconnect modified overlay key handler
+ if (this._overlayKeyHandlerId) {
+ global.display.disconnect(this._overlayKeyHandlerId);
+ this._overlayKeyHandlerId = 0;
+ }
+
+ // Unblock original overlay key handler
+ if (this._originalOverlayKeyHandlerId) {
+ global.display.unblock_signal_handler(this._originalOverlayKeyHandlerId);
+ this._originalOverlayKeyHandlerId = 0;
+ }
+ }
+
+ _connectOverlayKey() {
+ if (this._overlayKeyHandlerId)
+ return;
+
+ this._overlayKeyHandlerId = global.display.connect('overlay-key', this._onOverlayKeyPressed.bind(Main.overview._overview.controls));
+ }
+
+ _onOverlayKeyPressed() {
+ if (this._a11ySettings.get_boolean('stickykeys-enable'))
+ return;
+
+ const { initialState, finalState, transitioning } =
+ this._stateAdjustment.getStateTransitionParams();
+
+ const time = GLib.get_monotonic_time() / 1000;
+ const timeDiff = time - this._lastOverlayKeyTime;
+ this._lastOverlayKeyTime = time;
+
+ const shouldShift = St.Settings.get().enable_animations
+ ? transitioning && finalState > initialState
+ : Main.overview.visible && timeDiff < Overview.ANIMATION_TIME;
+
+ const mode = opt.OVERLAY_KEY_SECONDARY;
+ if (shouldShift) {
+ Me.Util.activateSearchProvider('');
+ if (mode === 1) {
+ this._shiftState(Meta.MotionDirection.UP);
+ } else if (mode === 2) {
+ Me.Util.activateSearchProvider(Me.WSP_PREFIX);
+ } else if (mode === 3) {
+ // Changing the overview mode automatically changes the overview transition
+ opt.OVERVIEW_MODE = 0;
+ opt.OVERVIEW_MODE2 = false;
+ opt.WORKSPACE_MODE = 1;
+ }
+ } else {
+ if (Main.overview._shown) {
+ Main.overview.hide();
+ return;
+ }
+ switch (opt.OVERLAY_KEY_PRIMARY) {
+ case 0: // Disabled
+ return;
+ case 1: // Follow global overview mode
+ Main.overview.resetOverviewMode();
+ break;
+ case 2: // Default overview
+ opt.OVERVIEW_MODE = 0;
+ opt.OVERVIEW_MODE2 = false;
+ opt.WORKSPACE_MODE = 1;
+ break;
+ case 3: // App grid
+ if (Main.overview._shown)
+ Main.overview.hide();
+ else
+ Main.overview.show(2);
+ return;
+ case 4: // Static WS preview
+ opt.OVERVIEW_MODE = 1;
+ opt.OVERVIEW_MODE2 = false;
+ if (!Main.overview._shown)
+ opt.WORKSPACE_MODE = 0;
+ break;
+ case 5: // Static WS
+ opt.OVERVIEW_MODE = 2;
+ opt.OVERVIEW_MODE2 = true;
+ opt.WORKSPACE_MODE = 0;
+ break;
+ case 6: // Window Search
+ opt.OVERVIEW_MODE = 2;
+ opt.OVERVIEW_MODE2 = true;
+ if (!Main.overview._shown)
+ opt.WORKSPACE_MODE = 0;
+ break;
+ }
+ const customOverviewMode = !Main.overview._shown;
+ Main.overview.toggle(customOverviewMode);
+ if (opt.OVERLAY_KEY_PRIMARY === 6)
+ Me.Util.activateSearchProvider(Me.WSP_PREFIX);
+ }
+ }
+};
diff --git a/extensions/47/vertical-workspaces/lib/overview.js b/extensions/47/vertical-workspaces/lib/overview.js
new file mode 100644
index 0000000..30cc5db
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/overview.js
@@ -0,0 +1,162 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * overview.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ *
+ */
+
+'use strict';
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+import * as Overview from 'resource:///org/gnome/shell/ui/overview.js';
+import * as OverviewControls from 'resource:///org/gnome/shell/ui/overviewControls.js';
+
+let Me;
+let opt;
+
+export const OverviewModule = class {
+ constructor(me) {
+ Me = me;
+ opt = Me.opt;
+
+ this._firstActivation = true;
+ this.moduleEnabled = false;
+ this._overrides = null;
+ }
+
+ cleanGlobals() {
+ Me = null;
+ opt = null;
+ }
+
+ update(reset) {
+ this.moduleEnabled = true;
+ const conflict = false;
+
+ reset = reset || !this.moduleEnabled || conflict;
+
+ // don't touch the original code if module disabled
+ if (reset && !this._firstActivation) {
+ this._disableModule();
+ } else if (!reset) {
+ this._firstActivation = false;
+ this._activateModule();
+ }
+ if (reset && this._firstActivation)
+ console.debug(' OverviewModule - Keeping untouched');
+ }
+
+ _activateModule() {
+ if (!this._overrides)
+ this._overrides = new Me.Util.Overrides();
+
+ this._overrides.addOverride('Overview', Overview.Overview.prototype, OverviewCommon);
+ console.debug(' OverviewModule - Activated');
+ }
+
+ _disableModule() {
+ if (this._overrides)
+ this._overrides.removeAll();
+ this._overrides = null;
+
+ console.debug(' OverviewModule - Disabled');
+ }
+};
+
+const OverviewCommon = {
+ show(state = OverviewControls.ControlsState.WINDOW_PICKER, customOverviewMode) {
+ if (!customOverviewMode)
+ this.resetOverviewMode();
+
+ if (state === OverviewControls.ControlsState.HIDDEN)
+ throw new Error('Invalid state, use hide() to hide');
+
+ if (this.isDummy)
+ return;
+ if (this._shown)
+ return;
+ this._shown = true;
+
+ if (!this._syncGrab())
+ return;
+
+ Main.layoutManager.showOverview();
+ this._animateVisible(state);
+ },
+
+ toggle(customOverviewMode) {
+ if (this.isDummy)
+ return;
+
+ if (this._visible)
+ this.hide();
+ else
+ this.show(OverviewControls.ControlsState.WINDOW_PICKER, customOverviewMode);
+ },
+
+ resetOverviewMode() {
+ // reset Overview Mode do default
+ opt.OVERVIEW_MODE = opt.get('overviewMode');
+ opt.OVERVIEW_MODE2 = opt.OVERVIEW_MODE === 2;
+ opt.WORKSPACE_MODE = opt.OVERVIEW_MODE > 0 ? 0 : 1;
+ },
+
+ _showDone() {
+ this._animationInProgress = false;
+ this._coverPane.hide();
+
+ if (this._shownState !== 'SHOWN')
+ this._changeShownState('SHOWN');
+
+ // Handle any calls to hide* while we were showing
+ if (!this._shown)
+ this._animateNotVisible();
+
+ // if user activates overview during startup animation, transition needs to be shifted to the state 2 here
+ const controls = this._overview._controls;
+ if (controls._searchController._searchActive && controls._stateAdjustment.value === 1) {
+ if (opt.SEARCH_VIEW_ANIMATION)
+ controls._onSearchChanged();
+ else if (!opt.OVERVIEW_MODE2)
+ controls._stateAdjustment.value = 2;
+ }
+
+ this._syncGrab();
+ },
+
+ // Workaround - should probably be fixed elsewhere in the upstream code
+ // If a new window is opened from the overview
+ // and is realized before the overview animation is complete,
+ // the new window will not get focus
+ after__hideDone() {
+ if (!opt.FIX_NEW_WINDOW_FOCUS)
+ return;
+
+ const workspace = global.workspace_manager.get_active_workspace();
+ const recentDesktopWin = global.display.get_tab_list(1, workspace)[0];
+ let recentNormalWin = null;
+ const tabList = global.display.get_tab_list(0, workspace);
+
+ for (let i = 0; i < tabList.length; i++) {
+ if (tabList[i].minimized === false) {
+ recentNormalWin = tabList[i];
+ break;
+ }
+ }
+
+ let recentWin = recentNormalWin;
+ if (recentNormalWin && recentDesktopWin) {
+ recentWin = recentNormalWin.get_user_time() > recentDesktopWin.get_user_time()
+ ? recentNormalWin
+ : recentDesktopWin;
+ }
+
+ const focusedWin = global.display.focus_window;
+
+ if (recentWin && focusedWin !== recentWin)
+ recentWin.activate(global.get_current_time());
+ },
+};
diff --git a/extensions/47/vertical-workspaces/lib/overviewControls.js b/extensions/47/vertical-workspaces/lib/overviewControls.js
new file mode 100644
index 0000000..c5a74f1
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/overviewControls.js
@@ -0,0 +1,1633 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * overviewControls.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ *
+ */
+
+'use strict';
+
+import Clutter from 'gi://Clutter';
+import GLib from 'gi://GLib';
+import GObject from 'gi://GObject';
+import St from 'gi://St';
+import Shell from 'gi://Shell';
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+import * as Overview from 'resource:///org/gnome/shell/ui/overview.js';
+import * as OverviewControls from 'resource:///org/gnome/shell/ui/overviewControls.js';
+import * as WorkspacesView from 'resource:///org/gnome/shell/ui/workspacesView.js';
+import * as Background from 'resource:///org/gnome/shell/ui/background.js';
+import * as Util from 'resource:///org/gnome/shell/misc/util.js';
+
+let Me;
+let opt;
+// gettext
+let _;
+
+const ControlsState = OverviewControls.ControlsState;
+const FitMode = WorkspacesView.FitMode;
+
+const STARTUP_ANIMATION_TIME = 500;
+const ANIMATION_TIME = Overview.ANIMATION_TIME;
+const DASH_MAX_SIZE_RATIO = 0.35;
+
+let _timeouts;
+
+export const OverviewControlsModule = class {
+ constructor(me) {
+ Me = me;
+ opt = Me.opt;
+ _ = Me.gettext;
+
+ this._firstActivation = true;
+ this.moduleEnabled = false;
+ this._overrides = null;
+ }
+
+ cleanGlobals() {
+ Me = null;
+ opt = null;
+ _ = null;
+ }
+
+ update(reset) {
+ this._removeTimeouts();
+ this.moduleEnabled = true;
+ const conflict = false;
+
+ reset = reset || !this.moduleEnabled || conflict;
+
+ // don't touch the original code if module disabled
+ if (reset && !this._firstActivation) {
+ this._disableModule();
+ } else if (!reset) {
+ this._firstActivation = false;
+ this._activateModule();
+ }
+ if (reset && this._firstActivation)
+ console.debug(' OverviewControlsModule - Keeping untouched');
+ }
+
+ _activateModule() {
+ if (!this._overrides)
+ this._overrides = new Me.Util.Overrides();
+
+ _timeouts = {};
+
+ this._replaceOnSearchChanged();
+
+ this._overrides.addOverride('ControlsManager', OverviewControls.ControlsManager.prototype, ControlsManagerCommon);
+ this._overrides.addOverride('ControlsManagerLayoutCommon', Main.overview._overview.controls.layoutManager, ControlsManagerLayoutCommon);
+ if (opt.ORIENTATION === Clutter.Orientation.VERTICAL)
+ this._overrides.addOverride('ControlsManagerLayout', Main.overview._overview.controls.layoutManager, ControlsManagerLayoutVertical);
+ else
+ this._overrides.addOverride('ControlsManagerLayout', Main.overview._overview.controls.layoutManager, ControlsManagerLayoutHorizontal);
+
+ // Allow user to close the overview by clicking on an empty space on the primary monitor's overview
+ // Secondary monitors are handled in workspacesView
+ this._addClickToCloseOverview();
+
+ // Update custom workAreaBox
+ Main.overview._overview.controls.layoutManager._updateWorkAreaBox();
+
+ console.debug(' OverviewControlsModule - Activated');
+ }
+
+ _disableModule() {
+ if (this._overrides)
+ this._overrides.removeAll();
+ this._overrides = null;
+
+ const reset = true;
+ this._replaceOnSearchChanged(reset);
+ Main.overview._overview._controls._appDisplay.opacity = 255;
+ this._addClickToCloseOverview(reset);
+
+ console.debug(' OverviewControlsModule - Disabled');
+ }
+
+ _removeTimeouts() {
+ if (_timeouts) {
+ Object.values(_timeouts).forEach(t => {
+ if (t)
+ GLib.source_remove(t);
+ });
+ _timeouts = null;
+ }
+ }
+
+ _replaceOnSearchChanged(reset) {
+ const searchController = Main.overview.searchController;
+ if (reset) {
+ if (this._searchControllerSigId) {
+ searchController.disconnect(this._searchControllerSigId);
+ this._searchControllerSigId = 0;
+ }
+ if (this._originalSearchControllerSigId) {
+ searchController.unblock_signal_handler(this._originalSearchControllerSigId);
+ this._originalSearchControllerSigId = 0;
+ }
+ searchController._searchResults.translation_x = 0;
+ searchController._searchResults.translation_y = 0;
+ Main.overview.searchEntry.visible = true;
+ Main.overview.searchEntry.opacity = 255;
+ } else {
+ // reconnect signal to use custom function (callbacks cannot be overridden in class prototype, they are already in memory as a copy for the given callback)
+ if (!this._originalSearchControllerSigId) {
+ this._originalSearchControllerSigId = GObject.signal_handler_find(searchController, { signalId: 'notify', detail: 'search-active' });
+ if (this._originalSearchControllerSigId)
+ searchController.block_signal_handler(this._originalSearchControllerSigId);
+ }
+
+ if (!this._searchControllerSigId)
+ this._searchControllerSigId = searchController.connect('notify::search-active', () => Main.overview._overview.controls._onSearchChanged());
+ }
+ }
+
+ _addClickToCloseOverview(reset) {
+ const overview = Main.overview._overview;
+
+ overview.reactive = false;
+ if (this._clickEmptyConId) {
+ overview.disconnect(this._clickEmptyConId);
+ this._clickEmptyConId = 0;
+ }
+
+ if (reset || !opt.CLICK_EMPTY_CLOSE)
+ return;
+
+ overview.reactive = true;
+ this._clickEmptyConId = overview.connect('button-release-event', (actor, event) => {
+ const button = event.get_button();
+ const overviewState = overview.controls._stateAdjustment.value;
+ const buttonPrimary = button === Clutter.BUTTON_PRIMARY;
+ const buttonSecondary = button === Clutter.BUTTON_SECONDARY;
+ const buttonAny = buttonPrimary || buttonSecondary;
+
+ if ((overviewState === 1 && buttonAny) || (overviewState === 2 && buttonSecondary))
+ Main.overview.hide();
+ });
+ }
+};
+
+const ControlsManagerCommon = {
+ // this function is used as a callback by a signal handler, needs to be reconnected after modification as the original callback uses a copy of the original function
+ /* _update: function() {
+ ...
+ }*/
+
+ prepareToEnterOverview() {
+ this._searchController.prepareToEnterOverview();
+ this._workspacesDisplay.prepareToEnterOverview();
+ // Workaround for thumbnailsBox not re-scaling after switching workspace outside of overview using a trackpad
+ this._thumbnailsBox._updateIndicator();
+
+ Main.overview._overview.controls.opacity = 255;
+
+ // Ensure that overview backgrounds are ready when needed
+ if (!this._bgManagers && (opt.SHOW_BG_IN_OVERVIEW || !opt.SHOW_WS_PREVIEW_BG))
+ this._setBackground();
+ else if (this._bgManagers && !(opt.SHOW_BG_IN_OVERVIEW || !opt.SHOW_WS_PREVIEW_BG))
+ this._setBackground(true);
+
+ // store pointer X coordinate for OVERVIEW_MODE 1 - to prevent immediate switch to WORKSPACE_MODE 1 if the mouse pointer is steady
+ opt.showingPointerX = global.get_pointer()[0];
+ },
+
+ // this function has duplicate in WorkspaceView so we use one function for both to avoid issues with syncing them
+ _getFitModeForState(state) {
+ return _getFitModeForState(state);
+ },
+
+ _updateThumbnailsBox() {
+ const { shouldShow } = this._thumbnailsBox;
+ const thumbnailsBoxVisible = shouldShow;
+ this._thumbnailsBox.visible = thumbnailsBoxVisible;
+
+ // this call should be directly in _update(), but it's used as a callback function and it would require to reconnect the signal
+ this._updateOverview();
+ },
+
+ // this function is pure addition to the original code and handles wsDisp transition to APP_GRID view
+ _updateOverview() {
+ this._workspacesDisplay.translation_x = 0;
+ this._workspacesDisplay.translation_y = 0;
+ this._workspacesDisplay.scale_x = 1;
+ this._workspacesDisplay.scale_y = 1;
+ const { initialState, finalState, progress, currentState } = this._stateAdjustment.getStateTransitionParams();
+
+ const paramsForState = s => {
+ let opacity;
+ switch (s) {
+ case ControlsState.HIDDEN:
+ case ControlsState.WINDOW_PICKER:
+ opacity = 255;
+ break;
+ case ControlsState.APP_GRID:
+ opacity = 0;
+ break;
+ default:
+ opacity = 255;
+ break;
+ }
+ return { opacity };
+ };
+
+ let initialParams = paramsForState(initialState);
+ let finalParams = paramsForState(finalState);
+
+ let opacity = Math.round(Util.lerp(initialParams.opacity, finalParams.opacity, progress));
+
+ let workspacesDisplayVisible = opacity !== 0;
+
+ // improve transition from search results to desktop
+ if (finalState === 0 && this._searchController._searchResults.visible)
+ this._searchController.hide();
+
+ // reset Static Workspace window picker mode
+ if (currentState === 0 && opt.OVERVIEW_MODE && opt.WORKSPACE_MODE)
+ opt.WORKSPACE_MODE = 0;
+
+ if (!opt.WS_ANIMATION || (!opt.SHOW_WS_TMB && opt.SHOW_WS_PREVIEW_BG)) {
+ this._workspacesDisplay.opacity = opacity;
+ } else if (!opt.SHOW_WS_TMB_BG && opt.SHOW_WS_PREVIEW_BG) {
+ // fade out ws wallpaper during transition to ws switcher if ws switcher background disabled
+ const workspaces = this._workspacesDisplay._workspacesViews[global.display.get_primary_monitor()]?._workspaces;
+ // Speed up the workspace background opacity transition
+ if (opt.WORKSPACE_MAX_SPACING < opt.WS_MAX_SPACING_OFF_SCREEN && workspaces)
+ // If workspacesDisplay max spacing is set so adjacent workspaces could be visible on the screen
+ workspaces.forEach(w => w._background.set_opacity(Math.max(0, opacity - (255 - opacity))));
+ else if (workspaces)
+ // If adjacent workspaces should not be visible on the screen, set the opacity only for the visible one
+ workspaces[this._workspaceAdjustment.value]?._background.set_opacity(Math.max(0, opacity - (255 - opacity)));
+ }
+
+ // if ws preview background is disabled, animate tmb box and dash
+ const tmbBox = this._thumbnailsBox;
+ const dash = this.dash;
+ const searchEntryBin = this._searchEntryBin;
+ // this dash transition collides with startup animation and freezes GS for good, needs to be delayed (first Main.overview 'hiding' event enables it)
+ const skipDash = Me.Util.dashNotDefault();
+
+ // OVERVIEW_MODE 2 should animate dash and wsTmbBox only if WORKSPACE_MODE === 0 (windows not spread)
+ const animateOverviewMode2 = opt.OVERVIEW_MODE2 && !(finalState === 1 && opt.WORKSPACE_MODE);
+ if (!Main.layoutManager._startingUp && ((!opt.SHOW_WS_PREVIEW_BG && !opt.OVERVIEW_MODE2) || animateOverviewMode2)) {
+ if (!tmbBox._translationOriginal || Math.abs(tmbBox._translationOriginal[0]) > 500) { // swipe gesture can call this calculation before tmbBox is realized, giving nonsense width
+ const [dashTranslationX, dashTranslationY, tmbTranslationX, tmbTranslationY, searchTranslationY] = this._getOverviewTranslations(dash, tmbBox, searchEntryBin);
+ tmbBox._translationOriginal = [tmbTranslationX, tmbTranslationY];
+ dash._translationOriginal = [dashTranslationX, dashTranslationY];
+ searchEntryBin._translationOriginal = searchTranslationY;
+ }
+ if (finalState === 0 || initialState === 0) {
+ const prg = Math.abs((finalState === 0 ? 0 : 1) - progress);
+ tmbBox.translation_x = Math.round(prg * tmbBox._translationOriginal[0]);
+ tmbBox.translation_y = Math.round(prg * tmbBox._translationOriginal[1]);
+ if (!skipDash) {
+ dash.translation_x = Math.round(prg * dash._translationOriginal[0]);
+ dash.translation_y = Math.round(prg * dash._translationOriginal[1]);
+ }
+ searchEntryBin.translation_y = Math.round(prg * searchEntryBin._translationOriginal);
+ }
+ if (progress === 1) {
+ tmbBox._translationOriginal = 0;
+ if (!skipDash)
+ dash._translationOriginal = 0;
+
+ searchEntryBin._translationOriginal = 0;
+ }
+ } else if (!Main.layoutManager._startingUp && (tmbBox.translation_x || tmbBox.translation_y)) {
+ tmbBox.translation_x = 0;
+ tmbBox.translation_y = 0;
+ if (!skipDash) {
+ dash.translation_x = 0;
+ dash.translation_y = 0;
+ }
+ searchEntryBin.translation_y = 0;
+ }
+
+ if (!Main.layoutManager._startingUp) {
+ if (initialState === ControlsState.HIDDEN && finalState === ControlsState.APP_GRID)
+ this._appDisplay.opacity = Math.round(progress * 255);
+ else
+ this._appDisplay.opacity = 255 - opacity;
+ }
+
+ if (currentState === ControlsState.APP_GRID) {
+ // in app grid hide workspaces so they're not blocking app grid or ws thumbnails
+ this._workspacesDisplay.scale_x = 0;
+ } else {
+ this._workspacesDisplay.scale_x = 1;
+ }
+ if (opt.LEAVING_SEARCH && currentState <= ControlsState.WINDOW_PICKER) {
+ opt.LEAVING_SEARCH = false;
+ }
+
+ this._workspacesDisplay.setPrimaryWorkspaceVisible(workspacesDisplayVisible);
+
+ if (!this.dash._isAbove && progress > 0 && opt.OVERVIEW_MODE2) {
+ // set searchEntry above appDisplay
+ this.set_child_above_sibling(this._searchEntryBin, null);
+ // move dash above wsTmb for case that dash and wsTmb animate from the same side
+ if (!Me.Util.dashNotDefault())
+ this.set_child_above_sibling(dash, null);
+ this.set_child_below_sibling(this._thumbnailsBox, null);
+ this.set_child_below_sibling(this._workspacesDisplay, null);
+ this.set_child_below_sibling(this._appDisplay, null);
+ } else if (!this.dash._isAbove && progress === 1 && finalState > ControlsState.HIDDEN) {
+ // set dash above workspace in the overview
+ this.set_child_above_sibling(this._thumbnailsBox, null);
+ this.set_child_above_sibling(this._searchEntryBin, null);
+ if (!Me.Util.dashNotDefault())
+ this.set_child_above_sibling(this.dash, null);
+ if (Main.layoutManager.panelBox.get_parent() === Main.layoutManager.overviewGroup)
+ Main.layoutManager.overviewGroup.set_child_above_sibling(Main.layoutManager.panelBox, Main.overview._overview);
+ this.dash._isAbove = true;
+ } else if (this.dash._isAbove && progress < 1) {
+ // keep dash below for ws transition between the overview and hidden state
+ this.set_child_above_sibling(this._workspacesDisplay, null);
+ if (Main.layoutManager.panelBox.get_parent() === Main.layoutManager.overviewGroup)
+ Main.layoutManager.overviewGroup.set_child_below_sibling(Main.layoutManager.panelBox, Main.overview._overview);
+ this.dash._isAbove = false;
+ }
+ },
+
+ // fix for upstream bug - appGrid.visible after transition from APP_GRID to HIDDEN
+ _updateAppDisplayVisibility(stateTransitionParams = null) {
+ if (!stateTransitionParams)
+ stateTransitionParams = this._stateAdjustment.getStateTransitionParams();
+
+ const { currentState } = stateTransitionParams;
+ if (this.dash.showAppsButton.checked)
+ this._searchTransition = false;
+
+ // if !APP_GRID_ANIMATION, appGrid needs to be hidden in WINDOW_PICKER mode (1)
+ // but needs to be visible for transition from HIDDEN (0) to APP_GRID (2)
+ this._appDisplay.visible =
+ currentState > ControlsState.HIDDEN &&
+ !this._searchController.searchActive &&
+ !(currentState === ControlsState.WINDOW_PICKER && !opt.APP_GRID_ANIMATION) &&
+ !this._searchTransition;
+ },
+
+ _activateSearchAppGridMode() {
+ if (!this._origAppGridContent) {
+ this._origAppGridContent = {
+ usage: opt.APP_GRID_USAGE,
+ favorites: opt.APP_GRID_EXCLUDE_FAVORITES,
+ running: opt.APP_GRID_EXCLUDE_RUNNING,
+ incompletePages: this._appDisplay._grid.layoutManager.allowIncompletePages,
+ order: opt.APP_GRID_ORDER,
+ };
+ opt.APP_GRID_ORDER = 3;
+ opt.APP_GRID_USAGE = true;
+ opt.APP_GRID_EXCLUDE_FAVORITES = false;
+ opt.APP_GRID_EXCLUDE_RUNNING = false;
+ this._appDisplay._grid.layoutManager.allowIncompletePages = false;
+ this._appDisplay._redisplay();
+ }
+ },
+
+ _deactivateSearchAppGridMode() {
+ if (this._origAppGridContent) {
+ const icons = this._appDisplay._orderedItems;
+ icons.forEach(icon => {
+ icon.visible = true;
+ });
+
+ opt.APP_GRID_ORDER = this._origAppGridContent.order;
+ opt.APP_GRID_USAGE = this._origAppGridContent.usage;
+ opt.APP_GRID_EXCLUDE_FAVORITES = this._origAppGridContent.favorites;
+ opt.APP_GRID_EXCLUDE_RUNNING = this._origAppGridContent.running;
+ this._appDisplay._grid.layoutManager.allowIncompletePages = this._origAppGridContent.incompletePages;
+ this._origAppGridContent = null;
+ this._appDisplay._redisplay();
+ }
+ },
+
+ _onSearchChanged() {
+ // something is somewhere setting the opacity to 0 if V-Shell is rebased while in overview / search
+ this._searchController.opacity = 255;
+
+ const { finalState, currentState } = this._stateAdjustment.getStateTransitionParams();
+
+ const { searchActive } = this._searchController;
+ const SIDE_CONTROLS_ANIMATION_TIME = 250; // OverviewControls.SIDE_CONTROLS_ANIMATION_TIME = Overview.ANIMATION_TIME = 250
+
+ const entry = this._searchEntry;
+ if (opt.SHOW_SEARCH_ENTRY) {
+ entry.visible = true;
+ entry.opacity = 255;
+ } else if (!(searchActive && entry.visible)) {
+ entry.visible = true;
+ entry.opacity = searchActive ? 0 : 255;
+ // show search entry only if the user starts typing, and hide it when leaving the search mode
+ entry.ease({
+ opacity: searchActive ? 255 : 0,
+ duration: SIDE_CONTROLS_ANIMATION_TIME / 2,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ onComplete: () => {
+ entry.visible = searchActive;
+ },
+ });
+ }
+
+ // if user start typing or activated search provider during overview animation, this switcher will be called again after animation ends
+ if (opt.SEARCH_VIEW_ANIMATION && Main.overview._animationInProgress && finalState !== ControlsState.HIDDEN)
+ return;
+
+ if (!searchActive) {
+ if (!this.dash.showAppsButton.checked)
+ opt.LEAVING_SEARCH = true;
+
+ if (this._origAppGridContent)
+ this._deactivateSearchAppGridMode();
+
+ this._workspacesDisplay.reactive = true;
+ this._workspacesDisplay.setPrimaryWorkspaceVisible(true);
+ } else {
+ if (opt.SEARCH_APP_GRID_MODE && this.dash.showAppsButton.checked) {
+ this._activateSearchAppGridMode();
+ return;
+ }
+
+ if (opt.OVERVIEW_MODE2 && !opt.WORKSPACE_MODE)
+ this._searchController._searchResults._statusText.add_style_class_name('search-statustext-om2');
+ else
+ this._searchController._searchResults._statusText.remove_style_class_name('search-statustext-om2');
+ this._searchController.show();
+ entry.visible = true;
+ entry.opacity = 255;
+ opt.LEAVING_SEARCH = false;
+ }
+
+ if (opt.SHOW_BG_IN_OVERVIEW && this._bgManagers)
+ this._updateBackground(this._bgManagers[0]);
+ this._searchTransition = true;
+
+ this._searchController._searchResults.translation_x = 0;
+ this._searchController._searchResults.translation_y = 0;
+ this._searchController.visible = true;
+
+ if (opt.SEARCH_VIEW_ANIMATION && ![4, 8].includes(opt.WS_TMB_POSITION)) {
+ this._updateAppDisplayVisibility();
+ this._searchController._searchResults._statusBin.opacity = 1;
+
+ let translationX = 0;
+ let translationY = 0;
+ const geometry = global.display.get_monitor_geometry(global.display.get_primary_monitor());
+
+ switch (opt.SEARCH_VIEW_ANIMATION) {
+ case 1:
+ // make it longer to cover the delay before results appears
+ translationX = geometry.width;
+ translationY = 0;
+ break;
+ case 2:
+ translationX = -geometry.width;
+ translationY = 0;
+ break;
+ case 3:
+ translationX = 0;
+ translationY = geometry.height;
+ break;
+ case 5:
+ translationX = 0;
+ translationY = -geometry.height;
+ break;
+ }
+
+ if (searchActive) {
+ this._searchController._searchResults.translation_x = translationX;
+ this._searchController._searchResults.translation_y = translationY;
+ } else {
+ this._searchController._searchResults.translation_x = 0;
+ this._searchController._searchResults.translation_y = 0;
+ }
+
+ this._searchController._searchResults.ease({
+ delay: 150, // wait for results
+ opacity: searchActive ? 255 : 0,
+ translation_x: searchActive ? 0 : translationX,
+ translation_y: searchActive ? 0 : translationY,
+ duration: SIDE_CONTROLS_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ onComplete: () => {
+ this._searchController.visible = searchActive;
+ this._searchTransition = false;
+ this._searchController._searchResults._statusBin.opacity = 255;
+ },
+ });
+
+ this._workspacesDisplay.opacity = 255;
+ } else {
+ this._appDisplay.ease({
+ opacity: searchActive || currentState < 2 ? 0 : 255,
+ duration: SIDE_CONTROLS_ANIMATION_TIME / 2,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ onComplete: () => {
+ this._updateAppDisplayVisibility();
+ },
+ });
+
+ this._workspacesDisplay.setPrimaryWorkspaceVisible(true);
+
+ this._searchController._searchResults.ease({
+ opacity: searchActive ? 255 : 0,
+ duration: searchActive ? SIDE_CONTROLS_ANIMATION_TIME / 2 : 0,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ onComplete: () => (this._searchController.visible = searchActive),
+ });
+ }
+
+ // reuse already tuned overview transition, just replace APP_GRID with the search view
+ if (!(opt.OVERVIEW_MODE2 && !opt.WORKSPACE_MODE) && !Main.overview._animationInProgress && finalState !== ControlsState.HIDDEN && !this.dash.showAppsButton.checked) {
+ this._searchController._searchResults._content.remove_style_class_name('search-section-content-bg-om2');
+ this._searchEntry.remove_style_class_name('search-entry-om2');
+ const duration = opt.SEARCH_VIEW_ANIMATION ? 140 : 0;
+ this._stateAdjustment.ease(searchActive ? ControlsState.APP_GRID : ControlsState.WINDOW_PICKER, {
+ // shorter animation time when entering search view can avoid stuttering in transition
+ // collecting search results take some time and the problematic part is the realization of the object on the screen
+ // if the ws animation ends before this event, the whole transition is smoother
+ // removing the ws transition (duration: 0) seems like the best solution here
+ duration: searchActive ? duration : SIDE_CONTROLS_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ onComplete: () => {
+ this._workspacesDisplay.setPrimaryWorkspaceVisible(!searchActive);
+ // Set the delay before processing a new search entry to 150 on deactivation, so search providers can't make make the workspace animation stuttering
+ // set it back to 0 after in-animation, so the search can be snappy
+ opt.SEARCH_DELAY = searchActive || !opt.SEARCH_VIEW_ANIMATION ? 0 : 150;
+ },
+ });
+ } else if (opt.OVERVIEW_MODE2 && !(opt.WORKSPACE_MODE || this.dash.showAppsButton.checked)) {
+ // add background to search results and make searchEntry border thicker for better visibility
+ this._searchController._searchResults._content.add_style_class_name('search-section-content-bg-om2');
+ this._searchEntry.add_style_class_name('search-entry-om2');
+ } else {
+ this._searchController._searchResults._content.remove_style_class_name('search-section-content-bg-om2');
+ this._searchEntry.remove_style_class_name('search-entry-om2');
+ }
+ },
+
+ async runStartupAnimation(callback) {
+ this._ignoreShowAppsButtonToggle = true;
+
+ this.prepareToEnterOverview();
+
+ this._stateAdjustment.value = ControlsState.HIDDEN;
+ this._stateAdjustment.ease(ControlsState.WINDOW_PICKER, {
+ duration: ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+
+ this.dash.showAppsButton.checked = false;
+ this._ignoreShowAppsButtonToggle = false;
+
+ // Set the opacity here to avoid a 1-frame flicker
+ this.opacity = 1;
+ this._appDisplay.opacity = 1;
+
+ // We can't run the animation before the first allocation happens
+ await this.layout_manager.ensureAllocation();
+
+ this._setBackground();
+ Me.Modules.panelModule.update();
+ Main.panel.opacity = 255;
+
+ // Opacity
+ this.ease({
+ opacity: opt.STARTUP_STATE === 1 ? 0 : 255,
+ duration: STARTUP_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.LINEAR,
+ });
+
+ const dash = this.dash;
+ const tmbBox = this._thumbnailsBox;
+
+ // Set the opacity here to avoid a 1-frame flicker
+ dash.opacity = 0;
+ for (const view of this._workspacesDisplay._workspacesViews) {
+ if (view._monitorIndex !== global.display.get_primary_monitor())
+ view._thumbnails.opacity = 0;
+ }
+
+ const searchEntryBin = this._searchEntryBin;
+ const [dashTranslationX, dashTranslationY, tmbTranslationX, tmbTranslationY, searchTranslationY] =
+ this._getOverviewTranslations(dash, tmbBox, searchEntryBin);
+
+ const onComplete = function () {
+ // running init callback again causes issues (multiple connections)
+ if (!Main.overview._startupInitComplete)
+ callback();
+
+ const appDisplayModule = Me.Modules.appDisplayModule;
+ if (!appDisplayModule.moduleEnabled)
+ this._finishStartupSequence();
+ else
+ this._realizeAppDisplayAndFinishSequence();
+
+ Main.overview._startupInitComplete = true;
+ }.bind(this);
+
+ if (dash.visible && !Me.Util.dashNotDefault()) {
+ dash.translation_x = dashTranslationX;
+ dash.translation_y = dashTranslationY;
+ dash.opacity = 255;
+ dash.ease({
+ translation_x: 0,
+ translation_y: 0,
+ delay: STARTUP_ANIMATION_TIME / 2,
+ duration: STARTUP_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ onComplete,
+ });
+ } else {
+ // set dash opacity to make it visible if user enable it later
+ dash.opacity = 255;
+ // if dash is hidden, substitute the ease timeout with GLib.timeout
+ _timeouts.startupAnim2 = GLib.timeout_add(
+ GLib.PRIORITY_DEFAULT,
+ // delay + animation time
+ STARTUP_ANIMATION_TIME * 2 * St.Settings.get().slow_down_factor,
+ () => {
+ onComplete();
+ _timeouts.startupAnim2 = 0;
+ return GLib.SOURCE_REMOVE;
+ }
+ );
+ }
+
+ if (searchEntryBin.visible) {
+ searchEntryBin.translation_y = searchTranslationY;
+ searchEntryBin.ease({
+ translation_y: 0,
+ delay: STARTUP_ANIMATION_TIME / 2,
+ duration: STARTUP_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+ }
+
+ if (tmbBox.visible) {
+ tmbBox.translation_x = tmbTranslationX;
+ tmbBox.translation_y = tmbTranslationY;
+ tmbBox.ease({
+ translation_x: 0,
+ translation_y: 0,
+ delay: STARTUP_ANIMATION_TIME / 2,
+ duration: STARTUP_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+ }
+
+ // upstream bug - following animation will be cancelled, don't know where
+ // needs further investigation
+ const workspacesViews = this._workspacesDisplay._workspacesViews;
+ if (workspacesViews.length > 1) {
+ for (const view of workspacesViews) {
+ if (view._monitorIndex !== global.display.get_primary_monitor() && view._thumbnails.visible) {
+ const secTmbBox = view._thumbnails;
+
+ if (opt.SEC_WS_TMB_LEFT)
+ secTmbBox.translation_x = -(secTmbBox.width + 12); // compensate for padding
+ else if (opt.SEC_WS_TMB_RIGHT)
+ secTmbBox.translation_x = secTmbBox.width + 12;
+ else if (opt.SEC_WS_TMB_TOP)
+ secTmbBox.translation_y = -(secTmbBox.height + 12);
+ else if (opt.SEC_WS_TMB_BOTTOM)
+ secTmbBox.translation_y = secTmbBox.height + 12;
+
+ secTmbBox.opacity = 255;
+
+ secTmbBox.ease({
+ translation_y: 0,
+ delay: STARTUP_ANIMATION_TIME / 2,
+ duration: STARTUP_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+ }
+ }
+ }
+ },
+
+ _realizeAppDisplayAndFinishSequence() {
+ const appDisplayModule = Me.Modules.appDisplayModule;
+ // realize app grid for smoother first animation
+ appDisplayModule._repopulateAppDisplay(false, this._finishStartupSequence.bind(this));
+ },
+
+ _finishStartupSequence() {
+ if (!this._bgManagers)
+ this._setBackground();
+
+ _timeouts.finishStartup = GLib.idle_add(
+ GLib.PRIORITY_LOW, () => {
+ this._appDisplay.opacity = 255;
+ if (opt.STARTUP_STATE === 1) {
+ Main.overview.hide();
+ } else if (opt.STARTUP_STATE === 2) {
+ Main.overview.show(2); // just because of DtD, because we skipped startup animation
+ this.dash.showAppsButton.checked = true;
+ } else if (!opt.STARTUP_STATE && Me.Util.dashNotDefault()) {
+ Main.overview.show();
+ }
+
+ _timeouts.finishStartup = 0;
+ return GLib.SOURCE_REMOVE;
+ }
+ );
+ },
+
+ setInitialTranslations() {
+ const dash = this.dash;
+ const tmbBox = this._thumbnailsBox;
+ const searchEntryBin = this._searchEntryBin;
+ const [dashTranslationX, dashTranslationY, tmbTranslationX, tmbTranslationY, searchTranslationY] =
+ this._getOverviewTranslations(dash, tmbBox, searchEntryBin);
+ if (!Me.Util.dashNotDefault()) {
+ dash.translation_x = dashTranslationX;
+ dash.translation_y = dashTranslationY;
+ }
+ tmbBox.translation_x = tmbTranslationX;
+ tmbBox.translation_y = tmbTranslationY;
+ searchEntryBin.translation_y = searchTranslationY;
+ },
+
+ _getOverviewTranslations(dash, tmbBox, searchEntryBin) {
+ const animationsDisabled = !St.Settings.get().enable_animations || ((opt.SHOW_WS_PREVIEW_BG && !opt.OVERVIEW_MODE2) && !Main.layoutManager._startingUp);
+ if (animationsDisabled)
+ return [0, 0, 0, 0, 0];
+
+ let searchTranslationY = 0;
+ if (searchEntryBin.visible) {
+ const offset = (dash.visible && (!opt.DASH_VERTICAL ? dash.height + 12 : 0)) +
+ (opt.WS_TMB_TOP ? tmbBox.height + 12 : 0);
+ searchTranslationY = -searchEntryBin.height - offset - 30;
+ }
+
+ let tmbTranslationX = 0;
+ let tmbTranslationY = 0;
+ let offset;
+ if (tmbBox.visible) {
+ const tmbWidth = tmbBox.width === Infinity ? 0 : tmbBox.width;
+ const tmbHeight = tmbBox.height === Infinity ? 0 : tmbBox.height;
+ switch (opt.WS_TMB_POSITION) {
+ case 3: // left
+ offset = 10 + (dash?.visible && opt.DASH_LEFT ? dash.width : 0);
+ tmbTranslationX = -tmbWidth - offset;
+ tmbTranslationY = 0;
+ break;
+ case 1: // right
+ offset = 10 + (dash?.visible && opt.DASH_RIGHT ? dash.width : 0);
+ tmbTranslationX = tmbWidth + offset;
+ tmbTranslationY = 0;
+ break;
+ case 0: // top
+ offset = 10 + (dash?.visible && opt.DASH_TOP ? dash.height : 0) + Main.panel.height;
+ tmbTranslationX = 0;
+ tmbTranslationY = -tmbHeight - offset;
+ break;
+ case 2: // bottom
+ offset = 10 + (dash?.visible && opt.DASH_BOTTOM ? dash.height : 0) + Main.panel.height; // just for case the panel is at bottom
+ tmbTranslationX = 0;
+ tmbTranslationY = tmbHeight + offset;
+ break;
+ }
+ }
+
+ let dashTranslationX = 0;
+ let dashTranslationY = 0;
+ let position = opt.DASH_POSITION;
+ // if DtD replaced the original Dash, read its position
+ if (Me.Util.dashIsDashToDock())
+ position = dash._position;
+
+ if (dash?.visible) {
+ const dashWidth = dash.width === Infinity ? 0 : dash.width;
+ const dashHeight = dash.height === Infinity ? 0 : dash.height;
+ switch (position) {
+ case 0: // top
+ dashTranslationX = 0;
+ dashTranslationY = -dashHeight - dash.margin_bottom - Main.panel.height;
+ break;
+ case 1: // right
+ dashTranslationX = dashWidth;
+ dashTranslationY = 0;
+ break;
+ case 2: // bottom
+ dashTranslationX = 0;
+ dashTranslationY = dashHeight + dash.margin_bottom + Main.panel.height;
+ break;
+ case 3: // left
+ dashTranslationX = -dashWidth;
+ dashTranslationY = 0;
+ break;
+ }
+ }
+
+ return [dashTranslationX, dashTranslationY, tmbTranslationX, tmbTranslationY, searchTranslationY];
+ },
+
+ animateToOverview(state, callback) {
+ this._ignoreShowAppsButtonToggle = true;
+ this._searchTransition = false;
+
+ this._stateAdjustment.value = ControlsState.HIDDEN;
+
+ // building window thumbnails takes some time and with many windows on the workspace
+ // the time can be close to or longer than ANIMATION_TIME
+ // in which case the the animation is greatly delayed, stuttering, or even skipped
+ // for user it is more acceptable to watch delayed smooth animation,
+ // even if it takes little more time, than jumping frames
+ let delay = 0;
+ if (opt.DELAY_OVERVIEW_ANIMATION)
+ delay = global.display.get_tab_list(0, global.workspace_manager.get_active_workspace()).length * 3;
+
+ this._stateAdjustment.ease(state, {
+ delay,
+ duration: 250, // Overview.ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ onStopped: () => {
+ if (callback)
+ callback();
+ },
+ });
+
+ this.dash.showAppsButton.checked =
+ state === ControlsState.APP_GRID;
+
+ this._ignoreShowAppsButtonToggle = false;
+ },
+
+ _setBackground(reset = false) {
+ if (this._bgManagers) {
+ this._bgManagers.forEach(bg => {
+ this._stateAdjustment.disconnect(bg._fadeSignal);
+ bg.destroy();
+ });
+ }
+
+ // if (!SHOW_BG_IN_OVERVIEW && !SHOW_WS_PREVIEW_BG) the background is used for static transition from wallpaper to empty bg in the overview
+ if (reset || (!opt.SHOW_BG_IN_OVERVIEW && opt.SHOW_WS_PREVIEW_BG)) {
+ delete this._bgManagers;
+ return;
+ }
+
+ this._bgManagers = [];
+ for (const monitor of Main.layoutManager.monitors) {
+ const bgManager = new Background.BackgroundManager({
+ monitorIndex: monitor.index,
+ container: Main.layoutManager.overviewGroup,
+ vignette: true,
+ });
+
+ bgManager.backgroundActor.content.vignette_sharpness = 0;
+ bgManager.backgroundActor.content.brightness = 1;
+
+ bgManager._fadeSignal = this._stateAdjustment.connect('notify::value', v => {
+ this._updateBackground(bgManager, v.value, v);
+ });
+
+ if (monitor.index === global.display.get_primary_monitor()) {
+ bgManager._primary = true;
+ this._bgManagers.unshift(bgManager); // primary monitor first
+ } else {
+ bgManager._primary = false;
+ this._bgManagers.push(bgManager);
+ }
+ }
+ },
+
+ _updateBackground(bgManager, stateValue = 2, stateAdjustment = null) {
+ // Just in case something destroys our background (like older versions of Blur My Shell)
+ if (this._bgManagers[0] && !Main.layoutManager.overviewGroup.get_children().includes(this._bgManagers[0].backgroundActor)) {
+ console.error(`[${Me.metadata.name}]`, 'Error: The overview background has been destroyed, possibly by another incompatible extension');
+ // remove and disconnect our destroyed backgrounds to avoid further errors
+ this._setBackground(true);
+ return;
+ }
+
+ const finalState = stateAdjustment?.getStateTransitionParams().finalState;
+ if (!opt.SHOW_BG_IN_OVERVIEW && !opt.SHOW_WS_PREVIEW_BG) {
+ // if no bg shown in the overview, fade out the wallpaper
+ if (bgManager.backgroundActor.get_effect('blur'))
+ bgManager.backgroundActor.remove_effect_by_name('blur');
+ if (!(opt.OVERVIEW_MODE2 && opt.WORKSPACE_MODE && finalState === 1))
+ bgManager.backgroundActor.opacity = Util.lerp(255, 0, Math.min(stateValue, 1));
+ } else {
+ bgManager.backgroundActor.opacity = 255;
+ let VIGNETTE, BRIGHTNESS, bgValue;
+ if (opt.OVERVIEW_MODE2 && stateValue <= 1 && !opt.WORKSPACE_MODE) {
+ VIGNETTE = 0;
+ BRIGHTNESS = 1;
+ bgValue = stateValue;
+ } else {
+ VIGNETTE = 0.2;
+ BRIGHTNESS = opt.OVERVIEW_BG_BRIGHTNESS;
+ if (opt.OVERVIEW_MODE2 && stateValue > 1 && !opt.WORKSPACE_MODE)
+ bgValue = stateValue - 1;
+ else
+ bgValue = stateValue;
+ }
+
+ let blurEffect = bgManager.backgroundActor.get_effect('blur');
+ if (!blurEffect) {
+ blurEffect = new Shell.BlurEffect({
+ brightness: 1,
+ mode: Shell.BlurMode.ACTOR,
+ });
+ bgManager.backgroundActor.add_effect_with_name('blur', blurEffect);
+ }
+
+ // In GNOME 46 the "sigma" property has been renamed to "radius"
+ const radius = blurEffect.sigma !== undefined ? 'sigma' : 'radius';
+
+ const searchActive = this._searchController.searchActive;
+ if (searchActive)
+ BRIGHTNESS = opt.SEARCH_BG_BRIGHTNESS;
+
+ bgManager.backgroundActor.content.vignette_sharpness = VIGNETTE;
+ bgManager.backgroundActor.content.brightness = BRIGHTNESS;
+
+ let vignetteInit, brightnessInit;// , sigmaInit;
+ if (opt.SHOW_BG_IN_OVERVIEW && opt.SHOW_WS_PREVIEW_BG) {
+ vignetteInit = VIGNETTE;
+ brightnessInit = BRIGHTNESS;
+ // sigmaInit = opt.OVERVIEW_BG_BLUR_SIGMA;
+ } else {
+ vignetteInit = 0;
+ brightnessInit = 1;
+ // sigmaInit = 0;
+ }
+
+ if (opt.OVERVIEW_MODE2 && !opt.WORKSPACE_MODE) {
+ bgManager.backgroundActor.content.vignette_sharpness = Util.lerp(vignetteInit, VIGNETTE, bgValue);
+ bgManager.backgroundActor.content.brightness = Util.lerp(brightnessInit, BRIGHTNESS, bgValue);
+ } else {
+ bgManager.backgroundActor.content.vignette_sharpness = Util.lerp(vignetteInit, VIGNETTE, Math.min(stateValue, 1));
+ bgManager.backgroundActor.content.brightness = Util.lerp(brightnessInit, BRIGHTNESS, Math.min(stateValue, 1));
+ }
+
+ if (opt.OVERVIEW_BG_BLUR_SIGMA || opt.APP_GRID_BG_BLUR_SIGMA) {
+ // reduce number of steps of blur transition to improve performance
+ const step = opt.SMOOTH_BLUR_TRANSITIONS ? 0.05 : 0.2;
+ const progress = stateValue - (stateValue % step);
+ if (opt.SHOW_WS_PREVIEW_BG && stateValue < 1 && !searchActive) { // no need to animate transition, unless appGrid state is involved, static bg is covered by the ws preview bg
+ if (blurEffect[radius] !== opt.OVERVIEW_BG_BLUR_SIGMA)
+ blurEffect[radius] = opt.OVERVIEW_BG_BLUR_SIGMA;
+ } else if (stateValue < 1 && !searchActive && !(opt.OVERVIEW_MODE2 && !opt.WORKSPACE_MODE)) {
+ const sigma = Math.round(Util.lerp(0, opt.OVERVIEW_BG_BLUR_SIGMA, progress));
+ if (sigma !== blurEffect[radius])
+ blurEffect[radius] = sigma;
+ } else if (stateValue < 1 && !searchActive && (opt.OVERVIEW_MODE2 && !opt.WORKSPACE_MODE && blurEffect[radius])) {
+ const sigma = Math.round(Util.lerp(0, opt.OVERVIEW_BG_BLUR_SIGMA, progress));
+ if (sigma !== blurEffect[radius])
+ blurEffect[radius] = sigma;
+ } else if (stateValue > 1 && !searchActive && (opt.OVERVIEW_MODE2 && !opt.WORKSPACE_MODE && finalState === 1)) {
+ const sigma = Math.round(Util.lerp(0, opt.OVERVIEW_BG_BLUR_SIGMA, progress % 1));
+ if (sigma !== blurEffect[radius])
+ blurEffect[radius] = sigma;
+ } else if ((stateValue > 1 && bgManager._primary) || searchActive) {
+ const sigma = Math.round(Util.lerp(opt.OVERVIEW_BG_BLUR_SIGMA, opt.APP_GRID_BG_BLUR_SIGMA, progress % 1));
+ if (sigma !== blurEffect[radius])
+ blurEffect[radius] = sigma;
+ } else if (stateValue === 1 && !(opt.OVERVIEW_MODE2 && !opt.WORKSPACE_MODE)) {
+ blurEffect[radius] = opt.OVERVIEW_BG_BLUR_SIGMA;
+ } else if (stateValue === 0 || (stateValue === 1 && (opt.OVERVIEW_MODE2 && !opt.WORKSPACE_MODE))) {
+ blurEffect[radius] = 0;
+ }
+ }
+ }
+ },
+};
+
+const ControlsManagerLayoutCommon = {
+ after__updateWorkAreaBox() {
+ const workArea = this._workAreaBox.copy();
+
+ // opt.PANEL_OVERVIEW_ONLY removes affectsStruts panel property
+ if (opt.get('panelModule') && opt.PANEL_OVERVIEW_ONLY) {
+ let offsetY = 0;
+ let reduction = 0;
+ reduction = Main.panel.height;
+ offsetY = opt.PANEL_POSITION_TOP ? reduction : 0;
+
+ const startX = workArea.x1;
+ const startY = workArea.y1 + offsetY;
+ const width = workArea.get_width();
+ const height = workArea.get_height() - reduction;
+
+ workArea.set_origin(startX, startY);
+ workArea.set_size(width, height);
+ }
+
+ this._workAreaBoxForVShellConfig = workArea;
+ },
+
+ _updatePositionFromDashToDock() {
+ // update variables that cannot be processed within settings
+ const dash = Main.overview.dash;
+ opt.DASH_POSITION = dash._position;
+ opt.DASH_TOP = opt.DASH_POSITION === 0;
+ opt.DASH_RIGHT = opt.DASH_POSITION === 1;
+ opt.DASH_BOTTOM = opt.DASH_POSITION === 2;
+ opt.DASH_LEFT = opt.DASH_POSITION === 3;
+ opt.DASH_VERTICAL = opt.DASH_LEFT || opt.DASH_RIGHT;
+ },
+
+ _dashToDockAffectsWorkArea() {
+ const dash = Main.overview.dash;
+ const dtd = dash.get_parent()?.get_parent()?.get_parent();
+ const layoutManager = Main.layoutManager;
+ const index = layoutManager._findActor(dtd);
+ const data = index > -1 ? layoutManager._trackedActors[index] : null;
+ const affectsStruts = data?.affectsStruts;
+ return !!affectsStruts;
+ },
+};
+
+const ControlsManagerLayoutVertical = {
+ _computeWorkspacesBoxForState(state, box, wsTmbWidth, wsTmbHeight, leftBoxOffset, rightBoxOffset, topBoxOffset, bottomBoxOffset, centeredBoxOffset) {
+ const workspaceBox = box.copy();
+ let [width, height] = this._workAreaBoxForVShellConfig.get_size();
+ const startX = this._workAreaBoxForVShellConfig.x1;
+ const startY = this._workAreaBoxForVShellConfig.y1;
+
+ let wsBoxWidth, wsBoxHeight, wsBoxY, wsBoxX;
+
+ switch (state) {
+ case ControlsState.HIDDEN:
+ workspaceBox.set_origin(...this._workAreaBox.get_origin());
+ workspaceBox.set_size(...this._workAreaBox.get_size());
+ break;
+ case ControlsState.WINDOW_PICKER:
+ case ControlsState.APP_GRID:
+ if (opt.WS_ANIMATION && opt.SHOW_WS_TMB && state === ControlsState.APP_GRID) {
+ workspaceBox.set_origin(...this._workspacesThumbnails.get_position());
+ workspaceBox.set_size(wsTmbWidth, wsTmbHeight);
+ } else if (opt.OVERVIEW_MODE2 && !opt.WORKSPACE_MODE) {
+ workspaceBox.set_origin(...this._workAreaBox.get_origin());
+ workspaceBox.set_size(...this._workAreaBox.get_size());
+ } else {
+ wsBoxWidth = width - leftBoxOffset - rightBoxOffset;
+ wsBoxHeight = height - topBoxOffset - bottomBoxOffset;
+
+ const ratio = width / height;
+ let wRatio = wsBoxWidth / wsBoxHeight;
+ let scale = ratio / wRatio;
+
+ if (scale > 1) {
+ wsBoxHeight /= scale;
+ wsBoxWidth = wsBoxHeight * ratio;
+ } else {
+ wsBoxWidth *= scale;
+ wsBoxHeight = wsBoxWidth / ratio;
+ }
+
+ // height decides the actual size, ratio is given by the workArea
+ wsBoxHeight = Math.round(wsBoxHeight * opt.WS_PREVIEW_SCALE);
+ wsBoxWidth = Math.round(wsBoxWidth * opt.WS_PREVIEW_SCALE);
+
+ let xOffset = 0;
+ let yOffset = 0;
+
+ const yAvailableSpace = Math.round((height - topBoxOffset - wsBoxHeight - bottomBoxOffset) / 2);
+ yOffset = topBoxOffset + yAvailableSpace;
+
+ const centeredBoxX = Math.round((width - wsBoxWidth) / 2);
+
+ this._xAlignCenter = false;
+ if (centeredBoxX < centeredBoxOffset) {
+ xOffset = Math.round(leftBoxOffset + (width - leftBoxOffset - wsBoxWidth - rightBoxOffset) / 2);
+ } else {
+ xOffset = centeredBoxX;
+ this._xAlignCenter = true;
+ }
+
+ wsBoxX = startX + xOffset;
+ wsBoxY = startY + yOffset;
+ workspaceBox.set_origin(wsBoxX, wsBoxY);
+ workspaceBox.set_size(wsBoxWidth, wsBoxHeight);
+ }
+ }
+
+ return workspaceBox;
+ },
+
+ _getAppDisplayBoxForState(state, box, leftBoxOffset, rightBoxOffset, topBoxOffset, bottomBoxOffset) {
+ const appDisplayBox = new Clutter.ActorBox();
+ const startX = this._workAreaBoxForVShellConfig.x1;
+ const startY = this._workAreaBoxForVShellConfig.y1;
+ let [width, height] = this._workAreaBoxForVShellConfig.get_size();
+ const centeredBoxOffset = Math.max(leftBoxOffset, rightBoxOffset);
+
+ const adWidth = opt.CENTER_APP_GRID
+ ? width - 2 * centeredBoxOffset
+ : width - leftBoxOffset - rightBoxOffset;
+ const adHeight = height - topBoxOffset - bottomBoxOffset;
+
+ const appDisplayX = startX +
+ (opt.CENTER_APP_GRID
+ ? Math.round((width - adWidth) / 2)
+ : leftBoxOffset
+ );
+ const appDisplayY = startY + topBoxOffset;
+
+ switch (state) {
+ case ControlsState.HIDDEN:
+ case ControlsState.WINDOW_PICKER:
+ // 1 - left, 2 - right, 3 - bottom, 5 - top
+ switch (opt.APP_GRID_ANIMATION) {
+ case 0:
+ appDisplayBox.set_origin(appDisplayX, appDisplayY);
+ break;
+ case 1:
+ appDisplayBox.set_origin(startX + width, appDisplayY);
+ break;
+ case 2:
+ appDisplayBox.set_origin(box.x1 - adWidth, appDisplayY);
+ break;
+ case 3:
+ appDisplayBox.set_origin(appDisplayX, box.y2);
+ break;
+ case 5:
+ appDisplayBox.set_origin(appDisplayX, box.y1 - adHeight);
+ break;
+ }
+ break;
+ case ControlsState.APP_GRID:
+ appDisplayBox.set_origin(appDisplayX, appDisplayY);
+ break;
+ }
+
+ appDisplayBox.set_size(adWidth, adHeight);
+ return appDisplayBox;
+ },
+
+ vfunc_allocate(container, box) {
+ const childBox = new Clutter.ActorBox();
+ const startX = this._workAreaBoxForVShellConfig.x1;
+ const startY = this._workAreaBoxForVShellConfig.y1;
+ let [width, height] = this._workAreaBoxForVShellConfig.get_size();
+
+ const transitionParams = this._stateAdjustment.getStateTransitionParams();
+ const spacing = opt.SPACING;
+
+ // Dash
+ const maxDashHeight = Math.round(box.get_height() * DASH_MAX_SIZE_RATIO);
+ const maxDashWidth = Math.round(maxDashHeight * 0.8);
+ let dashHeight = 0;
+ let dashWidth = 0;
+
+ // dash cloud be overridden by the Dash to Dock clone
+ if (Me.Util.dashIsDashToDock()) {
+ this._updatePositionFromDashToDock();
+ // If DtD affects workArea, dash size needs to be 0 + spacing
+ const dash = Main.overview.dash;
+ if (this._dashToDockAffectsWorkArea()) {
+ if (opt.DASH_VERTICAL)
+ dashWidth = spacing;
+ else
+ dashHeight = spacing;
+ } else {
+ dashHeight = dash.height;
+ dashWidth = dash.width;
+ if (opt.DASH_VERTICAL)
+ dashWidth += spacing;
+ else
+ dashHeight += spacing;
+ }
+ } else if (this._dash.visible) {
+ // default dock
+ if (opt.DASH_VERTICAL) {
+ this._dash.setMaxSize(maxDashWidth, height);
+ [, dashWidth] = this._dash.get_preferred_width(height);
+ [, dashHeight] = this._dash.get_preferred_height(dashWidth);
+ dashWidth = Math.min(dashWidth, maxDashWidth);
+ dashHeight = Math.min(dashHeight, height);
+ } else if (!opt.WS_TMB_FULL) {
+ this._dash.setMaxSize(width, maxDashHeight);
+ [, dashHeight] = this._dash.get_preferred_height(width);
+ [, dashWidth] = this._dash.get_preferred_width(dashHeight);
+ dashHeight = Math.min(dashHeight, maxDashHeight);
+ dashWidth = Math.min(dashWidth, width);
+ }
+ }
+
+ // Workspace Thumbnails
+ let wsTmbWidth = 0;
+ let wsTmbHeight = 0;
+
+ if (opt.SHOW_WS_TMB) {
+ const searchActive = this._searchController.searchActive;
+ let maxWsTmbScale = this._dash.showAppsButton.checked && !(searchActive && !opt.SEARCH_APP_GRID_MODE)
+ ? opt.MAX_THUMBNAIL_SCALE_APPGRID
+ : opt.MAX_THUMBNAIL_SCALE;
+ if (transitionParams.currentState % 1 && !opt.MAX_THUMBNAIL_SCALE_STABLE && !searchActive && !opt.LEAVING_SEARCH) {
+ const initState = transitionParams.initialState === ControlsState.APP_GRID ? opt.MAX_THUMBNAIL_SCALE_APPGRID : opt.MAX_THUMBNAIL_SCALE;
+ const finalState = transitionParams.finalState === ControlsState.APP_GRID ? opt.MAX_THUMBNAIL_SCALE_APPGRID : opt.MAX_THUMBNAIL_SCALE;
+ maxWsTmbScale = Util.lerp(initState, finalState, transitionParams.progress);
+ }
+ wsTmbWidth = Math.round(width * maxWsTmbScale);
+
+ let totalTmbSpacing;
+ [totalTmbSpacing, wsTmbHeight] = this._workspacesThumbnails.get_preferred_height(wsTmbWidth);
+ wsTmbHeight += totalTmbSpacing;
+
+ const wstTopOffset = !opt.WS_TMB_FULL && opt.DASH_TOP ? dashHeight : spacing;
+ const wstBottomOffset = !opt.WS_TMB_FULL && opt.DASH_BOTTOM ? dashHeight : spacing;
+ const wstLeftOffset = opt.DASH_LEFT ? dashWidth : spacing;
+ const wstRightOffset = opt.DASH_RIGHT ? dashWidth : spacing;
+
+ const wsTmbHeightMax = height - wstTopOffset - wstBottomOffset;
+
+ // Reduce size to fit wsTmb to the screen
+ if (wsTmbHeight > wsTmbHeightMax) {
+ wsTmbHeight = wsTmbHeightMax;
+ wsTmbWidth = this._workspacesThumbnails.get_preferred_width(wsTmbHeight)[1];
+ }
+
+ let wsTmbX = opt.WS_TMB_LEFT
+ ? startX + wstLeftOffset
+ : startX + width - wstRightOffset - wsTmbWidth;
+
+ let offset = (height - wstTopOffset - wsTmbHeight - wstBottomOffset) / 2;
+ offset = Math.round(offset - (opt.WS_TMB_POSITION_ADJUSTMENT * offset));
+ const wsTmbY = startY + wstTopOffset + offset;
+
+ childBox.set_origin(wsTmbX, wsTmbY);
+ childBox.set_size(Math.max(wsTmbWidth, 1), Math.max(wsTmbHeight, 1));
+
+ this._workspacesThumbnails.allocate(childBox);
+ }
+
+ if (this._dash.visible) {
+ const wMaxWidth = width - spacing - wsTmbWidth - 2 * spacing - (opt.DASH_VERTICAL ? dashWidth + spacing : 0);
+ if (opt.WS_TMB_FULL && !opt.DASH_VERTICAL) {
+ this._dash.setMaxSize(wMaxWidth, maxDashHeight);
+ [, dashHeight] = this._dash.get_preferred_height(wMaxWidth);
+ [, dashWidth] = this._dash.get_preferred_width(dashHeight);
+ dashHeight = Math.min(dashHeight, maxDashHeight);
+ dashWidth = Math.min(dashWidth, wMaxWidth);
+ }
+
+ let dashX = opt.DASH_RIGHT ? width - dashWidth : 0;
+ let dashY = opt.DASH_TOP ? startY : startY + height - dashHeight;
+
+ if (!opt.DASH_VERTICAL) {
+ const dashLeftOffset = (opt.WS_TMB_FULL || opt.CENTER_DASH_WS) && opt.WS_TMB_LEFT ? wsTmbWidth + spacing : 0;
+ const dashRightOffset = (opt.WS_TMB_FULL || opt.CENTER_DASH_WS) && opt.WS_TMB_RIGHT ? wsTmbWidth + spacing : 0;
+ let offset = (width - dashWidth - (opt.CENTER_DASH_WS && !this._xAlignCenter ? dashLeftOffset + dashRightOffset : 0)) / 2;
+ offset -= opt.DASH_POSITION_ADJUSTMENT * (offset - spacing);
+ dashX = startX + (opt.CENTER_DASH_WS ? dashLeftOffset : 0) + offset;
+ if (opt.WS_TMB_FULL) // Limit the adjustment while keeping the center of adjustment on the screen center
+ dashX = Math.clamp(startX + dashLeftOffset + spacing, dashX, startX + width - dashRightOffset - spacing - dashWidth);
+ } else {
+ const offset = (height - dashHeight) / 2;
+ dashY = startY + (offset - opt.DASH_POSITION_ADJUSTMENT * (offset - spacing));
+ }
+ dashY = Math.round(dashY);
+
+ childBox.set_origin(startX + dashX, dashY);
+ childBox.set_size(dashWidth, dashHeight);
+ this._dash.allocate(childBox);
+ }
+
+ // View box offsets
+ const leftBoxOffset = (opt.DASH_LEFT ? dashWidth : spacing) + (opt.WS_TMB_LEFT ? wsTmbWidth + spacing : 0);
+ const rightBoxOffset = (opt.DASH_RIGHT ? dashWidth : spacing) + (opt.WS_TMB_RIGHT ? wsTmbWidth + spacing : 0);
+ let topBoxOffset = (opt.DASH_TOP ? dashHeight : spacing) + (opt.WS_TMB_TOP ? wsTmbHeight + spacing : 0);
+ const bottomBoxOffset = (opt.DASH_BOTTOM ? dashHeight : spacing) + (opt.WS_TMB_BOTTOM ? wsTmbHeight + spacing : 0);
+ const centeredBoxOffset = Math.max(leftBoxOffset, rightBoxOffset);
+
+ // App grid needs to be calculated for the max wsTmbWidth in app grid, independently on the current wsTmb scale
+ const wsTmbWidthAppGrid = Math.round(width * opt.MAX_THUMBNAIL_SCALE_APPGRID);
+ const leftBoxOffsetAppGrid = (opt.DASH_LEFT ? dashWidth : spacing) + (opt.WS_TMB_LEFT ? wsTmbWidthAppGrid + spacing : 0);
+ const rightBoxOffsetAppGrid = (opt.DASH_RIGHT ? dashWidth : spacing) + (opt.WS_TMB_RIGHT ? wsTmbWidthAppGrid + spacing : 0);
+
+ // searchEntry
+ const [searchEntryHeight] = this._searchEntry.get_preferred_height(width - wsTmbWidth);
+ const searchEntryY = startY + topBoxOffset;
+
+ const searchX = startX +
+ (opt.CENTER_SEARCH_VIEW || this._xAlignCenter
+ ? centeredBoxOffset
+ : leftBoxOffset); // xAlignCenter is set by wsBox
+
+ const searchWidth =
+ width - (opt.CENTER_SEARCH_VIEW || this._xAlignCenter
+ ? 2 * centeredBoxOffset
+ : leftBoxOffset + rightBoxOffset);
+
+ childBox.set_origin(searchX, searchEntryY);
+ childBox.set_size(searchWidth, searchEntryHeight);
+
+ this._searchEntry.allocate(childBox);
+
+ // searchResults
+ const searchY = startY + topBoxOffset + searchEntryHeight + spacing;
+ const searchHeight = height - topBoxOffset - bottomBoxOffset - searchEntryHeight - 2 * spacing;
+
+ childBox.set_origin(searchX, searchY);
+ childBox.set_size(searchWidth, searchHeight);
+ this._searchController.allocate(childBox);
+
+ // Add searchEntry height if needed
+ topBoxOffset += opt.SHOW_SEARCH_ENTRY ? searchEntryHeight + spacing : 0;
+
+ // workspace
+ let params = [box, wsTmbWidth, wsTmbHeight, leftBoxOffset, rightBoxOffset, topBoxOffset, bottomBoxOffset, centeredBoxOffset];
+
+ // Update cached boxes
+ for (const state of Object.values(ControlsState)) {
+ this._cachedWorkspaceBoxes.set(
+ state, this._computeWorkspacesBoxForState(state, ...params));
+ }
+
+ let workspacesBox;
+ if (!transitionParams.transitioning)
+ workspacesBox = this._cachedWorkspaceBoxes.get(transitionParams.currentState);
+
+ if (!workspacesBox) {
+ const initialBox = this._cachedWorkspaceBoxes.get(transitionParams.initialState);
+ const finalBox = this._cachedWorkspaceBoxes.get(transitionParams.finalState);
+ workspacesBox = initialBox.interpolate(finalBox, transitionParams.progress);
+ }
+
+ this._workspacesDisplay.allocate(workspacesBox);
+
+ // appDisplay
+ params = [
+ box,
+ leftBoxOffsetAppGrid,
+ rightBoxOffsetAppGrid,
+ topBoxOffset,
+ bottomBoxOffset,
+ ];
+ let appDisplayBox;
+ if (!transitionParams.transitioning) {
+ appDisplayBox =
+ this._getAppDisplayBoxForState(transitionParams.currentState, ...params);
+ } else {
+ const initialBox =
+ this._getAppDisplayBoxForState(transitionParams.initialState, ...params);
+ const finalBox =
+ this._getAppDisplayBoxForState(transitionParams.finalState, ...params);
+
+ appDisplayBox = initialBox.interpolate(finalBox, transitionParams.progress);
+ }
+ this._appDisplay.allocate(appDisplayBox);
+
+ this._runPostAllocation();
+ },
+};
+
+const ControlsManagerLayoutHorizontal = {
+ _computeWorkspacesBoxForState: ControlsManagerLayoutVertical._computeWorkspacesBoxForState,
+
+ _getAppDisplayBoxForState: ControlsManagerLayoutVertical._getAppDisplayBoxForState,
+
+ vfunc_allocate(container, box) {
+ const childBox = new Clutter.ActorBox();
+ const startX = this._workAreaBoxForVShellConfig.x1;
+ const startY = this._workAreaBoxForVShellConfig.y1;
+ let [width, height] = this._workAreaBoxForVShellConfig.get_size();
+
+ const transitionParams = this._stateAdjustment.getStateTransitionParams();
+ const spacing = opt.SPACING;
+
+ // Dash
+ const maxDashHeight = Math.round(box.get_height() * DASH_MAX_SIZE_RATIO);
+ const maxDashWidth = Math.round(maxDashHeight * 0.8);
+ let dashHeight = 0;
+ let dashWidth = 0;
+
+ // dash cloud be overridden by the Dash to Dock clone
+ if (Me.Util.dashIsDashToDock()) {
+ this._updatePositionFromDashToDock();
+ // If DtD affects workArea, dash size needs to be 0
+ const dash = Main.overview.dash;
+ if (this._dashToDockAffectsWorkArea()) {
+ if (opt.DASH_VERTICAL)
+ dashWidth = spacing;
+ else
+ dashHeight = spacing;
+ } else {
+ dashHeight = dash.height;
+ dashWidth = dash.width;
+ if (opt.DASH_VERTICAL)
+ dashWidth += spacing;
+ else
+ dashHeight += spacing;
+ }
+ } else if (this._dash.visible) {
+ // default dock
+ if (!opt.DASH_VERTICAL) {
+ this._dash.setMaxSize(width, maxDashHeight);
+ [, dashHeight] = this._dash.get_preferred_height(width);
+ [, dashWidth] = this._dash.get_preferred_width(dashHeight);
+ dashHeight = Math.min(dashHeight, maxDashHeight);
+ dashWidth = Math.min(dashWidth, width - spacing);
+ } else if (!opt.WS_TMB_FULL) {
+ this._dash.setMaxSize(maxDashWidth, height);
+ [, dashWidth] = this._dash.get_preferred_width(height);
+ [, dashHeight] = this._dash.get_preferred_height(dashWidth);
+ dashHeight = Math.min(dashHeight, height - spacing);
+ dashWidth = Math.min(dashWidth, width);
+ }
+ }
+
+ const [searchEntryHeight] = this._searchEntry.get_preferred_height(width);
+
+ // Workspace Thumbnails
+ let wsTmbWidth = 0;
+ let wsTmbHeight = 0;
+
+ if (opt.SHOW_WS_TMB) {
+ const searchActive = this._searchController.searchActive;
+ let maxWsTmbScale = this._dash.showAppsButton.checked && !(searchActive && !opt.SEARCH_APP_GRID_MODE)
+ ? opt.MAX_THUMBNAIL_SCALE_APPGRID
+ : opt.MAX_THUMBNAIL_SCALE;
+ if (transitionParams.currentState % 1 && !opt.MAX_THUMBNAIL_SCALE_STABLE && !searchActive && !opt.LEAVING_SEARCH) {
+ const initState = transitionParams.initialState === ControlsState.APP_GRID ? opt.MAX_THUMBNAIL_SCALE_APPGRID : opt.MAX_THUMBNAIL_SCALE;
+ const finalState = transitionParams.finalState === ControlsState.APP_GRID ? opt.MAX_THUMBNAIL_SCALE_APPGRID : opt.MAX_THUMBNAIL_SCALE;
+ maxWsTmbScale = Util.lerp(initState, finalState, transitionParams.progress);
+ }
+
+ wsTmbHeight = Math.round(height * maxWsTmbScale);
+
+ let totalTmbSpacing;
+ [totalTmbSpacing, wsTmbWidth] = this._workspacesThumbnails.get_preferred_width(wsTmbHeight);
+ wsTmbWidth += totalTmbSpacing;
+
+ const wstLeftOffset = !opt.WS_TMB_FULL && opt.DASH_LEFT ? dashWidth : spacing;
+ const wstRightOffset = !opt.WS_TMB_FULL && opt.DASH_RIGHT ? dashWidth : spacing;
+ const wstTopOffset = opt.DASH_TOP ? dashHeight : spacing;
+ const wstBottomOffset = opt.DASH_BOTTOM ? dashHeight : spacing;
+
+ const wsTmbWidthMax = width - wstLeftOffset - wstRightOffset;
+ // Reduce size to fit wsTmb to the screen
+ if (wsTmbWidth > wsTmbWidthMax) {
+ wsTmbWidth = wsTmbWidthMax;
+ wsTmbHeight = this._workspacesThumbnails.get_preferred_height(wsTmbWidth)[1];
+ }
+
+ let wsTmbY = opt.WS_TMB_TOP
+ ? startY + wstTopOffset
+ : startY + height - wstBottomOffset - wsTmbHeight;
+
+ let offset = (width - wstLeftOffset - wsTmbWidth - wstRightOffset) / 2;
+ offset = Math.round(offset - (opt.WS_TMB_POSITION_ADJUSTMENT * offset));
+ const wsTmbX = startX + wstLeftOffset + offset;
+
+ childBox.set_origin(wsTmbX, wsTmbY);
+ childBox.set_size(Math.max(wsTmbWidth, 1), Math.max(wsTmbHeight, 1));
+ this._workspacesThumbnails.allocate(childBox);
+ }
+
+ if (this._dash.visible) {
+ if (opt.WS_TMB_FULL && opt.DASH_VERTICAL) {
+ const wMaxHeight = height - spacing - wsTmbHeight;
+ this._dash.setMaxSize(maxDashWidth, wMaxHeight);
+ [, dashWidth] = this._dash.get_preferred_width(wMaxHeight);
+ [, dashHeight] = this._dash.get_preferred_height(dashWidth);
+ dashWidth = Math.min(dashWidth, maxDashWidth);
+ dashHeight = Math.min(dashHeight, wMaxHeight);
+ }
+
+ let dashX = opt.DASH_RIGHT ? width - dashWidth : 0;
+ let dashY = opt.DASH_TOP ? startY : startY + height - dashHeight;
+
+ if (opt.DASH_VERTICAL) {
+ const dashTopOffset = (opt.WS_TMB_FULL || opt.CENTER_DASH_WS) && opt.WS_TMB_TOP ? wsTmbHeight + spacing : 0;
+ const dashBottomOffset = (opt.WS_TMB_FULL || opt.CENTER_DASH_WS) && opt.WS_TMB_BOTTOM ? wsTmbHeight + spacing : 0;
+ let offset = (height - dashHeight - (opt.CENTER_DASH_WS ? dashTopOffset + dashBottomOffset : 0)) / 2;
+ offset -= opt.DASH_POSITION_ADJUSTMENT * (offset - spacing);
+ dashY = startY + (opt.CENTER_DASH_WS ? dashTopOffset : 0) + offset;
+ if (opt.WS_TMB_FULL) // Limit the adjustment while keeping the center of adjustment on the screen center
+ dashY = Math.clamp(startY + dashTopOffset + spacing, dashY, startY + height - dashBottomOffset - spacing - dashHeight);
+ } else {
+ const offset = (width - dashWidth) / 2;
+ dashX = startX + (offset - opt.DASH_POSITION_ADJUSTMENT * (offset - spacing));
+ }
+ dashX = Math.round(dashX);
+
+ childBox.set_origin(startX + dashX, dashY);
+ childBox.set_size(dashWidth, dashHeight);
+ this._dash.allocate(childBox);
+ }
+
+ // Main view offsets
+ const leftBoxOffset = opt.DASH_LEFT ? dashWidth : spacing;
+ const rightBoxOffset = opt.DASH_RIGHT ? dashWidth : spacing;
+ let topBoxOffset = (opt.DASH_TOP ? dashHeight : spacing) + (opt.WS_TMB_TOP ? wsTmbHeight + spacing : 0);
+ const bottomBoxOffset = (opt.DASH_BOTTOM ? dashHeight : spacing) + (opt.WS_TMB_BOTTOM ? wsTmbHeight + spacing : 0);
+ const centeredBoxOffset = Math.max(leftBoxOffset, rightBoxOffset);
+
+ // App grid needs to be calculated for the max wsTmbWidth in app grid, independently on the current wsTmb scale
+ const wsTmbHeightAppGrid = Math.round(height * opt.MAX_THUMBNAIL_SCALE_APPGRID);
+ const topBoxOffsetAppGrid = (opt.DASH_TOP ? dashHeight : spacing) + (opt.WS_TMB_TOP ? wsTmbHeightAppGrid + spacing : 0) + (opt.SHOW_SEARCH_ENTRY ? searchEntryHeight + spacing : 0);
+ const bottomBoxOffsetAppGrid = (opt.DASH_BOTTOM ? dashHeight : spacing) + (opt.WS_TMB_BOTTOM ? wsTmbHeightAppGrid + spacing : 0);
+
+ // searchEntry
+ const searchEntryY = startY + topBoxOffset;
+
+ const searchX = startX +
+ (opt.CENTER_SEARCH_VIEW || this._xAlignCenter
+ ? centeredBoxOffset
+ : leftBoxOffset); // xAlignCenter is set by wsBox
+
+ const searchWidth =
+ width - (opt.CENTER_SEARCH_VIEW || this._xAlignCenter
+ ? 2 * centeredBoxOffset
+ : leftBoxOffset + rightBoxOffset);
+
+ childBox.set_origin(searchX, searchEntryY);
+ childBox.set_size(searchWidth, searchEntryHeight);
+
+ this._searchEntry.allocate(childBox);
+
+ // searchResults
+ const searchY = startY + topBoxOffset + searchEntryHeight + spacing;
+ const searchHeight = height - topBoxOffset - bottomBoxOffset - searchEntryHeight - 2 * spacing;
+
+ childBox.set_origin(searchX, searchY);
+ childBox.set_size(searchWidth, searchHeight);
+ this._searchController.allocate(childBox);
+
+ // Add searchEntry height if needed
+ topBoxOffset += opt.SHOW_SEARCH_ENTRY ? searchEntryHeight + spacing : 0;
+
+ // Workspace
+ let params = [
+ box,
+ wsTmbWidth,
+ wsTmbHeight,
+ leftBoxOffset,
+ rightBoxOffset,
+ topBoxOffset,
+ bottomBoxOffset,
+ centeredBoxOffset,
+ ];
+
+ // Update cached boxes
+ for (const state of Object.values(ControlsState)) {
+ this._cachedWorkspaceBoxes.set(
+ state, this._computeWorkspacesBoxForState(state, ...params));
+ }
+
+ let workspacesBox;
+ if (!transitionParams.transitioning)
+ workspacesBox = this._cachedWorkspaceBoxes.get(transitionParams.currentState);
+
+ if (!workspacesBox) {
+ const initialBox = this._cachedWorkspaceBoxes.get(transitionParams.initialState);
+ const finalBox = this._cachedWorkspaceBoxes.get(transitionParams.finalState);
+ workspacesBox = initialBox.interpolate(finalBox, transitionParams.progress);
+ }
+
+ this._workspacesDisplay.allocate(workspacesBox);
+
+ // appDisplay
+ params = [
+ box,
+ leftBoxOffset === spacing ? 0 : leftBoxOffset,
+ rightBoxOffset === spacing ? 0 : rightBoxOffset,
+ topBoxOffsetAppGrid,
+ bottomBoxOffsetAppGrid,
+ ];
+ let appDisplayBox;
+ if (!transitionParams.transitioning) {
+ appDisplayBox =
+ this._getAppDisplayBoxForState(transitionParams.currentState, ...params);
+ } else {
+ const initialBox =
+ this._getAppDisplayBoxForState(transitionParams.initialState, ...params);
+ const finalBox =
+ this._getAppDisplayBoxForState(transitionParams.finalState, ...params);
+
+ appDisplayBox = initialBox.interpolate(finalBox, transitionParams.progress);
+ }
+ this._appDisplay.allocate(appDisplayBox);
+
+ this._runPostAllocation();
+ },
+};
+
+// same copy of this function should be available in OverviewControls and WorkspacesView
+function _getFitModeForState(state) {
+ switch (state) {
+ case ControlsState.HIDDEN:
+ case ControlsState.WINDOW_PICKER:
+ return FitMode.SINGLE;
+ case ControlsState.APP_GRID:
+ if (opt.WS_ANIMATION && opt.SHOW_WS_TMB)
+ return FitMode.ALL;
+ else
+ return FitMode.SINGLE;
+ default:
+ return FitMode.SINGLE;
+ }
+}
diff --git a/extensions/47/vertical-workspaces/lib/panel.js b/extensions/47/vertical-workspaces/lib/panel.js
new file mode 100644
index 0000000..ba6d01a
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/panel.js
@@ -0,0 +1,253 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * panel.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ *
+ */
+
+'use strict';
+
+import Clutter from 'gi://Clutter';
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+import * as Overview from 'resource:///org/gnome/shell/ui/overview.js';
+
+let Me;
+let opt;
+
+const ANIMATION_TIME = Overview.ANIMATION_TIME;
+
+export const PanelModule = class {
+ constructor(me) {
+ Me = me;
+ opt = Me.opt;
+
+ this._firstActivation = true;
+ this.moduleEnabled = false;
+ this._overrides = null;
+
+ this._showingOverviewConId = 0;
+ this._hidingOverviewConId = 0;
+ this._styleChangedConId = 0;
+ }
+
+ cleanGlobals() {
+ Me = null;
+ opt = null;
+ }
+
+ update(reset) {
+ this.moduleEnabled = opt.get('panelModule');
+ const conflict = Me.Util.getEnabledExtensions('dash-to-panel').length ||
+ Me.Util.getEnabledExtensions('hidetopbar').length;
+
+ if (conflict && !reset)
+ console.warn(`[${Me.metadata.name}] Warning: "Panel" module disabled due to potential conflict with another extension`);
+
+ reset = reset || !this.moduleEnabled || conflict;
+
+ this.moduleEnabled = !reset;
+
+ // don't touch original code if module disabled
+ if (reset && !this._firstActivation) {
+ this._disableModule();
+ } else if (!reset) {
+ this._firstActivation = false;
+ this._activateModule();
+ }
+ if (reset && this._firstActivation)
+ console.debug(' PanelModule - Keeping untouched');
+ }
+
+ _activateModule() {
+ if (!this._overrides)
+ this._overrides = new Me.Util.Overrides();
+
+ const panelBox = Main.layoutManager.panelBox;
+
+ this._setPanelPosition();
+ this._updateStyleChangedConnection();
+
+ if (!opt.PANEL_MODE) {
+ this._updateOverviewConnection(true);
+ this._reparentPanel(false);
+ panelBox.translation_y = 0;
+ Main.panel.opacity = 255;
+ this._setPanelStructs(true);
+ } else if (opt.PANEL_OVERVIEW_ONLY) {
+ if (opt.SHOW_WS_PREVIEW_BG) {
+ this._reparentPanel(true);
+ if (opt.OVERVIEW_MODE2) {
+ // in OM2 if the panel has been moved to the overviewGroup move panel above all
+ Main.layoutManager.overviewGroup.set_child_above_sibling(panelBox, null);
+ this._updateOverviewConnection();
+ } else {
+ this._updateOverviewConnection(true);
+ }
+ this._showPanel(true);
+ } else {
+ // if ws preview bg is disabled, panel can stay in uiGroup
+ this._reparentPanel(false);
+ this._showPanel(false);
+ this._updateOverviewConnection();
+ }
+ // _connectPanel();
+ } else if (opt.PANEL_DISABLED) {
+ this._updateOverviewConnection(true);
+ this._reparentPanel(false);
+ this._showPanel(false);
+ // _connectPanel();
+ }
+ this._setPanelStructs(!opt.PANEL_MODE);
+ Main.layoutManager._updateHotCorners();
+
+ this._overrides.addOverride('ActivitiesButton', Main.panel.statusArea.activities, ActivitiesButton);
+
+ console.debug(' PanelModule - Activated');
+ }
+
+ _disableModule() {
+ const reset = true;
+ this._setPanelPosition(reset);
+ this._updateOverviewConnection(reset);
+ this._reparentPanel(false);
+
+ this._updateStyleChangedConnection(reset);
+
+ const panelBox = Main.layoutManager.panelBox;
+ panelBox.translation_y = 0;
+ Main.panel.opacity = 255;
+ this._setPanelStructs(true);
+ if (this._overrides)
+ this._overrides.removeAll();
+ this._overrides = null;
+
+ console.debug(' PanelModule - Disabled');
+ }
+
+ _setPanelPosition(reset = false) {
+ const geometry = global.display.get_monitor_geometry(global.display.get_primary_monitor());
+ const panelBox = Main.layoutManager.panelBox;
+ const panelHeight = Main.panel.height; // panelBox height can be 0 after shell start
+
+ if (opt.PANEL_POSITION_TOP || reset)
+ panelBox.set_position(geometry.x, geometry.y);
+ else
+ panelBox.set_position(geometry.x, geometry.y + geometry.height - panelHeight);
+ }
+
+ _updateStyleChangedConnection(reset = false) {
+ if (reset) {
+ if (this._styleChangedConId) {
+ Main.panel.disconnect(this._styleChangedConId);
+ this._styleChangedConId = 0;
+ }
+ } else if (!this._styleChangedConId) {
+ this._styleChangedConId = Main.panel.connect('style-changed', () => {
+ if (opt.PANEL_OVERVIEW_ONLY && !opt.OVERVIEW_MODE2)
+ Main.panel.add_style_pseudo_class('overview');
+ else if (opt.OVERVIEW_MODE2)
+ Main.panel.remove_style_pseudo_class('overview');
+ });
+ }
+ }
+
+ _updateOverviewConnection(reset = false) {
+ if (reset) {
+ if (this._hidingOverviewConId) {
+ Main.overview.disconnect(this._hidingOverviewConId);
+ this._hidingOverviewConId = 0;
+ }
+ if (this._showingOverviewConId) {
+ Main.overview.disconnect(this._showingOverviewConId);
+ this._showingOverviewConId = 0;
+ }
+ } else {
+ if (!this._hidingOverviewConId) {
+ this._hidingOverviewConId = Main.overview.connect('hiding', () => {
+ if (!opt.SHOW_WS_PREVIEW_BG || opt.OVERVIEW_MODE2)
+ this._showPanel(false);
+ });
+ }
+ if (!this._showingOverviewConId) {
+ this._showingOverviewConId = Main.overview.connect('showing', () => {
+ if (Main.layoutManager._startingUp)
+ return;
+ if (!opt.SHOW_WS_PREVIEW_BG || opt.OVERVIEW_MODE2 || Main.layoutManager.panelBox.translation_y)
+ this._showPanel(true);
+ });
+ }
+ }
+ }
+
+ _reparentPanel(reparent = false) {
+ const panel = Main.layoutManager.panelBox;
+ if (reparent && panel.get_parent() === Main.layoutManager.uiGroup && !Main.sessionMode.isLocked) {
+ Main.layoutManager.uiGroup.remove_child(panel);
+ Main.layoutManager.overviewGroup.add_child(panel);
+ } else if ((!reparent || Main.sessionMode.isLocked) && panel.get_parent() === Main.layoutManager.overviewGroup) {
+ Main.layoutManager.overviewGroup.remove_child(panel);
+ // return the panel at default position, panel shouldn't cover objects that should be above
+ Main.layoutManager.uiGroup.insert_child_at_index(panel, 4);
+ }
+ }
+
+ _setPanelStructs(state) {
+ Main.layoutManager._trackedActors.forEach(a => {
+ if (a.actor === Main.layoutManager.panelBox)
+ a.affectsStruts = state;
+ });
+
+ // workaround to force maximized windows to resize after removing affectsStruts
+ // simulation of minimal swipe gesture to the opposite direction
+ // todo - needs better solution!!!!!!!!!!!
+ // const direction = _getAppGridAnimationDirection() === 2 ? 1 : -1;
+ // Main.overview._swipeTracker._beginTouchSwipe(null, global.get_current_time(), 1, 1);
+ // Main.overview._swipeTracker._updateGesture(null, global.get_current_time(), direction, 1);
+ // GLib.timeout_add(0, 50, () => Main.overview._swipeTracker._endGesture(global.get_current_time(), 1, true));*/
+ }
+
+ _showPanel(show = true) {
+ if (show) {
+ Main.panel.opacity = 255;
+ Main.layoutManager.panelBox.ease({
+ duration: ANIMATION_TIME,
+ translation_y: 0,
+ onComplete: () => {
+ this._setPanelStructs(!opt.PANEL_MODE);
+ },
+ });
+ } else if (!Main.layoutManager._startingUp) {
+ const panelHeight = Main.panel.height;
+ Main.layoutManager.panelBox.ease({
+ duration: ANIMATION_TIME,
+ translation_y: opt.PANEL_POSITION_TOP ? -panelHeight + 1 : panelHeight - 1,
+ onComplete: () => {
+ Main.panel.opacity = 0;
+ this._setPanelStructs(!opt.PANEL_MODE);
+ },
+ });
+ }
+ }
+};
+
+const ActivitiesButton = {
+ vfunc_event(event) {
+ if (event.type() === Clutter.EventType.TOUCH_END ||
+ event.type() === Clutter.EventType.BUTTON_RELEASE) {
+ if (Main.overview.shouldToggleByCornerOrButton()) {
+ if (event.get_button() === Clutter.BUTTON_SECONDARY && !Main.overview.dash.showAppsButton.checked) {
+ Main.overview.show(2);
+ Main.overview.dash.showAppsButton.checked = true;
+ } else {
+ Main.overview.toggle();
+ }
+ }
+ }
+
+ return Main.wm.handleWorkspaceScroll(event);
+ },
+};
diff --git a/extensions/47/vertical-workspaces/lib/recentFilesSearchProvider.js b/extensions/47/vertical-workspaces/lib/recentFilesSearchProvider.js
new file mode 100644
index 0000000..f050cf9
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/recentFilesSearchProvider.js
@@ -0,0 +1,316 @@
+/**
+ * Vertical Workspaces
+ * recentFilesSearchProvider.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ */
+
+'use strict';
+
+import GLib from 'gi://GLib';
+import St from 'gi://St';
+import Gio from 'gi://Gio';
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+
+let Me;
+let opt;
+// gettext
+let _;
+
+// prefix helps to eliminate results from other search providers
+// so it needs to be something less common
+// needs to be accessible from vw module
+export const PREFIX = 'fq//';
+const ID = 'recent-files';
+
+export const RecentFilesSearchProviderModule = class {
+ // export for other modules
+ static _PREFIX = PREFIX;
+ constructor(me) {
+ Me = me;
+ opt = Me.opt;
+ _ = Me.gettext;
+
+ this._firstActivation = true;
+ this.moduleEnabled = false;
+ this._recentFilesSearchProvider = null;
+ this._enableTimeoutId = 0;
+ }
+
+ cleanGlobals() {
+ Me = null;
+ opt = null;
+ _ = null;
+ }
+
+ update(reset) {
+ this.moduleEnabled = opt.get('recentFilesSearchProviderModule');
+
+ reset = reset || !this.moduleEnabled;
+
+ if (reset && !this._firstActivation) {
+ this._disableModule();
+ } else if (!reset) {
+ this._firstActivation = false;
+ this._activateModule();
+ }
+ if (reset && this._firstActivation)
+ console.debug(' RecentFilesSearchProviderModule - Keeping untouched');
+ }
+
+ _activateModule() {
+ // delay because Fedora had problem to register a new provider soon after Shell restarts
+ this._enableTimeoutId = GLib.timeout_add(
+ GLib.PRIORITY_DEFAULT,
+ 2000,
+ () => {
+ if (!this._recentFilesSearchProvider) {
+ this._recentFilesSearchProvider = new RecentFilesSearchProvider();
+ this._registerProvider(this._recentFilesSearchProvider);
+ }
+ this._enableTimeoutId = 0;
+ return GLib.SOURCE_REMOVE;
+ }
+ );
+
+ console.debug(' RecentFilesSearchProviderModule - Activated');
+ }
+
+ _disableModule() {
+ if (this._recentFilesSearchProvider) {
+ this._unregisterProvider(this._recentFilesSearchProvider);
+ this._recentFilesSearchProvider = null;
+ }
+ if (this._enableTimeoutId) {
+ GLib.source_remove(this._enableTimeoutId);
+ this._enableTimeoutId = 0;
+ }
+
+ console.debug(' RecentFilesSearchProviderModule - Disabled');
+ }
+
+ _registerProvider(provider) {
+ const searchResults = Main.overview.searchController._searchResults;
+ provider.searchInProgress = false;
+
+ searchResults._providers.push(provider);
+
+ // create results display and add it to the _content
+ searchResults._ensureProviderDisplay.bind(searchResults)(provider);
+ }
+
+ _unregisterProvider(provider) {
+ const searchResults = Main.overview.searchController._searchResults;
+ searchResults._unregisterProvider(provider);
+ }
+};
+
+class RecentFilesSearchProvider {
+ constructor() {
+ this.id = ID;
+ const appId = 'org.gnome.Nautilus.desktop';
+
+ // A real appInfo created from a commandline has often issues with overriding get_id() method, so we use dict instead
+ this.appInfo = {
+ get_id: () => appId,
+ get_name: () => _('Recent Files'),
+ get_icon: () => Gio.icon_new_for_string('focus-windows-symbolic'),
+ should_show: () => true,
+ get_commandline: () => '/usr/bin/nautilus -w recent:///',
+ launch: () => {},
+ };
+
+ this.canLaunchSearch = true;
+ this.isRemoteProvider = false;
+
+ this._recentFilesManager = new RecentFilesManager();
+ }
+
+ getInitialResultSet(terms/* , cancellable*/) {
+ const rfm = this._recentFilesManager;
+ rfm.loadFromFile();
+
+ const uris = rfm.getUris();
+ const dict = {};
+ for (let uri of uris) {
+ dict[uri] = {};
+ dict[uri]['uri'] = uri;
+ dict[uri]['path'] = rfm.getPath(uri);
+ dict[uri]['filename'] = rfm.getDisplayName(uri);
+ dict[uri]['dir'] = rfm.getDirPath(uri);
+ dict[uri]['age'] = rfm.getAge(uri);
+ dict[uri]['appInfo'] = rfm.getDefaultAppAppInfo(uri);
+ }
+ this.files = dict;
+
+ return new Promise(resolve => resolve(this._getResultSet(terms)));
+ }
+
+ _getResultSet(terms) {
+ if (!terms[0].startsWith(PREFIX))
+ return [];
+ // do not modify original terms
+ let termsCopy = [...terms];
+ // search for terms without prefix
+ termsCopy[0] = termsCopy[0].replace(PREFIX, '');
+
+ const candidates = Object.values(this.files);
+ const _terms = [].concat(termsCopy);
+
+ const term = _terms.join(' ');
+
+ const results = [];
+ let m;
+ for (let file of candidates) {
+ if (opt.SEARCH_FUZZY)
+ m = Me.Util.fuzzyMatch(term, file.filename);
+ else
+ m = Me.Util.strictMatch(term, file.filename);
+
+ if (m !== -1)
+ results.push(file);
+ }
+
+ results.sort((a, b) => a.age > b.age);
+
+ const resultIds = results.map(item => item.uri);
+ return resultIds;
+ }
+
+ getResultMetas(resultIds/* , callback = null*/) {
+ const metas = resultIds.map(id => this.getResultMeta(id));
+ return new Promise(resolve => resolve(metas));
+ }
+
+ getResultMeta(resultId) {
+ const result = this.files[resultId];
+ return {
+ 'id': resultId,
+ 'name': `${Math.floor(result.age)}: ${result.filename}`,
+ 'description': `${result.dir}`,
+ 'createIcon': size =>
+ this._recentFilesManager.getDefaultAppIcon(resultId, size),
+ };
+ }
+
+ launchSearch(terms, timeStamp) {
+ const appInfo = Gio.AppInfo.create_from_commandline('/usr/bin/nautilus -w recent:///', 'Nautilus', null);
+ appInfo.launch([], global.create_app_launch_context(timeStamp, -1));
+
+ // unlike on 42, on 44 if a window with the same uri is already open it will not get focus/activation
+ // Gio.app_info_launch_default_for_uri('recent:///', global.create_app_launch_context(timeStamp, -1));
+
+ // following solution for some reason ignores the recent:/// uri
+ // this.appInfo.launch_uris(['recent:///'], global.create_app_launch_context(timeStamp, -1));
+ }
+
+ activateResult(resultId, terms, timeStamp) {
+ const uri = resultId;
+ const context = global.create_app_launch_context(timeStamp, -1);
+ if (Me.Util.isShiftPressed()) {
+ Main.overview.toggle();
+ this.appInfo.launch_uris([uri], context);
+ } else if (Gio.app_info_launch_default_for_uri(uri, context)) {
+ // update recent list after successful activation
+ this._recentFilesManager.updateAdded(resultId);
+ this._recentFilesManager.saveToFile();
+ } else {
+ this.appInfo.launch_uris([uri], context);
+ }
+ }
+
+ filterResults(results /* , maxResults*/) {
+ // return results.slice(0, maxResults);
+ return results.slice(0, 20);
+ }
+
+ getSubsearchResultSet(previousResults, terms/* , cancellable*/) {
+ return this.getInitialResultSet(terms);
+ }
+}
+
+class RecentFilesManager {
+ constructor(path) {
+ path = path ?? GLib.build_filenamev([GLib.get_user_data_dir(), 'recently-used.xbel']);
+ this._recentlyUsedPath = path;
+ this._bookmarks = new GLib.BookmarkFile();
+ }
+
+ loadFromFile() {
+ try {
+ this._bookmarks.load_from_file(this._recentlyUsedPath);
+ } catch (e) {
+ if (!e.matches(GLib.BookmarkFileError, GLib.BookmarkFileError.FILE_NOT_FOUND))
+ console.error(`Could not open recent files: ${e.message}`);
+ }
+ }
+
+ saveToFile() {
+ try {
+ this._bookmarks.to_file(this._recentlyUsedPath);
+ } catch (e) {
+ if (!e.matches(GLib.BookmarkFileError, GLib.BookmarkFileError.FILE_NOT_FOUND))
+ console.error(`Could not open recent files to save data: ${e.message}`);
+ }
+ }
+
+ getUris() {
+ return this._bookmarks.get_uris();
+ }
+
+ getPath(uri) {
+ // GLib.filename_from_uri() removes uri schema and converts string to utf-8
+ return GLib.filename_from_uri(uri)[0]; // result is array
+ }
+
+ getDisplayName(uri) {
+ const path = this.getPath(uri);
+ return GLib.filename_display_basename(path);
+ }
+
+ getDirPath(uri) {
+ const path = this.getPath(uri);
+ const filename = this.getDisplayName(uri);
+ return path.replace(`${filename}`, '');
+ }
+
+ getMimeType(uri) {
+ return this._bookmarks.get_mime_type(uri);
+ }
+
+ getAdded(uri) {
+ return this._bookmarks.get_added(uri);
+ }
+
+ updateAdded(uri) {
+ this._bookmarks.set_added_date_time(uri, GLib.DateTime.new_now_local());
+ }
+
+ // age in days (float)
+ getAge(uri) {
+ return (Date.now() / 1000 - this._bookmarks.get_added(uri)) / 60 / 60 / 24;
+ }
+
+ getDefaultAppAppInfo(uri) {
+ const mimeType = this.getMimeType(uri);
+ return Gio.AppInfo.get_default_for_type(mimeType, false);
+ }
+
+ getDefaultAppIcon(uri, size) {
+ let icon, gicon;
+
+ const appInfo = this.getDefaultAppAppInfo(uri);
+ if (appInfo)
+ gicon = appInfo.get_icon();
+
+ if (gicon)
+ icon = new St.Icon({ gicon, icon_size: size });
+ else
+ icon = new St.Icon({ icon_name: 'icon-missing', icon_size: size });
+
+ return icon;
+ }
+}
diff --git a/extensions/47/vertical-workspaces/lib/search.js b/extensions/47/vertical-workspaces/lib/search.js
new file mode 100644
index 0000000..47198a7
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/search.js
@@ -0,0 +1,474 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * search.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ *
+ */
+
+'use strict';
+
+import GLib from 'gi://GLib';
+import Clutter from 'gi://Clutter';
+import St from 'gi://St';
+import Shell from 'gi://Shell';
+import GObject from 'gi://GObject';
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+import * as Search from 'resource:///org/gnome/shell/ui/search.js';
+import * as AppDisplay from 'resource:///org/gnome/shell/ui/appDisplay.js';
+
+import * as SystemActions from 'resource:///org/gnome/shell/misc/systemActions.js';
+import { Highlighter } from 'resource:///org/gnome/shell/misc/util.js';
+
+let Me;
+// gettext
+let _;
+let opt;
+
+const SEARCH_MAX_WIDTH = 1092;
+
+export const SearchModule = class {
+ constructor(me) {
+ Me = me;
+ opt = Me.opt;
+ _ = Me.gettext;
+
+ this._firstActivation = true;
+ this.moduleEnabled = false;
+ this._overrides = null;
+ }
+
+ cleanGlobals() {
+ Me = null;
+ opt = null;
+ _ = null;
+ }
+
+ update(reset) {
+ this.moduleEnabled = opt.get('searchModule');
+ const conflict = false;
+
+ reset = reset || !this.moduleEnabled || conflict;
+
+ // don't touch the original code if module disabled
+ if (reset && !this._firstActivation) {
+ this._disableModule();
+ } else if (!reset) {
+ this._firstActivation = false;
+ this._activateModule();
+ }
+ if (reset && this._firstActivation)
+ console.debug(' SearchModule - Keeping untouched');
+ }
+
+ _activateModule() {
+ this._updateSearchViewWidth();
+
+ if (!this._overrides)
+ this._overrides = new Me.Util.Overrides();
+
+ this._overrides.addOverride('AppSearchProvider', AppDisplay.AppSearchProvider.prototype, AppSearchProvider);
+ this._overrides.addOverride('SearchResult', Search.SearchResult.prototype, SearchResult);
+ this._overrides.addOverride('SearchResultsView', Search.SearchResultsView.prototype, SearchResultsView);
+ this._overrides.addOverride('ListSearchResults', Search.ListSearchResults.prototype, ListSearchResults);
+ this._overrides.addOverride('ListSearchResult', Search.ListSearchResult.prototype, ListSearchResultOverride);
+ this._overrides.addOverride('Highlighter', Highlighter.prototype, HighlighterOverride);
+
+ // Don't expand the search view vertically and align it to the top
+ // this is important in the static workspace mode when the search view bg is not transparent
+ // also the "Searching..." and "No Results" notifications will be closer to the search entry, with the distance given by margin-top in the stylesheet
+ Main.overview.searchController.y_align = Clutter.ActorAlign.START;
+ // Increase the maxResults for app search so that it can show more results in case the user decreases the size of the result icon
+ const appSearchDisplay = Main.overview.searchController._searchResults._providers.filter(p => p.id === 'applications')[0]?.display;
+ if (appSearchDisplay)
+ appSearchDisplay._maxResults = 12;
+ console.debug(' SearchModule - Activated');
+ }
+
+ _disableModule() {
+ const reset = true;
+
+ const searchResults = Main.overview.searchController._searchResults;
+ if (searchResults?._searchTimeoutId) {
+ GLib.source_remove(searchResults._searchTimeoutId);
+ searchResults._searchTimeoutId = 0;
+ }
+
+ this._updateSearchViewWidth(reset);
+
+ if (this._overrides)
+ this._overrides.removeAll();
+ this._overrides = null;
+
+ Main.overview.searchController.y_align = Clutter.ActorAlign.FILL;
+
+ console.debug(' WorkspaceSwitcherPopupModule - Disabled');
+ }
+
+ _updateSearchViewWidth(reset = false) {
+ const searchContent = Main.overview.searchController._searchResults._content;
+
+ if (reset) {
+ searchContent.set_style('');
+ } else {
+ let width = SEARCH_MAX_WIDTH;
+ if (Me.Util.monitorHasLowResolution())
+ width = Math.round(width * 0.8);
+ width = Math.round(width * opt.SEARCH_VIEW_SCALE);
+ searchContent.set_style(`max-width: ${width}px;`);
+ }
+ }
+};
+
+const ListSearchResults = {
+ _getMaxDisplayedResults() {
+ return opt.SEARCH_MAX_ROWS;
+ },
+};
+
+// AppDisplay.AppSearchProvider
+const AppSearchProvider = {
+ getInitialResultSet(terms, cancellable) {
+ // Defer until the parental controls manager is initialized, so the
+ // results can be filtered correctly.
+ if (!this._parentalControlsManager.initialized) {
+ return new Promise(resolve => {
+ let initializedId = this._parentalControlsManager.connect('app-filter-changed', async () => {
+ if (this._parentalControlsManager.initialized) {
+ this._parentalControlsManager.disconnect(initializedId);
+ resolve(await this.getInitialResultSet(terms, cancellable));
+ }
+ });
+ });
+ }
+
+ const pattern = terms.join(' ');
+
+ let appInfoList = Shell.AppSystem.get_default().get_installed();
+
+ let weightList = {};
+ appInfoList = appInfoList.filter(appInfo => {
+ try {
+ appInfo.get_id(); // catch invalid file encodings
+ } catch (e) {
+ return false;
+ }
+
+ let string = '';
+ let name;
+ let shouldShow = false;
+ if (appInfo.get_display_name) {
+ // show only launchers that should be visible in this DE
+ shouldShow = appInfo.should_show() && this._parentalControlsManager.shouldShowApp(appInfo);
+
+ if (shouldShow) {
+ let id = appInfo.get_id().split('.');
+ id = id[id.length - 2] || '';
+ let baseName = appInfo.get_string('Name') || '';
+ let dispName = appInfo.get_display_name() || '';
+ let gName = appInfo.get_generic_name() || '';
+ let description = appInfo.get_description() || '';
+ let categories = appInfo.get_string('Categories')?.replace(/;/g, ' ') || '';
+ let keywords = appInfo.get_string('Keywords')?.replace(/;/g, ' ') || '';
+ name = `${dispName} ${id}`;
+ string = `${dispName} ${gName} ${baseName} ${description} ${categories} ${keywords} ${id}`;
+ }
+ }
+
+ let m = -1;
+ if (shouldShow && opt.SEARCH_FUZZY) {
+ m = Me.Util.fuzzyMatch(pattern, name);
+ m = (m + Me.Util.strictMatch(pattern, string)) / 2;
+ } else if (shouldShow) {
+ m = Me.Util.strictMatch(pattern, string);
+ }
+
+ if (m !== -1)
+ weightList[appInfo.get_id()] = m;
+
+ return shouldShow && (m !== -1);
+ });
+
+ appInfoList.sort((a, b) => weightList[a.get_id()] > weightList[b.get_id()]);
+
+ const usage = Shell.AppUsage.get_default();
+ // sort apps by usage list
+ appInfoList.sort((a, b) => usage.compare(a.get_id(), b.get_id()));
+ // prefer apps where any word in their name starts with the pattern
+ appInfoList.sort((a, b) => Me.Util.isMoreRelevant(a.get_display_name(), b.get_display_name(), pattern));
+
+ let results = appInfoList.map(app => app.get_id());
+
+ if (opt.SEARCH_APP_GRID_MODE && Main.overview.dash.showAppsButton.checked)
+ this._filterAppGrid(results);
+
+ results = results.concat(this._systemActions.getMatchingActions(terms));
+
+ return new Promise(resolve => resolve(results));
+ },
+
+ _filterAppGrid(results) {
+ const icons = Main.overview._overview.controls._appDisplay._orderedItems;
+ icons.forEach(icon => {
+ icon.visible = results.includes(icon.id);
+ });
+ },
+
+ // App search result size
+ createResultObject(resultMeta) {
+ let iconSize = opt.SEARCH_ICON_SIZE;
+ if (!iconSize) {
+ iconSize = Me.Util.monitorHasLowResolution()
+ ? 64
+ : 96;
+ }
+
+ if (resultMeta.id.endsWith('.desktop')) {
+ const icon = new AppDisplay.AppIcon(this._appSys.lookup_app(resultMeta['id']), {
+ expandTitleOnHover: false,
+ });
+ icon.icon.setIconSize(iconSize);
+ return icon;
+ } else {
+ this._iconSize = iconSize;
+ return new SystemActionIcon(this, resultMeta);
+ }
+ },
+};
+
+const SystemActionIcon = GObject.registerClass({
+ // Registered name should be unique
+ GTypeName: `SystemAction${Math.floor(Math.random() * 1000)}`,
+}, class SystemActionIcon extends Search.GridSearchResult {
+ _init(provider, metaInfo, resultsView) {
+ super._init(provider, metaInfo, resultsView);
+ if (!Clutter.Container)
+ this.add_style_class_name('grid-search-result-46');
+ this.icon._setSizeManually = true;
+ this.icon.setIconSize(provider._iconSize);
+ }
+
+ activate() {
+ SystemActions.getDefault().activateAction(this.metaInfo['id']);
+ Main.overview.hide();
+ }
+});
+
+const SearchResult = {
+ activate() {
+ this.provider.activateResult(this.metaInfo.id, this._resultsView.terms);
+
+ if (this.metaInfo.clipboardText) {
+ St.Clipboard.get_default().set_text(
+ St.ClipboardType.CLIPBOARD, this.metaInfo.clipboardText);
+ }
+ // don't close overview if Shift key is pressed - Shift moves windows to the workspace
+ if (!Me.Util.isShiftPressed())
+ Main.overview.toggle();
+ },
+};
+
+const SearchResultsView = {
+ setTerms(terms) {
+ // Check for the case of making a duplicate previous search before
+ // setting state of the current search or cancelling the search.
+ // This will prevent incorrect state being as a result of a duplicate
+ // search while the previous search is still active.
+ let searchString = terms.join(' ');
+ let previousSearchString = this._terms.join(' ');
+ if (searchString === previousSearchString)
+ return;
+
+ this._startingSearch = true;
+
+ this._cancellable.cancel();
+ this._cancellable.reset();
+
+ if (terms.length === 0) {
+ this._reset();
+ return;
+ }
+
+ let isSubSearch = false;
+ if (this._terms.length > 0)
+ isSubSearch = searchString.indexOf(previousSearchString) === 0;
+
+ this._terms = terms;
+ this._isSubSearch = isSubSearch;
+ this._updateSearchProgress();
+
+ if (!this._searchTimeoutId)
+ this._searchTimeoutId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, opt.SEARCH_DELAY, this._onSearchTimeout.bind(this));
+
+ this._highlighter = new Highlighter(this._terms);
+
+ this.emit('terms-changed');
+ },
+
+ _doSearch() {
+ this._startingSearch = false;
+
+ let previousResults = this._results;
+ this._results = {};
+
+ const term0 = this._terms[0];
+ const onlySupportedProviders = term0.startsWith(Me.WSP_PREFIX) || term0.startsWith(Me.ESP_PREFIX) || term0.startsWith(Me.RFSP_PREFIX);
+
+ this._providers.forEach(provider => {
+ const supportedProvider = ['open-windows', 'extensions', 'recent-files'].includes(provider.id);
+ if (!onlySupportedProviders || (onlySupportedProviders && supportedProvider)) {
+ let previousProviderResults = previousResults[provider.id];
+ this._doProviderSearch(provider, previousProviderResults);
+ } else {
+ // hide unwanted providers, they will show() automatically when needed
+ provider.display.visible = false;
+ }
+ });
+
+ this._updateSearchProgress();
+ this._clearSearchTimeout();
+ },
+
+ _updateSearchProgress() {
+ let haveResults = this._providers.some(provider => {
+ let display = provider.display;
+ return display.getFirstResult() !== null;
+ });
+
+ this._scrollView.visible = haveResults;
+ this._statusBin.visible = !haveResults;
+
+ if (!haveResults) {
+ if (this.searchInProgress)
+ this._statusText.set_text(_('Searching…'));
+ else
+ this._statusText.set_text(_('No results.'));
+ }
+ },
+
+ _highlightFirstVisibleAppGridIcon() {
+ const appDisplay = Main.overview._overview.controls._appDisplay;
+ // appDisplay.grab_key_focus();
+ for (const icon of appDisplay._orderedItems) {
+ if (icon.visible) {
+ appDisplay.selectApp(icon.id);
+ break;
+ }
+ }
+ },
+
+ _maybeSetInitialSelection() {
+ if (opt.SEARCH_APP_GRID_MODE && Main.overview.dash.showAppsButton.checked) {
+ this._highlightFirstVisibleAppGridIcon();
+ return;
+ }
+
+ let newDefaultResult = null;
+
+ let providers = this._providers;
+ for (let i = 0; i < providers.length; i++) {
+ let provider = providers[i];
+ let display = provider.display;
+
+ if (!display.visible)
+ continue;
+
+ let firstResult = display.getFirstResult();
+ if (firstResult) {
+ newDefaultResult = firstResult;
+ break; // select this one!
+ }
+ }
+
+ if (newDefaultResult !== this._defaultResult) {
+ this._setSelected(this._defaultResult, false);
+ this._setSelected(newDefaultResult, this._highlightDefault);
+
+ this._defaultResult = newDefaultResult;
+ }
+ },
+
+ highlightDefault(highlight) {
+ if (opt.SEARCH_APP_GRID_MODE && Main.overview.dash.showAppsButton.checked) {
+ if (highlight)
+ this._highlightFirstVisibleAppGridIcon();
+ } else {
+ this._highlightDefault = highlight;
+ this._setSelected(this._defaultResult, highlight);
+ }
+ },
+};
+
+// Add highlighting of the "name" part of the result for all providers
+const ListSearchResultOverride = {
+ _highlightTerms() {
+ let markup = this._resultsView.highlightTerms(this.metaInfo['name']);
+ this.label_actor.clutter_text.set_markup(markup);
+ markup = this._resultsView.highlightTerms(this.metaInfo['description'].split('\n')[0]);
+ this._descriptionLabel.clutter_text.set_markup(markup);
+ },
+};
+
+const HighlighterOverride = {
+ /**
+ * @param {?string[]} terms - list of terms to highlight
+ */
+ /* constructor(terms) {
+ if (!terms)
+ return;
+
+ const escapedTerms = terms
+ .map(term => Shell.util_regex_escape(term))
+ .filter(term => term.length > 0);
+
+ if (escapedTerms.length === 0)
+ return;
+
+ this._highlightRegex = new RegExp(
+ `(${escapedTerms.join('|')})`, 'gi');
+ },*/
+
+ /**
+ * Highlight all occurences of the terms defined for this
+ * highlighter in the provided text using markup.
+ *
+ * @param {string} text - text to highlight the defined terms in
+ * @returns {string}
+ */
+ highlight(text, options) {
+ if (!this._highlightRegex)
+ return GLib.markup_escape_text(text, -1);
+
+ // force use local settings if the class is overridden by another extension (WSP, ESP)
+ const o = options || opt;
+ let escaped = [];
+ let lastMatchEnd = 0;
+ let match;
+ let style = ['', ''];
+ if (o.HIGHLIGHT_DEFAULT)
+ style = ['<b>', '</b>'];
+ // The default highlighting by the bold style causes text to be "randomly" ellipsized in cases where it's not necessary
+ // and also blurry
+ // Underscore doesn't affect label size and all looks better
+ else if (o.HIGHLIGHT_UNDERLINE)
+ style = ['<u>', '</u>'];
+
+ while ((match = this._highlightRegex.exec(text))) {
+ if (match.index > lastMatchEnd) {
+ let unmatched = GLib.markup_escape_text(
+ text.slice(lastMatchEnd, match.index), -1);
+ escaped.push(unmatched);
+ }
+ let matched = GLib.markup_escape_text(match[0], -1);
+ escaped.push(`${style[0]}${matched}${style[1]}`);
+ lastMatchEnd = match.index + match[0].length;
+ }
+ let unmatched = GLib.markup_escape_text(
+ text.slice(lastMatchEnd), -1);
+ escaped.push(unmatched);
+ return escaped.join('');
+ },
+};
diff --git a/extensions/47/vertical-workspaces/lib/searchController.js b/extensions/47/vertical-workspaces/lib/searchController.js
new file mode 100644
index 0000000..1722f15
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/searchController.js
@@ -0,0 +1,94 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * searchController.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ *
+ */
+
+'use strict';
+
+import Clutter from 'gi://Clutter';
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+
+let Me;
+let opt;
+
+export const SearchControllerModule = class {
+ constructor(me) {
+ Me = me;
+ opt = Me.opt;
+
+ this._firstActivation = true;
+ this.moduleEnabled = false;
+ this._originalOnStageKeyPress = null;
+ }
+
+ cleanGlobals() {
+ Me = null;
+ opt = null;
+ }
+
+ update(reset) {
+ this.moduleEnabled = opt.get('searchControllerModule');
+ const conflict = false;
+
+ reset = reset || !this.moduleEnabled || conflict;
+
+ // don't touch the original code if module disabled
+ if (reset && !this._firstActivation) {
+ this._disableModule();
+ } else if (!reset) {
+ this._firstActivation = false;
+ this._activateModule();
+ }
+ if (reset && this._firstActivation)
+ console.debug(' SearchControllerModule - Keeping untouched');
+ }
+
+ _activateModule() {
+ if (!this._originalOnStageKeyPress)
+ this._originalOnStageKeyPress = Main.overview.searchController._onStageKeyPress;
+
+ Main.overview.searchController._onStageKeyPress = SearchControllerCommon._onStageKeyPress;
+ console.debug(' SearchControllerModule - Activated');
+ }
+
+ _disableModule() {
+ if (this._originalOnStageKeyPress)
+ Main.overview.searchController._onStageKeyPress = this._originalOnStageKeyPress;
+ this._originalOnStageKeyPress = null;
+
+ console.debug(' SearchControlerModule - Disabled');
+ }
+};
+
+// if opt.ESC_BEHAVIOR > 0 force close the overview
+const SearchControllerCommon = {
+ _onStageKeyPress(actor, event) {
+ // Ignore events while anything but the overview has
+ // pushed a modal (system modals, looking glass, ...)
+ if (Main.modalCount > 1)
+ return Clutter.EVENT_PROPAGATE;
+
+ let symbol = event.get_key_symbol();
+ if (symbol === Clutter.KEY_Escape) {
+ if (this._searchActive && !opt.ESC_BEHAVIOR) {
+ this.reset();
+ } else if (this._showAppsButton.checked && !opt.ESC_BEHAVIOR) {
+ this._showAppsButton.checked = false;
+ } else {
+ this.reset();
+ Main.overview.hide();
+ }
+
+ return Clutter.EVENT_STOP;
+ } else if (this._shouldTriggerSearch(symbol)) {
+ this.startSearch(event);
+ }
+ return Clutter.EVENT_PROPAGATE;
+ },
+};
diff --git a/extensions/47/vertical-workspaces/lib/settings.js b/extensions/47/vertical-workspaces/lib/settings.js
new file mode 100644
index 0000000..563063c
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/settings.js
@@ -0,0 +1,539 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * settings.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ */
+
+'use strict';
+
+import GLib from 'gi://GLib';
+
+let Me;
+
+export const Options = class Options {
+ constructor(me) {
+ Me = me;
+
+ this._gsettings = Me.gSettings;
+ this._connectionIds = [];
+ this._writeTimeoutId = 0;
+ this._gsettings.delay();
+ this.connect('changed', () => {
+ if (this._writeTimeoutId)
+ GLib.Source.remove(this._writeTimeoutId);
+
+ this._writeTimeoutId = GLib.timeout_add(
+ GLib.PRIORITY_DEFAULT,
+ 400,
+ () => {
+ this._gsettings.apply();
+ this._updateSettings();
+ this._writeTimeoutId = 0;
+ return GLib.SOURCE_REMOVE;
+ }
+ );
+ });
+ this.options = {
+ workspaceThumbnailsPosition: ['int', 'ws-thumbnails-position'],
+ wsMaxSpacing: ['int', 'ws-max-spacing'],
+ wsPreviewScale: ['int', 'ws-preview-scale'],
+ secWsPreviewScale: ['int', 'secondary-ws-preview-scale'],
+ secWsPreviewShift: ['boolean', 'secondary-ws-preview-shift'],
+ wsThumbnailsFull: ['boolean', 'ws-thumbnails-full'],
+ secWsThumbnailsPosition: ['int', 'secondary-ws-thumbnails-position'],
+ dashPosition: ['int', 'dash-position'],
+ dashPositionAdjust: ['int', 'dash-position-adjust'],
+ wsTmbPositionAdjust: ['int', 'wst-position-adjust'],
+ showWsTmbLabels: ['int', 'show-wst-labels'],
+ showWsTmbLabelsOnHover: ['boolean', 'show-wst-labels-on-hover'],
+ closeWsButtonMode: ['int', 'close-ws-button-mode'],
+ secWsTmbPositionAdjust: ['int', 'sec-wst-position-adjust'],
+ dashMaxIconSize: ['int', 'dash-max-icon-size'],
+ centerDashToWs: ['boolean', 'center-dash-to-ws'],
+ showAppsIconPosition: ['int', 'show-app-icon-position'],
+ wsThumbnailScale: ['int', 'ws-thumbnail-scale'],
+ wsThumbnailScaleAppGrid: ['int', 'ws-thumbnail-scale-appgrid'],
+ secWsThumbnailScale: ['int', 'secondary-ws-thumbnail-scale'],
+ showSearchEntry: ['boolean', 'show-search-entry'],
+ centerSearch: ['boolean', 'center-search'],
+ centerAppGrid: ['boolean', 'center-app-grid'],
+ dashBgOpacity: ['int', 'dash-bg-opacity'],
+ dashBgColor: ['int', 'dash-bg-color'],
+ dashBgRadius: ['int', 'dash-bg-radius'],
+ dashBgGS3Style: ['boolean', 'dash-bg-gs3-style'],
+ runningDotStyle: ['int', 'running-dot-style'],
+ enablePageShortcuts: ['boolean', 'enable-page-shortcuts'],
+ showWsSwitcherBg: ['boolean', 'show-ws-switcher-bg'],
+ showWsPreviewBg: ['boolean', 'show-ws-preview-bg'],
+ wsPreviewBgRadius: ['int', 'ws-preview-bg-radius'],
+ showBgInOverview: ['boolean', 'show-bg-in-overview'],
+ overviewBgBrightness: ['int', 'overview-bg-brightness'],
+ searchBgBrightness: ['int', 'search-bg-brightness'],
+ overviewBgBlurSigma: ['int', 'overview-bg-blur-sigma'],
+ appGridBgBlurSigma: ['int', 'app-grid-bg-blur-sigma'],
+ smoothBlurTransitions: ['boolean', 'smooth-blur-transitions'],
+ appGridAnimation: ['int', 'app-grid-animation'],
+ searchViewAnimation: ['int', 'search-view-animation'],
+ workspaceAnimation: ['int', 'workspace-animation'],
+ animationSpeedFactor: ['int', 'animation-speed-factor'],
+ winPreviewIconSize: ['int', 'win-preview-icon-size'],
+ winTitlePosition: ['int', 'win-title-position'],
+ startupState: ['int', 'startup-state'],
+ overviewMode: ['int', 'overview-mode'],
+ workspaceSwitcherAnimation: ['int', 'workspace-switcher-animation'],
+ wsSwitcherMode: ['int', 'ws-switcher-mode'],
+ searchIconSize: ['int', 'search-icon-size'],
+ searchViewScale: ['int', 'search-width-scale'],
+ appGridIconSize: ['int', 'app-grid-icon-size'],
+ appGridColumns: ['int', 'app-grid-columns'],
+ appGridRows: ['int', 'app-grid-rows'],
+ appGridFolderIconSize: ['int', 'app-grid-folder-icon-size'],
+ appGridFolderColumns: ['int', 'app-grid-folder-columns'],
+ appGridFolderRows: ['int', 'app-grid-folder-rows'],
+ appGridFolderIconGrid: ['int', 'app-grid-folder-icon-grid'],
+ appGridContent: ['int', 'app-grid-content'],
+ appGridIncompletePages: ['boolean', 'app-grid-incomplete-pages'],
+ appGridOrder: ['int', 'app-grid-order'],
+ appFolderOrder: ['int', 'app-folder-order'],
+ appGridNamesMode: ['int', 'app-grid-names'],
+ appGridActivePreview: ['boolean', 'app-grid-active-preview'],
+ appGridFolderCenter: ['boolean', 'app-grid-folder-center'],
+ appGridPageWidthScale: ['int', 'app-grid-page-width-scale'],
+ appGridPageHeightScale: ['int', 'app-grid-page-height-scale'],
+ appGridSpacing: ['int', 'app-grid-spacing'],
+ appGridFolderSpacing: ['int', 'app-grid-folder-spacing'],
+ appGridShowPageArrows: ['boolean', 'app-grid-show-page-arrows'],
+ searchWindowsOrder: ['int', 'search-windows-order'],
+ searchFuzzy: ['boolean', 'search-fuzzy'],
+ searchMaxResultsRows: ['int', 'search-max-results-rows'],
+ searchAppGridMode: ['int', 'search-app-grid-mode'],
+ dashShowWindowsBeforeActivation: ['int', 'dash-show-windows-before-activation'],
+ dashIconScroll: ['int', 'dash-icon-scroll'],
+ dashIsolateWorkspaces: ['boolean', 'dash-isolate-workspaces'],
+ searchWindowsIconScroll: ['int', 'search-windows-icon-scroll'],
+ panelVisibility: ['int', 'panel-visibility'],
+ panelPosition: ['int', 'panel-position'],
+ windowAttentionMode: ['int', 'window-attention-mode'],
+ wsSwPopupHPosition: ['int', 'ws-sw-popup-h-position'],
+ wsSwPopupVPosition: ['int', 'ws-sw-popup-v-position'],
+ wsSwPopupMode: ['int', 'ws-sw-popup-mode'],
+ wsSwitcherWraparound: ['boolean', 'ws-switcher-wraparound'],
+ wsSwitcherIgnoreLast: ['boolean', 'ws-switcher-ignore-last'],
+ favoritesNotify: ['int', 'favorites-notify'],
+ notificationPosition: ['int', 'notification-position'],
+ osdPosition: ['int', 'osd-position'],
+ hotCornerAction: ['int', 'hot-corner-action'],
+ hotCornerPosition: ['int', 'hot-corner-position'],
+ hotCornerFullscreen: ['boolean', 'hot-corner-fullscreen'],
+ hotCornerRipples: ['boolean', 'hot-corner-ripples'],
+ alwaysActivateSelectedWindow: ['boolean', 'always-activate-selected-window'],
+ winPreviewSecBtnAction: ['int', 'win-preview-sec-mouse-btn-action'],
+ winPreviewMidBtnAction: ['int', 'win-preview-mid-mouse-btn-action'],
+ winPreviewShowCloseButton: ['boolean', 'win-preview-show-close-button'],
+ windowIconClickAction: ['int', 'window-icon-click-action'],
+ overlayKeyPrimary: ['int', 'overlay-key-primary'],
+ overlayKeySecondary: ['int', 'overlay-key-secondary'],
+ overviewEscBehavior: ['int', 'overview-esc-behavior'],
+ clickEmptyClose: ['boolean', 'click-empty-close'],
+ newWindowFocusFix: ['boolean', 'new-window-focus-fix'],
+ newWindowMonitorFix: ['boolean', 'new-window-monitor-fix'],
+ appGridPerformance: ['boolean', 'app-grid-performance'],
+ highlightingStyle: ['int', 'highlighting-style'],
+ delayStartup: ['boolean', 'delay-startup'],
+
+ workspaceSwitcherPopupModule: ['boolean', 'workspace-switcher-popup-module'],
+ workspaceAnimationModule: ['boolean', 'workspace-animation-module'],
+ workspaceModule: ['boolean', 'workspace-module'],
+ windowManagerModule: ['boolean', 'window-manager-module'],
+ windowPreviewModule: ['boolean', 'window-preview-module'],
+ windowAttentionHandlerModule: ['boolean', 'win-attention-handler-module'],
+ swipeTrackerModule: ['boolean', 'swipe-tracker-module'],
+ searchControllerModule: ['boolean', 'search-controller-module'],
+ searchModule: ['boolean', 'search-module'],
+ panelModule: ['boolean', 'panel-module'],
+ overlayKeyModule: ['boolean', 'overlay-key-module'],
+ osdWindowModule: ['boolean', 'osd-window-module'],
+ messageTrayModule: ['boolean', 'message-tray-module'],
+ layoutModule: ['boolean', 'layout-module'],
+ dashModule: ['boolean', 'dash-module'],
+ appFavoritesModule: ['boolean', 'app-favorites-module'],
+ appDisplayModule: ['boolean', 'app-display-module'],
+
+ profileName1: ['string', 'profile-name-1'],
+ profileName2: ['string', 'profile-name-2'],
+ profileName3: ['string', 'profile-name-3'],
+ profileName4: ['string', 'profile-name-4'],
+ };
+ this.cachedOptions = {};
+ this._updateSettings();
+ }
+
+ connect(name, callback) {
+ const id = this._gsettings.connect(name, callback);
+ this._connectionIds.push(id);
+ return id;
+ }
+
+ destroy() {
+ this._connectionIds.forEach(id => this._gsettings.disconnect(id));
+ if (this._writeTimeoutId) {
+ GLib.source_remove(this._writeTimeoutId);
+ this._writeTimeoutId = 0;
+ }
+
+ Me = null;
+ }
+
+ _updateCachedSettings() {
+ Object.keys(this.options).forEach(v => this.get(v, true));
+ }
+
+ get(option, updateCache = false) {
+ if (!this.options[option]) {
+ console.error(`[${Me.metadata.name}] Error: Option ${option} is undefined.`);
+ return null;
+ }
+
+ if (updateCache || this.cachedOptions[option] === undefined) {
+ const [, key, settings] = this.options[option];
+ let gSettings;
+ if (settings !== undefined)
+ gSettings = settings();
+ else
+ gSettings = this._gsettings;
+
+ this.cachedOptions[option] = gSettings.get_value(key).deep_unpack();
+ }
+
+ return this.cachedOptions[option];
+ }
+
+ set(option, value) {
+ const [format, key, settings] = this.options[option];
+
+ let gSettings = this._gsettings;
+
+ if (settings !== undefined)
+ gSettings = settings();
+
+
+ switch (format) {
+ case 'boolean':
+ gSettings.set_boolean(key, value);
+ break;
+ case 'int':
+ gSettings.set_int(key, value);
+ break;
+ case 'string':
+ gSettings.set_string(key, value);
+ break;
+ case 'strv':
+ gSettings.set_strv(key, value);
+ break;
+ }
+ }
+
+ getDefault(option) {
+ const [, key, settings] = this.options[option];
+
+ let gSettings = this._gsettings;
+
+ if (settings !== undefined)
+ gSettings = settings();
+
+
+ return gSettings.get_default_value(key).deep_unpack();
+ }
+
+ storeProfile(index) {
+ const profile = {};
+ Object.keys(this.options).forEach(v => {
+ if (!v.startsWith('profileName'))
+ profile[v] = this.get(v).toString();
+ });
+
+ this._gsettings.set_value(`profile-data-${index}`, new GLib.Variant('a{ss}', profile));
+ }
+
+ loadProfile(index) {
+ const options = this._gsettings.get_value(`profile-data-${index}`).deep_unpack();
+ // set the aaa-loading-data so extension.js doesn't reset V-Shell after each profile item
+ // delayed gsettings writes are processed alphabetically, so this key will be processed first
+ this._gsettings.set_boolean('aaa-loading-profile', !this._gsettings.get_boolean('aaa-loading-profile'));
+ for (let o of Object.keys(options)) {
+ if (!this.options[o]) {
+ console.error(`[${Me.metadata.name}] Error: "${o}" is not a valid profile key -> Update your profile`);
+ continue;
+ }
+ const [type] = this.options[o];
+ let value = options[o];
+ switch (type) {
+ case 'string':
+ break;
+ case 'boolean':
+ value = value === 'true';
+ break;
+ case 'int':
+ value = parseInt(value);
+ break;
+ }
+
+ this.set(o, value);
+ }
+ }
+
+ resetProfile(index) {
+ this._gsettings.reset(`profile-data-${index}`);
+ this._gsettings.reset(`profile-name-${index}`);
+ }
+
+ _updateSettings() {
+ this._updateCachedSettings();
+
+ // Basic spacing of the overview elements
+ this.SPACING = 12;
+
+ this.DASH_BG_ALPHA = this.get('dashBgOpacity') / 100;
+ this.DASH_BG_OPACITY = this.get('dashBgOpacity') * 2.5;
+ this.DASH_BG_COLOR = this.get('dashBgColor');
+ this.DASH_BG_RADIUS = this.get('dashBgRadius');
+ this.DASH_BG_LIGHT = this.DASH_BG_COLOR === 1;
+ this.DASH_BG_GS3_STYLE = this.get('dashBgGS3Style');
+ this.DASH_POSITION = this.get('dashModule') ? this.get('dashPosition') : 2;
+ this.DASH_TOP = this.DASH_POSITION === 0;
+ this.DASH_RIGHT = this.DASH_POSITION === 1;
+ this.DASH_BOTTOM = this.DASH_POSITION === 2;
+ this.DASH_LEFT = this.DASH_POSITION === 3;
+ this.DASH_VERTICAL = this.DASH_LEFT || this.DASH_RIGHT;
+ this.DASH_VISIBLE = this.DASH_POSITION !== 4; // 4 - disable
+ this.DASH_FOLLOW_RECENT_WIN = false;
+
+ this.DASH_ISOLATE_WS = this.get('dashIsolateWorkspaces');
+
+ this.DASH_CLICK_ACTION = this.get('dashShowWindowsBeforeActivation');
+ this.DASH_CLICK_SWITCH_BEFORE_ACTIVATION = this.DASH_CLICK_ACTION === 1;
+ this.DASH_CLICK_OPEN_NEW_WIN = this.DASH_CLICK_ACTION === 2;
+ this.DASH_CLICK_PREFER_WORKSPACE = this.DASH_CLICK_ACTION === 3;
+
+ this.DASH_ICON_SCROLL = this.get('dashIconScroll');
+ this.DASH_SHIFT_CLICK_MV = true;
+
+ this.RUNNING_DOT_STYLE = this.get('runningDotStyle');
+
+ this.SEARCH_WINDOWS_ICON_SCROLL = this.get('searchWindowsIconScroll');
+
+ this.DASH_POSITION_ADJUSTMENT = this.get('dashPositionAdjust');
+ this.DASH_POSITION_ADJUSTMENT = this.DASH_POSITION_ADJUSTMENT * -1 / 100; // range 1 to -1
+ this.CENTER_DASH_WS = this.get('centerDashToWs');
+
+ this.MAX_ICON_SIZE = this.get('dashMaxIconSize');
+
+ this.WS_TMB_POSITION = this.get('workspaceThumbnailsPosition');
+ this.ORIENTATION = this.WS_TMB_POSITION > 4 ? 0 : 1;
+ this.WORKSPACE_MAX_SPACING = this.get('wsMaxSpacing');
+ this.WS_MAX_SPACING_OFF_SCREEN = 350;
+ this.FORCE_SINGLE_WS_TRANSITION = false;
+ // ORIENTATION || DASH_LEFT || DASH_RIGHT ? 350 : 80;
+ this.SHOW_WS_TMB = ![4, 9].includes(this.WS_TMB_POSITION); // 4, 9 - disable
+ this.WS_TMB_FULL = this.get('wsThumbnailsFull');
+ // translate ws tmb position to 0 top, 1 right, 2 bottom, 3 left
+ // 0L 1R, 2LF, 3RF, 4DV, 5T, 6B, 7TF, 8BF, 9DH
+ this.WS_TMB_POSITION = [3, 1, 3, 1, 4, 0, 2, 0, 2, 8][this.WS_TMB_POSITION];
+ this.WS_TMB_TOP = this.WS_TMB_POSITION === 0;
+ this.WS_TMB_RIGHT = this.WS_TMB_POSITION === 1;
+ this.WS_TMB_BOTTOM = this.WS_TMB_POSITION === 2;
+ this.WS_TMB_LEFT = this.WS_TMB_POSITION === 3;
+ this.WS_TMB_POSITION_ADJUSTMENT = this.get('wsTmbPositionAdjust') * -1 / 100; // range 1 to -1
+ this.SEC_WS_TMB_POSITION = this.get('secWsThumbnailsPosition');
+ this.SHOW_SEC_WS_TMB = this.SEC_WS_TMB_POSITION !== 3 && this.SHOW_WS_TMB;
+ this.SEC_WS_TMB_TOP = (this.SEC_WS_TMB_POSITION === 0 && !this.ORIENTATION) || (this.SEC_WS_TMB_POSITION === 2 && this.WS_TMB_TOP);
+ this.SEC_WS_TMB_RIGHT = (this.SEC_WS_TMB_POSITION === 1 && this.ORIENTATION) || (this.SEC_WS_TMB_POSITION === 2 && this.WS_TMB_RIGHT);
+ this.SEC_WS_TMB_BOTTOM = (this.SEC_WS_TMB_POSITION === 1 && !this.ORIENTATION) || (this.SEC_WS_TMB_POSITION === 2 && this.WS_TMB_BOTTOM);
+ this.SEC_WS_TMB_LEFT = (this.SEC_WS_TMB_POSITION === 0 && this.ORIENTATION) || (this.SEC_WS_TMB_POSITION === 2 && this.WS_TMB_LEFT);
+
+ this.SEC_WS_TMB_POSITION_ADJUSTMENT = this.get('secWsTmbPositionAdjust') * -1 / 100; // range 1 to -1
+ this.SEC_WS_PREVIEW_SHIFT = this.get('secWsPreviewShift');
+ this.SHOW_WST_LABELS = this.get('showWsTmbLabels');
+ this.SHOW_WST_LABELS_ON_HOVER = this.get('showWsTmbLabelsOnHover');
+ this.CLOSE_WS_BUTTON_MODE = this.get('closeWsButtonMode');
+
+ this.MAX_THUMBNAIL_SCALE = this.get('wsThumbnailScale') / 100 + 0.01;
+ this.MAX_THUMBNAIL_SCALE_APPGRID = this.get('wsThumbnailScaleAppGrid') / 100 + 0.01;
+ this.SHOW_WS_TMB_APPGRID = true;
+ this.MAX_THUMBNAIL_SCALE_STABLE = this.MAX_THUMBNAIL_SCALE === this.MAX_THUMBNAIL_SCALE_APPGRID;
+ this.SEC_MAX_THUMBNAIL_SCALE = this.get('secWsThumbnailScale') / 100 + 0.01;
+
+ this.WS_PREVIEW_SCALE = this.get('wsPreviewScale') / 100;
+ this.SEC_WS_PREVIEW_SCALE = this.get('secWsPreviewScale') / 100;
+ // calculate number of possibly visible neighbor previews according to ws scale
+ this.NUMBER_OF_VISIBLE_NEIGHBORS = Math.round(2 + (1 - this.WS_PREVIEW_SCALE));
+
+ this.SHOW_WS_TMB_BG = this.get('showWsSwitcherBg') && this.SHOW_WS_TMB;
+ this.WS_PREVIEW_BG_RADIUS = this.get('wsPreviewBgRadius');
+ this.SHOW_WS_PREVIEW_BG = this.get('showWsPreviewBg');
+
+ this.CENTER_APP_GRID = this.get('centerAppGrid');
+
+ this.SHOW_SEARCH_ENTRY = this.get('showSearchEntry');
+ this.CENTER_SEARCH_VIEW = this.get('centerSearch');
+ this.APP_GRID_ANIMATION = this.get('appGridAnimation');
+ if (this.APP_GRID_ANIMATION === 4)
+ this.APP_GRID_ANIMATION = this._getAnimationDirection();
+
+ this.SEARCH_VIEW_ANIMATION = this.get('searchViewAnimation');
+ if (this.SEARCH_VIEW_ANIMATION === 4)
+ this.SEARCH_VIEW_ANIMATION = 3;
+
+ this.WIN_PREVIEW_ICON_SIZE = [64, 48, 32, 22, 8][this.get('winPreviewIconSize')];
+ this.WIN_TITLES_POSITION = this.get('winTitlePosition');
+ this.ALWAYS_SHOW_WIN_TITLES = this.WIN_TITLES_POSITION === 1;
+
+ this.STARTUP_STATE = this.get('startupState');
+ this.SHOW_BG_IN_OVERVIEW = this.get('showBgInOverview');
+ this.OVERVIEW_BG_BRIGHTNESS = this.get('overviewBgBrightness') / 100;
+ this.SEARCH_BG_BRIGHTNESS = this.get('searchBgBrightness') / 100;
+ this.OVERVIEW_BG_BLUR_SIGMA = this.get('overviewBgBlurSigma');
+ this.APP_GRID_BG_BLUR_SIGMA = this.get('appGridBgBlurSigma');
+ this.SMOOTH_BLUR_TRANSITIONS = this.get('smoothBlurTransitions');
+
+ this.OVERVIEW_MODE = this.get('overviewMode');
+ this.OVERVIEW_MODE2 = this.OVERVIEW_MODE === 2;
+ this.WORKSPACE_MODE = this.OVERVIEW_MODE ? 0 : 1;
+
+ this.STATIC_WS_SWITCHER_BG = this.get('workspaceSwitcherAnimation');
+
+ this.ANIMATION_TIME_FACTOR = this.get('animationSpeedFactor') / 100;
+
+ this.SEARCH_ICON_SIZE = this.get('searchIconSize');
+ this.SEARCH_VIEW_SCALE = this.get('searchViewScale') / 100;
+ this.SEARCH_MAX_ROWS = this.get('searchMaxResultsRows');
+ this.SEARCH_FUZZY = this.get('searchFuzzy');
+ this.SEARCH_DELAY = 0;
+ this.SEARCH_APP_GRID_MODE = this.get('searchAppGridMode');
+
+ this.APP_GRID_ALLOW_INCOMPLETE_PAGES = this.get('appGridIncompletePages');
+ this.APP_GRID_ICON_SIZE = this.get('appGridIconSize');
+ this.APP_GRID_COLUMNS = this.get('appGridColumns');
+ this.APP_GRID_ROWS = this.get('appGridRows');
+ this.APP_GRID_ADAPTIVE = !this.APP_GRID_COLUMNS && !this.APP_GRID_ROWS;
+
+ this.APP_GRID_ORDER = this.get('appGridOrder');
+ this.APP_GRID_ALPHABET = [1, 2, 4].includes(this.APP_GRID_ORDER);
+ this.APP_GRID_FOLDERS_FIRST = this.APP_GRID_ORDER === 1;
+ this.APP_GRID_FOLDERS_LAST = this.APP_GRID_ORDER === 2;
+ this.APP_GRID_USAGE = this.APP_GRID_ORDER === 3;
+
+ this.APP_FOLDER_ORDER = this.get('appFolderOrder');
+ this.APP_FOLDER_ALPHABET = this.APP_FOLDER_ORDER === 1;
+ this.APP_FOLDER_USAGE = this.APP_FOLDER_ORDER === 2;
+
+ this.APP_GRID_INCLUDE_DASH = this.get('appGridContent');
+ /* APP_GRID_INCLUDE_DASH
+ 0 - Include All
+ 1 - Include All - Favorites and Runnings First
+ 2 - Exclude Favorites (Default)
+ 3 - Exclude Running
+ 4 - Exclude Favorites and Running
+ */
+ this.APP_GRID_EXCLUDE_FAVORITES = this.APP_GRID_INCLUDE_DASH === 2 || this.APP_GRID_INCLUDE_DASH === 4;
+ this.APP_GRID_EXCLUDE_RUNNING = this.APP_GRID_INCLUDE_DASH === 3 || this.APP_GRID_INCLUDE_DASH === 4;
+ this.APP_GRID_DASH_FIRST = this.APP_GRID_INCLUDE_DASH === 1;
+
+ this.APP_GRID_NAMES_MODE = this.get('appGridNamesMode');
+
+ this.APP_GRID_FOLDER_ICON_SIZE = this.get('appGridFolderIconSize');
+ this.APP_GRID_FOLDER_ICON_GRID = this.get('appGridFolderIconGrid');
+ this.APP_GRID_FOLDER_COLUMNS = this.get('appGridFolderColumns');
+ this.APP_GRID_FOLDER_ROWS = this.get('appGridFolderRows');
+ this.APP_GRID_SPACING = this.get('appGridSpacing');
+ this.APP_GRID_FOLDER_SPACING = this.get('appGridFolderSpacing');
+ this.APP_GRID_FOLDER_DEFAULT = this.APP_GRID_FOLDER_ROWS === 3 && this.APP_GRID_FOLDER_COLUMNS === 3;
+ this.APP_GRID_FOLDER_ADAPTIVE = !this.APP_GRID_FOLDER_COLUMNS && !this.APP_GRID_FOLDER_ROWS;
+ this.APP_GRID_ACTIVE_PREVIEW = this.get('appGridActivePreview');
+ this.APP_GRID_FOLDER_CENTER = this.get('appGridFolderCenter');
+ this.APP_GRID_PAGE_WIDTH_SCALE = this.get('appGridPageWidthScale') / 100;
+ this.APP_GRID_PAGE_HEIGHT_SCALE = this.get('appGridPageHeightScale') / 100;
+ this.APP_GRID_SHOW_PAGE_ARROWS = this.get('appGridShowPageArrows');
+
+ // Default icon sizes updates in the IconGrid._findBestModeForSize()
+ this.APP_GRID_ICON_SIZE_DEFAULT = this.APP_GRID_ACTIVE_PREVIEW && !this.APP_GRID_USAGE ? 192 : 96;
+ this.APP_GRID_FOLDER_ICON_SIZE_DEFAULT = 96;
+
+ this.APP_GRID_PERFORMANCE = this.get('appGridPerformance');
+
+ this.PANEL_POSITION_TOP = this.get('panelPosition') === 0;
+ this.PANEL_POSITION_BOTTOM = this.get('panelPosition') === 1;
+ this.PANEL_MODE = this.get('panelVisibility');
+ this.PANEL_DISABLED = this.PANEL_MODE === 2;
+ this.PANEL_OVERVIEW_ONLY = this.PANEL_MODE === 1;
+
+ this.WINDOW_ATTENTION_MODE = this.get('windowAttentionMode');
+ this.WINDOW_ATTENTION_DISABLE_NOTIFICATIONS = this.WINDOW_ATTENTION_MODE === 1;
+ this.WINDOW_ATTENTION_FOCUS_IMMEDIATELY = this.WINDOW_ATTENTION_MODE === 2;
+
+ this.WS_SW_POPUP_H_POSITION = this.get('wsSwPopupHPosition') / 100;
+ this.WS_SW_POPUP_V_POSITION = this.get('wsSwPopupVPosition') / 100;
+ this.WS_SW_POPUP_MODE = this.get('wsSwPopupMode');
+
+ this.WS_ANIMATION = this.get('workspaceAnimation');
+ this.WS_WRAPAROUND = this.get('wsSwitcherWraparound');
+ this.WS_IGNORE_LAST = this.get('wsSwitcherIgnoreLast');
+ this.WS_SWITCHER_CURRENT_MONITOR = this.get('wsSwitcherMode') === 1;
+
+ this.SHOW_FAV_NOTIFICATION = this.get('favoritesNotify');
+ this.NOTIFICATION_POSITION = this.get('notificationPosition');
+
+ this.OSD_POSITION = this.get('osdPosition');
+
+ this.HOT_CORNER_ACTION = this.get('hotCornerAction');
+ this.HOT_CORNER_POSITION = this.get('hotCornerPosition');
+ if (this.HOT_CORNER_POSITION === 6 && this.DASH_VISIBLE)
+ this.HOT_CORNER_EDGE = true;
+ else
+ this.HOT_CORNER_EDGE = false;
+ if ([5, 6].includes(this.HOT_CORNER_POSITION)) {
+ if (this.DASH_TOP || this.DASH_LEFT)
+ this.HOT_CORNER_POSITION = 1;
+ else if (this.DASH_RIGHT)
+ this.HOT_CORNER_POSITION = 2;
+ else if (this.DASH_BOTTOM)
+ this.HOT_CORNER_POSITION = 3;
+ else
+ this.HOT_CORNER_POSITION = 0;
+ }
+ this.HOT_CORNER_FULLSCREEN = this.get('hotCornerFullscreen');
+ this.HOT_CORNER_RIPPLES = this.get('hotCornerRipples');
+
+ this.ALWAYS_ACTIVATE_SELECTED_WINDOW = this.get('alwaysActivateSelectedWindow');
+ this.WIN_PREVIEW_SEC_BTN_ACTION = this.get('winPreviewSecBtnAction');
+ this.WIN_PREVIEW_MID_BTN_ACTION = this.get('winPreviewMidBtnAction');
+ this.SHOW_CLOSE_BUTTON = this.get('winPreviewShowCloseButton');
+ this.WINDOW_ICON_CLICK_ACTION = this.get('windowIconClickAction');
+
+ this.OVERLAY_KEY_PRIMARY = this.get('overlayKeyPrimary');
+ this.OVERLAY_KEY_SECONDARY = this.get('overlayKeySecondary');
+
+ this.ESC_BEHAVIOR = this.get('overviewEscBehavior');
+ this.CLICK_EMPTY_CLOSE = this.get('clickEmptyClose');
+
+ this.FIX_NEW_WINDOW_FOCUS = this.get('newWindowFocusFix');
+ this.FIX_NEW_WINDOW_MONITOR = this.get('newWindowMonitorFix');
+
+ this.HIGHLIGHTING_STYLE = this.get('highlightingStyle');
+ this.HIGHLIGHT_DEFAULT = this.HIGHLIGHTING_STYLE === 0;
+ this.HIGHLIGHT_UNDERLINE = this.HIGHLIGHTING_STYLE === 1;
+ this.HIGHLIGHT_NONE = this.HIGHLIGHTING_STYLE === 2;
+
+ this.DELAY_STARTUP = this.get('delayStartup');
+ }
+
+ _getAnimationDirection() {
+ if (this.ORIENTATION)
+ return this.WS_TMB_LEFT || !this.SHOW_WS_TMB ? 1 : 2; // 1 right, 2 left
+ else
+ return this.WS_TMB_TOP || !this.SHOW_WS_TMB ? 3 : 5; // 3 bottom, 5 top
+ }
+};
diff --git a/extensions/47/vertical-workspaces/lib/swipeTracker.js b/extensions/47/vertical-workspaces/lib/swipeTracker.js
new file mode 100644
index 0000000..560b296
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/swipeTracker.js
@@ -0,0 +1,116 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * swipeTracker.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ *
+ */
+
+'use strict';
+
+import Clutter from 'gi://Clutter';
+import GObject from 'gi://GObject';
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+import * as SwipeTracker from 'resource:///org/gnome/shell/ui/swipeTracker.js';
+
+let Me;
+let opt;
+
+export const SwipeTrackerModule = class {
+ constructor(me) {
+ Me = me;
+ opt = Me.opt;
+
+ this._firstActivation = true;
+ this.moduleEnabled = false;
+ }
+
+ cleanGlobals() {
+ Me = null;
+ opt = null;
+ }
+
+ update(reset) {
+ this.moduleEnabled = opt.get('swipeTrackerModule');
+ const conflict = false;
+
+ reset = reset || !this.moduleEnabled || conflict;
+
+ // don't touch the original code if module disabled
+ if (reset && !this._firstActivation) {
+ this._disableModule();
+ } else if (!reset) {
+ this._firstActivation = false;
+ this._activateModule();
+ }
+ if (reset && this._firstActivation)
+ console.debug(' SwipeTrackerModule - Keeping untouched');
+ }
+
+ _activateModule() {
+ if (opt.ORIENTATION) { // 1-VERTICAL, 0-HORIZONTAL
+ this._setVertical();
+ } else {
+ this._setHorizontal();
+ }
+ console.debug(' SwipeTrackerModule - Activated');
+ }
+
+ _disableModule() {
+ this._setHorizontal();
+
+ console.debug(' SwipeTrackerModule - Disabled');
+ }
+
+ _setVertical() {
+ // reverse swipe gestures for enter/leave overview and ws switching
+ Main.overview._swipeTracker.orientation = Clutter.Orientation.HORIZONTAL;
+ Main.wm._workspaceAnimation._swipeTracker.orientation = Clutter.Orientation.VERTICAL;
+ // overview's updateGesture() function should reflect ws tmb position to match appGrid/ws animation direction
+ // function in connection cannot be overridden in prototype of its class because connected is actually another copy of the original function
+ if (!this._originalGestureUpdateId) {
+ this._originalGestureUpdateId = GObject.signal_handler_find(Main.overview._swipeTracker._touchpadGesture, { signalId: 'update' });
+ Main.overview._swipeTracker._touchpadGesture.block_signal_handler(this._originalGestureUpdateId);
+ Main.overview._swipeTracker._updateGesture = SwipeTrackerVertical._updateGesture;
+ this._vwGestureUpdateId = Main.overview._swipeTracker._touchpadGesture.connect('update', SwipeTrackerVertical._updateGesture.bind(Main.overview._swipeTracker));
+ }
+ }
+
+ _setHorizontal() {
+ // original swipeTrackers' orientation and updateGesture function
+ Main.overview._swipeTracker.orientation = Clutter.Orientation.VERTICAL;
+ Main.wm._workspaceAnimation._swipeTracker.orientation = Clutter.Orientation.HORIZONTAL;
+ Main.overview._swipeTracker._updateGesture = SwipeTracker.SwipeTracker.prototype._updateGesture;
+ if (this._vwGestureUpdateId) {
+ Main.overview._swipeTracker._touchpadGesture.disconnect(this._vwGestureUpdateId);
+ this._vwGestureUpdateId = 0;
+ }
+ if (this._originalGestureUpdateId) {
+ Main.overview._swipeTracker._touchpadGesture.unblock_signal_handler(this._originalGestureUpdateId);
+ this._originalGestureUpdateId = 0;
+ }
+ }
+};
+
+const SwipeTrackerVertical = {
+ _updateGesture(gesture, time, delta, distance) {
+ if (this._state !== 1) // State.SCROLLING)
+ return;
+
+ if ((this._allowedModes & Main.actionMode) === 0 || !this.enabled) {
+ this._interrupt();
+ return;
+ }
+
+ if (opt.WS_TMB_RIGHT)
+ delta = -delta;
+ this._progress += delta / distance;
+ this._history.append(time, delta);
+
+ this._progress = Math.clamp(this._progress, ...this._getBounds(this._initialProgress));
+ this.emit('update', this._progress);
+ },
+};
diff --git a/extensions/47/vertical-workspaces/lib/util.js b/extensions/47/vertical-workspaces/lib/util.js
new file mode 100644
index 0000000..0da67ce
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/util.js
@@ -0,0 +1,445 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * util.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ *
+ */
+
+'use strict';
+
+import Clutter from 'gi://Clutter';
+import Gio from 'gi://Gio';
+import GLib from 'gi://GLib';
+import GObject from 'gi://GObject';
+import Meta from 'gi://Meta';
+import Shell from 'gi://Shell';
+import St from 'gi://St';
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+import * as ModalDialog from 'resource:///org/gnome/shell/ui/modalDialog.js';
+import { InjectionManager } from 'resource:///org/gnome/shell/extensions/extension.js';
+
+let Me;
+let _;
+let _installedExtensions;
+
+export function init(me) {
+ Me = me;
+ _ = Me.gettext;
+}
+
+export function cleanGlobals() {
+ Me = null;
+ _ = null;
+ _installedExtensions = null;
+}
+
+export class Overrides extends InjectionManager {
+ constructor() {
+ super();
+ this._overrides = {};
+ }
+
+ addOverride(name, prototype, overrideList) {
+ const backup = this.overrideProto(prototype, overrideList, name);
+ // don't update originals when override's just refreshing, keep initial content
+ let originals = this._overrides[name]?.originals;
+ if (!originals)
+ originals = backup;
+ this._overrides[name] = {
+ originals,
+ prototype,
+ };
+ }
+
+ removeOverride(name) {
+ const override = this._overrides[name];
+ if (!override)
+ return false;
+
+ this.overrideProto(override.prototype, override.originals, name);
+ delete this._overrides[name];
+ return true;
+ }
+
+ removeAll() {
+ for (let name in this._overrides) {
+ this.removeOverride(name);
+ delete this._overrides[name];
+ }
+ }
+
+ overrideProto(proto, overrides, name) {
+ const backup = {};
+ const originals = this._overrides[name]?.originals;
+ for (let symbol in overrides) {
+ if (symbol.startsWith('after_')) {
+ const actualSymbol = symbol.slice('after_'.length);
+ let fn;
+ if (originals && originals[actualSymbol])
+ fn = originals[actualSymbol];
+ else
+ fn = proto[actualSymbol];
+ const afterFn = overrides[symbol];
+ proto[actualSymbol] = function (...args) {
+ args = Array.prototype.slice.call(args);
+ const res = fn.apply(this, args);
+ afterFn.apply(this, args);
+ return res;
+ };
+ backup[actualSymbol] = fn;
+ } else if (overrides[symbol] !== null) {
+ backup[symbol] = proto[symbol];
+ this._installMethod(proto, symbol, overrides[symbol]);
+ }
+ }
+ return backup;
+ }
+}
+
+export function openPreferences(metadata) {
+ if (!metadata)
+ metadata = Me.metadata;
+ const windows = global.display.get_tab_list(Meta.TabList.NORMAL_ALL, null);
+ let tracker = Shell.WindowTracker.get_default();
+ let metaWin, isMe = null;
+
+ for (let win of windows) {
+ const app = tracker.get_window_app(win);
+ if (win.get_title()?.includes(metadata.name) && app.get_name() === 'Extensions') {
+ // this is our existing window
+ metaWin = win;
+ isMe = true;
+ break;
+ } else if (win.wm_class?.includes('org.gnome.Shell.Extensions')) {
+ // this is prefs window of another extension
+ metaWin = win;
+ isMe = false;
+ }
+ }
+
+ if (metaWin && !isMe) {
+ // other prefs window blocks opening another prefs window, so close it
+ metaWin.delete(global.get_current_time());
+ } else if (metaWin && isMe) {
+ // if prefs window already exist, move it to the current WS and activate it
+ metaWin.change_workspace(global.workspace_manager.get_active_workspace());
+ metaWin.activate(global.get_current_time());
+ }
+
+ if (!metaWin || (metaWin && !isMe)) {
+ // delay to avoid errors if previous prefs window has been colsed
+ GLib.idle_add(GLib.PRIORITY_LOW, () => {
+ try {
+ Main.extensionManager.openExtensionPrefs(metadata.uuid, '', {});
+ } catch (e) {
+ console.error(e);
+ }
+ });
+ }
+}
+
+export function activateSearchProvider(prefix = '') {
+ const searchEntry = Main.overview.searchEntry;
+ if (!searchEntry.get_text() || !searchEntry.get_text().startsWith(prefix)) {
+ prefix = `${prefix} `;
+ const position = prefix.length;
+ searchEntry.set_text(prefix);
+ searchEntry.get_first_child().set_cursor_position(position);
+ searchEntry.get_first_child().set_selection(position, position);
+ } else {
+ searchEntry.set_text('');
+ }
+}
+
+export function dashNotDefault() {
+ return Main.overview.dash !== Main.overview._overview._controls.layoutManager._dash;
+}
+
+export function dashIsDashToDock() {
+ return Main.overview.dash._isHorizontal !== undefined;
+}
+
+// Reorder Workspaces - callback for Dash and workspacesDisplay
+export function reorderWorkspace(direction = 0) {
+ let activeWs = global.workspace_manager.get_active_workspace();
+ let activeWsIdx = activeWs.index();
+ let targetIdx = activeWsIdx + direction;
+ if (targetIdx > -1 && targetIdx < global.workspace_manager.get_n_workspaces())
+ global.workspace_manager.reorder_workspace(activeWs, targetIdx);
+}
+
+export function activateKeyboardForWorkspaceView() {
+ Main.ctrlAltTabManager._items.forEach(i => {
+ if (i.sortGroup === 1 && i.name === 'Windows')
+ Main.ctrlAltTabManager.focusGroup(i);
+ });
+}
+
+export function exposeWindows(adjustment, activateKeyboard) {
+ // expose windows for static overview modes
+ if (!adjustment.value && !Main.overview._animationInProgress) {
+ if (adjustment.value === 0) {
+ adjustment.value = 0;
+ adjustment.ease(1, {
+ duration: 200,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ onComplete: () => {
+ if (activateKeyboard) {
+ Main.ctrlAltTabManager._items.forEach(i => {
+ if (i.sortGroup === 1 && i.name === 'Windows')
+ Main.ctrlAltTabManager.focusGroup(i);
+ });
+ }
+ },
+ });
+ }
+ }
+}
+
+export function isShiftPressed(state = null) {
+ if (state === null)
+ [,, state] = global.get_pointer();
+ return (state & Clutter.ModifierType.SHIFT_MASK) !== 0;
+}
+
+export function isCtrlPressed(state = null) {
+ if (state === null)
+ [,, state] = global.get_pointer();
+ return (state & Clutter.ModifierType.CONTROL_MASK) !== 0;
+}
+
+export function isAltPressed(state = null) {
+ if (state === null)
+ [,, state] = global.get_pointer();
+ return (state & Clutter.ModifierType.MOD1_MASK) !== 0;
+}
+
+export function fuzzyMatch(term, text) {
+ let pos = -1;
+ const matches = [];
+ // convert all accented chars to their basic form and to lower case
+ const _text = text.normalize('NFD').replace(/[\u0300-\u036f]/g, '').toLowerCase();
+ const _term = term.normalize('NFD').replace(/[\u0300-\u036f]/g, '').toLowerCase();
+
+ // if term matches the substring exactly, gains the highest weight
+ if (_text.includes(_term))
+ return 0;
+
+ for (let i = 0; i < _term.length; i++) {
+ let c = _term[i];
+ let p;
+ if (pos > 0)
+ p = _term[i - 1];
+ while (true) {
+ pos += 1;
+ if (pos >= _text.length)
+ return -1;
+
+ if (_text[pos] === c) {
+ matches.push(pos);
+ break;
+ } else if (_text[pos] === p) {
+ matches.pop();
+ matches.push(pos);
+ }
+ }
+ }
+
+ // add all position to get a weight of the result
+ // results closer to the beginning of the text and term characters closer to each other will gain more weight.
+ return matches.reduce((r, p) => r + p) - matches.length * matches[0] + matches[0];
+}
+
+export function strictMatch(term, text) {
+ // remove diacritics and accents from letters
+ let s = text.normalize('NFD').replace(/[\u0300-\u036f]/g, '').toLowerCase();
+ let p = term.normalize('NFD').replace(/[\u0300-\u036f]/g, '').toLowerCase();
+ let ps = p.split(/ +/);
+
+ // allows to use multiple exact patterns separated by a space in arbitrary order
+ for (let w of ps) { // escape regex control chars
+ if (!s.match(w.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')))
+ return -1;
+ }
+ return 0;
+}
+
+export function isMoreRelevant(stringA, stringB, pattern) {
+ let regex = /[^a-zA-Z\d]/;
+ let strSplitA = stringA.normalize('NFD').replace(/[\u0300-\u036f]/g, '').toLowerCase().split(regex);
+ let strSplitB = stringB.normalize('NFD').replace(/[\u0300-\u036f]/g, '').toLowerCase().split(regex);
+ let aAny = false;
+ strSplitA.forEach(w => {
+ aAny = aAny || w.startsWith(pattern);
+ });
+ let bAny = false;
+ strSplitB.forEach(w => {
+ bAny = bAny || w.startsWith(pattern);
+ });
+
+ // if both strings contain a word that starts with the pattern
+ // prefer the one whose first word starts with the pattern
+ if (aAny && bAny)
+ return !strSplitA[0].startsWith(pattern) && strSplitB[0].startsWith(pattern);
+ else
+ return !aAny && bAny;
+}
+
+export function getEnabledExtensions(pattern = '') {
+ let result = [];
+ // extensionManager is unreliable at startup because it is uncertain whether all extensions have been loaded
+ // also gsettings key can contain already removed extensions (user deleted them without disabling them first)
+ // therefore we have to check what's really installed in the filesystem
+ if (!_installedExtensions) {
+ const extensionFiles = [...collectFromDatadirs('extensions', true)];
+ _installedExtensions = extensionFiles.map(({ info }) => {
+ let fileType = info.get_file_type();
+ if (fileType !== Gio.FileType.DIRECTORY)
+ return null;
+ const uuid = info.get_name();
+ return uuid;
+ });
+ }
+ // _enabledExtensions contains content of the enabled-extensions key from gsettings, not actual state
+ const enabled = Main.extensionManager._enabledExtensions;
+ result = _installedExtensions.filter(ext => enabled.includes(ext));
+ // _extensions contains already loaded extensions, so we can try to filter out broken or incompatible extensions
+ const active = Main.extensionManager._extensions;
+ result = result.filter(ext => {
+ const extension = active.get(ext);
+ if (extension)
+ return ![3, 4].includes(extension.state); // 3 - ERROR, 4 - OUT_OF_TIME (not supported by shell-version in metadata)
+ // extension can be enabled but not yet loaded, we just cannot see its state at this moment, so let it pass as enabled
+ return true;
+ });
+ // return only extensions matching the search pattern
+ return result.filter(uuid => uuid !== null && uuid.includes(pattern));
+}
+
+function* collectFromDatadirs(subdir, includeUserDir) {
+ let dataDirs = GLib.get_system_data_dirs();
+ if (includeUserDir)
+ dataDirs.unshift(GLib.get_user_data_dir());
+
+ for (let i = 0; i < dataDirs.length; i++) {
+ let path = GLib.build_filenamev([dataDirs[i], 'gnome-shell', subdir]);
+ let dir = Gio.File.new_for_path(path);
+
+ let fileEnum;
+ try {
+ fileEnum = dir.enumerate_children('standard::name,standard::type',
+ Gio.FileQueryInfoFlags.NONE, null);
+ } catch (e) {
+ fileEnum = null;
+ }
+ if (fileEnum !== null) {
+ let info;
+ while ((info = fileEnum.next_file(null)))
+ yield { dir: fileEnum.get_child(info), info };
+ }
+ }
+}
+
+export function getScrollDirection(event) {
+ // scroll wheel provides two types of direction information:
+ // 1. Clutter.ScrollDirection.DOWN / Clutter.ScrollDirection.UP
+ // 2. Clutter.ScrollDirection.SMOOTH + event.get_scroll_delta()
+ // first SMOOTH event returns 0 delta,
+ // so we need to always read event.direction
+ // since mouse without smooth scrolling provides exactly one SMOOTH event on one wheel rotation click
+ // on the other hand, under X11, one wheel rotation click sometimes doesn't send direction event, only several SMOOTH events
+ // so we also need to convert the delta to direction
+ let direction = event.get_scroll_direction();
+
+ if (direction !== Clutter.ScrollDirection.SMOOTH)
+ return direction;
+
+ let [, delta] = event.get_scroll_delta();
+
+ if (!delta)
+ return null;
+
+ direction = delta > 0 ? Clutter.ScrollDirection.DOWN : Clutter.ScrollDirection.UP;
+
+ return direction;
+}
+
+export function getWindows(workspace) {
+ // We ignore skip-taskbar windows in switchers, but if they are attached
+ // to their parent, their position in the MRU list may be more appropriate
+ // than the parent; so start with the complete list ...
+ let windows = global.display.get_tab_list(Meta.TabList.NORMAL_ALL, workspace);
+ // ... map windows to their parent where appropriate ...
+ return windows.map(w => {
+ return w.is_attached_dialog() ? w.get_transient_for() : w;
+ // ... and filter out skip-taskbar windows and duplicates
+ }).filter((w, i, a) => !w.skip_taskbar && a.indexOf(w) === i);
+}
+
+export function monitorHasLowResolution(monitorIndex, resolutionLimit) {
+ resolutionLimit = resolutionLimit ?? 1200000;
+ monitorIndex = monitorIndex ?? global.display.get_primary_monitor();
+ const monitorGeometry = global.display.get_monitor_geometry(monitorIndex);
+ const { scaleFactor } = St.ThemeContext.get_for_stage(global.stage);
+ const monitorResolution = monitorGeometry.width * monitorGeometry.height;
+ return (monitorResolution / scaleFactor) < resolutionLimit;
+}
+
+// /////////////////////////////////////////////////////////////////////////////////////////////
+// Status dialog that appears during updating V-Shell configuration and blocks inputs
+
+export const RestartMessage = GObject.registerClass({
+ // Registered name should be unique
+ GTypeName: `RestartMessage${Math.floor(Math.random() * 1000)}`,
+}, class RestartMessage extends ModalDialog.ModalDialog {
+ _init() {
+ super._init({
+ shellReactive: false,
+ styleClass: 'restart-message headline update-message',
+ shouldFadeIn: false,
+ destroyOnClose: false,
+ });
+
+ const label = new St.Label({
+ text: _('Updating V-Shell'),
+ x_align: Clutter.ActorAlign.CENTER,
+ y_align: Clutter.ActorAlign.CENTER,
+ });
+
+ this.contentLayout.add_child(label);
+ this.buttonLayout.hide();
+ this.connect('destroy', () => this.removeMessage());
+ }
+
+ showMessage(timeout = 500) {
+ if (this._timeoutId || Me._resetInProgress || Main.layoutManager._startingUp)
+ return;
+ this._removeTimeout();
+ this.open();
+ this._timeoutId = GLib.timeout_add(
+ GLib.PRIORITY_LOW,
+ timeout,
+ () => {
+ this._timeoutId = 0;
+ this.removeMessage();
+ return GLib.SOURCE_REMOVE;
+ }
+ );
+ }
+
+ _removeTimeout() {
+ if (this._timeoutId) {
+ GLib.source_remove(this._timeoutId);
+ this._timeoutId = 0;
+ }
+ }
+
+ removeMessage() {
+ this._removeTimeout();
+ this.close();
+ }
+});
diff --git a/extensions/47/vertical-workspaces/lib/windowAttentionHandler.js b/extensions/47/vertical-workspaces/lib/windowAttentionHandler.js
new file mode 100644
index 0000000..ae115ed
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/windowAttentionHandler.js
@@ -0,0 +1,185 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * windowAttentionHandler.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ *
+ */
+
+'use strict';
+
+import Clutter from 'gi://Clutter';
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+import * as MessageTray from 'resource:///org/gnome/shell/ui/messageTray.js';
+
+const shellVersion46 = !Clutter.Container;
+
+let Me;
+let opt;
+
+export const WindowAttentionHandlerModule = class {
+ constructor(me) {
+ Me = me;
+ opt = Me.opt;
+
+ this._firstActivation = true;
+ this.moduleEnabled = false;
+ this._overrides = null;
+ }
+
+ cleanGlobals() {
+ Me = null;
+ opt = null;
+ }
+
+ update(reset) {
+ this.moduleEnabled = opt.get('windowAttentionHandlerModule');
+ const conflict = false;
+
+ reset = reset || !this.moduleEnabled || conflict;
+
+ // don't touch the original code if module disabled
+ if (reset && !this._firstActivation) {
+ this._disableModule();
+ } else if (!reset) {
+ this._firstActivation = false;
+ this._activateModule();
+ }
+ if (reset && this._firstActivation)
+ console.debug(' WindowAttentionHandlerModule - Keeping untouched');
+ }
+
+ _activateModule() {
+ this._updateConnections();
+ console.debug(' WindowAttentionHandlerModule - Activated');
+ }
+
+ _disableModule() {
+ const reset = true;
+ this._updateConnections(reset);
+
+ console.debug(' WindowAttentionHandlerModule - Disabled');
+ }
+
+ _updateConnections(reset) {
+ global.display.disconnectObject(Main.windowAttentionHandler);
+
+ const handlerFnc = reset
+ ? Main.windowAttentionHandler._onWindowDemandsAttention
+ : WindowAttentionHandlerCommon._onWindowDemandsAttention;
+
+ global.display.connectObject(
+ 'window-demands-attention', handlerFnc.bind(Main.windowAttentionHandler),
+ 'window-marked-urgent', handlerFnc.bind(Main.windowAttentionHandler),
+ Main.windowAttentionHandler);
+ }
+};
+
+const WindowAttentionHandlerCommon = {
+ _onWindowDemandsAttention(display, window) {
+ // Deny attention notifications if the App Grid is open, to avoid notification spree when opening a folder
+ if (Main.overview._shown && Main.overview.dash.showAppsButton.checked) {
+ return;
+ } else if (opt.WINDOW_ATTENTION_FOCUS_IMMEDIATELY) {
+ if (!Main.overview._shown)
+ Main.activateWindow(window);
+ return;
+ }
+
+ const app = this._tracker.get_window_app(window);
+ let args;
+ if (shellVersion46)
+ args = { title: app.get_name() };
+ else
+ args = app.get_name();
+
+ const source = new MessageTray.Source(args);
+ new Me.Util.Overrides().addOverride('MessageSource', source, WindowAttentionSourceCommon);
+ source._init(app, window);
+ Main.messageTray.add(source);
+
+ let [title, body] = this._getTitleAndBanner(app, window);
+ args = shellVersion46
+ ? [{ source, title, body, forFeedback: true }]
+ : [source, title, body];
+
+ const notification = new MessageTray.Notification(...args);
+ if (!shellVersion46)
+ notification.setForFeedback(true);
+
+ notification.connect('activated', () => {
+ source.open();
+ });
+
+ if (shellVersion46) {
+ notification.acknowledged = opt.WINDOW_ATTENTION_DISABLE_NOTIFICATIONS;
+ source.addNotification(notification);
+ if (opt.WINDOW_ATTENTION_DISABLE_NOTIFICATIONS) {
+ // just push the notification to the message tray without showing notification
+ notification.acknowledged = true;
+ Main.messageTray._notificationQueue.push(notification);
+ Main.panel.statusArea.dateMenu._indicator.show();
+ }
+ window.connectObject('notify::title', () => {
+ [title, body] = this._getTitleAndBanner(app, window);
+ notification.set({ title, body });
+ }, source);
+ } else {
+ if (opt.WINDOW_ATTENTION_DISABLE_NOTIFICATIONS)
+ // just push the notification to the message tray without showing notification
+ source.pushNotification(notification);
+ else
+ source.showNotification(notification);
+
+ window.connectObject('notify::title', () => {
+ [title, body] = this._getTitleAndBanner(app, window);
+ notification.update(title, body);
+ }, source);
+ }
+ },
+};
+
+const WindowAttentionSourceCommon = {
+ _init(app, window) {
+ this._window = window;
+ this._app = app;
+
+ this._window.connectObject(
+ 'notify::demands-attention', this._sync.bind(this),
+ 'notify::urgent', this._sync.bind(this),
+ 'focus', () => this.destroy(),
+ 'unmanaged', () => this.destroy(), this);
+ },
+
+ _sync() {
+ if (this._window.demands_attention || this._window.urgent)
+ return;
+ this.destroy();
+ },
+
+ _createPolicy() {
+ if (this._app && this._app.get_app_info()) {
+ let id = this._app.get_id().replace(/\.desktop$/, '');
+ return new MessageTray.NotificationApplicationPolicy(id);
+ } else {
+ return new MessageTray.NotificationGenericPolicy();
+ }
+ },
+
+ createIcon(size) {
+ return this._app.create_icon_texture(size);
+ },
+
+ destroy(params) {
+ this._window.disconnectObject(this);
+
+ MessageTray.Source.prototype.destroy.bind(this)(params);
+ },
+
+ open() {
+ Main.activateWindow(this._window);
+ },
+};
diff --git a/extensions/47/vertical-workspaces/lib/windowManager.js b/extensions/47/vertical-workspaces/lib/windowManager.js
new file mode 100644
index 0000000..a6f9b09
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/windowManager.js
@@ -0,0 +1,380 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * windowManager.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ *
+ */
+
+'use strict';
+
+import Clutter from 'gi://Clutter';
+import Meta from 'gi://Meta';
+import GObject from 'gi://GObject';
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+import * as WindowManager from 'resource:///org/gnome/shell/ui/windowManager.js';
+import * as WorkspaceAnimation from 'resource:///org/gnome/shell/ui/workspaceAnimation.js';
+
+const MINIMIZE_WINDOW_ANIMATION_TIME = 400; // windowManager.MINIMIZE_WINDOW_ANIMATION_TIME
+const MINIMIZE_WINDOW_ANIMATION_MODE = Clutter.AnimationMode.EASE_OUT_EXPO; // WindowManager.MINIMIZE_WINDOW_ANIMATION_MODE
+
+let Me;
+let opt;
+
+export const WindowManagerModule = class {
+ constructor(me) {
+ Me = me;
+ opt = Me.opt;
+
+ this._firstActivation = true;
+ this.moduleEnabled = false;
+ this._overrides = null;
+
+ this._originalMinimizeSigId = 0;
+ this._minimizeSigId = 0;
+ this._originalUnminimizeSigId = 0;
+ this._unminimizeSigId = 0;
+ }
+
+ cleanGlobals() {
+ Me = null;
+ opt = null;
+ }
+
+ update(reset) {
+ this.moduleEnabled = opt.get('windowManagerModule');
+ const conflict = false;
+
+ reset = reset || !this.moduleEnabled || conflict;
+
+ // don't even touch the original code if module disabled
+ if (reset && !this._firstActivation) {
+ this._disableModule();
+ } else if (!reset) {
+ this._firstActivation = false;
+ this._activateModule();
+ }
+ if (reset && this._firstActivation)
+ console.debug(' WindowManagerModule - Keeping untouched');
+ }
+
+ _activateModule() {
+ if (!this._overrides)
+ this._overrides = new Me.Util.Overrides();
+
+ this._overrides.addOverride('WindowManager', WindowManager.WindowManager.prototype, WindowManagerCommon);
+ if (opt.WS_SWITCHER_CURRENT_MONITOR)
+ this._overrides.addOverride('WorkspaceAnimationController', WorkspaceAnimation.WorkspaceAnimationController.prototype, WorkspaceAnimationController);
+
+ if (!this._minimizeSigId) {
+ this._originalMinimizeSigId = GObject.signal_handler_find(Main.wm._shellwm, { signalId: 'minimize' });
+ if (this._originalMinimizeSigId) {
+ Main.wm._shellwm.block_signal_handler(this._originalMinimizeSigId);
+ this._minimizeSigId = Main.wm._shellwm.connect('minimize', WindowManagerCommon._minimizeWindow.bind(Main.wm));
+ }
+
+ this._originalUnminimizeSigId = GObject.signal_handler_find(Main.wm._shellwm, { signalId: 'unminimize' });
+ if (this._originalUnminimizeSigId) {
+ Main.wm._shellwm.block_signal_handler(this._originalUnminimizeSigId);
+ this._unminimizeSigId = Main.wm._shellwm.connect('unminimize', WindowManagerCommon._unminimizeWindow.bind(Main.wm));
+ }
+ }
+ console.debug(' WindowManagerModule - Activated');
+ }
+
+ _disableModule() {
+ if (this._overrides)
+ this._overrides.removeAll();
+ this._overrides = null;
+
+ if (this._minimizeSigId) {
+ Main.wm._shellwm.disconnect(this._minimizeSigId);
+ this._minimizeSigId = 0;
+ }
+ if (this._originalMinimizeSigId) {
+ Main.wm._shellwm.unblock_signal_handler(this._originalMinimizeSigId);
+ this._originalMinimizeSigId = 0;
+ }
+
+ if (this._unminimizeSigId) {
+ Main.wm._shellwm.disconnect(this._unminimizeSigId);
+ this._unminimizeSigId = 0;
+ }
+ if (this._originalUnminimizeSigId) {
+ Main.wm._shellwm.unblock_signal_handler(this._originalUnminimizeSigId);
+ this._originalUnminimizeSigId = 0;
+ }
+
+ console.debug(' WindowManagerModule - Disabled');
+ }
+};
+
+const WindowManagerCommon = {
+ actionMoveWorkspace(workspace) {
+ if (!Main.sessionMode.hasWorkspaces)
+ return;
+
+ if (opt.WS_SWITCHER_CURRENT_MONITOR)
+ this._switchWorkspaceCurrentMonitor(workspace);
+ else if (!workspace.active)
+ workspace.activate(global.get_current_time());
+ },
+
+ actionMoveWindow(window, workspace) {
+ if (!Main.sessionMode.hasWorkspaces)
+ return;
+
+ if (!workspace.active) {
+ // This won't have any effect for "always sticky" windows
+ // (like desktop windows or docks)
+
+ this._workspaceAnimation.movingWindow = window;
+ window.change_workspace(workspace);
+
+ global.display.clear_mouse_mode();
+
+ if (opt.SWITCH_ONLY_CURRENT_MONITOR_WS) {
+ this._switchWorkspaceCurrentMonitor(workspace, window.get_monitor());
+ window.activate(global.get_current_time());
+ } else {
+ workspace.activate_with_focus(window, global.get_current_time());
+ }
+ }
+ },
+
+ _switchWorkspaceCurrentMonitor(workspace, monitor) {
+ // const focusedWindow = global.display.get_focus_window();
+ // const currentMonitor = focusedWindow ? focusedWindow.get_monitor() : global.display.get_current_monitor();
+ // using focused window to determine the current monitor can lead to inconsistent behavior and switching monitors between switches
+ // depending on which window takes focus on each workspace
+ // mouse pointer is more stable and predictable source
+ const currentMonitor = monitor ? monitor : global.display.get_current_monitor();
+ const primaryMonitor = currentMonitor === Main.layoutManager.primaryIndex;
+ const nMonitors = Main.layoutManager.monitors.length;
+ const lastIndexCorrection = Meta.prefs_get_dynamic_workspaces() ? 2 : 1;
+ const lastIndex = global.workspaceManager.get_n_workspaces() - lastIndexCorrection;
+ const targetWsIndex = workspace.index();
+ const activeWs = global.workspaceManager.get_active_workspace();
+ const activeWsIndex = activeWs.index();
+ const diff = activeWsIndex - targetWsIndex;
+
+ let direction = diff > 0 ? Meta.MotionDirection.UP : Meta.MotionDirection.DOWN;
+ if (diff === 0) {
+ // no actual ws to switch, but secondary monitors are always in wraparound mode so we need to get direction
+ direction = activeWsIndex >= lastIndex ? Meta.MotionDirection.DOWN : Meta.MotionDirection.UP;
+ }
+ if (Math.abs(diff) > 1) {
+ // workspace is probably in wraparound mode and just wrapped so so we need to translate direction
+ direction = diff > 0 ? Meta.MotionDirection.DOWN : Meta.MotionDirection.UP;
+ }
+
+ if (!primaryMonitor) {
+ this._rotateWorkspaces(direction, currentMonitor);
+ return;
+ }
+
+ // avoid ws rotations if the last empty dynamic workspace is involved, but allow to rotate from the last to the first, if wraparound is enabled
+ if (workspace !== activeWs && !((targetWsIndex > lastIndex && direction === Meta.MotionDirection.DOWN) || (activeWsIndex > lastIndex && targetWsIndex >= lastIndex))) {
+ for (let i = 0; i < nMonitors; i++) {
+ if (i !== currentMonitor) {
+ const oppositeDirection = direction === Meta.MotionDirection.UP ? Meta.MotionDirection.DOWN : Meta.MotionDirection.UP;
+ this._rotateWorkspaces(oppositeDirection, i);
+ }
+ }
+ }
+ workspace.activate(global.get_current_time());
+ },
+
+ _rotateWorkspaces(direction = 0, monitorIndex = -1, step = 1) {
+ step = direction === Meta.MotionDirection.UP ? Number(step) : -step;
+ const monitor = monitorIndex > -1 ? monitorIndex : global.display.get_current_monitor();
+ // don't move windows to the last empty workspace if dynamic workspaces are enabled
+ const lastIndexCorrection = Meta.prefs_get_dynamic_workspaces() ? 2 : 1;
+ const lastIndex = global.workspaceManager.get_n_workspaces() - lastIndexCorrection;
+ let windows = Me.Util.getWindows(null);
+ for (let win of windows.reverse()) {
+ // avoid moving modal windows as they move with their parents (and vice versa) immediately, before we move the parent window.
+ if (win.get_monitor() === monitor && !win.is_always_on_all_workspaces() && !win.is_attached_dialog() && !win.get_transient_for()) {
+ let wWs = win.get_workspace().index();
+ wWs += step;
+ if (wWs < 0)
+ wWs = lastIndex;
+ if (wWs > lastIndex)
+ wWs = 0;
+ const ws = global.workspaceManager.get_workspace_by_index(wWs);
+ win.change_workspace(ws);
+ }
+ }
+ },
+
+ // fix for mainstream bug - fullscreen windows should minimize using opacity transition
+ // but its being applied directly on window actor and that doesn't work
+ // anyway, animation is better, even if the Activities button is not visible...
+ // and also add support for bottom position of the panel
+ _minimizeWindow(shellwm, actor) {
+ const types = [
+ Meta.WindowType.NORMAL,
+ Meta.WindowType.MODAL_DIALOG,
+ Meta.WindowType.DIALOG,
+ ];
+ if (!this._shouldAnimateActor(actor, types)) {
+ shellwm.completed_minimize(actor);
+ return;
+ }
+
+ actor.set_scale(1.0, 1.0);
+
+ this._minimizing.add(actor);
+
+ /* if (actor.meta_window.is_monitor_sized()) {
+ actor.get_first_child().ease({
+ opacity: 0,
+ duration: MINIMIZE_WINDOW_ANIMATION_TIME,
+ mode: MINIMIZE_WINDOW_ANIMATION_MODE,
+ onStopped: () => this._minimizeWindowDone(shellwm, actor),
+ });
+ } else { */
+ let xDest, yDest, xScale, yScale;
+ let [success, geom] = actor.meta_window.get_icon_geometry();
+ if (success) {
+ xDest = geom.x;
+ yDest = geom.y;
+ xScale = geom.width / actor.width;
+ yScale = geom.height / actor.height;
+ } else {
+ let monitor = Main.layoutManager.monitors[actor.meta_window.get_monitor()];
+ if (!monitor) {
+ this._minimizeWindowDone();
+ return;
+ }
+ xDest = monitor.x;
+ yDest = opt.PANEL_POSITION_TOP ? monitor.y : monitor.y + monitor.height;
+ if (Clutter.get_default_text_direction() === Clutter.TextDirection.RTL)
+ xDest += monitor.width;
+ xScale = 0;
+ yScale = 0;
+ }
+
+ actor.ease({
+ scale_x: xScale,
+ scale_y: yScale,
+ x: xDest,
+ y: yDest,
+ duration: MINIMIZE_WINDOW_ANIMATION_TIME,
+ mode: MINIMIZE_WINDOW_ANIMATION_MODE,
+ onStopped: () => this._minimizeWindowDone(shellwm, actor),
+ });
+ // }
+ },
+
+ _minimizeWindowDone(shellwm, actor) {
+ if (this._minimizing.delete(actor)) {
+ actor.remove_all_transitions();
+ actor.set_scale(1.0, 1.0);
+ actor.get_first_child().set_opacity(255);
+ actor.set_pivot_point(0, 0);
+
+ shellwm.completed_minimize(actor);
+ }
+ },
+
+ _unminimizeWindow(shellwm, actor) {
+ const types = [
+ Meta.WindowType.NORMAL,
+ Meta.WindowType.MODAL_DIALOG,
+ Meta.WindowType.DIALOG,
+ ];
+ if (!this._shouldAnimateActor(actor, types)) {
+ shellwm.completed_unminimize(actor);
+ return;
+ }
+
+ this._unminimizing.add(actor);
+
+ /* if (false/* actor.meta_window.is_monitor_sized()) {
+ actor.opacity = 0;
+ actor.set_scale(1.0, 1.0);
+ actor.ease({
+ opacity: 255,
+ duration: MINIMIZE_WINDOW_ANIMATION_TIME,
+ mode: MINIMIZE_WINDOW_ANIMATION_MODE,
+ onStopped: () => this._unminimizeWindowDone(shellwm, actor),
+ });
+ } else { */
+ let [success, geom] = actor.meta_window.get_icon_geometry();
+ if (success) {
+ actor.set_position(geom.x, geom.y);
+ actor.set_scale(geom.width / actor.width,
+ geom.height / actor.height);
+ } else {
+ let monitor = Main.layoutManager.monitors[actor.meta_window.get_monitor()];
+ if (!monitor) {
+ actor.show();
+ this._unminimizeWindowDone();
+ return;
+ }
+ actor.set_position(monitor.x, opt.PANEL_POSITION_TOP ? monitor.y : monitor.y + monitor.height);
+ if (Clutter.get_default_text_direction() === Clutter.TextDirection.RTL)
+ actor.x += monitor.width;
+ actor.set_scale(0, 0);
+ }
+
+ let rect = actor.meta_window.get_buffer_rect();
+ let [xDest, yDest] = [rect.x, rect.y];
+
+ actor.show();
+ actor.ease({
+ scale_x: 1,
+ scale_y: 1,
+ x: xDest,
+ y: yDest,
+ duration: MINIMIZE_WINDOW_ANIMATION_TIME,
+ mode: MINIMIZE_WINDOW_ANIMATION_MODE,
+ onStopped: () => this._unminimizeWindowDone(shellwm, actor),
+ });
+ // }
+ },
+};
+
+const WorkspaceAnimationController = {
+ _prepareWorkspaceSwitch(workspaceIndices) {
+ if (this._switchData)
+ return;
+
+ const workspaceManager = global.workspace_manager;
+ const nWorkspaces = workspaceManager.get_n_workspaces();
+
+ const switchData = {};
+
+ this._switchData = switchData;
+ switchData.monitors = [];
+
+ switchData.gestureActivated = false;
+ switchData.inProgress = false;
+
+ if (!workspaceIndices)
+ workspaceIndices = [...Array(nWorkspaces).keys()];
+
+ let monitors = opt.WS_SWITCHER_CURRENT_MONITOR
+ ? [Main.layoutManager.currentMonitor] : Main.layoutManager.monitors;
+ monitors = Meta.prefs_get_workspaces_only_on_primary()
+ ? [Main.layoutManager.primaryMonitor] : monitors;
+
+ for (const monitor of monitors) {
+ if (Meta.prefs_get_workspaces_only_on_primary() &&
+ monitor.index !== Main.layoutManager.primaryIndex)
+ continue;
+
+ const group = new WorkspaceAnimation.MonitorGroup(monitor, workspaceIndices, this.movingWindow);
+
+ Main.uiGroup.insert_child_above(group, global.window_group);
+
+ switchData.monitors.push(group);
+ }
+
+ Meta.disable_unredirect_for_display(global.display);
+ },
+};
diff --git a/extensions/47/vertical-workspaces/lib/windowPreview.js b/extensions/47/vertical-workspaces/lib/windowPreview.js
new file mode 100644
index 0000000..a529dc1
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/windowPreview.js
@@ -0,0 +1,629 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * windowPreview.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ *
+ */
+
+'use strict';
+
+import GLib from 'gi://GLib';
+import Clutter from 'gi://Clutter';
+import St from 'gi://St';
+import Meta from 'gi://Meta';
+import Shell from 'gi://Shell';
+import Pango from 'gi://Pango';
+import Graphene from 'gi://Graphene';
+import Atk from 'gi://Atk';
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+import * as DND from 'resource:///org/gnome/shell/ui/dnd.js';
+import * as OverviewControls from 'resource:///org/gnome/shell/ui/overviewControls.js';
+import * as WindowPreview from 'resource:///org/gnome/shell/ui/windowPreview.js';
+
+let Me;
+let opt;
+
+const WINDOW_SCALE_TIME = 200;
+const WINDOW_ACTIVE_SIZE_INC = 5;
+const WINDOW_OVERLAY_FADE_TIME = 200;
+const WINDOW_DND_SIZE = 256;
+const DRAGGING_WINDOW_OPACITY = 100;
+const ICON_OVERLAP = 0.7;
+const ICON_TITLE_SPACING = 6;
+
+const ControlsState = OverviewControls.ControlsState;
+
+export const WindowPreviewModule = class {
+ constructor(me) {
+ Me = me;
+ opt = Me.opt;
+
+ this._firstActivation = true;
+ this.moduleEnabled = false;
+ this._overrides = null;
+ }
+
+ cleanGlobals() {
+ Me = null;
+ opt = null;
+ }
+
+ update(reset) {
+ this.moduleEnabled = opt.get('windowPreviewModule');
+ const conflict = false;
+
+ reset = reset || !this.moduleEnabled || conflict;
+
+ // don't touch the original code if module disabled
+ if (reset && !this._firstActivation) {
+ this._disableModule();
+ } else if (!reset) {
+ this._firstActivation = false;
+ this._activateModule();
+ }
+ if (reset && this._firstActivation)
+ console.debug(' WindowPreviewModule - Keeping untouched');
+ }
+
+ _activateModule() {
+ if (!this._overrides)
+ this._overrides = new Me.Util.Overrides();
+
+ this._overrides.addOverride('WindowPreview', WindowPreview.WindowPreview.prototype, WindowPreviewCommon);
+ // A shorter timeout allows user to quickly cancel the selection by leaving the preview with the mouse pointer
+ // if (opt.ALWAYS_ACTIVATE_SELECTED_WINDOW)
+ // WindowPreview.WINDOW_OVERLAY_IDLE_HIDE_TIMEOUT = 150; // incompatible
+ console.debug(' WindowPreviewModule - Activated');
+ }
+
+ _disableModule() {
+ // If WindowPreview._init was injected by another extension (like Burn My Windows)
+ // which enables/disables before V-Shell
+ // don't restore the original if it's not injected,
+ // because it would restore injected _init and recursion would freeze GS when extensions are enabled again.
+ // This can happen when all extension re-enabled, not only when screen is locked/unlocked
+ // If _init doesn't include "fn.apply(this, args)" when reset === true, some extension already restored the original
+ const skipReset = WindowPreview.WindowPreview.prototype._init.toString().includes('fn.apply(this, args)');
+ if (this._overrides && skipReset) {
+ // skip restoring original _init()
+ this._overrides['_init'] = null;
+ }
+
+ if (this._overrides)
+ this._overrides.removeAll();
+
+ this._overrides = null;
+
+ console.debug(' WindowPreviewModule - Disabled');
+ }
+};
+
+const WindowPreviewCommon = {
+ _init(metaWindow, workspace, overviewAdjustment) {
+ this.metaWindow = metaWindow;
+ this.metaWindow._delegate = this;
+ this._windowActor = metaWindow.get_compositor_private();
+ this._workspace = workspace;
+ this._overviewAdjustment = overviewAdjustment;
+
+ const ICON_SIZE = opt.WIN_PREVIEW_ICON_SIZE;
+
+ Shell.WindowPreview.prototype._init.bind(this)({
+ reactive: true,
+ can_focus: true,
+ accessible_role: Atk.Role.PUSH_BUTTON,
+ offscreen_redirect: Clutter.OffscreenRedirect.AUTOMATIC_FOR_OPACITY,
+ });
+
+ const windowContainer = new Clutter.Actor({
+ pivot_point: new Graphene.Point({ x: 0.5, y: 0.5 }),
+ });
+ this.window_container = windowContainer;
+
+ windowContainer.connect('notify::scale-x',
+ () => this._adjustOverlayOffsets());
+ // gjs currently can't handle setting an actors layout manager during
+ // the initialization of the actor if that layout manager keeps track
+ // of its container, so set the layout manager after creating the
+ // container
+ windowContainer.layout_manager = new Shell.WindowPreviewLayout();
+ this.add_child(windowContainer);
+
+ this._addWindow(metaWindow);
+
+ this._delegate = this;
+
+ this._stackAbove = null;
+
+ this._cachedBoundingBox = {
+ x: windowContainer.layout_manager.bounding_box.x1,
+ y: windowContainer.layout_manager.bounding_box.y1,
+ width: windowContainer.layout_manager.bounding_box.get_width(),
+ height: windowContainer.layout_manager.bounding_box.get_height(),
+ };
+
+ windowContainer.layout_manager.connect(
+ 'notify::bounding-box', layout => {
+ this._cachedBoundingBox = {
+ x: layout.bounding_box.x1,
+ y: layout.bounding_box.y1,
+ width: layout.bounding_box.get_width(),
+ height: layout.bounding_box.get_height(),
+ };
+
+ // A bounding box of 0x0 means all windows were removed
+ if (layout.bounding_box.get_area() > 0)
+ this.emit('size-changed');
+ });
+
+ this._windowActor.connectObject('destroy', () => this.destroy(), this);
+
+ this._updateAttachedDialogs();
+
+ let clickAction = new Clutter.ClickAction();
+ clickAction.connect('clicked', act => {
+ const button = act.get_button();
+ if (button === Clutter.BUTTON_SECONDARY) {
+ if (opt.WIN_PREVIEW_SEC_BTN_ACTION === 1) {
+ this._closeWinAction();
+ return Clutter.EVENT_STOP;
+ } else if (opt.WIN_PREVIEW_SEC_BTN_ACTION === 2) {
+ this._searchAppWindowsAction();
+ return Clutter.EVENT_STOP;
+ } else if (opt.WIN_PREVIEW_SEC_BTN_ACTION === 3 && global.windowThumbnails) {
+ this._removeLaters();
+ global.windowThumbnails?.createThumbnail(metaWindow);
+ return Clutter.EVENT_STOP;
+ }
+ } else if (button === Clutter.BUTTON_MIDDLE) {
+ if (opt.WIN_PREVIEW_MID_BTN_ACTION === 1) {
+ this._closeWinAction();
+ return Clutter.EVENT_STOP;
+ } else if (opt.WIN_PREVIEW_MID_BTN_ACTION === 2) {
+ this._searchAppWindowsAction();
+ return Clutter.EVENT_STOP;
+ } else if (opt.WIN_PREVIEW_SEC_BTN_ACTION === 3 && global.windowThumbnails) {
+ this._removeLaters();
+ global.windowThumbnails?.createThumbnail(metaWindow);
+ return Clutter.EVENT_STOP;
+ }
+ }
+ return this._activate();
+ });
+
+
+ if (this._onLongPress) {
+ clickAction.connect('long-press', this._onLongPress.bind(this));
+ } else {
+ clickAction.connect('long-press', (action, actor, state) => {
+ if (state === Clutter.LongPressState.ACTIVATE)
+ this.showOverlay(true);
+ return true;
+ });
+ }
+
+ this.connect('destroy', this._onDestroy.bind(this));
+
+ this._draggable = DND.makeDraggable(this, {
+ restoreOnSuccess: true,
+ manualMode: !!this._onLongPress,
+ dragActorMaxSize: WINDOW_DND_SIZE,
+ dragActorOpacity: DRAGGING_WINDOW_OPACITY,
+ });
+
+ // _draggable.addClickAction is new in GS45
+ if (this._draggable.addClickAction)
+ this._draggable.addClickAction(clickAction);
+ else
+ this.add_action(clickAction);
+
+ this._draggable.connect('drag-begin', this._onDragBegin.bind(this));
+ this._draggable.connect('drag-cancelled', this._onDragCancelled.bind(this));
+ this._draggable.connect('drag-end', this._onDragEnd.bind(this));
+ this.inDrag = false;
+
+ this._selected = false;
+ this._overlayEnabled = true;
+ this._overlayShown = false;
+ this._closeRequested = false;
+ this._idleHideOverlayId = 0;
+
+ const tracker = Shell.WindowTracker.get_default();
+ const app = tracker.get_window_app(this.metaWindow);
+ this._icon = app.create_icon_texture(ICON_SIZE);
+ this._icon.add_style_class_name('icon-dropshadow');
+ this._icon.set({
+ reactive: true,
+ pivot_point: new Graphene.Point({ x: 0.5, y: 0.5 }),
+ });
+ this._icon.add_constraint(new Clutter.BindConstraint({
+ source: windowContainer,
+ coordinate: Clutter.BindCoordinate.POSITION,
+ }));
+ this._icon.add_constraint(new Clutter.AlignConstraint({
+ source: windowContainer,
+ align_axis: Clutter.AlignAxis.X_AXIS,
+ factor: 0.5,
+ }));
+ this._icon.add_constraint(new Clutter.AlignConstraint({
+ source: windowContainer,
+ align_axis: Clutter.AlignAxis.Y_AXIS,
+ pivot_point: new Graphene.Point({ x: -1, y: ICON_OVERLAP }),
+ factor: 1,
+ }));
+
+ if (opt.WINDOW_ICON_CLICK_ACTION) {
+ const iconClickAction = new Clutter.ClickAction();
+ iconClickAction.connect('clicked', act => {
+ if (act.get_button() === Clutter.BUTTON_PRIMARY) {
+ if (opt.WINDOW_ICON_CLICK_ACTION === 1) {
+ this._searchAppWindowsAction();
+ return Clutter.EVENT_STOP;
+ } else if (opt.WINDOW_ICON_CLICK_ACTION === 2 && global.windowThumbnails) {
+ this._removeLaters();
+ global.windowThumbnails?.createThumbnail(metaWindow);
+ return Clutter.EVENT_STOP;
+ }
+ } /* else if (act.get_button() === Clutter.BUTTON_SECONDARY) {
+ return Clutter.EVENT_STOP;
+ }*/
+ return Clutter.EVENT_PROPAGATE;
+ });
+ this._icon.add_action(iconClickAction);
+ }
+ const { scaleFactor } = St.ThemeContext.get_for_stage(global.stage);
+ this._title = new St.Label({
+ visible: false,
+ style_class: 'window-caption',
+ text: this._getCaption(),
+ reactive: true,
+ });
+ this._title.clutter_text.single_line_mode = true;
+ this._title.add_constraint(new Clutter.BindConstraint({
+ source: windowContainer,
+ coordinate: Clutter.BindCoordinate.X,
+ }));
+
+ let offset;
+ if (opt.WIN_TITLES_POSITION < 2) {
+ // we cannot get proper title height before it gets to the stage, so 35 is estimated height + spacing
+ offset = -scaleFactor * (ICON_SIZE * ICON_OVERLAP + 35);
+ } else {
+ offset = scaleFactor * (ICON_SIZE * (1 - ICON_OVERLAP) + 4);
+ }
+ this._title.add_constraint(new Clutter.BindConstraint({
+ source: windowContainer,
+ coordinate: Clutter.BindCoordinate.Y,
+ offset,
+ }));
+ this._title.add_constraint(new Clutter.AlignConstraint({
+ source: windowContainer,
+ align_axis: Clutter.AlignAxis.X_AXIS,
+ factor: 0.5,
+ }));
+ this._title.add_constraint(new Clutter.AlignConstraint({
+ source: windowContainer,
+ align_axis: Clutter.AlignAxis.Y_AXIS,
+ pivot_point: new Graphene.Point({ x: -1, y: 0 }),
+ factor: 1,
+ }));
+ this._title.clutter_text.ellipsize = Pango.EllipsizeMode.END;
+ this.label_actor = this._title;
+ this.metaWindow.connectObject(
+ 'notify::title', () => (this._title.text = this._getCaption()),
+ this);
+
+ const layout = Meta.prefs_get_button_layout();
+ this._closeButtonSide =
+ layout.left_buttons.includes(Meta.ButtonFunction.CLOSE)
+ ? St.Side.LEFT : St.Side.RIGHT;
+ this._closeButton = new St.Button({
+ visible: false,
+ style_class: 'window-close',
+ icon_name: 'preview-close-symbolic',
+ });
+ this._closeButton.add_constraint(new Clutter.BindConstraint({
+ source: windowContainer,
+ coordinate: Clutter.BindCoordinate.POSITION,
+ }));
+ this._closeButton.add_constraint(new Clutter.AlignConstraint({
+ source: windowContainer,
+ align_axis: Clutter.AlignAxis.X_AXIS,
+ pivot_point: new Graphene.Point({ x: 0.5, y: -1 }),
+ factor: this._closeButtonSide === St.Side.LEFT ? 0 : 1,
+ }));
+ this._closeButton.add_constraint(new Clutter.AlignConstraint({
+ source: windowContainer,
+ align_axis: Clutter.AlignAxis.Y_AXIS,
+ pivot_point: new Graphene.Point({ x: -1, y: 0.5 }),
+ factor: 0,
+ }));
+ this._closeButton.connect('clicked', () => this._deleteAll());
+
+ this.add_child(this._title);
+ this.add_child(this._icon);
+ this.add_child(this._closeButton);
+
+ this._overviewAdjustment.connectObject(
+ 'notify::value', () => this._updateIconScale(), this);
+ this._updateIconScale();
+
+ this.connect('notify::realized', () => {
+ if (!this.realized)
+ return;
+
+ this._title.ensure_style();
+ this._icon.ensure_style();
+ });
+
+ if (ICON_SIZE < 22) {
+ // disable app icon
+ this._icon.hide();
+ } else {
+ this._updateIconScale();
+ }
+
+
+
+ // if window is created while the overview is shown, icon and title should be visible immediately
+ if (Main.overview._overview._controls._stateAdjustment.value < 1) {
+ this._icon.scale_x = 0;
+ this._icon.scale_y = 0;
+ this._title.opacity = 0;
+ }
+
+ if (opt.ALWAYS_SHOW_WIN_TITLES)
+ this._title.show();
+
+ if (opt.OVERVIEW_MODE === 1) {
+ // spread windows on hover
+ this._wsStateConId = this.connect('enter-event', () => {
+ // don't spread windows if user don't use pointer device at this moment
+ if (global.get_pointer()[0] === opt.showingPointerX || Main.overview._overview._controls._stateAdjustment.value < 1)
+ return;
+
+ opt.WORKSPACE_MODE = 1;
+ const view = this._workspace.get_parent();
+ view.exposeWindows(this._workspace.metaWorkspace.index());
+ this.disconnect(this._wsStateConId);
+ });
+ }
+
+ if (opt.OVERVIEW_MODE) {
+ // show window icon and title on ws windows spread
+ this._stateAdjustmentSigId = this._workspace.stateAdjustment.connect('notify::value', this._updateIconScale.bind(this));
+ }
+
+ const metaWin = this.metaWindow;
+ if (opt.DASH_ISOLATE_WS && !metaWin._wsChangedConId) {
+ metaWin._wsChangedConId = metaWin.connect('workspace-changed',
+ () => Main.overview.dash._queueRedisplay());
+ } else if (!opt.DASH_ISOLATE_WS && metaWin._wsChangedConId) {
+ metaWin.disconnect(metaWin._wsChangedConId);
+ }
+ },
+
+ _closeWinAction() {
+ this.hide();
+ this._deleteAll();
+ },
+
+ _removeLaters() {
+ if (this._longPressLater) {
+ const laters = global.compositor.get_laters();
+ laters.remove(this._longPressLater);
+ delete this._longPressLater;
+ }
+ },
+
+ _searchAppWindowsAction() {
+ // this action cancels long-press event and the 'long-press-cancel' event is used by the Shell to actually initiate DnD
+ // so the dnd initiation needs to be removed
+ this._removeLaters();
+ const tracker = Shell.WindowTracker.get_default();
+ const appName = tracker.get_window_app(this.metaWindow).get_name();
+ Me.Util.activateSearchProvider(`${Me.WSP_PREFIX} ${appName}`);
+ },
+
+ _updateIconScale() {
+ let { currentState, initialState, finalState } =
+ this._overviewAdjustment.getStateTransitionParams();
+
+ // Current state - 0 - HIDDEN, 1 - WINDOW_PICKER, 2 - APP_GRID
+ const primaryMonitor = this.metaWindow.get_monitor() === global.display.get_primary_monitor();
+
+ const visible =
+ (initialState > ControlsState.HIDDEN || finalState > ControlsState.HIDDEN) &&
+ !(finalState === ControlsState.APP_GRID && opt.WS_ANIMATION && primaryMonitor);
+
+ let scale = 0;
+ if (visible)
+ scale = currentState >= 1 ? 1 : currentState % 1;
+
+ if (!primaryMonitor && opt.WORKSPACE_MODE &&
+ ((initialState === ControlsState.WINDOW_PICKER && finalState === ControlsState.APP_GRID) ||
+ (initialState === ControlsState.APP_GRID && finalState === ControlsState.WINDOW_PICKER))
+ )
+ scale = 1;
+ else if (!primaryMonitor && opt.OVERVIEW_MODE && !opt.WORKSPACE_MODE)
+ scale = 0;
+ /* } else if (primaryMonitor && ((initialState === ControlsState.WINDOW_PICKER && finalState === ControlsState.APP_GRID) ||
+ initialState === ControlsState.APP_GRID && finalState === ControlsState.HIDDEN)) {*/
+ else if (primaryMonitor && currentState > ControlsState.WINDOW_PICKER)
+ scale = 0;
+
+ // in static workspace mode show icon and title on windows expose
+ if (opt.OVERVIEW_MODE) {
+ if (currentState === 1)
+ scale = this._workspace._background._stateAdjustment.value;
+ else if ((finalState === 1 && !opt.WORKSPACE_MODE) || (finalState === 0 && !opt.WORKSPACE_MODE))
+ return;
+ }
+
+ if (!opt.WS_ANIMATION && (Main.overview.searchController.searchActive ||
+ ((initialState === ControlsState.WINDOW_PICKER && finalState === ControlsState.APP_GRID) ||
+ (initialState === ControlsState.APP_GRID && finalState === ControlsState.WINDOW_PICKER)))
+ )
+ return;
+
+ // if titles are in 'always show' mode, we need to add transition between visible/invisible state
+ // but the transition is quite expensive,
+ // showing the titles at the end of the transition is good enough and workspace preview transition is much smoother
+ if (scale === 1) {
+ this._icon.set({
+ scale_x: 1,
+ scale_y: 1,
+ });
+ this._title.ease({
+ duration: 100,
+ opacity: 255,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+ } else {
+ this._title.opacity = 0;
+ this._icon.set({
+ scale_x: scale,
+ scale_y: scale,
+ });
+ }
+ },
+
+ showOverlay(animate) {
+ if (!this._overlayEnabled)
+ return;
+
+ if (this._overlayShown)
+ return;
+
+ this._overlayShown = true;
+ if (opt.WIN_TITLES_POSITION === 2)
+ this._restack();
+
+ // If we're supposed to animate and an animation in our direction
+ // is already happening, let that one continue
+ const ongoingTransition = this._title.get_transition('opacity');
+ if (animate &&
+ ongoingTransition &&
+ ongoingTransition.get_interval().peek_final_value() === 255)
+ return;
+
+ const toShow = this._windowCanClose() && opt.SHOW_CLOSE_BUTTON
+ ? [this._closeButton]
+ : [];
+
+ if (!opt.ALWAYS_SHOW_WIN_TITLES)
+ toShow.push(this._title);
+
+
+ toShow.forEach(a => {
+ a.opacity = 0;
+ a.show();
+ a.ease({
+ opacity: 255,
+ duration: animate ? WINDOW_OVERLAY_FADE_TIME : 0,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+ });
+
+ const [width, height] = this.window_container.get_size();
+ const { scaleFactor } = St.ThemeContext.get_for_stage(global.stage);
+ const activeExtraSize = WINDOW_ACTIVE_SIZE_INC * 2 * scaleFactor;
+ const origSize = Math.max(width, height);
+ const scale = (origSize + activeExtraSize) / origSize;
+
+ this.window_container.ease({
+ scale_x: scale,
+ scale_y: scale,
+ duration: animate ? WINDOW_SCALE_TIME : 0,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+
+ this.emit('show-chrome');
+ },
+
+ hideOverlay(animate) {
+ if (!this._overlayShown)
+ return;
+ this._overlayShown = false;
+
+ if (opt.ALWAYS_ACTIVATE_SELECTED_WINDOW && Main.overview._overview.controls._stateAdjustment.value < 1)
+ this._activateSelected = true;
+
+
+ if (opt.WIN_TITLES_POSITION === 2)
+ this._restack();
+
+ // If we're supposed to animate and an animation in our direction
+ // is already happening, let that one continue
+ const ongoingTransition = this._title.get_transition('opacity');
+ if (animate &&
+ ongoingTransition &&
+ ongoingTransition.get_interval().peek_final_value() === 0)
+ return;
+
+ const toHide = [this._closeButton];
+
+ if (!opt.ALWAYS_SHOW_WIN_TITLES)
+ toHide.push(this._title);
+
+ toHide.forEach(a => {
+ a.opacity = 255;
+ a.ease({
+ opacity: 0,
+ duration: animate ? WINDOW_OVERLAY_FADE_TIME : 0,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ onComplete: () => a.hide(),
+ });
+ });
+
+ if (this.window_container) {
+ this.window_container.ease({
+ scale_x: 1,
+ scale_y: 1,
+ duration: animate ? WINDOW_SCALE_TIME : 0,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+ }
+ },
+
+ overlapHeights() {
+ const [, titleHeight] = this._title.get_preferred_height(-1);
+
+ const topOverlap = 0;
+ const bottomOverlap = opt.WIN_TITLES_POSITION === 2 ? titleHeight + ICON_TITLE_SPACING : 0;
+
+ return [topOverlap, bottomOverlap];
+ },
+
+ _onDestroy() {
+ if (this._activateSelected)
+ this._activate();
+
+ this.metaWindow._delegate = null;
+ this._delegate = null;
+ this._destroyed = true;
+
+ if (this._longPressLater) {
+ const laters = global.compositor.get_laters();
+ laters.remove(this._longPressLater);
+ delete this._longPressLater;
+ }
+
+ if (this._idleHideOverlayId > 0) {
+ GLib.source_remove(this._idleHideOverlayId);
+ this._idleHideOverlayId = 0;
+ }
+
+ if (this.inDrag) {
+ this.emit('drag-end');
+ this.inDrag = false;
+ }
+
+ if (this._stateAdjustmentSigId)
+ this._workspace.stateAdjustment.disconnect(this._stateAdjustmentSigId);
+ },
+};
diff --git a/extensions/47/vertical-workspaces/lib/workspace.js b/extensions/47/vertical-workspaces/lib/workspace.js
new file mode 100644
index 0000000..9f1dbbc
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/workspace.js
@@ -0,0 +1,472 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * workspace.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ *
+ */
+
+'use strict';
+
+import St from 'gi://St';
+// import Graphene from 'gi://Graphene';
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+import * as Workspace from 'resource:///org/gnome/shell/ui/workspace.js';
+import * as Params from 'resource:///org/gnome/shell/misc/params.js';
+import * as Util from 'resource:///org/gnome/shell/misc/util.js';
+
+let Me;
+let opt;
+
+let WINDOW_PREVIEW_MAXIMUM_SCALE = 0.95;
+
+export const WorkspaceModule = class {
+ constructor(me) {
+ Me = me;
+ opt = Me.opt;
+
+ this._firstActivation = true;
+ this.moduleEnabled = false;
+ this._overrides = null;
+ }
+
+ cleanGlobals() {
+ Me = null;
+ opt = null;
+ }
+
+ update(reset) {
+ this.moduleEnabled = opt.get('workspaceModule');
+ const conflict = false;
+
+ reset = reset || !this.moduleEnabled || conflict;
+
+ // don't touch the original code if module disabled
+ if (reset && !this._firstActivation) {
+ this._disableModule();
+ } else if (!reset) {
+ this._firstActivation = false;
+ this._activateModule();
+ }
+ if (reset && this._firstActivation)
+ console.debug(' WorkspaceModule - Keeping untouched');
+ }
+
+ _activateModule() {
+ if (!this._overrides)
+ this._overrides = new Me.Util.Overrides();
+
+ this._overrides.addOverride('WorkspaceBackground', Workspace.WorkspaceBackground.prototype, WorkspaceBackground);
+
+ // fix overlay base for Vertical Workspaces
+ this._overrides.addOverride('WorkspaceLayout', Workspace.WorkspaceLayout.prototype, WorkspaceLayout);
+ console.debug(' WorkspaceModule - Activated');
+ }
+
+ _disableModule() {
+ if (this._overrides)
+ this._overrides.removeAll();
+ this._overrides = null;
+ console.debug(' WorkspaceModule - Disabled');
+ }
+
+ setWindowPreviewMaxScale(scale) {
+ WINDOW_PREVIEW_MAXIMUM_SCALE = scale;
+ }
+};
+
+// workaround for upstream bug (that is not that invisible in default shell)
+// smaller window cannot be scaled below 0.95 (WINDOW_PREVIEW_MAXIMUM_SCALE)
+// when its target scale for exposed windows view (workspace state 1) is bigger than the scale needed for ws state 0.
+// in workspace state 0 where windows are not spread and window scale should follow workspace scale,
+// this window follows proper top left corner position, but doesn't scale with the workspace
+// so it looks bad and the window can exceed border of the workspace
+// extremely annoying in OVERVIEW_MODE 1 with single smaller window on the workspace, also affects appGrid transition animation
+
+// disadvantage of following workaround - the WINDOW_PREVIEW_MAXIMUM_SCALE value is common for every workspace,
+// on multi-monitor system can be visible unwanted scaling of windows on workspace in WORKSPACE_MODE 0 (windows not spread)
+// when leaving overview while any other workspace is in the WORKSPACE_MODE 1.
+const WorkspaceLayout = {
+ // injection to _init()
+ after__init() {
+ if (opt.OVERVIEW_MODE !== 1)
+ WINDOW_PREVIEW_MAXIMUM_SCALE = 0.95;
+ if (opt.OVERVIEW_MODE === 1) {
+ this._stateAdjustment.connect('notify::value', () => {
+ // scale 0.1 for window state 0 just needs to be smaller then possible scale of any window in spread view
+ const scale = this._stateAdjustment.value ? 0.95 : 0.1;
+ if (scale !== WINDOW_PREVIEW_MAXIMUM_SCALE) {
+ WINDOW_PREVIEW_MAXIMUM_SCALE = scale;
+ // when transition to ws state 1 (WINDOW_PICKER) begins, replace the constant with the original one
+ // and force recalculation of the target layout, so the transition will be smooth
+ this._needsLayout = true;
+ }
+ });
+ }
+ },
+
+ _adjustSpacingAndPadding(rowSpacing, colSpacing, containerBox) {
+ if (this._sortedWindows.length === 0)
+ return [rowSpacing, colSpacing, containerBox];
+
+ // All of the overlays have the same chrome sizes,
+ // so just pick the first one.
+ const window = this._sortedWindows[0];
+
+ const [topOversize, bottomOversize] = window.chromeHeights();
+ const [leftOversize, rightOversize] = window.chromeWidths();
+
+ let oversize = Math.max(topOversize, bottomOversize, leftOversize, rightOversize);
+
+ if (rowSpacing !== null)
+ rowSpacing += oversize;
+ if (colSpacing !== null)
+ colSpacing += oversize;
+
+ // Chrome highlights and window titles may exceed the workspace preview area
+ // and also the screen area if there is no overview element below/above/on_the_right of the workspace
+ // The original code tests whether window titles are out of the screen and applies correction accordingly
+ // That is a problem when workspaces are vertically stacked, because this method is called even during transitions between workspaces
+ // In V-Shell, this issue can be solved by reducing the workspace preview scale in the Settings
+
+ // Original code - horizontal orientation only
+ /* if (containerBox) {
+ const monitor = Main.layoutManager.monitors[this._monitorIndex];
+
+ const bottomPoint = new Graphene.Point3D({ y: containerBox.y2 });
+ const transformedBottomPoint =
+ this._container.apply_transform_to_point(bottomPoint);
+ const bottomFreeSpace =
+ (monitor.y + monitor.height) - transformedBottomPoint.y;
+
+ const [, bottomOverlap] = window.overlapHeights();
+
+ if ((bottomOverlap + oversize) > bottomFreeSpace)
+ containerBox.y2 -= (bottomOverlap + oversize) - bottomFreeSpace;
+ }*/
+
+ // Alternative code reducing the box size unconditionally
+ /* if (containerBox) {
+ const [, bottomOverlap] = window.overlapHeights();
+
+ // Adjusting x1/x2 here is pointless,
+ // x1 only moves window previews to the right and down, x2 has no effect
+ // Prevent window previews from overlapping a workspace preview
+ oversize *= 1.5;
+ containerBox.y1 += oversize;
+ containerBox.y2 -= bottomOverlap + oversize;
+ }*/
+
+ return [rowSpacing, colSpacing, containerBox];
+ },
+
+ _createBestLayout(area) {
+ const [rowSpacing, columnSpacing] =
+ this._adjustSpacingAndPadding(this._spacing, this._spacing, null);
+
+ // We look for the largest scale that allows us to fit the
+ // largest row/tallest column on the workspace.
+ this._layoutStrategy = new UnalignedLayoutStrategy({
+ monitor: Main.layoutManager.monitors[this._monitorIndex],
+ rowSpacing,
+ columnSpacing,
+ });
+
+ let lastLayout = null;
+ let lastNumColumns = -1;
+ let lastScale = 0;
+ let lastSpace = 0;
+
+ for (let numRows = 1; ; numRows++) {
+ const numColumns = Math.ceil(this._sortedWindows.length / numRows);
+
+ // If adding a new row does not change column count just stop
+ // (for instance: 9 windows, with 3 rows -> 3 columns, 4 rows ->
+ // 3 columns as well => just use 3 rows then)
+ if (numColumns === lastNumColumns)
+ break;
+
+ const layout = this._layoutStrategy.computeLayout(this._sortedWindows, {
+ numRows,
+ });
+
+ const [scale, space] = this._layoutStrategy.computeScaleAndSpace(layout, area);
+
+ if (lastLayout && !this._isBetterScaleAndSpace(lastScale, lastSpace, scale, space))
+ break;
+
+ lastLayout = layout;
+ lastNumColumns = numColumns;
+ lastScale = scale;
+ lastSpace = space;
+ }
+
+ return lastLayout;
+ },
+};
+
+class UnalignedLayoutStrategy extends Workspace.LayoutStrategy {
+ _newRow() {
+ // Row properties:
+ //
+ // * x, y are the position of row, relative to area
+ //
+ // * width, height are the scaled versions of fullWidth, fullHeight
+ //
+ // * width also has the spacing in between windows. It's not in
+ // fullWidth, as the spacing is constant, whereas fullWidth is
+ // meant to be scaled
+ //
+ // * neither height/fullHeight have any sort of spacing or padding
+ return {
+ x: 0, y: 0,
+ width: 0, height: 0,
+ fullWidth: 0, fullHeight: 0,
+ windows: [],
+ };
+ }
+
+ // Computes and returns an individual scaling factor for @window,
+ // to be applied in addition to the overall layout scale.
+ _computeWindowScale(window) {
+ // Since we align windows next to each other, the height of the
+ // thumbnails is much more important to preserve than the width of
+ // them, so two windows with equal height, but maybe differering
+ // widths line up.
+ let ratio = window.boundingBox.height / this._monitor.height;
+
+ // The purpose of this manipulation here is to prevent windows
+ // from getting too small. For something like a calculator window,
+ // we need to bump up the size just a bit to make sure it looks
+ // good. We'll use a multiplier of 1.5 for this.
+
+ // Map from [0, 1] to [1.5, 1]
+ return Util.lerp(1.5, 1, ratio);
+ }
+
+ _computeRowSizes(layout) {
+ let { rows, scale } = layout;
+ for (let i = 0; i < rows.length; i++) {
+ let row = rows[i];
+ row.width = row.fullWidth * scale + (row.windows.length - 1) * this._columnSpacing;
+ row.height = row.fullHeight * scale;
+ }
+ }
+
+ _keepSameRow(row, window, width, idealRowWidth) {
+ if (row.fullWidth + width <= idealRowWidth)
+ return true;
+
+ let oldRatio = row.fullWidth / idealRowWidth;
+ let newRatio = (row.fullWidth + width) / idealRowWidth;
+
+ if (Math.abs(1 - newRatio) < Math.abs(1 - oldRatio))
+ return true;
+
+ return false;
+ }
+
+ _sortRow(row) {
+ // Sort windows horizontally to minimize travel distance.
+ // This affects in what order the windows end up in a row.
+ row.windows.sort((a, b) => a.windowCenter.x - b.windowCenter.x);
+ }
+
+ computeLayout(windows, layoutParams) {
+ layoutParams = Params.parse(layoutParams, {
+ numRows: 0,
+ });
+
+ if (layoutParams.numRows === 0)
+ throw new Error(`${this.constructor.name}: No numRows given in layout params`);
+
+ const numRows = layoutParams.numRows;
+
+ let rows = [];
+ let totalWidth = 0;
+ for (let i = 0; i < windows.length; i++) {
+ let window = windows[i];
+ let s = this._computeWindowScale(window);
+ totalWidth += window.boundingBox.width * s;
+ }
+
+ let idealRowWidth = totalWidth / numRows;
+
+ // Sort windows vertically to minimize travel distance.
+ // This affects what rows the windows get placed in.
+ let sortedWindows = windows.slice();
+ sortedWindows.sort((a, b) => a.windowCenter.y - b.windowCenter.y);
+
+ let windowIdx = 0;
+ for (let i = 0; i < numRows; i++) {
+ let row = this._newRow();
+ rows.push(row);
+
+ for (; windowIdx < sortedWindows.length; windowIdx++) {
+ let window = sortedWindows[windowIdx];
+ let s = this._computeWindowScale(window);
+ let width = window.boundingBox.width * s;
+ let height = window.boundingBox.height * s;
+ row.fullHeight = Math.max(row.fullHeight, height);
+
+ // either new width is < idealWidth or new width is nearer from idealWidth then oldWidth
+ if (this._keepSameRow(row, window, width, idealRowWidth) || (i === numRows - 1)) {
+ row.windows.push(window);
+ row.fullWidth += width;
+ } else {
+ break;
+ }
+ }
+ }
+
+ let gridHeight = 0;
+ let maxRow;
+ for (let i = 0; i < numRows; i++) {
+ let row = rows[i];
+ this._sortRow(row);
+
+ if (!maxRow || row.fullWidth > maxRow.fullWidth)
+ maxRow = row;
+ gridHeight += row.fullHeight;
+ }
+
+ return {
+ numRows,
+ rows,
+ maxColumns: maxRow.windows.length,
+ gridWidth: maxRow.fullWidth,
+ gridHeight,
+ };
+ }
+
+ computeScaleAndSpace(layout, area) {
+ let hspacing = (layout.maxColumns - 1) * this._columnSpacing;
+ let vspacing = (layout.numRows - 1) * this._rowSpacing;
+
+ let spacedWidth = area.width - hspacing;
+ let spacedHeight = area.height - vspacing;
+
+ let horizontalScale = spacedWidth / layout.gridWidth;
+ let verticalScale = spacedHeight / layout.gridHeight;
+
+ // Thumbnails should be less than 70% of the original size
+ let scale = Math.min(
+ horizontalScale, verticalScale, WINDOW_PREVIEW_MAXIMUM_SCALE);
+
+ let scaledLayoutWidth = layout.gridWidth * scale + hspacing;
+ let scaledLayoutHeight = layout.gridHeight * scale + vspacing;
+ let space = (scaledLayoutWidth * scaledLayoutHeight) / (area.width * area.height);
+
+ layout.scale = scale;
+
+ return [scale, space];
+ }
+
+ computeWindowSlots(layout, area) {
+ this._computeRowSizes(layout);
+
+ let { rows, scale } = layout;
+
+ let slots = [];
+
+ // Do this in three parts.
+ let heightWithoutSpacing = 0;
+ for (let i = 0; i < rows.length; i++) {
+ let row = rows[i];
+ heightWithoutSpacing += row.height;
+ }
+
+ let verticalSpacing = (rows.length - 1) * this._rowSpacing;
+ let additionalVerticalScale = Math.min(1, (area.height - verticalSpacing) / heightWithoutSpacing);
+
+ // keep track how much smaller the grid becomes due to scaling
+ // so it can be centered again
+ let compensation = 0;
+ let y = 0;
+
+ for (let i = 0; i < rows.length; i++) {
+ let row = rows[i];
+
+ // If this window layout row doesn't fit in the actual
+ // geometry, then apply an additional scale to it.
+ let horizontalSpacing = (row.windows.length - 1) * this._columnSpacing;
+ let widthWithoutSpacing = row.width - horizontalSpacing;
+ let additionalHorizontalScale = Math.min(1, (area.width - horizontalSpacing) / widthWithoutSpacing);
+
+ if (additionalHorizontalScale < additionalVerticalScale) {
+ row.additionalScale = additionalHorizontalScale;
+ // Only consider the scaling in addition to the vertical scaling for centering.
+ compensation += (additionalVerticalScale - additionalHorizontalScale) * row.height;
+ } else {
+ row.additionalScale = additionalVerticalScale;
+ // No compensation when scaling vertically since centering based on a too large
+ // height would undo what vertical scaling is trying to achieve.
+ }
+
+ row.x = area.x + (Math.max(area.width - (widthWithoutSpacing * row.additionalScale + horizontalSpacing), 0) / 2);
+ row.y = area.y + (Math.max(area.height - (heightWithoutSpacing + verticalSpacing), 0) / 2) + y;
+ y += row.height * row.additionalScale + this._rowSpacing;
+ }
+
+ compensation /= 2;
+
+ for (let i = 0; i < rows.length; i++) {
+ const row = rows[i];
+ const rowY = row.y + compensation;
+ const rowHeight = row.height * row.additionalScale;
+
+ let x = row.x;
+ for (let j = 0; j < row.windows.length; j++) {
+ let window = row.windows[j];
+
+ let s = scale * this._computeWindowScale(window) * row.additionalScale;
+ let cellWidth = window.boundingBox.width * s;
+ let cellHeight = window.boundingBox.height * s;
+
+ s = Math.min(s, WINDOW_PREVIEW_MAXIMUM_SCALE);
+ let cloneWidth = window.boundingBox.width * s;
+ const cloneHeight = window.boundingBox.height * s;
+
+ let cloneX = x + (cellWidth - cloneWidth) / 2;
+ let cloneY;
+
+ // If there's only one row, align windows vertically centered inside the row
+ if (rows.length === 1)
+ cloneY = rowY + (rowHeight - cloneHeight) / 2;
+ // If there are multiple rows, align windows to the bottom edge of the row
+ else
+ cloneY = rowY + rowHeight - cellHeight;
+
+ // Align with the pixel grid to prevent blurry windows at scale = 1
+ cloneX = Math.floor(cloneX);
+ cloneY = Math.floor(cloneY);
+
+ slots.push([cloneX, cloneY, cloneWidth, cloneHeight, window]);
+ x += cellWidth + this._columnSpacing;
+ }
+ }
+ return slots;
+ }
+}
+
+const WorkspaceBackground = {
+ _updateBorderRadius(value = false) {
+ // don't round already rounded corners during exposing windows
+ if (value === false && opt.OVERVIEW_MODE === 1)
+ return;
+
+ const { scaleFactor } = St.ThemeContext.get_for_stage(global.stage);
+ const cornerRadius = scaleFactor * opt.WS_PREVIEW_BG_RADIUS;
+
+ const backgroundContent = this._bgManager.backgroundActor.content;
+ value = value !== false
+ ? value
+ : this._stateAdjustment.value;
+
+ backgroundContent.rounded_clip_radius =
+ Util.lerp(0, cornerRadius, value);
+ },
+};
diff --git a/extensions/47/vertical-workspaces/lib/workspaceAnimation.js b/extensions/47/vertical-workspaces/lib/workspaceAnimation.js
new file mode 100644
index 0000000..e29e3ef
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/workspaceAnimation.js
@@ -0,0 +1,262 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * workspacesAnimation.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ *
+ */
+
+'use strict';
+
+import Clutter from 'gi://Clutter';
+import GObject from 'gi://GObject';
+import St from 'gi://St';
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+import * as Layout from 'resource:///org/gnome/shell/ui/layout.js';
+import * as WorkspaceSwitcherPopup from 'resource:///org/gnome/shell/ui/workspaceSwitcherPopup.js';
+import * as WorkspaceAnimation from 'resource:///org/gnome/shell/ui/workspaceAnimation.js';
+import * as Util from 'resource:///org/gnome/shell/misc/util.js';
+
+let Me;
+let opt;
+
+export const WorkspaceAnimationModule = class {
+ constructor(me) {
+ Me = me;
+ opt = Me.opt;
+
+ this._firstActivation = true;
+ this.moduleEnabled = false;
+ this._overrides = null;
+ this._origBaseDistance = null;
+ this._wsAnimationSwipeBeginId = 0;
+ this._wsAnimationSwipeUpdateId = 0;
+ this._wsAnimationSwipeEndId = 0;
+ }
+
+ cleanGlobals() {
+ Me = null;
+ opt = null;
+ }
+
+ update(reset) {
+ this.moduleEnabled = opt.get('workspaceAnimationModule');
+ const conflict = !WorkspaceAnimation.MonitorGroup;
+ if (conflict)
+ console.warn(`[${Me.metadata.name}] Warning: "WorkspaceAnimation" module disabled due to compatibility - GNOME Shell 45.1 or later is required`);
+
+ reset = reset || !this.moduleEnabled || conflict;
+
+ // don't touch the original code if module disabled
+ if (reset && !this._firstActivation) {
+ this._disableModule();
+ } else if (!reset) {
+ this._firstActivation = false;
+ this._activateModule();
+ }
+ if (reset && this._firstActivation)
+ console.debug(' WorkspaceAnimationModule - Keeping untouched');
+ }
+
+ _activateModule() {
+ if (!this._overrides)
+ this._overrides = new Me.Util.Overrides();
+
+ this._overrides.addOverride('MonitorGroup', WorkspaceAnimation.MonitorGroup.prototype, MonitorGroup);
+ this._connectWsAnimationSwipeTracker();
+
+ console.debug(' WorkspaceAnimationModule - Activated');
+ }
+
+ _disableModule() {
+ if (this._overrides)
+ this._overrides.removeAll();
+ this._overrides = null;
+ const reset = true;
+ this._connectWsAnimationSwipeTracker(reset);
+
+ console.debug(' WorkspaceAnimationModule - Disabled');
+ }
+
+ _connectWsAnimationSwipeTracker(reset = false) {
+ if (reset) {
+ if (this._wsAnimationSwipeBeginId) {
+ Main.wm._workspaceAnimation._swipeTracker.disconnect(this._wsAnimationSwipeBeginId);
+ this._wsAnimationSwipeBeginId = 0;
+ }
+ if (this._wsAnimationSwipeEndId) {
+ Main.wm._workspaceAnimation._swipeTracker.disconnect(this._wsAnimationSwipeEndId);
+ this._wsAnimationSwipeEndId = 0;
+ }
+ } else if (!this._wsAnimationSwipeBeginId) {
+ // display ws switcher popup when gesture begins and connect progress
+ this._wsAnimationSwipeBeginId = Main.wm._workspaceAnimation._swipeTracker.connect('begin', () => this._connectWsAnimationProgress(true));
+ // we want to be sure that popup with the final ws index show up when gesture ends
+ this._wsAnimationSwipeEndId = Main.wm._workspaceAnimation._swipeTracker.connect('end', (tracker, duration, endProgress) => this._connectWsAnimationProgress(false, endProgress));
+ }
+ }
+
+ _connectWsAnimationProgress(connect, endProgress = null) {
+ if (Main.overview.visible)
+ return;
+
+ if (connect && !this._wsAnimationSwipeUpdateId) {
+ this._wsAnimationSwipeUpdateId = Main.wm._workspaceAnimation._swipeTracker.connect('update', (tracker, progress) => this._showWsSwitcherPopup(progress));
+ } else if (!connect && this._wsAnimationSwipeUpdateId) {
+ Main.wm._workspaceAnimation._swipeTracker.disconnect(this._wsAnimationSwipeUpdateId);
+ this._wsAnimationSwipeUpdateId = 0;
+ this._showWsSwitcherPopup(Math.round(endProgress));
+ }
+ }
+
+ _showWsSwitcherPopup(progress) {
+ if (Main.overview.visible)
+ return;
+
+ const wsIndex = Math.round(progress);
+ if (Main.wm._workspaceSwitcherPopup === null) {
+ Main.wm._workspaceSwitcherPopup = new WorkspaceSwitcherPopup.WorkspaceSwitcherPopup();
+ Main.wm._workspaceSwitcherPopup.connect('destroy', () => {
+ Main.wm._workspaceSwitcherPopup = null;
+ });
+ }
+
+ Main.wm._workspaceSwitcherPopup.display(wsIndex);
+ }
+};
+
+const MonitorGroup = {
+ _init(monitor, workspaceIndices, movingWindow) {
+ St.Widget.prototype._init.bind(this)({
+ clip_to_allocation: true,
+ style_class: 'workspace-animation',
+ });
+
+ this._monitor = monitor;
+
+ const constraint = new Layout.MonitorConstraint({ index: monitor.index });
+ this.add_constraint(constraint);
+
+ this._container = new Clutter.Actor();
+ this.add_child(this._container);
+
+ const stickyGroup = new WorkspaceAnimation.WorkspaceGroup(null, monitor, movingWindow);
+ stickyGroup._windowRecords.forEach(r => {
+ const metaWin = r.windowActor.metaWindow;
+ // conky is sticky but should never get above other windows during ws animation
+ // so we hide it from the overlay group, we will see the original if not covered by other windows
+ if (metaWin.wm_class === 'conky')
+ r.clone.opacity = 0;
+ });
+ this.add_child(stickyGroup);
+
+ this._workspaceGroups = [];
+
+ const workspaceManager = global.workspace_manager;
+ const vertical = workspaceManager.layout_rows === -1;
+ const activeWorkspace = workspaceManager.get_active_workspace();
+
+ let x = 0;
+ let y = 0;
+
+ for (const i of workspaceIndices) {
+ const ws = workspaceManager.get_workspace_by_index(i);
+ const fullscreen = ws.list_windows().some(w => w.get_monitor() === monitor.index && w.is_fullscreen());
+
+ if (i > 0 && vertical && !fullscreen && monitor.index === Main.layoutManager.primaryIndex) {
+ // We have to shift windows up or down by the height of the panel to prevent having a
+ // visible gap between the windows while switching workspaces. Since fullscreen windows
+ // hide the panel, they don't need to be shifted up or down.
+ y -= Main.panel.height;
+ }
+
+ const group = new WorkspaceAnimation.WorkspaceGroup(ws, monitor, movingWindow);
+
+ this._workspaceGroups.push(group);
+ this._container.add_child(group);
+ group.set_position(x, y);
+
+ if (vertical)
+ y += this.baseDistance;
+ else if (Clutter.get_default_text_direction() === Clutter.TextDirection.RTL)
+ x -= this.baseDistance;
+ else
+ x += this.baseDistance;
+ }
+
+ this.progress = this.getWorkspaceProgress(activeWorkspace);
+
+ if (monitor.index === Main.layoutManager.primaryIndex) {
+ this._workspacesAdjustment = Main.createWorkspacesAdjustment(this);
+ this.bind_property_full('progress',
+ this._workspacesAdjustment, 'value',
+ GObject.BindingFlags.SYNC_CREATE,
+ (bind, source) => {
+ const indices = [
+ workspaceIndices[Math.floor(source)],
+ workspaceIndices[Math.ceil(source)],
+ ];
+ return [true, Util.lerp(...indices, source % 1.0)];
+ },
+ null);
+
+ this.connect('destroy', () => {
+ // for some reason _workspaceAdjustment bound to the progress property in V-Shell
+ // causes the adjustment doesn't reach a whole number
+ // when switching ws up and that breaks the showing overview animation
+ // as a workaround round workspacesDisplay._scrollAdjustment value on destroy
+ // but it should be handled elsewhere as this workaround doesn't work when this module is disabled
+ const workspacesAdj = Main.overview._overview.controls._workspacesDisplay._scrollAdjustment;
+ workspacesAdj.value = Math.round(workspacesAdj.value);
+ delete this._workspacesAdjustment;
+ });
+ }
+
+ if (!opt.STATIC_WS_SWITCHER_BG)
+ return;
+
+ // we have two options to implement static bg feature
+ // one is adding background to monitorGroup
+ // but this one has disadvantage - sticky windows will be always on top of animated windows
+ // which is bad for conky, for example, that window should be always below
+ /* this._bgManager = new Background.BackgroundManager({
+ container: this,
+ monitorIndex: this._monitor.index,
+ controlPosition: false,
+ });*/
+
+ // the second option is to make background of the monitorGroup transparent so the real desktop content will stay visible,
+ // hide windows that should be animated and keep only sticky windows
+ // we can keep certain sticky windows bellow and also extensions like DING (icons on desktop) will stay visible
+ this.set_style('background-color: transparent;');
+ // stickyGroup holds the Always on Visible Workspace windows to keep them static and above other windows during animation
+ this._hiddenWindows = [];
+ // remove (hide) background wallpaper from the animation, we will see the original one
+ this._workspaceGroups.forEach(w => {
+ w._background.opacity = 0;
+ });
+ // hide (scale to 0) all non-sticky windows, their clones will be animated
+ global.get_window_actors().forEach(actor => {
+ const metaWin = actor.metaWindow;
+ if (metaWin?.get_monitor() === this._monitor.index &&
+ !(metaWin?.wm_class === 'conky' && metaWin?.is_on_all_workspaces()) &&
+ !(metaWin?.wm_class === 'Gjs' && metaWin?.is_on_all_workspaces())) { // DING extension uses window with Gjs class
+ // hide original window. we cannot use opacity since it also affects clones.
+ // scaling them to 0 works well
+ actor.scale_x = 0;
+ this._hiddenWindows.push(actor);
+ }
+ });
+
+ // restore all hidden windows at the end of animation
+ // todo - actors removed during transition need to be removed from the list to avoid access to destroyed actor
+ this.connect('destroy', () => {
+ this._hiddenWindows.forEach(actor => {
+ actor.scale_x = 1;
+ });
+ });
+ },
+};
diff --git a/extensions/47/vertical-workspaces/lib/workspaceSwitcherPopup.js b/extensions/47/vertical-workspaces/lib/workspaceSwitcherPopup.js
new file mode 100644
index 0000000..cf3d4c1
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/workspaceSwitcherPopup.js
@@ -0,0 +1,107 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * workspacesSwitcherPopup.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ *
+ */
+
+'use strict';
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+import * as WorkspaceSwitcherPopup from 'resource:///org/gnome/shell/ui/workspaceSwitcherPopup.js';
+
+let Me;
+let opt;
+
+export const WorkspaceSwitcherPopupModule = class {
+ constructor(me) {
+ Me = me;
+ opt = Me.opt;
+
+ this._firstActivation = true;
+ this.moduleEnabled = false;
+ this._overrides = null;
+ }
+
+ cleanGlobals() {
+ Me = null;
+ opt = null;
+ }
+
+ update(reset) {
+ this.moduleEnabled = opt.get('workspaceSwitcherPopupModule');
+ const conflict = Me.Util.getEnabledExtensions('workspace-switcher-manager').length ||
+ Me.Util.getEnabledExtensions('WsSwitcherPopupManager').length;
+ if (conflict && !reset)
+ console.warn(`[${Me.metadata.name}] Warning: "WorkspaceSwitcherPopup" module disabled due to potential conflict with another extension`);
+
+ reset = reset || !this.moduleEnabled || conflict;
+
+ // don't touch original code if module disabled
+ if (reset && !this._firstActivation) {
+ this._disableModule();
+ } else if (!reset) {
+ this._firstActivation = false;
+ this._activateModule();
+ }
+ if (reset && this._firstActivation)
+ console.debug(' WorkspaceSwitcherPopupModule - Keeping untouched');
+ }
+
+ _activateModule() {
+ if (!this._overrides)
+ this._overrides = new Me.Util.Overrides();
+
+ this._overrides.addOverride('WorkspaceSwitcherPopup', WorkspaceSwitcherPopup.WorkspaceSwitcherPopup.prototype, WorkspaceSwitcherPopupCommon);
+ console.debug(' WorkspaceSwitcherPopupModule - Activated');
+ }
+
+ _disableModule() {
+ if (this._overrides)
+ this._overrides.removeAll();
+ this._overrides = null;
+
+ console.debug(' WorkspaceSwitcherPopupModule - Disabled');
+ }
+};
+
+const WorkspaceSwitcherPopupCommon = {
+ // injection to _init()
+ after__init() {
+ if (opt.ORIENTATION) { // 1-VERTICAL, 0-HORIZONTAL
+ this._list.vertical = true;
+ this._list.add_style_class_name('ws-switcher-vertical');
+ }
+ this._list.set_style('margin: 0;');
+ if (this.get_constraints()[0])
+ this.remove_constraint(this.get_constraints()[0]);
+ },
+
+ // injection to display()
+ after_display() {
+ if (opt.WS_SW_POPUP_MODE)
+ this._setPopupPosition();
+ else
+ this.opacity = 0;
+ },
+
+ _setPopupPosition() {
+ let workArea;
+ if (opt.WS_SW_POPUP_MODE === 1)
+ workArea = global.display.get_monitor_geometry(Main.layoutManager.primaryIndex);
+ else
+ workArea = global.display.get_monitor_geometry(global.display.get_current_monitor());
+
+
+ let [, natHeight] = this.get_preferred_height(global.screen_width);
+ let [, natWidth] = this.get_preferred_width(natHeight);
+ let h = opt.WS_SW_POPUP_H_POSITION;
+ let v = opt.WS_SW_POPUP_V_POSITION;
+ this.x = workArea.x + Math.floor((workArea.width - natWidth) * h);
+ this.y = workArea.y + Math.floor((workArea.height - natHeight) * v);
+ this.set_position(this.x, this.y);
+ },
+};
diff --git a/extensions/47/vertical-workspaces/lib/workspaceThumbnail.js b/extensions/47/vertical-workspaces/lib/workspaceThumbnail.js
new file mode 100644
index 0000000..cce5046
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/workspaceThumbnail.js
@@ -0,0 +1,1261 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * workspaceThumbnail.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ *
+ */
+
+'use strict';
+
+import GLib from 'gi://GLib';
+import Clutter from 'gi://Clutter';
+import St from 'gi://St';
+import Meta from 'gi://Meta';
+import Shell from 'gi://Shell';
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+import * as DND from 'resource:///org/gnome/shell/ui/dnd.js';
+import * as AppDisplay from 'resource:///org/gnome/shell/ui/appDisplay.js';
+import * as OverviewControls from 'resource:///org/gnome/shell/ui/overviewControls.js';
+import * as WorkspaceThumbnail from 'resource:///org/gnome/shell/ui/workspaceThumbnail.js';
+import * as Background from 'resource:///org/gnome/shell/ui/background.js';
+
+let Me;
+let opt;
+
+const ThumbnailState = {
+ NEW: 0,
+ EXPANDING: 1,
+ EXPANDED: 2,
+ ANIMATING_IN: 3,
+ NORMAL: 4,
+ REMOVING: 5,
+ ANIMATING_OUT: 6,
+ ANIMATED_OUT: 7,
+ COLLAPSING: 8,
+ DESTROYED: 9,
+};
+
+const ControlsState = OverviewControls.ControlsState;
+
+const WORKSPACE_CUT_SCALE = 0.15;
+const WORKSPACE_KEEP_ALIVE_TIME = 100;
+
+export const WorkspaceThumbnailModule = class {
+ constructor(me) {
+ Me = me;
+ opt = Me.opt;
+
+ this._firstActivation = true;
+ this.moduleEnabled = false;
+ this._overrides = null;
+ }
+
+ cleanGlobals() {
+ Me = null;
+ opt = null;
+ }
+
+ update(reset) {
+ this.moduleEnabled = true;
+ const conflict = false;
+
+ reset = reset || !this.moduleEnabled || conflict;
+
+ // don't touch the original code if module disabled
+ if (reset && !this._firstActivation) {
+ this._disableModule();
+ } else if (!reset) {
+ this._firstActivation = false;
+ this._activateModule();
+ }
+ if (reset && this._firstActivation)
+ console.debug(' WorkspaceThumbnailModule - Keeping untouched');
+ }
+
+ _activateModule() {
+ if (!this._overrides)
+ this._overrides = new Me.Util.Overrides();
+
+ // don't limit max thumbnail scale for other clients than overview, specifically AATWS.
+ // this variable is not yet implemented in 45.beta.1
+
+ this._overrides.addOverride('WorkspaceThumbnail', WorkspaceThumbnail.WorkspaceThumbnail.prototype, WorkspaceThumbnailCommon);
+ this._overrides.addOverride('ThumbnailsBoxCommon', WorkspaceThumbnail.ThumbnailsBox.prototype, ThumbnailsBoxCommon);
+ this._overrides.addOverride('WindowClone', WorkspaceThumbnail.WindowClone.prototype, WindowClone);
+
+ // replacing opt.ORIENTATION local constant with boxOrientation internal variable allows external customers such as the AATWS extension to control the box orientation.
+ Main.overview._overview.controls._thumbnailsBox._boxOrientation = opt.ORIENTATION;
+
+ console.debug(' WorkspaceThumbnailModule - Activated');
+ }
+
+ _disableModule() {
+ if (this._overrides)
+ this._overrides.removeAll();
+ this._overrides = null;
+
+ console.debug(' WorkspaceThumbnailModule - Disabled');
+ }
+};
+
+const WorkspaceThumbnailCommon = {
+ // injection to _init()
+ after__init() {
+ // layout manager allows aligning widget children
+ this.layout_manager = new Clutter.BinLayout();
+ // adding layout manager to tmb widget breaks wallpaper background aligning and rounded corners
+ // unless border is removed
+ if (opt.SHOW_WS_TMB_BG)
+ this.add_style_class_name('ws-tmb-labeled');
+ else
+ this.add_style_class_name('ws-tmb-transparent');
+
+ // add workspace thumbnails labels if enabled
+ if (opt.SHOW_WST_LABELS) { // 0 - disable
+ const getLabel = function () {
+ const wsIndex = this.metaWorkspace.index();
+ let label = `${wsIndex + 1}`;
+ if (opt.SHOW_WST_LABELS === 2) { // 2 - index + workspace name
+ const settings = Me.getSettings('org.gnome.desktop.wm.preferences');
+ const wsLabels = settings.get_strv('workspace-names');
+ if (wsLabels.length > wsIndex && wsLabels[wsIndex])
+ label += `: ${wsLabels[wsIndex]}`;
+ } else if (opt.SHOW_WST_LABELS === 3) { // 3- index + app name
+ // global.display.get_tab_list offers workspace filtering using the second argument, but...
+ // ... it sometimes includes windows from other workspaces, like minimized VBox machines, after Shell restarts
+ const metaWin = global.display.get_tab_list(0, null).filter(
+ w => w.get_monitor() === this.monitorIndex && w.get_workspace().index() === wsIndex)[0];
+
+ if (metaWin) {
+ const tracker = Shell.WindowTracker.get_default();
+ const app = tracker.get_window_app(metaWin);
+ label += `: ${app ? app.get_name() : ''}`;
+ }
+ } else if (opt.SHOW_WST_LABELS === 4) {
+ const metaWin = global.display.get_tab_list(0, null).filter(
+ w => w.get_monitor() === this.monitorIndex && w.get_workspace().index() === wsIndex)[0];
+
+ if (metaWin)
+ label += `: ${metaWin.title}`;
+ }
+ return label;
+ }.bind(this);
+
+ const label = getLabel();
+
+ this._wsLabel = new St.Label({
+ text: label,
+ style_class: 'ws-tmb-label',
+ x_align: Clutter.ActorAlign.FILL,
+ y_align: Clutter.ActorAlign.END,
+ x_expand: true,
+ y_expand: true,
+ });
+
+ this._wsLabel._maxOpacity = 255;
+ this._wsLabel.opacity = this._wsLabel._maxOpacity;
+
+ this.add_child(this._wsLabel);
+ this.set_child_above_sibling(this._wsLabel, null);
+
+ this._wsIndexConId = this.metaWorkspace.connect('notify::workspace-index', () => {
+ const newLabel = getLabel();
+ this._wsLabel.text = newLabel;
+ // avoid possibility of accessing non existing ws
+ if (this._updateLabelTimeout) {
+ GLib.source_remove(this._updateLabelTimeout);
+ this._updateLabelTimeout = 0;
+ }
+ });
+ this._nWindowsConId = this.metaWorkspace.connect('notify::n-windows', () => {
+ if (this._updateLabelTimeout)
+ return;
+ // wait for new data
+ this._updateLabelTimeout = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 250, () => {
+ const newLabel = getLabel();
+ this._wsLabel.text = newLabel;
+ this._updateLabelTimeout = 0;
+ return GLib.SOURCE_REMOVE;
+ });
+ });
+ }
+
+ if (opt.CLOSE_WS_BUTTON_MODE) {
+ const closeButton = new St.Icon({
+ style_class: 'workspace-close-button',
+ icon_name: 'window-close-symbolic',
+ x_align: Clutter.ActorAlign.END,
+ y_align: Clutter.ActorAlign.START,
+ x_expand: true,
+ y_expand: true,
+ reactive: true,
+ opacity: 0,
+ });
+
+ closeButton.connect('button-release-event', () => {
+ if (opt.CLOSE_WS_BUTTON_MODE) {
+ this._closeWorkspace();
+ return Clutter.EVENT_STOP;
+ } else {
+ return Clutter.EVENT_PROPAGATE;
+ }
+ });
+
+ closeButton.connect('button-press-event', () => {
+ return Clutter.EVENT_STOP;
+ });
+
+ closeButton.connect('enter-event', () => {
+ closeButton.opacity = 255;
+ if (!Meta.prefs_get_dynamic_workspaces() || (Meta.prefs_get_dynamic_workspaces() && global.workspace_manager.get_n_workspaces() - 1 !== this.metaWorkspace.index())) {
+ // color the button red if ready to react on clicks
+ if (opt.CLOSE_WS_BUTTON_MODE < 3 || (opt.CLOSE_WS_BUTTON_MODE === 3 && Me.Util.isCtrlPressed()))
+ closeButton.add_style_class_name('workspace-close-button-hover');
+ }
+ });
+
+ closeButton.connect('leave-event', () => {
+ closeButton.remove_style_class_name('workspace-close-button-hover');
+ });
+
+ this.add_child(closeButton);
+ this._closeButton = closeButton;
+
+ this.reactive = true;
+ this._lastCloseClickTime = 0;
+ }
+
+ if (opt.SHOW_WST_LABELS_ON_HOVER)
+ this._wsLabel.opacity = 0;
+
+ this.connect('enter-event', () => {
+ if (opt.CLOSE_WS_BUTTON_MODE && (!Meta.prefs_get_dynamic_workspaces() || (Meta.prefs_get_dynamic_workspaces() && global.workspace_manager.get_n_workspaces() - 1 !== this.metaWorkspace.index())))
+ this._closeButton.opacity = 200;
+ if (opt.SHOW_WST_LABELS_ON_HOVER) {
+ this._wsLabel.ease({
+ duration: 100,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ opacity: this._wsLabel._maxOpacity,
+ });
+ }
+ });
+
+ this.connect('leave-event', () => {
+ this._closeButton.opacity = 0;
+ if (opt.SHOW_WST_LABELS_ON_HOVER) {
+ this._wsLabel.ease({
+ duration: 100,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ opacity: 0,
+ });
+ }
+ });
+
+ if (opt.SHOW_WS_TMB_BG) {
+ this._bgManager = new Background.BackgroundManager({
+ monitorIndex: this.monitorIndex,
+ container: this._viewport,
+ vignette: false,
+ controlPosition: false,
+ });
+
+ this._viewport.set_child_below_sibling(this._bgManager.backgroundActor, null);
+
+ // full brightness of the thumbnail bg draws unnecessary attention
+ // there is a grey bg under the wallpaper
+ this._bgManager.backgroundActor.opacity = 220;
+ }
+
+ this.connect('destroy', () => {
+ if (this._wsIndexConId)
+ this.metaWorkspace.disconnect(this._wsIndexConId);
+
+ if (this._nWindowsConId)
+ this.metaWorkspace.disconnect(this._nWindowsConId);
+
+ if (this._updateLabelTimeout)
+ GLib.source_remove(this._updateLabelTimeout);
+
+ if (this._bgManager)
+ this._bgManager.destroy();
+ });
+ },
+
+ _closeWorkspace() {
+ // CLOSE_WS_BUTTON_MODE 1: single click, 2: double-click, 3: Ctrl
+
+ if (opt.CLOSE_WS_BUTTON_MODE === 2) {
+ const doubleClickTime = Clutter.Settings.get_default().double_click_time;
+ const clickDelay = Date.now() - this._lastCloseClickTime;
+ if (clickDelay > doubleClickTime) {
+ this._lastCloseClickTime = Date.now();
+ return;
+ }
+ } else if (opt.CLOSE_WS_BUTTON_MODE === 3 && !Me.Util.isCtrlPressed()) {
+ return;
+ }
+
+ // close windows on this monitor
+ const windows = global.display.get_tab_list(0, null).filter(
+ w => w.get_monitor() === this.monitorIndex && w.get_workspace() === this.metaWorkspace
+ );
+
+ for (let i = 0; i < windows.length; i++) {
+ if (!windows[i].is_on_all_workspaces())
+ windows[i].delete(global.get_current_time() + i);
+ }
+ },
+
+ activate(time) {
+ if (this.state > ThumbnailState.NORMAL)
+ return;
+
+ // if Static Workspace overview mode active, a click on the already active workspace should activate the window picker mode
+ const wsIndex = this.metaWorkspace.index();
+ const lastWsIndex = global.display.get_workspace_manager().get_n_workspaces() - 1;
+ const stateAdjustment = Main.overview._overview.controls._stateAdjustment;
+
+ if (stateAdjustment.value === ControlsState.APP_GRID) {
+ if (this.metaWorkspace.active) {
+ Main.overview._overview.controls._shiftState(Meta.MotionDirection.DOWN);
+ // if searchActive, hide it immediately
+ Main.overview.searchEntry.set_text('');
+ } else {
+ this.metaWorkspace.activate(time);
+ }
+ } else if (opt.OVERVIEW_MODE2 && !opt.WORKSPACE_MODE && wsIndex < lastWsIndex) {
+ if (stateAdjustment.value > 1)
+ stateAdjustment.value = 1;
+
+
+ // spread windows
+ // in OVERVIEW MODE 2 windows are not spread and workspace is not scaled
+ // we need to repeat transition to the overview state 1 (window picker), but with spreading windows animation
+ if (this.metaWorkspace.active) {
+ Main.overview.searchController._setSearchActive(false);
+ opt.WORKSPACE_MODE = 1;
+ // setting value to 0 would reset WORKSPACE_MODE
+ stateAdjustment.value = 0.01;
+ stateAdjustment.ease(1, {
+ duration: 200,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+ } else {
+ // switch ws
+ this.metaWorkspace.activate(time);
+ }
+ // a click on the current workspace should go back to the main view
+ } else if (this.metaWorkspace.active) {
+ Main.overview.hide();
+ } else {
+ this.metaWorkspace.activate(time);
+ }
+ },
+
+ // Draggable target interface used only by ThumbnailsBox
+ handleDragOverInternal(source, actor, time) {
+ if (source === Main.xdndHandler) {
+ this.metaWorkspace.activate(time);
+ return DND.DragMotionResult.CONTINUE;
+ }
+
+ if (this.state > ThumbnailState.NORMAL)
+ return DND.DragMotionResult.CONTINUE;
+
+ if (source.metaWindow &&
+ !this._isMyWindow(source.metaWindow.get_compositor_private()))
+ return DND.DragMotionResult.MOVE_DROP;
+ if (source.app && source.app.can_open_new_window())
+ return DND.DragMotionResult.COPY_DROP;
+ if (!source.app && source.shellWorkspaceLaunch)
+ return DND.DragMotionResult.COPY_DROP;
+
+ if (source instanceof AppDisplay.FolderIcon)
+ return DND.DragMotionResult.COPY_DROP;
+
+
+ return DND.DragMotionResult.CONTINUE;
+ },
+
+ acceptDropInternal(source, actor, time) {
+ if (this.state > ThumbnailState.NORMAL)
+ return false;
+
+ if (source.metaWindow) {
+ let win = source.metaWindow.get_compositor_private();
+ if (this._isMyWindow(win))
+ return false;
+
+ let metaWindow = win.get_meta_window();
+ Main.moveWindowToMonitorAndWorkspace(metaWindow,
+ this.monitorIndex, this.metaWorkspace.index());
+ return true;
+ } else if (source.app && source.app.can_open_new_window()) {
+ if (source.animateLaunchAtPos)
+ source.animateLaunchAtPos(actor.x, actor.y);
+
+ source.app.open_new_window(this.metaWorkspace.index());
+ return true;
+ } else if (!source.app && source.shellWorkspaceLaunch) {
+ // While unused in our own drag sources, shellWorkspaceLaunch allows
+ // extensions to define custom actions for their drag sources.
+ source.shellWorkspaceLaunch({
+ workspace: this.metaWorkspace.index(),
+ timestamp: time,
+ });
+ return true;
+ } else if (source instanceof AppDisplay.FolderIcon) {
+ for (let app of source.view._apps) {
+ // const app = Shell.AppSystem.get_default().lookup_app(id);
+ app.open_new_window(this.metaWorkspace.index());
+ }
+ }
+
+ return false;
+ },
+};
+
+const ThumbnailsBoxCommon = {
+ after__init(scrollAdjustment, monitorIndex, orientation = opt.ORIENTATION) {
+ this._boxOrientation = orientation;
+ },
+
+ _activateThumbnailAtPoint(stageX, stageY, time, activateCurrent = false) {
+ if (activateCurrent) {
+ const thumbnail = this._thumbnails.find(t => t.metaWorkspace.active);
+ if (thumbnail)
+ thumbnail.activate(time);
+ return;
+ }
+ const [r_, x, y] = this.transform_stage_point(stageX, stageY);
+
+ let thumbnail;
+
+ if (this._boxOrientation)
+ thumbnail = this._thumbnails.find(t => y >= t.y && y <= t.y + t.height);
+ else
+ thumbnail = this._thumbnails.find(t => x >= t.x && x <= t.x + t.width);
+
+ if (thumbnail)
+ thumbnail.activate(time);
+ },
+
+ acceptDrop(source, actor, x, y, time) {
+ if (this._dropWorkspace !== -1) {
+ return this._thumbnails[this._dropWorkspace].acceptDropInternal(source, actor, time);
+ } else if (this._dropPlaceholderPos !== -1) {
+ if (!source.metaWindow &&
+ (!source.app || !source.app.can_open_new_window()) &&
+ (source.app || !source.shellWorkspaceLaunch) &&
+ !(source instanceof AppDisplay.FolderIcon))
+ return false;
+
+
+ let isWindow = !!source.metaWindow;
+
+ let newWorkspaceIndex;
+ [newWorkspaceIndex, this._dropPlaceholderPos] = [this._dropPlaceholderPos, -1];
+ this._spliceIndex = newWorkspaceIndex;
+
+ Main.wm.insertWorkspace(newWorkspaceIndex);
+
+ if (isWindow) {
+ // Move the window to our monitor first if necessary.
+ let thumbMonitor = this._thumbnails[newWorkspaceIndex].monitorIndex;
+ Main.moveWindowToMonitorAndWorkspace(source.metaWindow,
+ thumbMonitor, newWorkspaceIndex, true);
+ } else if (source.app && source.app.can_open_new_window()) {
+ if (source.animateLaunchAtPos)
+ source.animateLaunchAtPos(actor.x, actor.y);
+
+ source.app.open_new_window(newWorkspaceIndex);
+ } else if (!source.app && source.shellWorkspaceLaunch) {
+ // While unused in our own drag sources, shellWorkspaceLaunch allows
+ // extensions to define custom actions for their drag sources.
+ source.shellWorkspaceLaunch({
+ workspace: newWorkspaceIndex,
+ timestamp: time,
+ });
+ } else if (source instanceof AppDisplay.FolderIcon) {
+ for (let app of source.view._apps) {
+ // const app = Shell.AppSystem.get_default().lookup_app(id);
+ app.open_new_window(newWorkspaceIndex);
+ }
+ }
+
+ if (source.app || (!source.app && source.shellWorkspaceLaunch)) {
+ // This new workspace will be automatically removed if the application fails
+ // to open its first window within some time, as tracked by Shell.WindowTracker.
+ // Here, we only add a very brief timeout to avoid the _immediate_ removal of the
+ // workspace while we wait for the startup sequence to load.
+ let workspaceManager = global.workspace_manager;
+ Main.wm.keepWorkspaceAlive(workspaceManager.get_workspace_by_index(newWorkspaceIndex),
+ WORKSPACE_KEEP_ALIVE_TIME);
+ }
+
+ // Start the animation on the workspace (which is actually
+ // an old one which just became empty)
+ let thumbnail = this._thumbnails[newWorkspaceIndex];
+ this._setThumbnailState(thumbnail, ThumbnailState.NEW);
+ thumbnail.slide_position = 1;
+ thumbnail.collapse_fraction = 1;
+
+ this._queueUpdateStates();
+
+ return true;
+ } else {
+ return false;
+ }
+ },
+
+ handleDragOver(source, actor, x, y, time) {
+ // switch axis for vertical orientation
+ if (this._boxOrientation)
+ x = y;
+
+ if (!source.metaWindow &&
+ (!source.app || !source.app.can_open_new_window()) &&
+ (source.app || !source.shellWorkspaceLaunch) &&
+ source !== Main.xdndHandler && !(source instanceof AppDisplay.FolderIcon))
+ return DND.DragMotionResult.CONTINUE;
+
+ const rtl = Clutter.get_default_text_direction() === Clutter.TextDirection.RTL;
+ let canCreateWorkspaces = Meta.prefs_get_dynamic_workspaces();
+ let spacing = this.get_theme_node().get_length('spacing');
+
+ this._dropWorkspace = -1;
+ let placeholderPos = -1;
+ let length = this._thumbnails.length;
+ for (let i = 0; i < length; i++) {
+ const index = rtl ? length - i - 1 : i;
+
+ if (canCreateWorkspaces && source !== Main.xdndHandler) {
+ const [targetStart, targetEnd] =
+ this._getPlaceholderTarget(index, spacing, rtl);
+
+ if (x > targetStart && x <= targetEnd) {
+ placeholderPos = index;
+ break;
+ }
+ }
+
+ if (this._withinWorkspace(x, index, rtl)) {
+ this._dropWorkspace = index;
+ break;
+ }
+ }
+
+ if (this._dropPlaceholderPos !== placeholderPos) {
+ this._dropPlaceholderPos = placeholderPos;
+ this.queue_relayout();
+ }
+
+ if (this._dropWorkspace !== -1)
+ return this._thumbnails[this._dropWorkspace].handleDragOverInternal(source, actor, time);
+ else if (this._dropPlaceholderPos !== -1)
+ return source.metaWindow ? DND.DragMotionResult.MOVE_DROP : DND.DragMotionResult.COPY_DROP;
+ else
+ return DND.DragMotionResult.CONTINUE;
+ },
+
+ _updateStates() {
+ const controlsManager = Main.overview._overview.controls;
+ const { currentState } = controlsManager._stateAdjustment.getStateTransitionParams();
+ this.SLIDE_ANIMATION_TIME = 200;
+ this.RESCALE_ANIMATION_TIME = 200;
+ // remove rescale animation during this scale transition, it is redundant and delayed
+ if ((currentState < 2 && currentState > 1) || controlsManager._searchController.searchActive)
+ this.RESCALE_ANIMATION_TIME = 0;
+
+ this._updateStateId = 0;
+
+ // If we are animating the indicator, wait
+ if (this._animatingIndicator)
+ return;
+
+ // Likewise if we are in the process of hiding
+ if (!this._shouldShow && this.visible)
+ return;
+
+ // Then slide out any thumbnails that have been destroyed
+ this._iterateStateThumbnails(ThumbnailState.REMOVING, thumbnail => {
+ this._setThumbnailState(thumbnail, ThumbnailState.ANIMATING_OUT);
+
+ thumbnail.ease_property('slide-position', 1, {
+ duration: this.SLIDE_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.LINEAR,
+ onComplete: () => {
+ this._setThumbnailState(thumbnail, ThumbnailState.ANIMATED_OUT);
+ this._queueUpdateStates();
+ },
+ });
+ });
+
+ // As long as things are sliding out, don't proceed
+ if (this._stateCounts[ThumbnailState.ANIMATING_OUT] > 0)
+ return;
+
+ // Once that's complete, we can start scaling to the new size,
+ // collapse any removed thumbnails and expand added ones
+ this._iterateStateThumbnails(ThumbnailState.ANIMATED_OUT, thumbnail => {
+ this._setThumbnailState(thumbnail, ThumbnailState.COLLAPSING);
+ thumbnail.ease_property('collapse-fraction', 1, {
+ duration: this.RESCALE_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ onComplete: () => {
+ this._stateCounts[thumbnail.state]--;
+ thumbnail.state = ThumbnailState.DESTROYED;
+
+ let index = this._thumbnails.indexOf(thumbnail);
+ this._thumbnails.splice(index, 1);
+ thumbnail.destroy();
+
+ this._queueUpdateStates();
+ },
+ });
+ });
+
+ this._iterateStateThumbnails(ThumbnailState.NEW, thumbnail => {
+ this._setThumbnailState(thumbnail, ThumbnailState.EXPANDING);
+ thumbnail.ease_property('collapse-fraction', 0, {
+ duration: this.SLIDE_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ onComplete: () => {
+ this._setThumbnailState(thumbnail, ThumbnailState.EXPANDED);
+ this._queueUpdateStates();
+ },
+ });
+ });
+
+ if (this._pendingScaleUpdate) {
+ this.ease_property('scale', this._targetScale, {
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ duration: this.RESCALE_ANIMATION_TIME,
+ onComplete: () => this._queueUpdateStates(),
+ });
+ this._queueUpdateStates();
+ this._pendingScaleUpdate = false;
+ }
+
+ // Wait until that's done
+ if (this._scale !== this._targetScale ||
+ this._stateCounts[ThumbnailState.COLLAPSING] > 0 ||
+ this._stateCounts[ThumbnailState.EXPANDING] > 0)
+ return;
+
+ // And then slide in any new thumbnails
+ this._iterateStateThumbnails(ThumbnailState.EXPANDED, thumbnail => {
+ this._setThumbnailState(thumbnail, ThumbnailState.ANIMATING_IN);
+ thumbnail.ease_property('slide-position', 0, {
+ duration: this.SLIDE_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ onComplete: () => {
+ this._setThumbnailState(thumbnail, ThumbnailState.NORMAL);
+ },
+ });
+ });
+ },
+
+ _getPlaceholderTarget(...args) {
+ if (this._boxOrientation)
+ return ThumbnailsBoxVertical._getPlaceholderTarget.bind(this)(...args);
+ else
+ return ThumbnailsBoxHorizontal._getPlaceholderTarget.bind(this)(...args);
+ },
+
+ _withinWorkspace(...args) {
+ if (this._boxOrientation)
+ return ThumbnailsBoxVertical._withinWorkspace.bind(this)(...args);
+ else
+ return ThumbnailsBoxHorizontal._withinWorkspace.bind(this)(...args);
+ },
+
+ vfunc_get_preferred_width(...args) {
+ if (this._boxOrientation)
+ return ThumbnailsBoxVertical.vfunc_get_preferred_width.bind(this)(...args);
+ else
+ return ThumbnailsBoxHorizontal.vfunc_get_preferred_width.bind(this)(...args);
+ },
+
+ vfunc_get_preferred_height(...args) {
+ if (this._boxOrientation)
+ return ThumbnailsBoxVertical.vfunc_get_preferred_height.bind(this)(...args);
+ else
+ return ThumbnailsBoxHorizontal.vfunc_get_preferred_height.bind(this)(...args);
+ },
+
+ vfunc_allocate(...args) {
+ if (this._boxOrientation)
+ return ThumbnailsBoxVertical.vfunc_allocate.bind(this)(...args);
+ else
+ return ThumbnailsBoxHorizontal.vfunc_allocate.bind(this)(...args);
+ },
+
+ _updateShouldShow(...args) {
+ if (this._boxOrientation)
+ return ThumbnailsBoxVertical._updateShouldShow.bind(this)(...args);
+ else
+ return ThumbnailsBoxHorizontal._updateShouldShow.bind(this)(...args);
+ },
+};
+
+function _getWorkspaceCutSize(tmbSize, index) {
+ let cutSize = WORKSPACE_CUT_SCALE * tmbSize;
+ // Compensate for the missing thumbnail in front of the first one
+ if (index === 0)
+ cutSize *= 1.5;
+ return Math.floor(cutSize);
+}
+
+const ThumbnailsBoxVertical = {
+ _getPlaceholderTarget(index, spacing, rtl) {
+ this._dropPlaceholder.add_style_class_name('placeholder-vertical');
+ const workspace = this._thumbnails[index];
+ const WORKSPACE_CUT_SIZE = _getWorkspaceCutSize(workspace.height, index);
+
+ let targetY1;
+ let targetY2;
+
+ if (rtl) {
+ const baseY = workspace.y + workspace.height;
+ targetY1 = baseY - WORKSPACE_CUT_SIZE;
+ targetY2 = baseY + spacing + WORKSPACE_CUT_SIZE;
+ } else {
+ targetY1 = workspace.y - spacing - WORKSPACE_CUT_SIZE;
+ targetY2 = workspace.y + WORKSPACE_CUT_SIZE;
+ }
+
+ if (index === 0) {
+ if (rtl)
+ targetY2 -= spacing + WORKSPACE_CUT_SIZE;
+ else
+ targetY1 += spacing + WORKSPACE_CUT_SIZE;
+ }
+
+ if (index === this._dropPlaceholderPos) {
+ const placeholderHeight = this._dropPlaceholder.get_height() + spacing;
+ if (rtl)
+ targetY2 += placeholderHeight;
+ else
+ targetY1 -= placeholderHeight;
+ }
+
+ return [targetY1, targetY2];
+ },
+
+ _withinWorkspace(y, index, rtl) {
+ const length = this._thumbnails.length;
+ const workspace = this._thumbnails[index];
+ const WORKSPACE_CUT_SIZE = _getWorkspaceCutSize(workspace.height, index);
+
+ let workspaceY1 = workspace.y + WORKSPACE_CUT_SIZE;
+ let workspaceY2 = workspace.y + workspace.height - WORKSPACE_CUT_SIZE;
+
+ if (index === length - 1) {
+ if (rtl)
+ workspaceY1 -= WORKSPACE_CUT_SIZE;
+ else
+ workspaceY2 += WORKSPACE_CUT_SIZE;
+ }
+
+ return y > workspaceY1 && y <= workspaceY2;
+ },
+
+ vfunc_get_preferred_width(forHeight) {
+ if (forHeight < 10)
+ return [this._porthole.width, this._porthole.width];
+
+ let themeNode = this.get_theme_node();
+
+ forHeight = themeNode.adjust_for_width(forHeight);
+
+ let spacing = themeNode.get_length('spacing');
+ let nWorkspaces = this._thumbnails.length;
+ let totalSpacing = (nWorkspaces - 1) * spacing;
+
+ const avail = forHeight - totalSpacing;
+
+ let scale = (avail / nWorkspaces) / this._porthole.height;
+
+ const width = Math.round(this._porthole.width * scale);
+ return themeNode.adjust_preferred_height(width, width);
+ },
+
+ vfunc_get_preferred_height(forWidth) {
+ if (forWidth < 10)
+ return [0, this._porthole.height];
+ let themeNode = this.get_theme_node();
+
+ let spacing = themeNode.get_length('spacing');
+ let nWorkspaces = this._thumbnails.length;
+
+ // remove also top/bottom box padding
+ let totalSpacing = (nWorkspaces - 3) * spacing;
+
+ const ratio = this._porthole.width / this._porthole.height;
+ const tmbHeight = themeNode.adjust_for_width(forWidth) / ratio;
+
+ const naturalHeight = Math.round(
+ this._thumbnails.reduce((accumulator, thumbnail/* , index*/) => {
+ const progress = 1 - thumbnail.collapse_fraction;
+ const height = tmbHeight * progress;
+ return accumulator + height;
+ }, 0)
+ );
+ return themeNode.adjust_preferred_width(totalSpacing, naturalHeight);
+ },
+
+ // removes extra space (extraWidth in the original function), we need the box as accurate as possible
+ // for precise app grid transition animation
+ vfunc_allocate(box) {
+ this.set_allocation(box);
+
+ let rtl = Clutter.get_default_text_direction() === Clutter.TextDirection.RTL;
+
+ if (this._thumbnails.length === 0) // not visible
+ return;
+
+ let themeNode = this.get_theme_node();
+ box = themeNode.get_content_box(box);
+
+ const portholeWidth = this._porthole.width;
+ const portholeHeight = this._porthole.height;
+ const spacing = themeNode.get_length('spacing');
+
+ /* const nWorkspaces = this._thumbnails.length;*/
+
+ // Compute the scale we'll need once everything is updated,
+ // unless we are currently transitioning
+ if (this._expandFraction === 1) {
+ // remove size "breathing" during adding/removing workspaces
+
+ /* const totalSpacing = (nWorkspaces - 1) * spacing;
+ const availableHeight = (box.get_height() - totalSpacing) / nWorkspaces; */
+
+ const hScale = box.get_width() / portholeWidth;
+ /* const vScale = availableHeight / portholeHeight;*/
+ const vScale = box.get_height() / portholeHeight;
+ const newScale = Math.min(hScale, vScale);
+
+ if (newScale !== this._targetScale) {
+ if (this._targetScale > 0) {
+ // We don't ease immediately because we need to observe the
+ // ordering in queueUpdateStates - if workspaces have been
+ // removed we need to slide them out as the first thing.
+ this._targetScale = newScale;
+ this._pendingScaleUpdate = true;
+ } else {
+ this._targetScale = this._scale = newScale;
+ }
+
+ this._queueUpdateStates();
+ }
+ }
+
+ const ratio = portholeWidth / portholeHeight;
+ const thumbnailFullHeight = Math.round(portholeHeight * this._scale);
+ const thumbnailWidth = Math.round(thumbnailFullHeight * ratio);
+ const thumbnailHeight = thumbnailFullHeight * this._expandFraction;
+ const roundedVScale = thumbnailHeight / portholeHeight;
+
+ let indicatorValue = this._scrollAdjustment.value;
+ let indicatorUpperWs = Math.ceil(indicatorValue);
+ let indicatorLowerWs = Math.floor(indicatorValue);
+
+ let indicatorLowerY1 = 0;
+ let indicatorLowerY2 = 0;
+ let indicatorUpperY1 = 0;
+ let indicatorUpperY2 = 0;
+
+ let indicatorThemeNode = this._indicator.get_theme_node();
+ let indicatorTopFullBorder = indicatorThemeNode.get_padding(St.Side.TOP) + indicatorThemeNode.get_border_width(St.Side.TOP);
+ let indicatorBottomFullBorder = indicatorThemeNode.get_padding(St.Side.BOTTOM) + indicatorThemeNode.get_border_width(St.Side.BOTTOM);
+ let indicatorLeftFullBorder = indicatorThemeNode.get_padding(St.Side.LEFT) + indicatorThemeNode.get_border_width(St.Side.LEFT);
+ let indicatorRightFullBorder = indicatorThemeNode.get_padding(St.Side.RIGHT) + indicatorThemeNode.get_border_width(St.Side.RIGHT);
+
+ let y = box.y1;
+
+ if (this._dropPlaceholderPos === -1) {
+ this._dropPlaceholder.allocate_preferred_size(
+ ...this._dropPlaceholder.get_position());
+
+ const laters = global.compositor.get_laters();
+ laters.add(Meta.LaterType.BEFORE_REDRAW, () => {
+ this._dropPlaceholder.hide();
+ });
+ }
+
+ let childBox = new Clutter.ActorBox();
+
+ for (let i = 0; i < this._thumbnails.length; i++) {
+ const thumbnail = this._thumbnails[i];
+ if (i > 0)
+ y += spacing - Math.round(thumbnail.collapse_fraction * spacing);
+
+ const x1 = box.x1;
+ const x2 = x1 + thumbnailWidth;
+
+ if (i === this._dropPlaceholderPos) {
+ let [, placeholderHeight] = this._dropPlaceholder.get_preferred_width(-1);
+ childBox.x1 = x1;
+ childBox.x2 = x2;
+
+ if (rtl) {
+ childBox.y2 = box.y2 - Math.round(y);
+ childBox.y1 = box.y2 - Math.round(y + placeholderHeight);
+ } else {
+ childBox.y1 = Math.round(y);
+ childBox.y2 = Math.round(y + placeholderHeight);
+ }
+
+ this._dropPlaceholder.allocate(childBox);
+
+ const laters = global.compositor.get_laters();
+ laters.add(Meta.LaterType.BEFORE_REDRAW, () => {
+ this._dropPlaceholder.show();
+ });
+ y += placeholderHeight + spacing;
+ }
+
+ // We might end up with thumbnailWidth being something like 99.33
+ // pixels. To make this work and not end up with a gap at the end,
+ // we need some thumbnails to be 99 pixels and some 100 pixels width;
+ // we compute an actual scale separately for each thumbnail.
+ const y1 = Math.round(y);
+ const y2 = Math.round(y + thumbnailHeight);
+ const roundedHScale = (y2 - y1) / portholeHeight;
+
+ // Allocating a scaled actor is funny - x1/y1 correspond to the origin
+ // of the actor, but x2/y2 are increased by the *unscaled* size.
+ if (rtl) {
+ childBox.y2 = box.y2 - y1;
+ childBox.y1 = box.y2 - (y1 + thumbnailHeight);
+ } else {
+ childBox.y1 = y1;
+ childBox.y2 = y1 + thumbnailHeight;
+ }
+ childBox.x1 = x1;
+ childBox.x2 = x1 + thumbnailWidth;
+
+ thumbnail.setScale(roundedHScale, roundedVScale);
+ thumbnail.allocate(childBox);
+
+ if (i === indicatorUpperWs) {
+ indicatorUpperY1 = childBox.y1;
+ indicatorUpperY2 = childBox.y2;
+ }
+ if (i === indicatorLowerWs) {
+ indicatorLowerY1 = childBox.y1;
+ indicatorLowerY2 = childBox.y2;
+ }
+
+ // We round the collapsing portion so that we don't get thumbnails resizing
+ // during an animation due to differences in rounded, but leave the uncollapsed
+ // portion unrounded so that non-animating we end up with the right total
+ y += thumbnailHeight - Math.round(thumbnailHeight * thumbnail.collapse_fraction);
+ }
+
+ childBox.x1 = box.x1;
+ childBox.x2 = box.x1 + thumbnailWidth;
+
+ const indicatorY1 = indicatorLowerY1 +
+ (indicatorUpperY1 - indicatorLowerY1) * (indicatorValue % 1);
+ const indicatorY2 = indicatorLowerY2 +
+ (indicatorUpperY2 - indicatorLowerY2) * (indicatorValue % 1);
+
+ childBox.y1 = indicatorY1 - indicatorTopFullBorder;
+ childBox.y2 = indicatorY2 + indicatorBottomFullBorder;
+ childBox.x1 -= indicatorLeftFullBorder;
+ childBox.x2 += indicatorRightFullBorder;
+ this._indicator.allocate(childBox);
+ },
+
+ _updateShouldShow() {
+ const shouldShow = opt.SHOW_WS_TMB;
+ if (this._shouldShow === shouldShow)
+ return;
+
+ this._shouldShow = shouldShow;
+ this.notify('should-show');
+ },
+};
+
+// ThumbnailsBox Horizontal
+
+const ThumbnailsBoxHorizontal = {
+ _getPlaceholderTarget(index, spacing, rtl) {
+ const workspace = this._thumbnails[index];
+ const WORKSPACE_CUT_SIZE = _getWorkspaceCutSize(workspace.width, index);
+
+ let targetX1;
+ let targetX2;
+
+ if (rtl) {
+ const baseX = workspace.x + workspace.width;
+ targetX1 = baseX - WORKSPACE_CUT_SIZE;
+ targetX2 = baseX + spacing + WORKSPACE_CUT_SIZE;
+ } else {
+ targetX1 = workspace.x - spacing - WORKSPACE_CUT_SIZE;
+ targetX2 = workspace.x + WORKSPACE_CUT_SIZE;
+ }
+
+ if (index === 0) {
+ if (rtl)
+ targetX2 -= spacing + WORKSPACE_CUT_SIZE;
+ else
+ targetX1 += spacing + WORKSPACE_CUT_SIZE;
+ }
+
+ if (index === this._dropPlaceholderPos) {
+ const placeholderWidth = this._dropPlaceholder.get_width() + spacing;
+ if (rtl)
+ targetX2 += placeholderWidth;
+ else
+ targetX1 -= placeholderWidth;
+ }
+
+ return [targetX1, targetX2];
+ },
+
+ _withinWorkspace(x, index, rtl) {
+ const length = this._thumbnails.length;
+ const workspace = this._thumbnails[index];
+ const WORKSPACE_CUT_SIZE = _getWorkspaceCutSize(workspace.width, index);
+
+ let workspaceX1 = workspace.x + WORKSPACE_CUT_SIZE;
+ let workspaceX2 = workspace.x + workspace.width - WORKSPACE_CUT_SIZE;
+
+ if (index === length - 1) {
+ if (rtl)
+ workspaceX1 -= WORKSPACE_CUT_SIZE;
+ else
+ workspaceX2 += WORKSPACE_CUT_SIZE;
+ }
+
+ return x > workspaceX1 && x <= workspaceX2;
+ },
+
+ vfunc_get_preferred_height(forWidth) {
+ if (forWidth < 10)
+ return [this._porthole.height, this._porthole.height];
+
+ let themeNode = this.get_theme_node();
+
+ forWidth = themeNode.adjust_for_width(forWidth);
+
+ let spacing = themeNode.get_length('spacing');
+ let nWorkspaces = this._thumbnails.length;
+ let totalSpacing = (nWorkspaces - 1) * spacing;
+
+ const avail = forWidth - totalSpacing;
+
+ let scale = (avail / nWorkspaces) / this._porthole.width;
+
+ const height = Math.round(this._porthole.height * scale);
+
+ return themeNode.adjust_preferred_height(height, height);
+ },
+
+ vfunc_get_preferred_width(forHeight) {
+ if (forHeight < 10)
+ return [0, this._porthole.width];
+
+ let themeNode = this.get_theme_node();
+
+ let spacing = themeNode.get_length('spacing');
+ let nWorkspaces = this._thumbnails.length;
+ // remove also left/right box padding from the total spacing
+ let totalSpacing = (nWorkspaces - 3) * spacing;
+
+ const ratio = this._porthole.height / this._porthole.width;
+
+ const tmbWidth = themeNode.adjust_for_height(forHeight) / ratio;
+
+ const naturalWidth = Math.round(
+ this._thumbnails.reduce((accumulator, thumbnail) => {
+ const progress = 1 - thumbnail.collapse_fraction;
+ const width = tmbWidth * progress;
+ return accumulator + width;
+ }, 0)
+ );
+
+ return themeNode.adjust_preferred_width(totalSpacing, naturalWidth);
+ },
+
+ vfunc_allocate(box) {
+ this.set_allocation(box);
+
+ let rtl = Clutter.get_default_text_direction() === Clutter.TextDirection.RTL;
+
+ if (this._thumbnails.length === 0) // not visible
+ return;
+
+ let themeNode = this.get_theme_node();
+ box = themeNode.get_content_box(box);
+
+ const portholeWidth = this._porthole.width;
+ const portholeHeight = this._porthole.height;
+ const spacing = themeNode.get_length('spacing');
+
+ /* const nWorkspaces = this._thumbnails.length; */
+
+ // Compute the scale we'll need once everything is updated,
+ // unless we are currently transitioning
+ if (this._expandFraction === 1) {
+ // remove size "breathing" during adding/removing workspaces
+
+ /* const totalSpacing = (nWorkspaces - 1) * spacing;
+ const availableWidth = (box.get_width() - totalSpacing) / nWorkspaces;
+
+ const hScale = availableWidth / portholeWidth; */
+ const hScale = box.get_width() / portholeWidth;
+ const vScale = box.get_height() / portholeHeight;
+ const newScale = Math.min(hScale, vScale);
+
+ if (newScale !== this._targetScale) {
+ if (this._targetScale > 0) {
+ // We don't ease immediately because we need to observe the
+ // ordering in queueUpdateStates - if workspaces have been
+ // removed we need to slide them out as the first thing.
+ this._targetScale = newScale;
+ this._pendingScaleUpdate = true;
+ } else {
+ this._targetScale = this._scale = newScale;
+ }
+
+ this._queueUpdateStates();
+ }
+ }
+
+ const ratio = portholeWidth / portholeHeight;
+ const thumbnailFullHeight = Math.round(portholeHeight * this._scale);
+ const thumbnailWidth = Math.round(thumbnailFullHeight * ratio);
+ const thumbnailHeight = thumbnailFullHeight * this._expandFraction;
+ const roundedVScale = thumbnailHeight / portholeHeight;
+
+ let indicatorValue = this._scrollAdjustment.value;
+ let indicatorUpperWs = Math.ceil(indicatorValue);
+ let indicatorLowerWs = Math.floor(indicatorValue);
+
+ let indicatorLowerX1 = 0;
+ let indicatorLowerX2 = 0;
+ let indicatorUpperX1 = 0;
+ let indicatorUpperX2 = 0;
+
+ let indicatorThemeNode = this._indicator.get_theme_node();
+ let indicatorTopFullBorder = indicatorThemeNode.get_padding(St.Side.TOP) + indicatorThemeNode.get_border_width(St.Side.TOP);
+ let indicatorBottomFullBorder = indicatorThemeNode.get_padding(St.Side.BOTTOM) + indicatorThemeNode.get_border_width(St.Side.BOTTOM);
+ let indicatorLeftFullBorder = indicatorThemeNode.get_padding(St.Side.LEFT) + indicatorThemeNode.get_border_width(St.Side.LEFT);
+ let indicatorRightFullBorder = indicatorThemeNode.get_padding(St.Side.RIGHT) + indicatorThemeNode.get_border_width(St.Side.RIGHT);
+
+ let x = box.x1;
+
+ if (this._dropPlaceholderPos === -1) {
+ this._dropPlaceholder.allocate_preferred_size(
+ ...this._dropPlaceholder.get_position());
+
+ const laters = global.compositor.get_laters();
+ laters.add(Meta.LaterType.BEFORE_REDRAW, () => {
+ this._dropPlaceholder.hide();
+ });
+ }
+
+ let childBox = new Clutter.ActorBox();
+
+ for (let i = 0; i < this._thumbnails.length; i++) {
+ const thumbnail = this._thumbnails[i];
+ if (i > 0)
+ x += spacing - Math.round(thumbnail.collapse_fraction * spacing);
+
+ const y1 = box.y1;
+ const y2 = y1 + thumbnailHeight;
+
+ if (i === this._dropPlaceholderPos) {
+ const [, placeholderWidth] = this._dropPlaceholder.get_preferred_width(-1);
+ childBox.y1 = y1;
+ childBox.y2 = y2;
+
+ if (rtl) {
+ childBox.x2 = box.x2 - Math.round(x);
+ childBox.x1 = box.x2 - Math.round(x + placeholderWidth);
+ } else {
+ childBox.x1 = Math.round(x);
+ childBox.x2 = Math.round(x + placeholderWidth);
+ }
+
+ this._dropPlaceholder.allocate(childBox);
+
+ const laters = global.compositor.get_laters();
+ laters.add(Meta.LaterType.BEFORE_REDRAW, () => {
+ this._dropPlaceholder.show();
+ });
+ x += placeholderWidth + spacing;
+ }
+
+ // We might end up with thumbnailWidth being something like 99.33
+ // pixels. To make this work and not end up with a gap at the end,
+ // we need some thumbnails to be 99 pixels and some 100 pixels width;
+ // we compute an actual scale separately for each thumbnail.
+ const x1 = Math.round(x);
+ const x2 = Math.round(x + thumbnailWidth);
+ const roundedHScale = (x2 - x1) / portholeWidth;
+
+ // Allocating a scaled actor is funny - x1/y1 correspond to the origin
+ // of the actor, but x2/y2 are increased by the *unscaled* size.
+ if (rtl) {
+ childBox.x2 = box.x2 - x1;
+ childBox.x1 = box.x2 - (x1 + thumbnailWidth);
+ } else {
+ childBox.x1 = x1;
+ childBox.x2 = x1 + thumbnailWidth;
+ }
+ childBox.y1 = y1;
+ childBox.y2 = y1 + thumbnailHeight;
+
+ thumbnail.setScale(roundedHScale, roundedVScale);
+ thumbnail.allocate(childBox);
+
+ if (i === indicatorUpperWs) {
+ indicatorUpperX1 = childBox.x1;
+ indicatorUpperX2 = childBox.x2;
+ }
+ if (i === indicatorLowerWs) {
+ indicatorLowerX1 = childBox.x1;
+ indicatorLowerX2 = childBox.x2;
+ }
+
+ // We round the collapsing portion so that we don't get thumbnails resizing
+ // during an animation due to differences in rounded, but leave the uncollapsed
+ // portion unrounded so that non-animating we end up with the right total
+ x += thumbnailWidth - Math.round(thumbnailWidth * thumbnail.collapse_fraction);
+ }
+
+ childBox.y1 = box.y1;
+ childBox.y2 = box.y1 + thumbnailHeight;
+
+ const indicatorX1 = indicatorLowerX1 +
+ (indicatorUpperX1 - indicatorLowerX1) * (indicatorValue % 1);
+ const indicatorX2 = indicatorLowerX2 +
+ (indicatorUpperX2 - indicatorLowerX2) * (indicatorValue % 1);
+
+ childBox.x1 = indicatorX1 - indicatorLeftFullBorder;
+ childBox.x2 = indicatorX2 + indicatorRightFullBorder;
+ childBox.y1 -= indicatorTopFullBorder;
+ childBox.y2 += indicatorBottomFullBorder;
+ this._indicator.allocate(childBox);
+ },
+
+ _updateShouldShow: ThumbnailsBoxVertical._updateShouldShow,
+};
+
+const WindowClone = {
+ after__init() {
+ // Make it transparent and smaller than usual while dragging
+ this._draggable._dragActorOpacity = 200;
+ this._draggable._dragActorMaxSize = 150;
+ },
+};
diff --git a/extensions/47/vertical-workspaces/lib/workspacesView.js b/extensions/47/vertical-workspaces/lib/workspacesView.js
new file mode 100644
index 0000000..5c0d36b
--- /dev/null
+++ b/extensions/47/vertical-workspaces/lib/workspacesView.js
@@ -0,0 +1,1013 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * workspacesView.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ *
+ */
+
+'use strict';
+
+import Clutter from 'gi://Clutter';
+import St from 'gi://St';
+import Meta from 'gi://Meta';
+import GObject from 'gi://GObject';
+
+import * as Main from 'resource:///org/gnome/shell/ui/main.js';
+import * as Overview from 'resource:///org/gnome/shell/ui/overview.js';
+import * as OverviewControls from 'resource:///org/gnome/shell/ui/overviewControls.js';
+import * as WorkspacesView from 'resource:///org/gnome/shell/ui/workspacesView.js';
+
+import * as Util from 'resource:///org/gnome/shell/misc/util.js';
+
+let Me;
+let opt;
+
+const ControlsState = OverviewControls.ControlsState;
+const FitMode = WorkspacesView.FitMode;
+
+export const WorkspacesViewModule = class {
+ constructor(me) {
+ Me = me;
+ opt = Me.opt;
+
+ this._firstActivation = true;
+ this.moduleEnabled = false;
+ this._overrides = null;
+ }
+
+ cleanGlobals() {
+ Me = null;
+ opt = null;
+ }
+
+ update(reset) {
+ this.moduleEnabled = true;
+ const conflict = false;
+
+ reset = reset || !this.moduleEnabled || conflict;
+
+ // don't touch the original code if module disabled
+ if (reset && !this._firstActivation) {
+ this._disableModule();
+ } else if (!reset) {
+ this._firstActivation = false;
+ this._activateModule();
+ }
+ if (reset && this._firstActivation)
+ console.debug(' WorkspacesViewModule - Keeping untouched');
+ }
+
+ _activateModule() {
+ if (!this._overrides)
+ this._overrides = new Me.Util.Overrides();
+
+ const desktopCubeEnabled = Me.Util.getEnabledExtensions('desktop-cube@schneegans.github.com').length;
+ const desktopCubeConflict = desktopCubeEnabled && !opt.ORIENTATION && !opt.OVERVIEW_MODE;
+
+ if (!desktopCubeConflict)
+ this._overrides.addOverride('WorkspacesView', WorkspacesView.WorkspacesView.prototype, WorkspacesViewCommon);
+ else
+ this._overrides.removeOverride('WorkspacesView');
+
+ this._overrides.addOverride('WorkspacesDisplay', WorkspacesView.WorkspacesDisplay.prototype, WorkspacesDisplayCommon);
+ this._overrides.addOverride('ExtraWorkspaceView', WorkspacesView.ExtraWorkspaceView.prototype, ExtraWorkspaceViewCommon);
+ this._overrides.addOverride('SecondaryMonitorDisplayCommon', WorkspacesView.SecondaryMonitorDisplay.prototype, SecondaryMonitorDisplayCommon);
+
+ if (opt.ORIENTATION) {
+ // switch internal workspace orientation in GS
+ global.workspace_manager.override_workspace_layout(Meta.DisplayCorner.TOPLEFT, false, -1, 1);
+ this._overrides.addOverride('SecondaryMonitorDisplay', WorkspacesView.SecondaryMonitorDisplay.prototype, SecondaryMonitorDisplayVertical);
+ } else {
+ global.workspace_manager.override_workspace_layout(Meta.DisplayCorner.TOPLEFT, false, 1, -1);
+ this._overrides.addOverride('SecondaryMonitorDisplay', WorkspacesView.SecondaryMonitorDisplay.prototype, SecondaryMonitorDisplayHorizontal);
+ }
+
+ console.debug(' WorkspacesViewModule - Activated');
+ }
+
+ _disableModule() {
+ global.workspace_manager.override_workspace_layout(Meta.DisplayCorner.TOPLEFT, false, 1, -1);
+ if (this._overrides)
+ this._overrides.removeAll();
+ this._overrides = null;
+
+ console.debug(' WorkspacesViewModule - Disabled');
+ }
+};
+
+const WorkspacesViewCommon = {
+ _getFirstFitSingleWorkspaceBox(box, spacing, vertical) {
+ let [width, height] = box.get_size();
+ const [workspace] = this._workspaces;
+
+ const rtl = this.text_direction === Clutter.TextDirection.RTL;
+ const adj = this._scrollAdjustment;
+ const currentWorkspace = vertical || !rtl
+ ? adj.value : adj.upper - adj.value - 1;
+
+ // Single fit mode implies centered too
+ let [x1, y1] = box.get_origin();
+ const [, workspaceWidth] = workspace ? workspace.get_preferred_width(Math.floor(height)) : [0, width];
+ const [, workspaceHeight] = workspace ? workspace.get_preferred_height(workspaceWidth) : [0, height];
+
+ if (vertical) {
+ x1 += (width - workspaceWidth) / 2;
+ y1 -= currentWorkspace * (workspaceHeight + spacing);
+ } else {
+ x1 += (width - workspaceWidth) / 2;
+ x1 -= currentWorkspace * (workspaceWidth + spacing);
+ }
+
+ const fitSingleBox = new Clutter.ActorBox({ x1, y1 });
+ fitSingleBox.set_size(workspaceWidth, workspaceHeight);
+
+ return fitSingleBox;
+ },
+
+ // set spacing between ws previews
+ _getSpacing(box, fitMode, vertical) {
+ const [width, height] = box.get_size();
+ const [workspace] = this._workspaces;
+
+ if (!workspace)
+ return 0;
+
+ let availableSpace;
+ let workspaceSize;
+ if (vertical) {
+ [, workspaceSize] = workspace.get_preferred_height(width);
+ availableSpace = height;
+ } else {
+ [, workspaceSize] = workspace.get_preferred_width(height);
+ availableSpace = width;
+ }
+
+ const spacing = (availableSpace - workspaceSize * 0.4) * (1 - fitMode);
+ const { scaleFactor } = St.ThemeContext.get_for_stage(global.stage);
+ return Math.clamp(spacing,
+ opt.WORKSPACE_MIN_SPACING * scaleFactor,
+ opt.WORKSPACE_MAX_SPACING * scaleFactor);
+ },
+
+ // this function has duplicate in OverviewControls so we use one function for both to avoid issues with syncing them
+ _getFitModeForState(state) {
+ return _getFitModeForState(state);
+ },
+
+ // normal view 0, spread windows 1
+ _getWorkspaceModeForOverviewState(state) {
+
+ switch (state) {
+ case ControlsState.HIDDEN:
+ return 0;
+ case ControlsState.WINDOW_PICKER:
+ return opt.WORKSPACE_MODE;
+ case ControlsState.APP_GRID:
+ return (this._monitorIndex !== global.display.get_primary_monitor() || !opt.WS_ANIMATION) && !opt.OVERVIEW_MODE ? 1 : 0;
+ }
+
+ return 0;
+ },
+
+ _updateVisibility() {
+ // visibility handles _updateWorkspacesState()
+ },
+
+ // disable scaling and hide inactive workspaces
+ _updateWorkspacesState() {
+ const adj = this._scrollAdjustment;
+ const fitMode = this._fitModeAdjustment.value;
+
+ let { initialState, finalState, progress, currentState } =
+ this._overviewAdjustment.getStateTransitionParams();
+
+ const workspaceMode = (1 - fitMode) * Util.lerp(
+ this._getWorkspaceModeForOverviewState(initialState),
+ this._getWorkspaceModeForOverviewState(finalState),
+ progress);
+
+ const primaryMonitor = Main.layoutManager.primaryMonitor.index;
+
+ const wsScrollProgress = adj.value % 1;
+ const secondaryMonitor = this._monitorIndex !== global.display.get_primary_monitor();
+ const blockSecondaryAppGrid = opt.OVERVIEW_MODE && currentState > 1;
+
+ // Hide inactive workspaces
+ this._workspaces.forEach((w, index) => {
+ if (!(blockSecondaryAppGrid && secondaryMonitor))
+ w.stateAdjustment.value = workspaceMode;
+
+ let distance = adj.value - index;
+ const distanceToCurrentWorkspace = Math.abs(distance);
+
+ const scaleProgress = 1 - Math.clamp(distanceToCurrentWorkspace, 0, 1);
+ // const scale = Util.lerp(0.94, 1, scaleProgress);
+ // w.set_scale(scale, scale);
+
+ // if we disable workspaces that we can't or don't need to see, transition animations will be noticeably smoother
+ // only the current ws needs to be visible during overview transition animations
+ // and only current and adjacent ws when switching ws
+ w.visible =
+ (this._animating && wsScrollProgress && distanceToCurrentWorkspace <= (opt.NUMBER_OF_VISIBLE_NEIGHBORS + 1)) ||
+ scaleProgress === 1 ||
+ (opt.WORKSPACE_MAX_SPACING >= opt.WS_MAX_SPACING_OFF_SCREEN &&
+ distanceToCurrentWorkspace <= opt.NUMBER_OF_VISIBLE_NEIGHBORS &&
+ currentState === ControlsState.WINDOW_PICKER
+ ) ||
+ (this._monitorIndex !== primaryMonitor && distanceToCurrentWorkspace <= opt.NUMBER_OF_VISIBLE_NEIGHBORS) ||
+ (!opt.WS_ANIMATION && distanceToCurrentWorkspace < opt.NUMBER_OF_VISIBLE_NEIGHBORS) ||
+ (distanceToCurrentWorkspace <= opt.NUMBER_OF_VISIBLE_NEIGHBORS &&
+ currentState <= ControlsState.WINDOW_PICKER &&
+ (initialState < ControlsState.APP_GRID && finalState < ControlsState.APP_GRID)
+ );
+
+ // after transition from APP_GRID to WINDOW_PICKER state,
+ // adjacent workspaces are hidden and we need them to show up
+ // make them visible during animation can impact smoothness of the animation
+ // so we show them after the animation finished, move them to their position from outside of the monitor
+ if (currentState === ControlsState.WINDOW_PICKER && !w.visible && distanceToCurrentWorkspace <= opt.NUMBER_OF_VISIBLE_NEIGHBORS && initialState === ControlsState.APP_GRID) {
+ w.remove_all_transitions();
+ w.visible = true;
+ const directionNext = distance > 0;
+ if (!opt.ORIENTATION) {
+ const width = w.width * 0.6 * opt.WS_PREVIEW_SCALE;
+ w.translation_x = directionNext ? -width : width;
+ }
+ if (opt.ORIENTATION) {
+ const height = w.height * 0.6 * opt.WS_PREVIEW_SCALE;
+ w.translation_y = directionNext ? -height : height;
+ }
+
+ w.opacity = 10;
+ w.get_parent().set_child_below_sibling(w, null);
+ w.ease({
+ duration: 300,
+ translation_x: 0,
+ translation_y: 0,
+ opacity: 255,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+ }
+
+ // force ws preview bg corner radiuses where GS doesn't do it
+ if (opt.SHOW_WS_PREVIEW_BG && opt.OVERVIEW_MODE === 1 && distanceToCurrentWorkspace < 2)
+ w._background._updateBorderRadius(Math.min(1, w._overviewAdjustment.value));
+
+
+ // hide workspace background
+ if (!opt.SHOW_WS_PREVIEW_BG && w._background.opacity)
+ w._background.opacity = 0;
+ });
+ },
+
+ exposeWindows(workspaceIndex = null, callback) {
+ let adjustments = [];
+ if (workspaceIndex === null) {
+ this._workspaces.forEach(ws => {
+ adjustments.push(ws._background._stateAdjustment);
+ });
+ } else {
+ adjustments.push(this._workspaces[workspaceIndex]._background._stateAdjustment);
+ }
+
+ opt.WORKSPACE_MODE = 1;
+ adjustments.forEach(adj => {
+ if (adj.value === 0) {
+ adj.value = 0;
+ adj.ease(1, {
+ duration: 200,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ onComplete: () => {
+ if (callback)
+ callback();
+ },
+ });
+ }
+ });
+ },
+};
+
+const SecondaryMonitorDisplayCommon = {
+ exposeWindows(...args) {
+ this._workspacesView.exposeWindows(...args);
+ },
+};
+
+const SecondaryMonitorDisplayVertical = {
+ _getThumbnailParamsForState(state) {
+
+ let opacity, scale, translationX;
+ switch (state) {
+ case ControlsState.HIDDEN:
+ opacity = 255;
+ scale = 1;
+ translationX = 0;
+ if (!Main.layoutManager._startingUp && (!opt.SHOW_WS_PREVIEW_BG || opt.OVERVIEW_MODE2))
+ translationX = this._thumbnails.width * (opt.SEC_WS_TMB_LEFT ? -1 : 1);
+
+ break;
+ case ControlsState.WINDOW_PICKER:
+ case ControlsState.APP_GRID:
+ opacity = 255;
+ scale = 1;
+ translationX = 0;
+ break;
+ default:
+ opacity = 255;
+ scale = 1;
+ translationX = 0;
+ break;
+ }
+
+ return { opacity, scale, translationX };
+ },
+
+ _getWorkspacesBoxForState(state, box, workArea, wsTmbWidth, spacing) {
+ let workspaceBox = box.copy();
+
+ if (
+ (state === ControlsState.WINDOW_PICKER || state === ControlsState.APP_GRID) &&
+ !(opt.OVERVIEW_MODE2 && !opt.WORKSPACE_MODE)
+ ) {
+ workspaceBox = workArea.copy();
+ const [startX, startY] = workspaceBox.get_origin();
+ let [width, height] = workspaceBox.get_size();
+
+ let wsBoxWidth = width - (wsTmbWidth ? wsTmbWidth + spacing : 0) - 2 * spacing;
+ let wsBoxHeight = height - 2 * spacing;
+
+ const ratio = width / height;
+ let wRatio = wsBoxWidth / wsBoxHeight;
+ let scale = ratio / wRatio;
+
+ if (scale > 1) {
+ wsBoxHeight /= scale;
+ wsBoxWidth = wsBoxHeight * ratio;
+ } else {
+ wsBoxWidth *= scale;
+ wsBoxHeight = wsBoxWidth / ratio;
+ }
+
+ // height decides the actual size, ratio is given by the workArea
+ wsBoxHeight = Math.round(wsBoxHeight * opt.SEC_WS_PREVIEW_SCALE);
+ wsBoxWidth = Math.round(wsBoxWidth * opt.SEC_WS_PREVIEW_SCALE);
+
+ let offset = Math.round(width - wsTmbWidth - wsBoxWidth - spacing) / 2;
+
+ const wsbX = startX + opt.SEC_WS_TMB_LEFT
+ ? wsTmbWidth + spacing + offset
+ : offset;
+
+ const wsbY = Math.round((startY + height - wsBoxHeight) / 2);
+
+ workspaceBox.set_origin(wsbX, wsbY);
+ workspaceBox.set_size(wsBoxWidth, wsBoxHeight);
+ }
+
+ return workspaceBox;
+ },
+
+ _getWorkAreaBox(box) {
+ if (!opt.SEC_WS_PREVIEW_SHIFT || !Main.panel.visible)
+ return box;
+
+ const workArea = box.copy();
+ const panelHeight = Main.panel.height;
+ workArea.y1 += opt.PANEL_POSITION_TOP ? panelHeight : 0;
+ workArea.y2 -= opt.PANEL_POSITION_BOTTOM ? panelHeight : 0;
+
+ return workArea;
+ },
+
+ vfunc_allocate(box) {
+ this.set_allocation(box);
+
+ const themeNode = this.get_theme_node();
+ const contentBox = themeNode.get_content_box(box);
+
+ const workArea = this._getWorkAreaBox(contentBox);
+
+ let [width, height] = workArea.get_size();
+ let [startX, startY] = workArea.get_origin();
+
+ const spacing = opt.SPACING;
+
+ let wsTmbWidth = 0;
+ let wsTmbHeight = 0;
+ this._thumbnails.visible = !opt.SEC_WS_TMB_HIDDEN;
+ if (this._thumbnails.visible) {
+ wsTmbWidth = Math.round(width * opt.SEC_MAX_THUMBNAIL_SCALE);
+
+ let totalTmbSpacing;
+ [totalTmbSpacing, wsTmbHeight] = this._thumbnails.get_preferred_height(wsTmbWidth);
+ wsTmbHeight += totalTmbSpacing;
+
+ const thumbnailsHeightMax = height - spacing;
+
+ if (wsTmbHeight > thumbnailsHeightMax) {
+ wsTmbHeight = thumbnailsHeightMax;
+ wsTmbWidth = Math.round(this._thumbnails.get_preferred_width(wsTmbHeight)[1]);
+ }
+
+ let wsTmbX = opt.SEC_WS_TMB_LEFT
+ ? startX + spacing
+ : startX + width - wsTmbWidth - spacing;
+
+ let offset = (height - wsTmbHeight) / 2;
+ const wsTmbY = startY + Math.round(offset - opt.SEC_WS_TMB_POSITION_ADJUSTMENT * (offset - spacing));
+
+ const childBox = new Clutter.ActorBox();
+ childBox.set_origin(wsTmbX, wsTmbY);
+ childBox.set_size(wsTmbWidth, wsTmbHeight);
+ this._thumbnails.allocate(childBox);
+ }
+
+ const {
+ currentState, initialState, finalState, transitioning, progress,
+ } = this._overviewAdjustment.getStateTransitionParams();
+
+ let workspacesBox;
+ const workspaceParams = [contentBox, workArea, wsTmbWidth, spacing];
+ if (!transitioning) {
+ workspacesBox =
+ this._getWorkspacesBoxForState(currentState, ...workspaceParams);
+ } else {
+ const initialBox =
+ this._getWorkspacesBoxForState(initialState, ...workspaceParams);
+ const finalBox =
+ this._getWorkspacesBoxForState(finalState, ...workspaceParams);
+ workspacesBox = initialBox.interpolate(finalBox, progress);
+ }
+ this._workspacesView.allocate(workspacesBox);
+ },
+
+ _updateThumbnailVisibility() {
+ if (opt.OVERVIEW_MODE2)
+ this.set_child_above_sibling(this._thumbnails, null);
+
+ const visible = !opt.SEC_WS_TMB_HIDDEN;
+
+ if (this._thumbnails.visible === visible)
+ return;
+
+ this._thumbnails.show();
+ this._updateThumbnailParams();
+ this._thumbnails.ease_property('expand-fraction', visible ? 1 : 0, {
+ duration: Overview.ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ onComplete: () => {
+ this._thumbnails.visible = visible;
+ this._thumbnails._indicator.visible = visible;
+ },
+ });
+ },
+
+ _updateThumbnailParams() {
+ if (opt.SEC_WS_TMB_HIDDEN)
+ return;
+
+ // workaround for upstream bug - secondary thumbnails boxes don't catch 'showing' signal on the shell startup and don't populate the box with thumbnails
+ // the tmbBox contents is also destroyed when overview state adjustment gets above 1 when swiping gesture from window picker to app grid
+ if (!this._thumbnails._thumbnails.length)
+ this._thumbnails._createThumbnails();
+
+ const { initialState, finalState, progress } =
+ this._overviewAdjustment.getStateTransitionParams();
+
+ const initialParams = this._getThumbnailParamsForState(initialState);
+ const finalParams = this._getThumbnailParamsForState(finalState);
+
+ /* const opacity =
+ Util.lerp(initialParams.opacity, finalParams.opacity, progress);
+ const scale =
+ Util.lerp(initialParams.scale, finalParams.scale, progress);*/
+
+ // OVERVIEW_MODE 2 should animate dash and wsTmbBox only if WORKSPACE_MODE === 0 (windows not spread)
+ const animateOverviewMode2 = opt.OVERVIEW_MODE2 && !(finalState === 1 && opt.WORKSPACE_MODE);
+ const translationX = !Main.layoutManager._startingUp && ((!opt.SHOW_WS_PREVIEW_BG && !opt.OVERVIEW_MODE2) || animateOverviewMode2)
+ ? Util.lerp(initialParams.translationX, finalParams.translationX, progress)
+ : 0;
+
+ this._thumbnails.set({
+ opacity: 255,
+ // scale_x: scale,
+ // scale_y: scale,
+ translation_x: translationX,
+ });
+ },
+
+ _updateWorkspacesView() {
+ if (this._workspacesView)
+ this._workspacesView.destroy();
+
+ if (this._settings.get_boolean('workspaces-only-on-primary')) {
+ opt.SEC_WS_TMB_HIDDEN = true;
+ this._workspacesView = new WorkspacesView.ExtraWorkspaceView(
+ this._monitorIndex,
+ this._overviewAdjustment);
+ } else {
+ opt.SEC_WS_TMB_HIDDEN = !opt.SHOW_SEC_WS_TMB;
+ this._workspacesView = new WorkspacesView.WorkspacesView(
+ this._monitorIndex,
+ this._controls,
+ this._scrollAdjustment,
+ // Secondary monitors don't need FitMode.ALL since there is workspace switcher always visible
+ // this._fitModeAdjustment,
+ new St.Adjustment({
+ actor: this,
+ value: 0, // FitMode.SINGLE,
+ lower: 0, // FitMode.SINGLE,
+ upper: 0, // FitMode.SINGLE,
+ }),
+ // secondaryOverviewAdjustment);
+ this._overviewAdjustment);
+ }
+ this.add_child(this._workspacesView);
+ this._thumbnails.opacity = 0;
+ },
+};
+
+const SecondaryMonitorDisplayHorizontal = {
+ _getThumbnailParamsForState(state) {
+ // const { ControlsState } = OverviewControls;
+
+ let opacity, scale, translationY;
+ switch (state) {
+ case ControlsState.HIDDEN:
+ opacity = 255;
+ scale = 1;
+ translationY = 0;
+ if (!Main.layoutManager._startingUp && (!opt.SHOW_WS_PREVIEW_BG || opt.OVERVIEW_MODE2))
+ translationY = this._thumbnails.height * (opt.SEC_WS_TMB_TOP ? -1 : 1);
+
+ break;
+ case ControlsState.WINDOW_PICKER:
+ case ControlsState.APP_GRID:
+ opacity = 255;
+ scale = 1;
+ translationY = 0;
+ break;
+ default:
+ opacity = 255;
+ scale = 1;
+ translationY = 0;
+ break;
+ }
+
+ return { opacity, scale, translationY };
+ },
+
+ _getWorkspacesBoxForState(state, box, workArea, wsTmbHeight, spacing) {
+ let workspaceBox = box.copy();
+
+ if (
+ (state === ControlsState.WINDOW_PICKER || state === ControlsState.APP_GRID) &&
+ !(opt.OVERVIEW_MODE2 && !opt.WORKSPACE_MODE)
+ ) {
+ workspaceBox = workArea.copy();
+ const [startX, startY] = workspaceBox.get_origin();
+ let [width, height] = workspaceBox.get_size();
+
+ let wsBoxWidth = width - 2 * spacing;
+ let wsBoxHeight = height - (wsTmbHeight ? wsTmbHeight + spacing : 0) - 2 * spacing;
+
+ const ratio = width / height;
+ let wRatio = wsBoxWidth / wsBoxHeight;
+ let scale = ratio / wRatio;
+
+ if (scale > 1) {
+ wsBoxHeight /= scale;
+ wsBoxWidth = wsBoxHeight * ratio;
+ } else {
+ wsBoxWidth *= scale;
+ wsBoxHeight = wsBoxWidth / ratio;
+ }
+
+ // height decides the actual size, ratio is given by the workArea
+ wsBoxHeight = Math.round(wsBoxHeight * opt.SEC_WS_PREVIEW_SCALE);
+ wsBoxWidth = Math.round(wsBoxWidth * opt.SEC_WS_PREVIEW_SCALE);
+
+ let offset = Math.round(height - wsTmbHeight - wsBoxHeight - spacing) / 2;
+
+ const wsbX = Math.round((startX + width - wsBoxWidth) / 2);
+
+ const wsbY = startY + opt.SEC_WS_TMB_TOP
+ ? wsTmbHeight + spacing + offset
+ : offset;
+
+ workspaceBox.set_origin(wsbX, wsbY);
+ workspaceBox.set_size(wsBoxWidth, wsBoxHeight);
+ }
+
+ return workspaceBox;
+ },
+
+ _getWorkAreaBox: SecondaryMonitorDisplayVertical._getWorkAreaBox,
+
+ vfunc_allocate(box) {
+ this.set_allocation(box);
+
+ const themeNode = this.get_theme_node();
+ const contentBox = themeNode.get_content_box(box);
+
+ const workArea = this._getWorkAreaBox(contentBox);
+
+ let [width, height] = workArea.get_size();
+ let [startX, startY] = workArea.get_origin();
+
+ const spacing = opt.SPACING;
+
+ let wsTmbWidth = 0;
+ let wsTmbHeight = 0;
+ this._thumbnails.visible = !opt.SEC_WS_TMB_HIDDEN;
+ if (this._thumbnails.visible) {
+ wsTmbHeight = Math.round(height * opt.SEC_MAX_THUMBNAIL_SCALE);
+
+ let totalTmbSpacing;
+ [totalTmbSpacing, wsTmbWidth] = this._thumbnails.get_preferred_width(wsTmbHeight);
+ wsTmbWidth += totalTmbSpacing;
+
+ const thumbnailsWidthMax = width - 2 * spacing;
+
+ if (wsTmbWidth > thumbnailsWidthMax) {
+ wsTmbWidth = thumbnailsWidthMax;
+ wsTmbHeight = Math.round(this._thumbnails.get_preferred_height(wsTmbWidth)[1]);
+ }
+
+ let wsTmbY = opt.SEC_WS_TMB_TOP
+ ? startY + spacing
+ : startY + height - wsTmbHeight - spacing;
+
+ let offset = (width - wsTmbWidth) / 2;
+ const wsTmbX = startX + Math.round(offset - opt.SEC_WS_TMB_POSITION_ADJUSTMENT * (offset - spacing));
+
+ const childBox = new Clutter.ActorBox();
+ childBox.set_origin(wsTmbX, wsTmbY);
+ childBox.set_size(wsTmbWidth, wsTmbHeight);
+ this._thumbnails.allocate(childBox);
+ }
+
+ const {
+ currentState, initialState, finalState, transitioning, progress,
+ } = this._overviewAdjustment.getStateTransitionParams();
+
+ let workspacesBox;
+ const workspaceParams = [contentBox, workArea, wsTmbHeight, spacing];
+ if (!transitioning) {
+ workspacesBox =
+ this._getWorkspacesBoxForState(currentState, ...workspaceParams);
+ } else {
+ const initialBox =
+ this._getWorkspacesBoxForState(initialState, ...workspaceParams);
+ const finalBox =
+ this._getWorkspacesBoxForState(finalState, ...workspaceParams);
+ workspacesBox = initialBox.interpolate(finalBox, progress);
+ }
+ this._workspacesView.allocate(workspacesBox);
+ },
+
+ _updateThumbnailVisibility: SecondaryMonitorDisplayVertical._updateThumbnailVisibility,
+
+ _updateThumbnailParams() {
+ if (opt.SEC_WS_TMB_HIDDEN)
+ return;
+
+ // workaround for upstream bug - secondary thumbnails boxes don't catch 'showing' signal on the shell startup and don't populate the box with thumbnails
+ // the tmbBox contents is also destroyed when overview state adjustment gets above 1 when swiping gesture from window picker to app grid
+ if (!this._thumbnails._thumbnails.length)
+ this._thumbnails._createThumbnails();
+
+ const { initialState, finalState, progress } =
+ this._overviewAdjustment.getStateTransitionParams();
+
+ const initialParams = this._getThumbnailParamsForState(initialState);
+ const finalParams = this._getThumbnailParamsForState(finalState);
+
+ /* const opacity =
+ Util.lerp(initialParams.opacity, finalParams.opacity, progress);
+ const scale =
+ Util.lerp(initialParams.scale, finalParams.scale, progress);*/
+
+ // OVERVIEW_MODE 2 should animate dash and wsTmbBox only if WORKSPACE_MODE === 0 (windows not spread)
+ const animateOverviewMode2 = opt.OVERVIEW_MODE2 && !(finalState === 1 && opt.WORKSPACE_MODE);
+ const translationY = !Main.layoutManager._startingUp && ((!opt.SHOW_WS_PREVIEW_BG && !opt.OVERVIEW_MODE2) || animateOverviewMode2)
+ ? Util.lerp(initialParams.translationY, finalParams.translationY, progress)
+ : 0;
+
+ this._thumbnails.set({
+ opacity: 255,
+ // scale_x: scale,
+ // scale_y: scale,
+ translation_y: translationY,
+ });
+ },
+
+ _updateWorkspacesView() {
+ if (this._workspacesView)
+ this._workspacesView.destroy();
+
+ if (this._settings.get_boolean('workspaces-only-on-primary')) {
+ opt.SEC_WS_TMB_HIDDEN = true;
+ this._workspacesView = new WorkspacesView.ExtraWorkspaceView(
+ this._monitorIndex,
+ this._overviewAdjustment);
+ } else {
+ opt.SEC_WS_TMB_HIDDEN = !opt.SHOW_SEC_WS_TMB;
+ this._workspacesView = new WorkspacesView.WorkspacesView(
+ this._monitorIndex,
+ this._controls,
+ this._scrollAdjustment,
+ // Secondary monitors don't need FitMode.ALL since there is workspace switcher always visible
+ // this._fitModeAdjustment,
+ new St.Adjustment({
+ actor: this,
+ value: 0, // FitMode.SINGLE,
+ lower: 0, // FitMode.SINGLE,
+ upper: 0, // FitMode.SINGLE,
+ }),
+ // secondaryOverviewAdjustment);
+ this._overviewAdjustment);
+ }
+ this.add_child(this._workspacesView);
+ this._thumbnails.opacity = 0;
+ },
+};
+
+const ExtraWorkspaceViewCommon = {
+ _updateWorkspaceMode() {
+ const overviewState = this._overviewAdjustment.value;
+
+ const progress = Math.clamp(overviewState,
+ ControlsState.HIDDEN,
+ opt.OVERVIEW_MODE && !opt.WORKSPACE_MODE ? ControlsState.HIDDEN : ControlsState.WINDOW_PICKER);
+
+ this._workspace.stateAdjustment.value = progress;
+
+ // force ws preview bg corner radiuses where GS doesn't do it
+ if (opt.SHOW_WS_PREVIEW_BG && opt.OVERVIEW_MODE === 1)
+ this._workspace._background._updateBorderRadius(Math.min(1, this._workspace._overviewAdjustment.value));
+
+
+ // hide workspace background
+ if (!opt.SHOW_WS_PREVIEW_BG && this._workspace._background.opacity)
+ this._workspace._background.opacity = 0;
+ },
+
+ exposeWindows() {
+ const adjustment = this._workspace._background._stateAdjustment;
+ opt.WORKSPACE_MODE = 1;
+ if (adjustment.value === 0) {
+ adjustment.value = 0;
+ adjustment.ease(1, {
+ duration: 200,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+ }
+ },
+};
+
+const WorkspacesDisplayCommon = {
+ _updateWorkspacesViews() {
+ for (let i = 0; i < this._workspacesViews.length; i++)
+ this._workspacesViews[i].destroy();
+
+ this._primaryIndex = Main.layoutManager.primaryIndex;
+ this._workspacesViews = [];
+ let monitors = Main.layoutManager.monitors;
+ for (let i = 0; i < monitors.length; i++) {
+ let view;
+ if (i === this._primaryIndex) {
+ view = new WorkspacesView.WorkspacesView(i,
+ this._controls,
+ this._scrollAdjustment,
+ this._fitModeAdjustment,
+ this._overviewAdjustment);
+
+ view.visible = this._primaryVisible;
+ this.bind_property('opacity', view, 'opacity', GObject.BindingFlags.SYNC_CREATE);
+ this.add_child(view);
+ } else {
+ view = new WorkspacesView.SecondaryMonitorDisplay(i,
+ this._controls,
+ this._scrollAdjustment,
+ // Secondary monitors don't need FitMode.ALL since there is workspace switcher always visible
+ // this._fitModeAdjustment,
+ new St.Adjustment({
+ actor: this,
+ value: 0, // FitMode.SINGLE,
+ lower: 0, // FitMode.SINGLE,
+ upper: 0, // FitMode.SINGLE,
+ }),
+ this._overviewAdjustment);
+ Main.layoutManager.overviewGroup.add_child(view);
+
+ if (opt.CLICK_EMPTY_CLOSE) {
+ // Allow users to close the overview by clicking on an empty space on the secondary monitor
+ // The primary monitor overview is handled in the overviewControls
+ const clickAction = new Clutter.ClickAction();
+ clickAction.connect('clicked', () => {
+ Main.overview.hide();
+ });
+ view.reactive = true;
+ view.add_action(clickAction);
+ }
+ }
+
+ this._workspacesViews.push(view);
+ }
+ },
+
+ _onScrollEvent(actor, event) {
+ if (this._swipeTracker.canHandleScrollEvent(event))
+ return Clutter.EVENT_PROPAGATE;
+
+ if (!this.mapped)
+ return Clutter.EVENT_PROPAGATE;
+
+ if (this._workspacesOnlyOnPrimary &&
+ this._getMonitorIndexForEvent(event) !== this._primaryIndex)
+ return Clutter.EVENT_PROPAGATE;
+
+ if (opt.PANEL_MODE === 1) {
+ const panelBox = Main.layoutManager.panelBox;
+ const [, y] = global.get_pointer();
+ if (y > panelBox.allocation.y1 && y < panelBox.allocation.y2)
+ return Clutter.EVENT_STOP;
+ }
+
+ if (Me.Util.isShiftPressed()) {
+ let direction = Me.Util.getScrollDirection(event);
+ if (direction === null || (Date.now() - this._lastScrollTime) < 150)
+ return Clutter.EVENT_STOP;
+ this._lastScrollTime = Date.now();
+
+ if (direction === Clutter.ScrollDirection.UP)
+ direction = -1;
+
+ else if (direction === Clutter.ScrollDirection.DOWN)
+ direction = 1;
+ else
+ direction = 0;
+
+ if (direction) {
+ Me.Util.reorderWorkspace(direction);
+ // make all workspaces on primary monitor visible for case the new position is hidden
+ const primaryMonitorIndex = global.display.get_primary_monitor();
+ Main.overview._overview._controls._workspacesDisplay._workspacesViews[primaryMonitorIndex]._workspaces.forEach(w => {
+ w.visible = true;
+ });
+ return Clutter.EVENT_STOP;
+ }
+ }
+
+ return Main.wm.handleWorkspaceScroll(event);
+ },
+
+ _onKeyPressEvent(actor, event) {
+ const symbol = event.get_key_symbol();
+ /* const { ControlsState } = OverviewControls;
+ if (this._overviewAdjustment.value !== ControlsState.WINDOW_PICKER && symbol !== Clutter.KEY_space)
+ return Clutter.EVENT_PROPAGATE;*/
+
+ /* if (!this.reactive)
+ return Clutter.EVENT_PROPAGATE; */
+ const { workspaceManager } = global;
+ const vertical = workspaceManager.layout_rows === -1;
+ const rtl = this.get_text_direction() === Clutter.TextDirection.RTL;
+ const state = this._overviewAdjustment.value;
+
+ let which;
+ switch (symbol) {
+ case Clutter.KEY_Return:
+ case Clutter.KEY_KP_Enter:
+ if (Me.Util.isCtrlPressed()) {
+ Main.ctrlAltTabManager._items.forEach(i => {
+ if (i.sortGroup === 1 && i.name === 'Dash')
+ Main.ctrlAltTabManager.focusGroup(i);
+ });
+ }
+ return Clutter.EVENT_STOP;
+ case Clutter.KEY_Page_Up:
+ if (vertical)
+ which = Meta.MotionDirection.UP;
+ else if (rtl)
+ which = Meta.MotionDirection.RIGHT;
+ else
+ which = Meta.MotionDirection.LEFT;
+ break;
+ case Clutter.KEY_Page_Down:
+ if (vertical)
+ which = Meta.MotionDirection.DOWN;
+ else if (rtl)
+ which = Meta.MotionDirection.LEFT;
+ else
+ which = Meta.MotionDirection.RIGHT;
+ break;
+ case Clutter.KEY_Home:
+ which = 0;
+ break;
+ case Clutter.KEY_End:
+ which = workspaceManager.n_workspaces - 1;
+ break;
+ case Clutter.KEY_space:
+ if (Me.Util.isCtrlPressed() && Me.Util.isShiftPressed()) {
+ Me.Util.openPreferences();
+ } else if (Me.Util.isAltPressed()) {
+ Main.ctrlAltTabManager._items.forEach(i => {
+ if (i.sortGroup === 1 && i.name === 'Dash')
+ Main.ctrlAltTabManager.focusGroup(i);
+ });
+ } else if (Me.Util.getEnabledExtensions('extensions-search-provider').length && Me.Util.isCtrlPressed()) {
+ Me.Util.activateSearchProvider(Me.ESP_PREFIX);
+ } else if (Me.Util.getEnabledExtensions('windows-search-provider').length) {
+ Me.Util.activateSearchProvider(Me.WSP_PREFIX);
+ }
+
+ return Clutter.EVENT_STOP;
+ case Clutter.KEY_Down:
+ case Clutter.KEY_Left:
+ case Clutter.KEY_Right:
+ case Clutter.KEY_Up:
+ case Clutter.KEY_Tab:
+ if (Main.overview.searchController.searchActive) {
+ Main.overview.searchEntry.grab_key_focus();
+ } else if (opt.OVERVIEW_MODE2 && !opt.WORKSPACE_MODE && state === 1) {
+ // expose windows by "clicking" on ws thumbnail
+ // in this case overview stateAdjustment will be used for transition
+ Main.overview._overview.controls._thumbnailsBox._activateThumbnailAtPoint(0, 0, global.get_current_time(), true);
+ Main.ctrlAltTabManager._items.forEach(i => {
+ if (i.sortGroup === 1 && i.name === 'Windows')
+ Main.ctrlAltTabManager.focusGroup(i);
+ });
+ } else if (opt.OVERVIEW_MODE && !opt.WORKSPACE_MODE && state === 1) {
+ // expose windows for OVERVIEW_MODE 1
+ const wsIndex = global.workspace_manager.get_active_workspace().index();
+ // after expose animation activate keyboard for window selection
+ const callback = Me.Util.activateKeyboardForWorkspaceView;
+ this._workspacesViews.forEach(
+ view => {
+ view.exposeWindows(wsIndex, callback);
+ }
+ );
+ } else {
+ if (state === 2)
+ return Clutter.EVENT_PROPAGATE;
+ Me.Util.activateKeyboardForWorkspaceView();
+ }
+
+ return Clutter.EVENT_STOP;
+ default:
+ return Clutter.EVENT_PROPAGATE;
+ }
+
+ if (state === 2)
+ return Clutter.EVENT_PROPAGATE;
+
+ let ws;
+ if (which < 0)
+ // Negative workspace numbers are directions
+ ws = workspaceManager.get_active_workspace().get_neighbor(which);
+ else
+ // Otherwise it is a workspace index
+ ws = workspaceManager.get_workspace_by_index(which);
+
+ if (Me.Util.isShiftPressed()) {
+ let direction;
+ if (which === Meta.MotionDirection.UP || which === Meta.MotionDirection.LEFT)
+ direction = -1;
+ else if (which === Meta.MotionDirection.DOWN || which === Meta.MotionDirection.RIGHT)
+ direction = 1;
+ if (direction)
+ Me.Util.reorderWorkspace(direction);
+ // make all workspaces on primary monitor visible for case the new position is hidden
+ Main.overview._overview._controls._workspacesDisplay._workspacesViews[0]._workspaces.forEach(w => {
+ w.visible = true;
+ });
+ return Clutter.EVENT_STOP;
+ }
+
+ if (ws)
+ Main.wm.actionMoveWorkspace(ws);
+
+ return Clutter.EVENT_STOP;
+ },
+};
+
+// same copy of this function should be available in OverviewControls and WorkspacesView
+function _getFitModeForState(state) {
+ switch (state) {
+ case ControlsState.HIDDEN:
+ case ControlsState.WINDOW_PICKER:
+ return FitMode.SINGLE;
+ case ControlsState.APP_GRID:
+ if (opt.WS_ANIMATION && opt.SHOW_WS_TMB)
+ return FitMode.ALL;
+ else
+ return FitMode.SINGLE;
+ default:
+ return FitMode.SINGLE;
+ }
+}
diff --git a/extensions/47/vertical-workspaces/meson.build b/extensions/47/vertical-workspaces/meson.build
new file mode 100644
index 0000000..1c50d8d
--- /dev/null
+++ b/extensions/47/vertical-workspaces/meson.build
@@ -0,0 +1,25 @@
+project('vertical-workspaces')
+
+gnome = import('gnome')
+i18n = import('i18n')
+
+uuid = 'vertical-workspaces@G-dH.github.com'
+rdnn = 'org.gnome.shell.extensions.vertical-workspaces'
+
+datadir = get_option('datadir')
+extension_dir = datadir / 'gnome-shell' / 'extensions' / uuid
+
+install_data(
+ [
+ 'extension.js',
+ 'metadata.json',
+ 'prefs.js',
+ 'stylesheet.css',
+ ],
+ install_dir : extension_dir,
+)
+
+install_subdir('lib', install_dir : extension_dir)
+
+subdir('schemas')
+subdir('po')
diff --git a/extensions/47/vertical-workspaces/metadata.json b/extensions/47/vertical-workspaces/metadata.json
new file mode 100644
index 0000000..1114017
--- /dev/null
+++ b/extensions/47/vertical-workspaces/metadata.json
@@ -0,0 +1,22 @@
+{
+ "name": "V-Shell (Vertical Workspaces)",
+ "uuid": "vertical-workspaces@G-dH.github.com",
+ "description": "Customize your GNOME Shell UX to suit your workflow, whether you like horizontally or vertically stacked workspaces.",
+ "shell-version": [
+ "45",
+ "46",
+ "47"
+ ],
+ "session-modes": [
+ "user",
+ "unlock-dialog"
+ ],
+ "url": "https://github.com/G-dH/vertical-workspaces",
+ "donations": {
+ "buymeacoffee": "georgdh"
+ },
+ "gettext-domain": "vertical-workspaces",
+ "settings-schema": "org.gnome.shell.extensions.vertical-workspaces",
+ "version-name": "46.4"
+}
+
diff --git a/extensions/47/vertical-workspaces/po/LINGUAS b/extensions/47/vertical-workspaces/po/LINGUAS
new file mode 100644
index 0000000..6f31458
--- /dev/null
+++ b/extensions/47/vertical-workspaces/po/LINGUAS
@@ -0,0 +1,2 @@
+cs
+nl
diff --git a/extensions/47/vertical-workspaces/po/cs.po b/extensions/47/vertical-workspaces/po/cs.po
new file mode 100644
index 0000000..2df5095
--- /dev/null
+++ b/extensions/47/vertical-workspaces/po/cs.po
@@ -0,0 +1,2568 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR GdH
+# This file is distributed under the same license as the vertical-workspaces package.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: vertical-workspaces\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2024-07-19 08:40+0200\n"
+"PO-Revision-Date: 2024-07-19 08:50+0200\n"
+"Last-Translator: Ludek Vydra <lvtran@u.k2.cz>\n"
+"Language-Team: \n"
+"Language: cs\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n>=2 && n<=4 ? 1 : 2);\n"
+"X-Generator: Poedit 3.0.1\n"
+
+#: prefs.js:29
+msgid "Profiles"
+msgstr "Profily"
+
+#: prefs.js:34 prefs.js:1977
+msgid "Layout"
+msgstr "Rozložení"
+
+#: prefs.js:39
+msgid "Appearance"
+msgstr "Vzhled"
+
+#: prefs.js:44
+msgid "Behavior"
+msgstr "Vlastnosti"
+
+#: prefs.js:49 prefs.js:345
+msgid "App Grid"
+msgstr "Mřížka"
+
+#: prefs.js:54
+msgid "Modules"
+msgstr "Moduly"
+
+#: prefs.js:59
+msgid "Misc"
+msgstr "Různé"
+
+#: prefs.js:64
+msgid "About"
+msgstr "O aplikaci"
+
+#: prefs.js:107
+msgid "Custom Profiles"
+msgstr "Uživatelské profily"
+
+#: prefs.js:108
+msgid "Sets of settings that can help you with the initial customization"
+msgstr "Sady nastavení jež vám mohou pomoci s počátečním přizpůsobením"
+
+#: prefs.js:113
+msgid "Profile 1"
+msgstr "Profil 1"
+
+#: prefs.js:119
+msgid "Profile 2"
+msgstr "Profil 2"
+
+#: prefs.js:125
+msgid "Profile 3"
+msgstr "Profil 3"
+
+#: prefs.js:131
+msgid "Profile 4"
+msgstr "Profil 4"
+
+#: prefs.js:146 prefs.js:629 prefs.js:1185 prefs.js:1968
+msgid "Dash"
+msgstr "Dash"
+
+#: prefs.js:152
+msgid "Dash Position"
+msgstr "Pozice Dash"
+
+#: prefs.js:157 prefs.js:417
+msgid "Bottom"
+msgstr "Dole"
+
+#: prefs.js:158
+msgid "Left"
+msgstr "Vlevo"
+
+#: prefs.js:159
+msgid "Top"
+msgstr "Nahoře"
+
+#: prefs.js:160
+msgid "Right"
+msgstr "Vpravo"
+
+#: prefs.js:161 prefs.js:205 prefs.js:548
+msgid "Hide"
+msgstr "Skrýt"
+
+#: prefs.js:169
+msgid "Center Horizontal Dash to Workspace"
+msgstr "Vycentrovat horizontální Dash"
+
+#: prefs.js:170
+msgid ""
+"If the Dash Position is set to Top or Bottom, the position will be "
+"recalculated relative to the workspace preview instead of the screen"
+msgstr ""
+"Pokud je pozice Dash nastavena na Nahoře nebo Dole, pozice se přepočítá "
+"vzhledem k náhledu pracovního prostoru namísto obrazovky"
+
+#: prefs.js:189
+msgid "Fine Tune Dash Position"
+msgstr "Upravit pozici Dash"
+
+#: prefs.js:190
+msgid ""
+"Adjusts the position of the dash on the axis given by the orientation of the "
+"workspaces"
+msgstr "Upraví polohu Dash na dané ose posle orientace pracovních ploch"
+
+#: prefs.js:200
+msgid "Show Apps Icon Position"
+msgstr "Nastavit pozici ikony aplikací"
+
+#: prefs.js:201
+msgid "Sets the position of the \"Show Applications\" icon in the Dash"
+msgstr "Nastavuje pozici ikony \"Zobrazit aplikace\" v Dash"
+
+#: prefs.js:206
+msgid "Start"
+msgstr "Začátek"
+
+#: prefs.js:207
+msgid "End"
+msgstr "Konec"
+
+#: prefs.js:215
+msgid "Workspace Thumbnails / Orientation"
+msgstr "Náhledy pracovního prostoru / Orientace"
+
+#: prefs.js:221
+msgid "Thumbnails Position / Workspaces Orientation"
+msgstr "Pozice náhledů / Orientace pracovních ploch"
+
+#: prefs.js:222
+msgid ""
+"Position of the workspace thumbnails on the screen also sets orientation of "
+"the workspaces to vertical or horizontal. You have two options to disable "
+"workspace thumbnails, one sets workspaces to vertical orientation, the "
+"second one to horizontal."
+msgstr ""
+"Umístění miniatur pracovních ploch na obrazovce také nastavuje orientaci "
+"pracovních ploch na vertikální nebo horizontální. Máte dvě možnosti jak "
+"zakázat miniatury pracovních ploch, jedna nastaví orientaci pracovní plochy "
+"na vertikální , druhá na horizontální."
+
+#: prefs.js:227
+msgid "Left \t Vertical Orientation"
+msgstr "Vlevo \t Svisle"
+
+#: prefs.js:228
+msgid "Right \t Vertical Orientation"
+msgstr "Vpravo \t Svisle"
+
+#: prefs.js:229
+msgid "Hide \t Vertical Orientation"
+msgstr "Skryj \t Svisle"
+
+#: prefs.js:230
+msgid "Top \t Horizontal Orientation"
+msgstr "Nahoře \t Vodorovně"
+
+#: prefs.js:231
+msgid "Bottom \t Horizontal Orientation"
+msgstr "Dole \t Vodorovně"
+
+#: prefs.js:232
+msgid "Hide \t Horizontal Orientation"
+msgstr "Skryj \t Vodorovně"
+
+#: prefs.js:248 prefs.js:564
+msgid "Fine Tune Workspace Thumbnails Position"
+msgstr "Doladit pozice miniatur pracovního prostoru"
+
+#: prefs.js:249 prefs.js:565
+msgid ""
+"Adjusts the position of the thumbnails on the axis given by the orientation "
+"of the workspaces"
+msgstr "Upraví polohu miniatur na ose dané orientací pracovních ploch"
+
+#: prefs.js:257
+msgid "Reserve Full Screen Height/Width for Thumbnails"
+msgstr "Vyhradit výšku/šířku celé obrazovky pro miniatury"
+
+#: prefs.js:258
+msgid ""
+"The whole screen height/width will be reserved for workspace thumbnails at "
+"the expense of space available for Dash (if the Dash is oriented in a "
+"different axis)."
+msgstr ""
+"Celá výška/šířka obrazovky bude vyhrazena pro miniatury pracovního prostoru "
+"na úkor místa dostupného pro Dash (pokud je Dash orientován v jiné ose)."
+
+#: prefs.js:275
+msgid "Workspace Thumbnails Max Scale - Window Picker"
+msgstr "Miniatury pracovního prostoru Maximální měřítko - Výběr okna"
+
+#: prefs.js:276
+msgid ""
+"Adjusts the maximum size of the workspace thumbnails in the overview "
+"(percentage relative to display width)"
+msgstr ""
+"Upraví maximální velikost miniatur pracovního prostoru (v procentech "
+"vzhledem k šířce zobrazení)"
+
+#: prefs.js:293
+msgid "Workspace Thumbnails Max Scale - App View"
+msgstr "Miniatury pracovního prostoru Maximální měřítko -Aplikační pohled"
+
+#: prefs.js:294
+msgid "Allows you to set different thumbnails scale for the Applications view"
+msgstr "Umožňuje nastavit různé měřítko miniatur pro zobrazení Aplikace"
+
+#: prefs.js:302 prefs.js:822
+msgid "Workspace Preview"
+msgstr "Náhled pracovního prostoru"
+
+#: prefs.js:317
+msgid "Workspaces Scale"
+msgstr "Měřítko pracovních prostorů"
+
+#: prefs.js:318
+msgid ""
+"Allows to shrink workspace previews to adjust spacing or fit more of the "
+"adjacent workspaces on the screen. Default size is calculated to use all "
+"available space with minimal spacing"
+msgstr ""
+"Umožňuje zmenšit náhledy pracovních ploch, aby se upravily rozestupy nebo "
+"aby se na obrazovku vešlo více sousedních pracovních ploch. Výchozí velikost "
+"je vypočtena tak, aby se využil veškerý dostupný prostor s minimálními "
+"rozestupy"
+
+#: prefs.js:335
+msgid "Workspaces Spacing"
+msgstr "Rozestupy pracovních prostorů"
+
+#: prefs.js:336
+msgid ""
+"Adjusts spacing between workspace previews so you can control how much of "
+"the adjacent workspaces overlap to the current workspace overview. Default "
+"value should set the adjacent workspaces off-screen."
+msgstr ""
+"Upravuje rozestupy mezi náhledy pracovních ploch, tedy můžete ovlivnit, jak "
+"moc se sousední pracovní plochy překrývají s aktuálním přehledem pracovních "
+"ploch. Výchozí hodnota by měla nastavit sousední pracovní plochy mimo "
+"obrazovku."
+
+#: prefs.js:351
+msgid "Center App Grid"
+msgstr "Vycentrovat mřížku aplikace"
+
+#: prefs.js:352
+msgid "Centers the app grid relative to the display instead of available space"
+msgstr ""
+"Zobrazení vyhledávání bude vystředěno na displej namísto dostupného místa"
+
+#: prefs.js:361
+msgid "Search View"
+msgstr "Zobrazení vyhledávání"
+
+#: prefs.js:367
+msgid "Center Search View"
+msgstr "Vycentrovat zobrazení vyhledávání"
+
+#: prefs.js:368
+msgid ""
+"Centers the search view relative to the display instead of available space"
+msgstr ""
+"Vycentruje zobrazení vyhledávání vzhledem k displeji namísto dostupného "
+"prostoru"
+
+#: prefs.js:376
+msgid "Always Show Search Entry"
+msgstr "Vždy zobrazit pole vyhledávání"
+
+#: prefs.js:377
+msgid ""
+"If disabled, the search entry field will be hidden when not in use, so the "
+"workspace preview and app grid may take up more space"
+msgstr ""
+"Je-li je zakázáno, pole pro vyhledávání bude skryto, tedy náhled pracovního "
+"prostoru a mřížka aplikace mohou zabírat více místa"
+
+#: prefs.js:394
+msgid "Search Results Width"
+msgstr "Šířka výsledků hledání"
+
+#: prefs.js:395
+msgid ""
+"Adjusts the maximum width of search results view (percentage relative to "
+"default). This allows to fit more (or less) app icons into the app search "
+"result"
+msgstr ""
+"Upraví maximální šířku zobrazení výsledků vyhledávání (v procentech vzhledem "
+"k výchozímu nastavení). To vám umožní umístit více či méně ikon aplikací do "
+"výsledku vyhledávání aplikací"
+
+#: prefs.js:405 prefs.js:2013
+msgid "Panel"
+msgstr "Panel"
+
+#: prefs.js:411
+msgid "Main Panel Position"
+msgstr "Umístění hlavního panelu"
+
+#: prefs.js:412
+msgid "Allows to place the main panel at the bottom of the primary display"
+msgstr "Umožňuje umístit hlavní panel do spodní části primárního displeje"
+
+#: prefs.js:416
+msgid "Top (Default)"
+msgstr "Nahoře (výchozí)"
+
+#: prefs.js:425
+msgid "Main Panel Visibility"
+msgstr "Viditelnost hlavního panelu"
+
+#: prefs.js:426
+msgid "Allows to hide main panel when not needed"
+msgstr "Umožňuje skrýt hlavní panel anebo jej zobrazit jen v přehledu"
+
+#: prefs.js:430
+msgid "Always Visible (Default)"
+msgstr "Vždy viditelný (výchozí)"
+
+#: prefs.js:431
+msgid "Overview Only"
+msgstr "Pouze přehled"
+
+#: prefs.js:432
+msgid "Always Hidden"
+msgstr "Vždy skrytý"
+
+#: prefs.js:442
+msgid "Workspace Switcher Popup"
+msgstr "Přepínač pracovního prostoru - vyskakovací okno"
+
+#: prefs.js:458
+msgid "Horizontal Position (percentage from the left)"
+msgstr "Horizontální poloha (procent zleva)"
+
+#: prefs.js:459
+msgid ""
+"This popup shows up when you switch workspace using a keyboard shortcut or "
+"gesture outside of the overview. You can disable it on the \"Behavior\" tab. "
+"If you want more control over the popup, try the \"Workspace Switcher "
+"Manager\" extension"
+msgstr ""
+"Toto vyskakovací okno se zobrazí, když přepnete pracovní prostor pomocí "
+"klávesové zkratky nebo gesta mimo přehled. Můžete jej zakázat na kartě "
+"Vlastnosti. Pro větší kontrolu nad vyskakovacím oknem, vyzkoušejte rozšíření "
+"\"Workspace Switcher Manager\""
+
+#: prefs.js:479
+msgid "Vertical Position (percentage from the top)"
+msgstr "Vertikální pozice (procent shora)"
+
+#: prefs.js:490
+msgid "Notifications and OSD"
+msgstr "Oznámení a OSD"
+
+#: prefs.js:496
+msgid "Notification Banner Position"
+msgstr "Pozice oznamovacího banneru"
+
+#: prefs.js:497
+msgid "Choose where the notification banners appear on the screen"
+msgstr "Vyberte, kde se na obrazovce zobrazí oznamovací bannery"
+
+#: prefs.js:501 prefs.js:520 prefs.js:1150
+msgid "Top Left"
+msgstr "Nahoře vlevo"
+
+#: prefs.js:502
+msgid "Top Center (Default)"
+msgstr "Nahoře Střed (výchozí)"
+
+#: prefs.js:503 prefs.js:522 prefs.js:1151
+msgid "Top Right"
+msgstr "Nahoře Vpravo"
+
+#: prefs.js:504 prefs.js:524 prefs.js:1152
+msgid "Bottom Left"
+msgstr "Dole vlevo"
+
+#: prefs.js:505
+msgid "Bottom Center"
+msgstr "Dole Vlevo"
+
+#: prefs.js:506 prefs.js:526 prefs.js:1153
+msgid "Bottom Right"
+msgstr "Dole vpravo"
+
+#: prefs.js:514
+msgid "OSD Popup Position"
+msgstr "Pozice OSD"
+
+#: prefs.js:515
+msgid ""
+"Choose where the OSD pop-ups (like sound volume level) appear on the screen"
+msgstr "Vyberte, kde se na obrazovce zobrazí OSD (například nastavení zvuku)"
+
+#: prefs.js:519 prefs.js:743 prefs.js:787 prefs.js:1087 prefs.js:1107
+#: prefs.js:1130 prefs.js:1244 prefs.js:1363 prefs.js:1380 prefs.js:1397
+#: prefs.js:1463
+msgid "Disable"
+msgstr "Zakázat"
+
+#: prefs.js:521
+msgid "Top Center"
+msgstr "Nahoře vlevo"
+
+#: prefs.js:523
+msgid "Center"
+msgstr "Střed"
+
+#: prefs.js:525
+msgid "Bottom Center (Default)"
+msgstr "Dole Střed (výchozí)"
+
+#: prefs.js:534
+msgid "Secondary Monitors"
+msgstr "Sekundární monitory"
+
+#: prefs.js:540
+msgid "Workspace Thumbnails Position"
+msgstr "Pozice miniatur pracovního prostoru"
+
+#: prefs.js:541
+msgid ""
+"Allows to place workspace thumbnails of secondary monitors on the opposite "
+"side than on the primary monitor"
+msgstr ""
+"Umožňuje umístit miniatury pracovního prostoru sekundárních monitorů na "
+"opačnou stranu než na primárním monitoru"
+
+#: prefs.js:545
+msgid "Same as Primary"
+msgstr "Stejné jako primární"
+
+#: prefs.js:546
+msgid "Left / Top"
+msgstr "Vlevo / Nahoře"
+
+#: prefs.js:547
+msgid "Right / Bottom"
+msgstr "Vpravo / Dole"
+
+#: prefs.js:582
+msgid "Workspace Thumbnails Max Scale"
+msgstr "Miniatury pracovního prostoru Maximální měřítko"
+
+#: prefs.js:583
+msgid ""
+"Adjusts maximum size of the workspace thumbnails (percentage relative to the "
+"display width / height) for secondary monitors"
+msgstr ""
+"Upravuje maximální velikost miniatur pracovního prostoru (v procentech "
+"vzhledem k šířce / výšce zobrazení) pro sekundární monitory"
+
+#: prefs.js:600
+msgid "Workspace Preview Scale"
+msgstr "Měřítko náhledu pracovního prostoru"
+
+#: prefs.js:601
+msgid "Allows to scale down workspace previews on secondary monitors"
+msgstr "Zmenšuje náhledy pracovního prostoru na sekundárních monitorech"
+
+#: prefs.js:609
+msgid "Shift Overview by Panel Height"
+msgstr "Posuň náhled pracovního prostoru podle výšky panelu"
+
+#: prefs.js:610
+msgid ""
+"This option can help align the overview of the secondary monitor with the "
+"primary one"
+msgstr ""
+"Tato možnost může pomoci zarovnat přehled sekundárního monitoru s primárním "
+"monitorem"
+
+#: prefs.js:635
+msgid "Dash Max Icon Size"
+msgstr "Maximální velikost ikon"
+
+#: prefs.js:636
+msgid ""
+"Maximum size of Dash icons in pixels. Adaptive option switches between "
+"default 64 and 48 for low resolution displays"
+msgstr ""
+"Maximální velikost ikon Dash v pixelech. Možnost Adaptive přepíná mezi "
+"výchozími hodnotami 64 a 48 pro displeje s nízkým rozlišením"
+
+#: prefs.js:640 prefs.js:1545 prefs.js:1740
+msgid "Adaptive (Default)"
+msgstr "Adaptivní (výchozí)"
+
+#: prefs.js:641 prefs.js:867 prefs.js:1553 prefs.js:1741
+msgid "128"
+msgstr "128"
+
+#: prefs.js:642 prefs.js:868 prefs.js:1554 prefs.js:1742
+msgid "112"
+msgstr "112"
+
+#: prefs.js:643 prefs.js:1555 prefs.js:1743
+msgid "96"
+msgstr "96"
+
+#: prefs.js:644 prefs.js:870 prefs.js:1556 prefs.js:1744
+msgid "80"
+msgstr "80"
+
+#: prefs.js:645 prefs.js:871 prefs.js:1557 prefs.js:1745
+msgid "64"
+msgstr "64"
+
+#: prefs.js:646 prefs.js:784 prefs.js:872 prefs.js:1558 prefs.js:1746
+msgid "48"
+msgstr "48"
+
+#: prefs.js:647 prefs.js:785 prefs.js:873
+msgid "32"
+msgstr "32"
+
+#: prefs.js:655
+msgid "Dash Background Style"
+msgstr "Dash styl pozadí"
+
+#: prefs.js:656
+msgid ""
+"Allows you to change the background color of the dash to match the search "
+"results an app folders"
+msgstr ""
+"Umožňuje změnit barvu pozadí Dash tak, aby odpovídala výsledkům vyhledávání "
+"ve složkách aplikace"
+
+#: prefs.js:660 prefs.js:1029 prefs.js:1057 prefs.js:1149 prefs.js:1223
+#: prefs.js:1362 prefs.js:1379 prefs.js:1435 prefs.js:1449
+msgid "Default"
+msgstr "Výchozí"
+
+#: prefs.js:661
+msgid "Light"
+msgstr "Lehké"
+
+#: prefs.js:677
+msgid "Dash Background Opacity"
+msgstr "Neprůhlednost pozadí"
+
+#: prefs.js:678
+msgid "Adjusts the opacity of the Dash background"
+msgstr "Upraví průhlednost pozadí Dash"
+
+#: prefs.js:696
+msgid "Dash Background Radius"
+msgstr "Poloměr pozadí"
+
+#: prefs.js:697
+msgid ""
+"Adjusts the border radius of the Dash background in pixels. 0 means the "
+"default value given by the current theme style"
+msgstr ""
+"Upraví poloměr okraje pozadí Dash v pixelech. 0 znamená výchozí hodnotu dle "
+"stylu tématu"
+
+#: prefs.js:707
+msgid "Dash Background GNOME 3 Style"
+msgstr "Dash pozadí stylu GNOME 3"
+
+#: prefs.js:708
+msgid ""
+"Background of the vertically oriented dash will imitate the GNOME 3 style"
+msgstr "Pozadí vertikálně orientovaného Dash napodobí styl prostředí GNOME 3"
+
+#: prefs.js:718
+msgid "Running App Indicator"
+msgstr "Běžící aplikační indikátor"
+
+#: prefs.js:719
+msgid ""
+"Allows you to change style of the running app indicator under the app icon"
+msgstr "Umožňuje změnit styl indikátoru spuštěné aplikace pod ikonou aplikace"
+
+#: prefs.js:723
+msgid "Dot (Default)"
+msgstr "Tečka (výchozí)"
+
+#: prefs.js:724
+msgid "Line"
+msgstr "Linka"
+
+#: prefs.js:732 prefs.js:1233
+msgid "Workspace Thumbnails"
+msgstr "Miniatury pracovního prostoru"
+
+#: prefs.js:738
+msgid "Show Workspace Thumbnail Labels"
+msgstr "Zobrazit štítky miniatur pracovního prostoru"
+
+#: prefs.js:739
+msgid ""
+"Each workspace thumbnail can show label with its index and name (if defined "
+"in the system settings) or name/title of its most recently used app/window"
+msgstr ""
+"Každá miniatura pracovního prostoru může zobrazovat svůj index a název "
+"(pokud je definován v nastavení systému) nebo jméno/název naposledy použité "
+"aplikace/okna"
+
+#: prefs.js:744
+msgid "Index"
+msgstr "Index"
+
+#: prefs.js:745
+msgid "Index + WS Name"
+msgstr "Index + Název plochy"
+
+#: prefs.js:746
+msgid "Index + App Name"
+msgstr "Index + Název aplikace"
+
+#: prefs.js:747
+msgid "Index + Window Title"
+msgstr "Rejstřík + Název okna"
+
+#: prefs.js:754
+msgid "Show WS Thumbnail Label on Hover"
+msgstr "Zobrazit štítek miniatur ploch při umístění kurzoru myši"
+
+#: prefs.js:755
+msgid "Show the label only when the mouse pointer hovers over the thumbnail"
+msgstr "Zobrazit popisek pouze tehdy, když ukazatel myši najede na miniaturu"
+
+#: prefs.js:763
+msgid "Show Wallpaper in Workspace Thumbnails"
+msgstr "Zobrazit tapetu v miniaturách pracovního prostoru"
+
+#: prefs.js:764
+msgid "All workspace thumbnails will include the current desktop background"
+msgstr ""
+"Všechny miniatury pracovního prostoru budou obsahovat aktuální pozadí plochy"
+
+#: prefs.js:772 prefs.js:1254
+msgid "Window Preview"
+msgstr "Náhled okna"
+
+#: prefs.js:778
+msgid "Window Preview App Icon Size"
+msgstr "Velikost ikony aplikace náhledu okna"
+
+#: prefs.js:783
+msgid "64 (Default)"
+msgstr "64 (výchozí)"
+
+#: prefs.js:786
+msgid "22"
+msgstr "22"
+
+#: prefs.js:795
+msgid "Window Title Position / Visibility"
+msgstr "Pozice názvu okna / viditelnost"
+
+#: prefs.js:796
+msgid ""
+"Sets the position of the window title that is displayed when the mouse "
+"hovers over the window or can always be visible"
+msgstr ""
+"Nastavuje pozici názvu okna zobrazeného při najetí myší na okno nebo může "
+"být viditelný vždy"
+
+#: prefs.js:800
+msgid "Inside Window"
+msgstr "Uvnitř okna"
+
+#: prefs.js:801
+msgid "Inside Window Always Visible"
+msgstr "Uvnitř okna vždy viditelné"
+
+#: prefs.js:802
+msgid "Below Window (Default)"
+msgstr "Pod oknem (výchozí)"
+
+#: prefs.js:810
+msgid "Show Close Window Button"
+msgstr "Zobraz tlačítko Zavři okno"
+
+#: prefs.js:811
+msgid "Allows you to hide close window button"
+msgstr "Umožňuje skrýt tlačítko zavření okna"
+
+#: prefs.js:828
+msgid "Show Workspace Preview Background"
+msgstr "Zobrazit pozadí náhledu pracovní plochy"
+
+#: prefs.js:829
+msgid "Allows to hide the background of the workspace preview"
+msgstr "Umožňuje skrýt pozadí náhledu pracovní plochy"
+
+#: prefs.js:846
+msgid "Workspace Background Corner Radius"
+msgstr "Poloměr rohu pozadí pracovní plochy"
+
+#: prefs.js:847
+msgid "Adjusts the corner radius of the workspace preview in the overview"
+msgstr "Nastaví poloměr rohu náhledu pracovní plochy v přehledu"
+
+#: prefs.js:855 prefs.js:1318 prefs.js:2022
+msgid "Search"
+msgstr "Vyhledávání"
+
+#: prefs.js:861
+msgid "App Search Icon Size"
+msgstr "Velikost ikony vyhledávání aplikací"
+
+#: prefs.js:862
+msgid ""
+"Size of results provided by the App Search Provider - smaller size allows to "
+"fit more results. Adaptive option switches between default 96 and 64 for low "
+"resolution displays"
+msgstr ""
+"Velikost ikon aplikací ve výsledcích hledání. Menší velikost - více "
+"zobrazených výsledků. Adaptivní přepíná mezi výchozími hodnotami 96 a 64 pro "
+"displeje s nízkým rozlišením"
+
+#: prefs.js:866
+msgid "Adaptive"
+msgstr "Adaptivní"
+
+#: prefs.js:869
+msgid "96 (Default)"
+msgstr "96 (výchozí)"
+
+#: prefs.js:893
+msgid "Max Search Results Rows"
+msgstr "Maximální počet řádků výsledků hledání"
+
+#: prefs.js:894
+msgid ""
+"Sets the maximum number of rows for result lists of all search providers "
+"except the window search provider which always lists all results"
+msgstr ""
+"Nastaví maximální počet řádků pro seznamy výsledků všech poskytovatelů "
+"vyhledávání vyhledávání s výjimkou zprostředkovatele vyhledávání v okně jenž "
+"vždy zobrazuje všechny výsledky"
+
+#: prefs.js:904
+msgid "Highlighting"
+msgstr "Podtržení"
+
+#: prefs.js:905
+msgid ""
+"The GNOME default highlighting style (bold) causes strings to be "
+"\"randomly\" ellipsized, often preventing you from seeing the whole string, "
+"even if there is space for it. The selected style will be applied to all "
+"search results globally. If you are using other extensions that offer this "
+"option, make sure you set the same setting in all of them."
+msgstr ""
+"Výchozí styl zvýraznění GNOME (tučné) způsobuje náhodné zkreslení a často "
+"brání zobrazení celého řetězce, i když je pro něj místo. Vybraný styl se "
+"použije na všechny výsledky vyhledávání globálně. Pokud používáte jiná "
+"rozšíření, která tuto možnost nabízejí, ujistěte se, že ve všech nastavíte "
+"stejné nastavení."
+
+#: prefs.js:909
+msgid "Bold (Default)"
+msgstr "Tučně (výchozí)"
+
+#: prefs.js:910
+msgid "Underline"
+msgstr "Podtržení"
+
+#: prefs.js:911
+msgid "None"
+msgstr "Nic"
+
+#: prefs.js:919
+msgid "Overview Background"
+msgstr "Přehled - pozadí"
+
+#: prefs.js:925
+msgid "Show Wallpaper"
+msgstr "Zobrazit tapetu"
+
+#: prefs.js:926
+msgid ""
+"Replaces the solid grey background in the overview with the current desktop "
+"wallpaper"
+msgstr "Nahradí jednolité šedé pozadí v přehledu aktuální tapetou plochy"
+
+#: prefs.js:942
+msgid "Brightness"
+msgstr "Jas"
+
+#: prefs.js:943
+msgid "Brightness of the background wallpaper in the overview"
+msgstr "Jas tapety na pozadí v přehledu"
+
+#: prefs.js:959
+msgid "Brightness for Search View"
+msgstr "Jas pro zobrazení hledání"
+
+#: prefs.js:960
+msgid ""
+"Allows you to set a lower background brightness for search view mode where "
+"text visibility is more important"
+msgstr ""
+"Umožňuje nastavit nižší jas pozadí pro režim zobrazení vyhledávání pro lepší "
+"viditelnost textu"
+
+#: prefs.js:976
+msgid "Blur Window Picker Background"
+msgstr "Rozostření pozadí výběru okna"
+
+#: prefs.js:977
+msgid "Sets the amount of background blur in the window picker view"
+msgstr "Rozostření tapety na pozadí ve výběru oken"
+
+#: prefs.js:993
+msgid "Blur App Grid/Search View Background"
+msgstr "Rozostření pozadí v mřížce aplikací/hledání"
+
+#: prefs.js:994
+msgid ""
+"Sets the amount of background blur in the app grid and search results views"
+msgstr ""
+"Nastavení hodnoty rozostření tapety na pozadí v mřížce aplikace a zobrazení "
+"výsledků vyhledávání"
+
+#: prefs.js:1002
+msgid "Smooth Blur Transitions"
+msgstr "Plynulé přechody rozostření"
+
+#: prefs.js:1003
+msgid ""
+"Allows for smoother blur transitions, but can affect the overall smoothness "
+"of overview animations on weak hardware"
+msgstr ""
+"Umožňuje hladší přechody rozostření, ale může ovlivnit celkovou plynulost "
+"animací v přehledu"
+
+#: prefs.js:1018
+msgid "Overview"
+msgstr "Přehled"
+
+#: prefs.js:1024
+msgid "Overview Mode"
+msgstr "Režim přehledu"
+
+#: prefs.js:1025
+msgid ""
+"The Expose Windows on Hover mode does not expose the workspace preview "
+"windows until the mouse pointer enters any window\n"
+"The Static Workspace mode keeps the workspace static when you activate the "
+"overview, it only shows Dash, workspace thumbnails and search entry over the "
+"workspace and only clicking on an active workspace thumbnail activates the "
+"default overview"
+msgstr ""
+"Režim Zobrazit okna při módu najetí myší neodkryje okna náhledu pracovního "
+"prostoru, dokud ukazatel myši nenajede do jakéhokoli okna.\n"
+"Režim Statická pracovní plocha ji zachová statickou při náhledu, zobrazuje "
+"jen Dash, miniatury pracovní plochy a vyhledávání. Jen kliknutím na aktivní "
+"miniaturu pracovní plochy se aktivuje výchozí přehled"
+
+#: prefs.js:1030
+msgid "Expose Windows on Hover"
+msgstr "Zobrazit okna při najetí myší"
+
+#: prefs.js:1031
+msgid "Static Workspace"
+msgstr "Statická pracovní plocha"
+
+#: prefs.js:1038
+msgid "Startup State"
+msgstr "Stav spuštění"
+
+#: prefs.js:1039
+msgid "Allows to change the state in which GNOME Shell starts a session"
+msgstr "Umožňuje změnit stav ve kterém GNOME Shell zahajuje relaci"
+
+#: prefs.js:1043
+msgid "Overview (Default)"
+msgstr "Přehled (výchozí)"
+
+#: prefs.js:1044
+msgid "Desktop"
+msgstr "Desktop"
+
+#: prefs.js:1045 prefs.js:1090 prefs.js:1133
+msgid "Applications"
+msgstr "Aplikace"
+
+#: prefs.js:1052
+msgid "Escape Key Behavior"
+msgstr "Chování klávesy Escape"
+
+#: prefs.js:1053
+msgid ""
+"Allows you to close the overview with a single press of the Escape key, even "
+"from the application grid or from search, if the search entry field does not "
+"have focus"
+msgstr ""
+"Umožňuje zavřít přehled jediným stisknutím klávesy Escape, a to i z mřížky "
+"aplikace nebo z vyhledávání, pokud pole pro zadání vyhledávání nemá fokus"
+
+#: prefs.js:1058
+msgid "Close Overview"
+msgstr "Zavři Přehled"
+
+#: prefs.js:1066
+msgid "Click Empty Space To Close"
+msgstr "Klikni prázdné místo pro zavření"
+
+#: prefs.js:1067
+msgid "Enables clicking on an empty space in the overview to close it"
+msgstr "Povolí kliknutí na prázdné místo v přehledu pro jeho zavření"
+
+#: prefs.js:1076
+msgid "Overlay Key (Super/Windows)"
+msgstr "Překryvná klávesa (Super/Windows)"
+
+#: prefs.js:1082
+msgid "Single-Press Action"
+msgstr "Akce jedním tlačítkem"
+
+#: prefs.js:1083
+msgid ""
+"Disable or change behavior when you press and release the Super key. The "
+"\"Search Windows\" options requires the \"WSP (Window Search Provider)\" "
+"extension installed and enabled. Link is available on the Modules tab in "
+"Settings. If you want another extension (like AATWS) to handle the overlay "
+"key, set this option to \"Overview - Window Picker (Default)\" and the "
+"\"Double-Press Action\" option to \"Applications (Default)\""
+msgstr ""
+"Zakáže nebo změní chování při stisknutí a uvolnění klávesy Super. Možnosti "
+"\"Hledat ve Windows\" vyžaduje nainstalované a povolené rozšíření \"WSP "
+"(Window Search Provider)\". Odkaz je k dispozici na kartě Moduly v "
+"Nastavení. Pokud chcete, aby se o překryvnou klávesu staralo jiné rozšíření "
+"(například AATWS), nastavte tuto možnost na \"Přehled - výběr oken "
+"(výchozí)\" a možnost \"Akce při dvojitém stisknutí\" na \"Aplikace "
+"(výchozí)\"."
+
+#: prefs.js:1088 prefs.js:1131
+msgid "Follow Global Overview Mode"
+msgstr "Podle globálního nastavení"
+
+#: prefs.js:1089 prefs.js:1132
+msgid "Overview - Window Picker (Default)"
+msgstr "Přehled - Okno pro výběr (Výchozí)"
+
+#: prefs.js:1091 prefs.js:1134
+msgid "Overview - Static WS Preview"
+msgstr "Přehled - Statický náhled ploch"
+
+#: prefs.js:1092 prefs.js:1135
+msgid "Overview - Static Workspace"
+msgstr "Přehled - Statická pracovní plocha"
+
+#: prefs.js:1093 prefs.js:1109 prefs.js:1136
+msgid "Search Windows (requires WSP extension)"
+msgstr "Vyhledávání oken (vyžaduje rozšíření WSP)"
+
+#: prefs.js:1102
+msgid "Double-Press Action"
+msgstr "Akce dvojitého stisknutí"
+
+#: prefs.js:1103
+msgid ""
+"Disable or change behavior when you double-press the Super key. The \"Search "
+"Windows\" option requires the \"WSP (Window Search Provider)\" extension "
+"installed and enabled. The \"Static WS Overview - Expose Windows\" option "
+"allows you to switch to default Activities Overview window picker view if "
+"you set static workspace (preview) for the single press/release Super key "
+"action"
+msgstr ""
+"Zakázat nebo změnit chování při dvojitém stisknutí klávesy Super. Volba "
+"„Hledat v oknech“ vyžaduje, aby bylo aktivováno rozšíření "
+"\"WindowSearchProvider\". Volba \"Statický přehled ploch - vystavit okna“ "
+"umožňuje přepnout na výchozí zobrazení výběru oken Přehledu činností. Pokud "
+"nastavíte statický pracovní prostor (náhled) pro akci jediného stisknutí / "
+"uvolnění klávesy Super"
+
+#: prefs.js:1108
+msgid "Applications (Default)"
+msgstr "Aplikace (výchozí)"
+
+#: prefs.js:1110
+msgid "Overview - Window Picker"
+msgstr "Přehled - Okno pro výběr"
+
+#: prefs.js:1119
+msgid "Hot Corner (Install Custom Hot Corners - Extended for more options)"
+msgstr ""
+"Hot Corner (pro více možností nainstalujte rozšíření \"Custom Hot Corners - "
+"Extended\")"
+
+#: prefs.js:1125
+msgid "Hot Corner Action"
+msgstr "Hot Corner Akce"
+
+#: prefs.js:1126
+msgid ""
+"Disable or change behavior of the hot corner. Holding down the Ctrl key "
+"while hitting the hot corner switches between Overview/Applications actions. "
+"The \"Search Windows\" option requires the \"WSP (Window Search Provider)\" "
+"extension installed and enabled"
+msgstr ""
+"Zakázat nebo změnit chování Hot Corner. Podržením klávesy Ctrl při najetí na "
+"Hot Corner přepnete mezi akcemi Přehled/Aplikace. Možnost \"Hleta v oknech\" "
+"vyžaduje nainstalované a povolené rozšíření \"WSP (Window Search Provider)\""
+
+#: prefs.js:1144
+msgid "Hot Corner Position"
+msgstr "Hot Corner pozice"
+
+#: prefs.js:1145
+msgid ""
+"Choose which corner of your monitors will be active. If you choose \"Follow "
+"Dash\" option, the corner will be placed near the left or top edge of the "
+"Dash. The last option extends the hot corner trigger to cover the entire ege "
+"of the monitor where Dash is located"
+msgstr ""
+"Vyberte, který roh monitorů bude aktivní. Pokud zvolíte možnost „Následuj "
+"Dash“, bude umístěn v blízkosti okraje panelu Dash. „Následuj Dash - Okraj“ "
+"rozšiřuje aktivní roh tak, aby pokrýval celý okraj monitoru, na kterém je "
+"umístěn panel Dash"
+
+#: prefs.js:1154
+msgid "Follow Dash"
+msgstr "Následuj Dash"
+
+#: prefs.js:1155
+msgid "Follow Dash - Hot Edge"
+msgstr "Následuj Dash - Okraj"
+
+#: prefs.js:1163
+msgid "Enable Hot Corner in Full-Screen Mode"
+msgstr "Hot Corner aktivovat v režimu celé obrazovky"
+
+#: prefs.js:1164
+msgid ""
+"If you often work with full-screen applications and want the hot corner to "
+"be usable"
+msgstr ""
+"Pokud často pracujete s celoobrazovkovými aplikacemi a chcete, aby byl Hot "
+"Corner použitelný"
+
+#: prefs.js:1174
+msgid "Show Ripples Animation"
+msgstr "Zobrazit animaci vlnění"
+
+#: prefs.js:1175
+msgid ""
+"The ripple animation is played when the hot corner is activated. The ripple "
+"size has been reduced to be less distracting"
+msgstr ""
+"Při aktivaci rohu se přehraje animace vlnění. Velikost vlnění byla zmenšena, "
+"aby méně odváděla pozornost"
+
+#: prefs.js:1191
+msgid "Isolate Workspaces"
+msgstr "Izolovat pracovní plochy"
+
+#: prefs.js:1192
+msgid "Dash will only show apps and windows from the current workspace"
+msgstr "Dash zobrazí pouze aplikace a okna z aktuální pracovní plochy"
+
+#: prefs.js:1202
+msgid "App Icon - Click Behavior"
+msgstr "Aplikační ikony - chování při kliknutí"
+
+#: prefs.js:1203
+msgid ""
+"Choose your preferred behavior when clicking on an app icon. The \"Prefer "
+"Current Workspace\" option opens a new app window if not present in the "
+"current workspace. The \"Open New Window\" option also switches behavior of "
+"the middle click to \"Activate\" since its default behavior is to open a new "
+"window"
+msgstr ""
+"Zvolte preferované chování při kliknutí na ikonu aplikace. Možnost "
+"„Preferovat aktuální pracovní plochu“ otevře nové okno aplikace, pokud není "
+"přítomna na aktuální pracovní ploše. Možnost „Otevřít nové okno“ také "
+"přepíná chování prostředního kliknutí na „Aktivovat“, protože jeho výchozím "
+"chováním je otevření nového okna"
+
+#: prefs.js:1207
+msgid "Activate App Immediately"
+msgstr "Okamžitě aktivuje aplikace"
+
+#: prefs.js:1208
+msgid "First Switch to Workspace"
+msgstr "První přepnutí do pracovního prostoru"
+
+#: prefs.js:1209
+msgid "Open New Window (if supported)"
+msgstr "Otevři nové okno (je-li podporováno)"
+
+#: prefs.js:1210
+msgid "Prefer Current Workspace"
+msgstr "Preferuj aktuální pracovní plochu"
+
+#: prefs.js:1218
+msgid "App Icon - Scroll Action"
+msgstr "Aplikační ikony - Akce posunu"
+
+#: prefs.js:1219
+msgid ""
+"Choose the behavior when scrolling over an app icon. The window cycler works "
+"with a list of windows sorted by the \"Most Recently Used\" and grouped by "
+"workspaces. Scrolling up cycles through previously used windows on the same "
+"workspace and then switches to another workspace, if any"
+msgstr ""
+"Výběr chování při posouvání přes ikonu aplikace. Algoritmus cyklení oken "
+"pracuje se seznamem oken seřazených podle „Nejnověji použitých“ a "
+"seskupených podle pracovních ploch. Posouvání nahoru cykluje dříve použitá "
+"okna na stejné pracovní ploše a poté se přepne na jinou pracovní plochu, "
+"pokud nějaká existuje"
+
+#: prefs.js:1224
+msgid "Cycle App Windows - Highlight Selected"
+msgstr "Cykluj aplikační okna - zvýrazni vybrané"
+
+#: prefs.js:1225
+msgid "Cycle App Windows - Highlight App"
+msgstr "Cykluj aplikační okna - zvýrazni aplikaci"
+
+#: prefs.js:1239
+msgid "Close Workspace Button"
+msgstr "Tlačítko Zavřít pracovní plochu"
+
+#: prefs.js:1240
+msgid ""
+"The Close Workspace button appears on the workspace thumbnail when you hover "
+"over it and allows you to close all windows on the workspace. You can choose "
+"a \"safety lock\" to prevent accidental use"
+msgstr ""
+"Tlačítko Zavřít pracovní plochu se objeví na miniatuře pracovní plochy, když "
+"na ni umístíte ukazatel myši a umožní vám zavřít všechna okna na pracovní "
+"ploše. Můžete si vybrat bezpečnostní zámek, který zabrání náhodnému použití"
+
+#: prefs.js:1245
+msgid "Single Click"
+msgstr "Jedno kliknutí"
+
+#: prefs.js:1246
+msgid "Double Click"
+msgstr "Dvojité kliknutí"
+
+#: prefs.js:1247
+msgid "Ctrl Key + Click"
+msgstr "Klávesa Ctrl + kliknutí"
+
+#: prefs.js:1260
+msgid "Secondary Button Click Action"
+msgstr "Akce druhého tlačítka myši"
+
+#: prefs.js:1261
+msgid "Allows you to add a secondary mouse click action to the window preview"
+msgstr "Umožňuje přidat do náhledu okna akci na kliknutí druhého tlačítka myši"
+
+#: prefs.js:1265 prefs.js:1281 prefs.js:1297
+msgid "Activate Window (Default)"
+msgstr "Aktivuj okno (výchozí)"
+
+#: prefs.js:1266 prefs.js:1282
+msgid "Close Window"
+msgstr "Zavři okno"
+
+#: prefs.js:1267 prefs.js:1283 prefs.js:1298
+msgid "Search For Same App Windows"
+msgstr "Hledej pro stejné aplikační okno"
+
+#: prefs.js:1268 prefs.js:1284 prefs.js:1299
+msgid "Create Window Thumbnail/PiP (requires WTMB extension)"
+msgstr "Vytvoření náhledu okna - PIP (vyžaduje WTMB rozšíření)"
+
+#: prefs.js:1276
+msgid "Middle Button Click Action"
+msgstr "Akce kliknutí prostředního tlačítka"
+
+#: prefs.js:1277
+msgid "Allows you to add a middle mouse click action to the window preview"
+msgstr ""
+"Umožňuje přidat do náhledu okna akci na kliknutí prostředního tlačítka myši"
+
+#: prefs.js:1292
+msgid "App Icon Click Action"
+msgstr "Akce kliknutí na ikonu aplikace"
+
+#: prefs.js:1293
+msgid ""
+"Select the action to take when the application icon on the window preview is "
+"clicked"
+msgstr ""
+"Vyberte akci, která se má provést po kliknutí na ikonu aplikace v náhledu "
+"okna"
+
+#: prefs.js:1307
+msgid "Always Activate Selected"
+msgstr "Vždy aktivovat vybrané"
+
+#: prefs.js:1308
+msgid ""
+"If enabled, the currently selected window will be activated when leaving the "
+"Overview even without clicking. Usage example - press Super to open the "
+"Overview, place mouse pointer over a window, press Super again to activate "
+"the window"
+msgstr ""
+"Je-li povoleno, aktuálně vybrané okno se aktivuje při opuštění Přehledu i "
+"bez kliknutí. Příklad použití: stisknutím tlačítka Super otevřete Přehled, "
+"umístěte ukazatel myši nad okno, opětovným stisknutím tlačítka Super okno "
+"aktivujte"
+
+#: prefs.js:1324
+msgid "Enable Fuzzy Match"
+msgstr "Povolit neúplnou shodu"
+
+#: prefs.js:1325
+msgid ""
+"Enabling the fuzzy match allows you to skip letters in the pattern you are "
+"searching for and find \"Firefox\" even if you type \"ffx\". Works only for "
+"the App, Windows, Extensions and Recent files search providers"
+msgstr ""
+"Povolení přibližné shody umožní přeskočit písmena v řetězci, který hledáte "
+"(najde \"Firefox\" i jen zadáním \"ffx\"). Funguje pouze pro poskytovatele "
+"vyhledávání aplikací, oken a posledních souborů"
+
+#: prefs.js:1333
+msgid "Animations"
+msgstr "Animace"
+
+#: prefs.js:1348
+msgid "Animation Speed"
+msgstr "Rychlost animace"
+
+#: prefs.js:1349
+msgid ""
+"Adjusts the global animation speed in percentage of the default duration - "
+"higher value means slower animation"
+msgstr ""
+"Upraví globální rychlost animace v procentech výchozí doby trvání – vyšší "
+"hodnota znamená pomalejší animaci."
+
+#: prefs.js:1357
+msgid "App Grid Animation"
+msgstr "Animace mřížky aplikací"
+
+#: prefs.js:1358
+msgid ""
+"When entering the App Grid view, the app grid animates from the edge of the "
+"screen. You can choose the direction, keep the Default (direction will be "
+"selected automatically) or disable the animation if you don't like it"
+msgstr ""
+"Mřížka aplikací se animuje od okraje obrazovky. Můžete si vybrat směr, "
+"ponechat výchozí (směr bude vybrán automaticky) nebo vypnout animaci"
+
+#: prefs.js:1364 prefs.js:1381
+msgid "Right to Left"
+msgstr "Zprava doleva"
+
+#: prefs.js:1365 prefs.js:1382
+msgid "Left to Right"
+msgstr "Zleva doprava"
+
+#: prefs.js:1366 prefs.js:1383
+msgid "Bottom to Top"
+msgstr "Zespodu nahoru"
+
+#: prefs.js:1367 prefs.js:1384
+msgid "Top to Bottom"
+msgstr "Zhora dolů"
+
+#: prefs.js:1374
+msgid "Search View Animation"
+msgstr "Animace zobrazení vyhledávání"
+
+#: prefs.js:1375
+msgid ""
+"When search is activated the search view with search results can animate "
+"from the edge of the screen. You can choose the direction, keep the Default "
+"(currently Bottom to Top) or disable the animation if you don't like it."
+msgstr ""
+"Je-li aktivováno vyhledávání, zobrazení vyhledávání s výsledky vyhledávání "
+"se může animovat od okraje obrazovky. Můžete si vybrat směr, ponechat "
+"výchozí (aktuálně zdola nahoru) nebo zakázat animaci."
+
+#: prefs.js:1392
+msgid "Workspace Preview Animation"
+msgstr "Animace náhledu pracovního prostoru"
+
+#: prefs.js:1393
+msgid ""
+"When entering / leaving the App Grid / Search view, the workspace preview "
+"can animate to/from workspace thumbnail."
+msgstr ""
+"Při vstupu / opuštění mřížky aplikací / vyhledávání se náhled pracovního "
+"prostoru může animovat do/z miniatury pracovního prostoru."
+
+#: prefs.js:1398
+msgid "Enable"
+msgstr "Povolit"
+
+#: prefs.js:1406
+msgid "Workspace Switcher"
+msgstr "Přepínač pracovního prostoru"
+
+#: prefs.js:1412
+msgid "Wraparound"
+msgstr "Dokola"
+
+#: prefs.js:1413
+msgid "Continue from the last workspace to the first and vice versa"
+msgstr "Pokračování z posledního pracovního prostoru do prvního a naopak"
+
+#: prefs.js:1421
+msgid "Ignore Last (empty) Workspace"
+msgstr "Ignoruj poslední (prázdný) pracovní prostor"
+
+#: prefs.js:1422
+msgid ""
+"In Dynamic workspaces mode, there is always one empty workspace at the end. "
+"Switcher can ignore this last workspace"
+msgstr ""
+"V režimu dynamických pracovních prostorů je na konci vždy jeden prázdný "
+"pracovní prostor. Přepínač může tento poslední pracovní prostor ignorovat"
+
+#: prefs.js:1430
+msgid "Workspace Switcher Animation"
+msgstr "Animace"
+
+#: prefs.js:1431
+msgid ""
+"Allows you to disable movement of the desktop background during workspace "
+"switcher animation outside of the overview. The Static Background mode also "
+"keeps Conky and desktop icons on their place during switching."
+msgstr ""
+"Umožňuje zakázat pohyb pozadí plochy během animace přepínače pracovního "
+"prostoru mimo přehled. Režim Statické pozadí také udržuje ikony Conky a "
+"plochy na svém místě během přepínání."
+
+#: prefs.js:1436
+msgid "Static Background"
+msgstr "Statické pozadí"
+
+#: prefs.js:1444
+msgid "Workspace Switcher Mode (Isolate Monitors)"
+msgstr "Režim přepínače pracovní plochy (izolované monitory)"
+
+#: prefs.js:1445
+msgid ""
+"Note that this is a workaround, not full-fledged feature. GNOME Shell does "
+"not support separate workspaces for each monitor, so V-Shell switches "
+"workspaces only on the primary monitor and moves windows across workspaces "
+"on secondary monitors in order to simulate independent behavior. The current "
+"monitor is determined by the position of the mouse pointer"
+msgstr ""
+"Poznámka: jedná se o řešení, nikoli o plnohodnotnou funkci. GNOME Shell "
+"nepodporuje samostatné pracovní prostory pro každý monitor, takže V-Shell "
+"přepíná pracovní prostory pouze na primárním monitoru a na sekundárních "
+"monitorech přesouvá okna mezi pracovními prostory tak, aby simuloval "
+"nezávislé chování. Aktuální monitor je určen polohou ukazatele myši"
+
+#: prefs.js:1450
+msgid "Current Monitor"
+msgstr "Aktuální monitor"
+
+#: prefs.js:1458
+msgid "Workspace Switcher Popup Mode"
+msgstr "Vyskakovací režim přepínače pracovní plochy"
+
+#: prefs.js:1459
+msgid ""
+"This popup shows up when you switch workspace using a keyboard shortcut or "
+"gesture outside of the overview. You can to disable the popup at all, or "
+"show it on the current monitor (the one with mouse pointer) instead of the "
+"primary."
+msgstr ""
+"Toto vyskakovací okno se zobrazí, když přepnete pracovní prostor pomocí "
+"klávesové zkratky nebo gesta mimo přehled. Vyskakovací okno můžete úplně "
+"zakázat nebo jej zobrazit na aktuálním monitoru (na tom s ukazatelem myši) "
+"místo na primárním."
+
+#: prefs.js:1464
+msgid "Show on Primary Monitor (Default)"
+msgstr "Zobrazit na primárním monitoru (výchozí)"
+
+#: prefs.js:1465
+msgid "Show on Current Monitor"
+msgstr "Zobrazit na aktuálním monitoru"
+
+#: prefs.js:1473
+msgid "Notifications"
+msgstr "Oznámení"
+
+#: prefs.js:1479
+msgid "Window Attention Handler"
+msgstr "Okno - vyžádání pozornosti"
+
+#: prefs.js:1480
+msgid ""
+"When a window requires attention (often a new window), GNOME Shell shows you "
+"a notification about it. You can disable popups of these messages "
+"(notification will be pushed into the message tray silently) or focus the "
+"source window immediately instead"
+msgstr ""
+"Když okno vyžaduje pozornost (často nové okno), GNOME Shell vám o tom "
+"zobrazí upozornění. Můžete deaktivovat vyskakovací okna těchto zpráv "
+"(oznámení bude do panelu zpráv vloženo tiše) nebo nechat okamžitě zvýraznit "
+"zdrojové okno"
+
+#: prefs.js:1484 prefs.js:1499
+msgid "Show Notifications (Default)"
+msgstr "Zobrazit oznámení (výchozí)"
+
+#: prefs.js:1485
+msgid "Disable Notification Popups"
+msgstr "Zakázat vyskakovací okna s upozorněním"
+
+#: prefs.js:1486
+msgid "Immediately Focus Window"
+msgstr "Okamžitě zvýraznit okno"
+
+#: prefs.js:1494
+msgid "Favorites"
+msgstr "Oblíbené"
+
+#: prefs.js:1495
+msgid "Disable pin/unpin app notifications"
+msgstr "Zakázat upozornění aplikací připnout/odepnout"
+
+#: prefs.js:1500
+msgid "Disable Notifications"
+msgstr "Zakázat oznámení"
+
+#: prefs.js:1518
+msgid "Main App Grid"
+msgstr "Moje mřížka aplikací"
+
+#: prefs.js:1524
+msgid "Apps Sorting"
+msgstr "Řazení aplikací"
+
+#: prefs.js:1525
+msgid ""
+"Choose sorting method for the app grid. Note that sorting by usage ignores "
+"folders"
+msgstr ""
+"Vyberte metodu řazení pro mřížku aplikace. Řazení podle použití ignoruje "
+"složky"
+
+#: prefs.js:1529 prefs.js:1698
+msgid "Custom (Default)"
+msgstr "Vlastní (výchozí)"
+
+#: prefs.js:1530
+msgid "Alphabet - Folders First"
+msgstr "Abecedně, složky na začátek"
+
+#: prefs.js:1531
+msgid "Alphabet - Folders Last"
+msgstr "Abecedně, složky na konec"
+
+#: prefs.js:1532
+msgid "Usage - No Folders"
+msgstr "Použití bez složek"
+
+#: prefs.js:1540
+msgid "Icon Size"
+msgstr "Velikost ikony"
+
+#: prefs.js:1541
+msgid ""
+"Allows to set a fixed app grid icon size and bypass the default adaptive "
+"algorithm"
+msgstr ""
+"Umožňuje vynutit pevnou velikost ikony a obejít výchozí adaptivní algoritmus"
+
+#: prefs.js:1546
+msgid "256"
+msgstr "256"
+
+#: prefs.js:1547
+msgid "224"
+msgstr "224"
+
+#: prefs.js:1548
+msgid "208"
+msgstr "208"
+
+#: prefs.js:1549
+msgid "192"
+msgstr "192"
+
+#: prefs.js:1550
+msgid "176"
+msgstr "176"
+
+#: prefs.js:1551
+msgid "160"
+msgstr "160"
+
+#: prefs.js:1552
+msgid "144"
+msgstr "144"
+
+#: prefs.js:1574
+msgid "Columns per Page (0 for adaptive grid)"
+msgstr "Počet sloupců na stránku (0 pro adaptivní mřížku)"
+
+#: prefs.js:1575
+msgid ""
+"Number of columns in the application grid. If set to 0, the number will be "
+"set automatically to fit the available width"
+msgstr ""
+"Počet sloupců v mřížce aplikace. Je-li nastaveno na 0, číslo se nastaví "
+"automaticky tak, aby odpovídalo dostupné šířce"
+
+#: prefs.js:1591
+msgid "Rows per Page (0 for adaptive grid)"
+msgstr "Počet řádků na stránku (0 pro adaptivní mřížku)"
+
+#: prefs.js:1592
+msgid ""
+"Number of rows in the application grid. If set to 0, the number will be set "
+"automatically to fit the available height"
+msgstr ""
+"Počet řádků v mřížce aplikace. Je-li nastaveno na 0, číslo se nastaví "
+"automaticky tak, aby odpovídalo dostupné výšce"
+
+#: prefs.js:1620
+msgid "App Grid Page Width Scale"
+msgstr "Měřítko šířky stránky mřížky aplikací"
+
+#: prefs.js:1621
+msgid "Adjusts maximum app grid page width relative to the available space"
+msgstr ""
+"Upraví maximální šířku stránky mřížky aplikací vzhledem k dostupnému prostoru"
+
+#: prefs.js:1643
+msgid "App Grid Page Height Scale"
+msgstr "Měřítko výšky stránky mřížky aplikací"
+
+#: prefs.js:1644
+msgid "Adjusts maximum app grid page height relative to the available space"
+msgstr ""
+"Nastaví maximální výšku stránky mřížky aplikací vzhledem k dostupnému "
+"prostoru"
+
+#: prefs.js:1663
+msgid "Grid Spacing"
+msgstr "Rozestupy mřížky"
+
+#: prefs.js:1664
+msgid ""
+"V-Shell uses this value to calculate grid dimensions for adaptive options. "
+"However, the main grid automatically adjusts the spacing based on the grid "
+"and available space"
+msgstr ""
+"V-Shell tuto hodnotu používá k výpočtu rozměrů mřížky pro adaptivní "
+"možnosti. Hlavní mřížka však automaticky upravuje rozteč na základě mřížky a "
+"dostupného prostoru"
+
+#: prefs.js:1674
+msgid "Allow Incomplete Pages"
+msgstr "Povolit neúplné stránky"
+
+#: prefs.js:1675
+msgid ""
+"If disabled, icons from the next page (if any) are automatically moved to "
+"fill any empty slot left after an icon was (re)moved (to a folder for "
+"example)"
+msgstr ""
+"Je-li zakázáno, ikony z další stránky (jsou-li) se automaticky přesunou tak, "
+"aby zaplnily jakýkoli prázdný slot, který zbyl přesunutím/vymazáním ikony/"
+"složky"
+
+#: prefs.js:1687
+msgid "App Folders"
+msgstr "Aplikační složky"
+
+#: prefs.js:1693
+msgid "Folder Apps Sorting"
+msgstr "Třídění aplikací složek"
+
+#: prefs.js:1694
+msgid "Choose sorting method for app folders"
+msgstr "Vyber metodu třídění aplikačních složek"
+
+#: prefs.js:1699
+msgid "Alphabet"
+msgstr "Abeceda"
+
+#: prefs.js:1700
+msgid "Usage"
+msgstr "Použití"
+
+#: prefs.js:1708
+msgid "Active Icons in Folder Preview"
+msgstr "Aktivní ikony v náhledu složky"
+
+#: prefs.js:1709
+msgid ""
+"If enabled, icons in the folder preview behaves like normal icons, you can "
+"activate or even drag them directly, without having to open the folder "
+"first. This option also affects the app grid default icon size"
+msgstr ""
+"Je-li povoleno, pak se ikony v přehledu složek chovají jako běžné ikony. "
+"Můžete je aktivovat nebo dokonce přímo přetáhnout bez otevření složky. Toto "
+"nastavení také ovlivňuje výchozí velikost ikon"
+
+#: prefs.js:1720
+msgid "App Folder Preview Grid Size"
+msgstr "Velikost složek aplikací v mřížce náhledu"
+
+#: prefs.js:1721
+msgid ""
+"Sets a grid size (number of icons) in the folder icon preview. 3x3 options "
+"automatically switches between 2x2 and 3x3 grid depending on the number of "
+"icons in the folder"
+msgstr ""
+"Nastaví velikost mřížky (počet ikon) v náhledu složky. Možnost 3x3 "
+"automaticky přepíná mezi mřížkou 2x2 a 3x3 v závislosti na počtu ikon ve "
+"složce"
+
+#: prefs.js:1725
+msgid "2x2 (Default)"
+msgstr "2x2 (výchozí)"
+
+#: prefs.js:1726
+msgid "3x3 for 5+ apps"
+msgstr "3x3 pro 5+ aplikací"
+
+#: prefs.js:1727
+msgid "3x3 for 9+ apps"
+msgstr "3x3 pro 9+ aplikací"
+
+#: prefs.js:1735
+msgid "Folder Icon Size"
+msgstr "Velikost ikony složky"
+
+#: prefs.js:1736
+msgid ""
+"Allows to set a fixed icon size and bypass the default adaptive algorithm in "
+"the open folder dialog"
+msgstr ""
+"Umožňuje nastavit pevnou velikost ikony a obejít výchozí adaptivní "
+"algoritmus v dialogu otevření složky"
+
+#: prefs.js:1754
+msgid "Maximum Number Of Columns (0 for automatic)"
+msgstr "Maximální počet sloupců (0 pro automatický režim)"
+
+#: prefs.js:1755
+msgid ""
+"Specifies the maximum number of columns per page in folder grids. If you "
+"leave the value at 0, the maximum number of columns will be calculated based "
+"on available space. The actual folder grid dimensions will be determined by "
+"the number of items within the set limits"
+msgstr ""
+"Maximální počet sloupců na stránku v mřížkách složek. Pro 0 se maximální "
+"počet sloupců se vypočítá na základě dostupného místa. Skutečné rozměry "
+"mřížky složek budou určeny počtem položek v rámci nastavených limitů"
+
+#: prefs.js:1771
+msgid "Maximum Number Of Rows (0 for automatic)"
+msgstr "Maximální počet řádků (0 pro automatický režim)"
+
+#: prefs.js:1772
+msgid ""
+"Specifies the maximum number of rows per page in folder grids. If you leave "
+"the value at 0, the maximum number of rows will be calculated based on "
+"available space. The actual folder grid dimensions will be determined by the "
+"number of items within the set limits"
+msgstr ""
+"Maximální počet řádků v mřížce složek. Pro 0 se maximální počet sloupců se "
+"vypočítá na základě dostupného místa. Skutečné rozměry mřížky složek budou "
+"určeny počtem položek v rámci nastavených limitů"
+
+#: prefs.js:1790
+msgid "Folder Grid Spacing"
+msgstr "Rozestupy mřížky pro složky"
+
+#: prefs.js:1791
+msgid "Adjusts the spacing between icons in a folder grid"
+msgstr "Nastavuje rozestupy mezi ikonami ve složkách"
+
+#: prefs.js:1801
+msgid "Center Open Folders"
+msgstr "Vycentrovat otevřené složky"
+
+#: prefs.js:1802
+msgid ""
+"App folders may open in the center of the screen or be centered on the "
+"folder's source icon"
+msgstr ""
+"Složky aplikací se mohou otevřít ve středu obrazovky nebo centrovat nad "
+"ikonou zdrojové složky (volby vypnuto)"
+
+#: prefs.js:1814
+msgid "Content"
+msgstr "Obsah"
+
+#: prefs.js:1820
+msgid "App Grid Content"
+msgstr "Obsah mřížky aplikací"
+
+#: prefs.js:1821
+msgid ""
+"The default Shell removes favorite apps, this option allows to duplicate "
+"them in the grid or remove also running applications. Option \"Favorites and "
+"Running First\" only works with the Alphabet and Usage sorting"
+msgstr ""
+"Výchozí prostředí Shell odebere oblíbené aplikace. Tato možnost vám umožňuje "
+"duplikovat je v mřížce nebo odebrat také spuštěné aplikace. Možnost "
+"„Oblíbené a spuštěné jako první“ funguje pouze s řazením podle použití a "
+"abecedy"
+
+#: prefs.js:1825
+msgid "Include All"
+msgstr "Zahrnout vše"
+
+#: prefs.js:1826
+msgid "Include All - Favorites and Running First"
+msgstr "Zahrnout vše – Oblíbené a Spuštěné jako první"
+
+#: prefs.js:1827
+msgid "Exclude Favorites (Default)"
+msgstr "Vyloučit oblíbené (výchozí)"
+
+#: prefs.js:1828
+msgid "Exclude Running"
+msgstr "Vyloučit spuštěné"
+
+#: prefs.js:1829
+msgid "Exclude Favorites and Running"
+msgstr "Vyloučit Oblíbené a spuštěné"
+
+#: prefs.js:1837
+msgid "App Labels Behavior"
+msgstr "Chování štítků aplikací"
+
+#: prefs.js:1838
+msgid "Choose how and when to display app names"
+msgstr "Vyberte jak a kdy se mají zobrazovat názvy aplikací"
+
+#: prefs.js:1842
+msgid "Ellipsized - Expand Selected (Default)"
+msgstr "Zkrácené – rozbalit vybrané (výchozí)"
+
+#: prefs.js:1843
+msgid "Always Expanded"
+msgstr "Vždy rozbalené"
+
+#: prefs.js:1844
+msgid "Hidden - Show Selected Only"
+msgstr "Skryté - zobrazit pouze vybrané"
+
+#: prefs.js:1852
+msgid "Show Page Navigation Buttons"
+msgstr "Zobrazit navigační tlačítka stránky"
+
+#: prefs.js:1853
+msgid ""
+"You can hide the page navigation buttons if you don't need them or want to "
+"get more space for icons. The buttons are hidden automatically when there is "
+"only one page in the app grid"
+msgstr ""
+"Pokud navigační tlačítka na stránce nepotřebujete nebo chcete získat více "
+"místa pro ikony, můžete je skrýt. Tlačítka se skryjí automaticky, je-li v "
+"mřížce aplikace pouze jedna stránka"
+
+#: prefs.js:1866
+msgid "Performance"
+msgstr "Výkon"
+
+#: prefs.js:1872
+msgid "Smooth App Grid Animations"
+msgstr "Jemná animace mřížky aplikací"
+
+#: prefs.js:1873
+msgid ""
+"This option allows V-Shell to pre-realize app grid and app folders during "
+"session startup in order to avoid stuttering animations when using them for "
+"the first time. If enabled, the session startup needs a little bit more time "
+"to finish and necessary memory will be allocated at this time"
+msgstr ""
+"Tato volba umožňuje prostředí V-Shell při spuštění relace předpřipravit "
+"mřížku aplikací a složky aplikací, aby se zabránilo zadrhávání animací při "
+"jejich prvním použití. Pokud je tato možnost povolena, spuštění relace "
+"potřebuje o něco více času na dokončení a v této době bude alokována "
+"potřebná paměť"
+
+#: prefs.js:1883
+msgid "Reset"
+msgstr "Reset"
+
+#: prefs.js:1888
+msgid "Reset App Grid Layout"
+msgstr "Resetovat rozložení mřížky aplikace"
+
+#: prefs.js:1889
+msgid ""
+"Removes all stored app grid positions, after reset icons will be sorted "
+"alphabetically, except folder contents"
+msgstr ""
+"Odebere všechny uložené pozice mřížky aplikací, po resetu budou ikony "
+"seřazeny podle abecedy kromě obsahu složek"
+
+#: prefs.js:1897
+msgid "Remove App Grid Folders"
+msgstr "Odebrat složky mřížky aplikace"
+
+#: prefs.js:1898
+msgid "Removes all folders, folder apps will move to the root grid"
+msgstr "Odebere všechny složky, aplikace složek se přesunou do kořenové mřížky"
+
+#: prefs.js:1914
+msgid "Optional Modules"
+msgstr "Doplňkové moduly"
+
+#: prefs.js:1920
+msgid ""
+"Windows Search Provider - Moved from V-Shell to the standalone \"WSP\" "
+"extension"
+msgstr ""
+"Zprostředkovatel vyhledávání oken - přesunut z V-Shell do samostatného "
+"rozšíření \"WSP\""
+
+#: prefs.js:1921
+msgid ""
+"NOTE: This module has been released as a standalone extension with new "
+"features, click to learn more. Related V-Shell options are still available "
+"if you install the WSP extension.\n"
+"\n"
+"WSP adds adds open windows to the search results. You can search app names "
+"and window titles. You can also use \"wq//\" or custom prefix (also by "
+"pressing the Space hotkey in the overview, or clicking dash icon) to "
+"suppress results from other search providers"
+msgstr ""
+"POZNÁMKA: Tento modul byl vydán jako samostatné rozšíření s novými funkcemi, "
+"kliknutím se dozvíte více. Související možnosti prostředí V-Shell jsou stále "
+"k dispozici, pokud si nainstalujete rozšíření WSP.\n"
+"\n"
+"WSP přidává do výsledků vyhledávání otevřená okna. Můžete vyhledávat názvy "
+"aplikací a názvy oken. Můžete také použít \"wq//\" nebo vlastní předponu "
+"(také stisknutím klávesové zkratky Space v přehledu nebo kliknutím na ikonu "
+"pomlčky) pro potlačení výsledků od jiných poskytovatelů vyhledávání"
+
+#: prefs.js:1928
+msgid ""
+"Extensions Search Provider - Moved from V-Shell to the standalone \"ESP\" "
+"extension"
+msgstr ""
+"Zprostředkovatel vyhledávání rozšíření - přesunut z V-Shell do samostatného "
+"rozšíření \"ESP\""
+
+#: prefs.js:1929
+msgid ""
+"NOTE: This module has been released as a standalone extension with new "
+"features, click to learn more. Related V-Shell options are still available "
+"if you install the ESP extension.\n"
+"\n"
+"ESP adds extensions to the search results. You can also use \"eq//\" or "
+"custom prefix (also by pressing the Ctrl + Shift + Space hotkey in the "
+"overview, or clicking dash icon) to suppress results from other search "
+"providers"
+msgstr ""
+"POZNÁMKA: Tento modul byl vydán jako samostatné rozšíření s novými funkcemi, "
+"kliknutím se dozvíte více. Související možnosti prostředí V-Shell jsou stále "
+"k dispozici, pokud si nainstalujete rozšíření ESP.\n"
+"\n"
+"ESP přidává rozšíření do výsledků vyhledávání. Můžete také použít \"eq//\" "
+"nebo vlastní předponu (také stisknutím klávesové zkratky Ctrl + Shift + "
+"Mezerník v přehledu nebo kliknutím na ikonu pomlčky) pro potlačení výsledků "
+"od jiných poskytovatelů vyhledávání"
+
+#: prefs.js:1936
+msgid ""
+"Window Thumbnails (PiP) - Moved from V-Shell to the standalone \"WTMB\" "
+"extension"
+msgstr ""
+"Miniatury oken (PiP) - Přesunut z V-Shell do samostatného rozšíření \"WTMB\""
+
+#: prefs.js:1937
+msgid ""
+"NOTE: This module has been released as a standalone extension with new "
+"features, click to learn more. Related V-Shell options are still available "
+"if you install the WTMB extension.\n"
+"\n"
+"WTMB allows the creation of Picture-in-Picture like window thumbnails that "
+"you can use for monitoring of windows on another workspace"
+msgstr ""
+"POZNÁMKA: Tento modul byl vydán jako samostatné rozšíření s novými funkcemi, "
+"kliknutím se dozvíte více. Související možnosti prostředí V-Shell jsou stále "
+"k dispozici, pokud si nainstalujete rozšíření WTMB.\n"
+"\n"
+"WTMB umožňuje vytvářet miniatury oken podobné obrázku v obrázku, které "
+"můžete použít pro sledování oken na jiném pracovním prostoru"
+
+#: prefs.js:1944
+msgid ""
+"Built-in Modules (allows to disable modules that conflict with another "
+"extension)"
+msgstr ""
+"Vestavěné moduly (umožňuje zakázat moduly, které jsou v konfliktu s jiným "
+"rozšířením)"
+
+#: prefs.js:1950
+msgid "AppDisplay / IconGrid"
+msgstr "Zobrazení aplikací / mřížka ikon"
+
+#: prefs.js:1951
+msgid "App grid customization and options"
+msgstr "Přizpůsobení a nastavení mřížky aplikace"
+
+#: prefs.js:1959
+msgid "AppFavorites"
+msgstr "Oblíbené aplikace"
+
+#: prefs.js:1960
+msgid "Pin/unpin app notification options"
+msgstr "Nastavení připnutí/odepnutí oznámení aplikace"
+
+#: prefs.js:1969
+msgid "Dash customization and options, support for vertical orientation"
+msgstr "Nastavení konfigurace Dash a podpora vertikální orientace"
+
+#: prefs.js:1978
+msgid "Hot corner options"
+msgstr "Hot Corner nastavení"
+
+#: prefs.js:1986
+msgid "MessageTray"
+msgstr "Panel zpráv"
+
+#: prefs.js:1987
+msgid "Notification position options"
+msgstr "Nastavení umístění oznámení"
+
+#: prefs.js:1995
+msgid "OsdWindow"
+msgstr "OSD okno"
+
+#: prefs.js:1996
+msgid "OSD position options"
+msgstr "OSD nastavení pozice"
+
+#: prefs.js:2004
+msgid "OverlayKey"
+msgstr "Překryvná klávesa"
+
+#: prefs.js:2005
+msgid "Overlay (Super/Window) key options"
+msgstr "Nastavení překryvných kláves (Super/Window)"
+
+#: prefs.js:2014
+msgid "Panel options"
+msgstr "Nastavení panelu"
+
+#: prefs.js:2023
+msgid "Search view and app search provider customization and options"
+msgstr ""
+"Zobrazení vyhledávání a přizpůsobení a nastavení poskytovatele vyhledávání "
+"aplikací"
+
+#: prefs.js:2031
+msgid "SearchController"
+msgstr "Ovladač vyhledávání"
+
+#: prefs.js:2032
+msgid "Escape key behavior options in the overview"
+msgstr "Přehled možností chování klávesy Escape"
+
+#: prefs.js:2040
+msgid "SwipeTracker"
+msgstr "Sledování gest"
+
+#: prefs.js:2041
+msgid "Gestures for vertical workspace orientation"
+msgstr "Gesta pro vertikální orientaci pracovního prostoru"
+
+#: prefs.js:2049
+msgid "WindowAttentionHandler"
+msgstr "Okno - vyžádání pozornosti"
+
+#: prefs.js:2050
+msgid "Window attention handler options"
+msgstr "Nastavení obsluhy oken"
+
+#: prefs.js:2058
+msgid "WindowManager"
+msgstr "Správce oken"
+
+#: prefs.js:2059
+msgid ""
+"Fixes an upstream bug in the minimization animation of a full-screen window"
+msgstr "Opravuje chybu v animaci minimalizace okna na celou obrazovku"
+
+#: prefs.js:2067
+msgid "WindowPreview"
+msgstr "Náhled okna"
+
+#: prefs.js:2068
+msgid ""
+"Window preview options, fixes an upstream bug that fills the system log with "
+"errors when you close a window from the overview or exit the overview with a "
+"gesture when any window is selected"
+msgstr ""
+"Možnosti náhledu okna. Opravuje chybu, která zaplňuje systémový protokol "
+"chybami, když zavřete okno z přehledu nebo opustíte přehled gestem, je-li "
+"vybráno jakékoli okno"
+
+#: prefs.js:2076
+msgid "Workspace"
+msgstr "Pracovní plocha"
+
+#: prefs.js:2077
+msgid ""
+"Fixes workspace preview allocations for vertical workspaces orientation and "
+"window scaling in static overview modes"
+msgstr ""
+"Opravuje přidělení náhledu pracovního prostoru pro vertikální orientaci "
+"pracovních prostorů a měřítko okna v režimech statického přehledu"
+
+#: prefs.js:2085
+msgid "WorkspaceAnimation"
+msgstr "Animace pracovní plochy"
+
+#: prefs.js:2086
+msgid "Static workspace animation option"
+msgstr "Možnost animace statické pracovní plochy"
+
+#: prefs.js:2094
+msgid "WorkspaceSwitcherPopup"
+msgstr "Vyskakovací přepínač pracovní plochy"
+
+#: prefs.js:2095
+msgid "Workspace switcher popup orientation and position options"
+msgstr "Nastavení pozice a orientace vyskakovacího přepínače pracovní plochy"
+
+#: prefs.js:2111
+msgid "Keyboard"
+msgstr "Klávesnice"
+
+#: prefs.js:2117
+msgid "Override Page Up/Down Shortcuts"
+msgstr "Přepsat zkratky Page Up/Down"
+
+#: prefs.js:2118
+msgid ""
+"This option automatically overrides the (Shift +) Super + Page Up/Down "
+"keyboard shortcuts for the current workspace orientation. If you encounter "
+"any issues, check the configuration in the dconf editor"
+msgstr ""
+"Tato možnost automaticky přepíše klávesové zkratky (Shift +) Super + Page Up/"
+"Down pro aktuální orientaci pracovního prostoru. Pokud narazíte na nějaké "
+"problémy, zkontrolujte konfiguraci v editoru dconf"
+
+#: prefs.js:2126
+msgid "Workarounds / Hacks"
+msgstr "Workarounds / Hacky"
+
+#: prefs.js:2132
+msgid "Delay at Startup"
+msgstr "Zpožděné spuštění"
+
+#: prefs.js:2133
+msgid ""
+"If you encounter issues during GNOME Shell startup after logging in, which "
+"could be caused by V-Shell's incompatibility with another extension, try "
+"enabling this option. When enabled, V-Shell is activated after the startup "
+"is complete. It will activate automatically when Dash to Dock, Ubuntu Dock "
+"or Dash to Panel extensions are detected."
+msgstr ""
+"Pokud se během spouštění prostředí GNOME Shell po přihlášení vyskytnou "
+"problémy, které mohou být způsobeny nekompatibilitou prostředí V-Shell s "
+"jiným rozšířením, zkuste tuto možnost povolit. Je-li tato možnost povolena, "
+"bude prostředí V-Shell aktivováno po dokončení spuštění. Aktivuje se "
+"automaticky při zjištění rozšíření Dash to Dock, Ubuntu Dock nebo Dash to "
+"Panel."
+
+#: prefs.js:2141
+msgid "Fix New Window Not In Focus"
+msgstr "Oprava nového okna, které není zaostřeno"
+
+#: prefs.js:2142
+msgid ""
+"If you often find that the app window you open from the Activities overview "
+"does not get focus, try enabling this option."
+msgstr ""
+"Pokud často zjišťujete, že okno aplikace, které otevřete z přehledu aktivit, "
+"není aktivní, zkuste tuto možnost povolit."
+
+#: prefs.js:2150
+msgid "Fix New Window Not On Current Monitor (experimental)"
+msgstr "Opravuje chybu, kdy nové okno není na aktuálním monitoru"
+
+#: prefs.js:2151
+msgid ""
+"If you use multiple monitors, you may encounter the issue of new windows "
+"opening on a different monitor than expected. This option moves those "
+"windows to the current monitor, determined by the position of the mouse "
+"pointer. However, this is a workaround, and some windows may override it, "
+"moving the window back to the previous monitor during initialization"
+msgstr ""
+"Pokud používáte více monitorů, mohou se nová okna otevírat na jiném "
+"monitoru, než jste očekávali. Tato volba přesune nová okna na aktuální "
+"monitor určený polohou ukazatele myši. Jedná se však o jen obcházení "
+"problému a může se stát, že některá okna toto chování mohou zrušit a během "
+"inicializace přesunou okno zpět na předchozí monitor"
+
+#: prefs.js:2174
+msgid "Version"
+msgstr "Verze"
+
+#: prefs.js:2180
+msgid "Reset all options"
+msgstr "Obnovit všechny nastavení"
+
+#: prefs.js:2181
+msgid "Reset all options to their default values"
+msgstr "Nastavte všechny nastavení na výchozí hodnoty"
+
+#: prefs.js:2187
+msgid "Links"
+msgstr "Odkazy"
+
+#: prefs.js:2191
+msgid "Homepage"
+msgstr "Domovská stránka"
+
+#: prefs.js:2192
+msgid "Source code and more info about this extension"
+msgstr "Zdrojový kód a další informace o tomto rozšíření"
+
+#: prefs.js:2197
+msgid "Changelog"
+msgstr "Seznam změn"
+
+#: prefs.js:2198
+msgid "See what's changed."
+msgstr "Podívejte se, co se změnilo."
+
+#: prefs.js:2203
+msgid "GNOME Extensions"
+msgstr "Rozšíření GNOME"
+
+#: prefs.js:2204
+msgid "Rate and comment V-Shell on the GNOME Extensions site"
+msgstr "Ohodnoťte a okomentujte V-Shell na webu GNOME Extensions"
+
+#: prefs.js:2209
+msgid "Report a bug or suggest new feature"
+msgstr "Nahlaste chybu nebo navrhněte novou funkci"
+
+#: prefs.js:2210
+msgid "Help me to help you!"
+msgstr "Pomozte mi, abych vám pomohl!"
+
+#: prefs.js:2215
+msgid "Buy Me a Coffee"
+msgstr "Kupte mi kávu"
+
+#: prefs.js:2216
+msgid "Enjoying V-Shell? Consider supporting it by buying me a coffee!"
+msgstr "Užíváte si V-Shell? Podpořte ho tím, že mi koupíte kávu!"
+
+#: lib/util.js:408
+msgid "Updating V-Shell"
+msgstr "Aktualizace V-Shell"
+
+#: lib/windowSearchProvider.js:118
+msgid "Open Windows"
+msgstr "Otevřené okna"
+
+#: lib/windowSearchProvider.js:119
+msgid "Search open windows"
+msgstr "Prohledej otevřená okna"
+
+#: lib/dash.js:983
+msgid "Force Quit"
+msgstr "Vynutit vypnutí"
+
+#: lib/dash.js:1000
+msgid "Move App to Current Workspace ( Shift + Click )"
+msgstr "Přesunout aplikaci do aktuální pracovní plochy (Shift + kliknutí)"
+
+#: lib/dash.js:1003
+msgid "Create Window Thumbnail/PiP"
+msgstr "Vytvoření okna - Náhled/PIP"
+
+#: lib/search.js:336
+msgid "Searching…"
+msgstr "Hledání…"
+
+#: lib/search.js:338
+msgid "No results."
+msgstr "Bez výsledku."
+
+#: lib/optionsFactory.js:295
+msgid "Reset profile to defaults"
+msgstr "Reset profilů na výchozí hodnoty"
+
+#: lib/optionsFactory.js:303
+msgid "GNOME 3 Layout (Vertical WS)"
+msgstr "GNOME 3 (vertikální) rozložení ploch"
+
+#: lib/optionsFactory.js:304
+msgid "GNOME 4x Layout, Bottom Hot Edge (Horizontal WS)"
+msgstr "GNOME 4x (horizontální) rozložení ploch - Spodní roh"
+
+#: lib/optionsFactory.js:305
+msgid "Top Left Hot Corner Centric (Vertical WS)"
+msgstr "Levý horní roh (vertikální plochy)"
+
+#: lib/optionsFactory.js:306
+msgid "Dock-Like Overview, Bottom Hot Edge (Horizontal WS)"
+msgstr "Přehled podobný doku, aktivní spodní okraj, horizontální plochy"
+
+#: lib/optionsFactory.js:328
+msgid "Load profile"
+msgstr "Načti profil"
+
+#: lib/optionsFactory.js:337
+msgid "Save current settings into this profile"
+msgstr "Ulož současné nastavení do tohoto profilu"
+
+#: lib/recentFilesSearchProvider.js:119
+msgid "Recent Files"
+msgstr "Nedávné soubory"
+
+#: lib/extensionsSearchProvider.js:127
+msgid "Extensions"
+msgstr "Rozšíření"
+
+#: lib/extensionsSearchProvider.js:128
+msgid "Search extensions"
+msgstr "Prohledej rozšíření"
+
+#~ msgid "Maximum size of Dash icons in pixels"
+#~ msgstr "Maximální velikost Dash ikon v pixelech"
+
+#~ msgid "Search Windows"
+#~ msgstr "Vyhledávací okno"
+
+#~ msgid "GNOME 3"
+#~ msgstr "GNOME 3"
+
+#~ msgid "Hot Corner Centric - Top Left Hot Corner"
+#~ msgstr "Aktivní roh vlevo nahoře"
+
+#~ msgid "Open Windows Icon Position"
+#~ msgstr "Pozice ikony „Hledat v otevřených oknech“"
+
+#~ msgid ""
+#~ "Allows to add \"Search Open Windows\" icon into Dash (if window search "
+#~ "provider enabled on the Modules tab) so you can directly toggle window "
+#~ "search provider results. You can also use the secondary mouse button "
+#~ "click on the Show Apps Icon, or the Space hotkey"
+#~ msgstr ""
+#~ "Umožňuje přidat ikonu „Hledat v otevřených oknech“ do Dashe (pokud je na "
+#~ "kartě Moduly povolen poskytovatel vyhledávání v okně), takže můžete přímo "
+#~ "přepínat výsledky poskytovatele vyhledávání. Můžete také použít "
+#~ "sekundární tlačítko myši na ikonu Zobrazit aplikaci nebo mezerník"
+
+#~ msgid "Recent Files Icon Position"
+#~ msgstr "Pozice ikony „Hledat v posledních souborech“"
+
+#~ msgid ""
+#~ "Allows to add \"Search Recent Files\" icon into Dash (if recent files "
+#~ "search provider enabled on the Modules tab) so you can directly toggle "
+#~ "recent files search provider results. You can also use Ctrl + Space hotkey"
+#~ msgstr ""
+#~ "Umožní přidat ikonu „Hledat v posledních souborech“ do Dash (pokud je "
+#~ "poskytovatel vyhledávání posledních souborů povolen na kartě Moduly), "
+#~ "takže můžete přímo přepínat výsledky poskytovatele vyhledávání posledních "
+#~ "souborů. Můžete také použít klávesovou zkratku Ctrl + mezerník"
+
+#~ msgid "Extensions Icon Position"
+#~ msgstr "Poloha ikony rozšíření"
+
+#~ msgid ""
+#~ "Allows to add \"Search Extensions\" icon into Dash (if extensions search "
+#~ "provider enabled on the Module tab) so you can directly toggle extensions "
+#~ "search provider results. You can also use the Ctrl + Shift + Space hotkey"
+#~ msgstr ""
+#~ "Umožňuje přidat ikonu „Rozšíření hledání“ do Dash (je-li poskytovatel "
+#~ "rozšířeného vyhledávání povolen na kartě Moduly), takže můžete přímo "
+#~ "přepínat výsledky vyhledávání poskytovatele rozšíření. Můžete také použít "
+#~ "klávesovou zkratku Ctrl + Shift + mezerník"
+
+#~ msgid "Folder Columns per Page (0 for adaptive grid)"
+#~ msgstr "Počet sloupců složek na stránku (0 pro adaptivní mřížku)"
+
+#~ msgid "Folder Rows per Page (0 for adaptive grid)"
+#~ msgstr "Počet řádků složek na stránku (0 pro adaptivní mřížku)"
+
+#~ msgid "Window Thumbnails (PIP)"
+#~ msgstr "Miniatury pracovního prostoru (PIP)"
+
+#, javascript-format
+#~ msgid "Default Window Thumbnail (PIP) Scale (% of screen height)"
+#~ msgstr "Výchozí měřítko miniatury okna (PIP) (% výšky obrazovky)"
+
+#~ msgid ""
+#~ "Default scale of window thumbnail (like Picture In Picture) that you can "
+#~ "create using the app icon menu or window preview action"
+#~ msgstr ""
+#~ "Výchozí měřítko miniatury okna, kterou lze vytvořit pomocí nabídky ikony "
+#~ "aplikace nebo akce náhledu okna"
+
+#~ msgid ""
+#~ "Disable or change behavior when you press and release the Super key. The "
+#~ "\"Search Windows\" options requires the WindowSearchProvider module to be "
+#~ "activated"
+#~ msgstr ""
+#~ "Zakázat nebo změnit chování při stisknutí a uvolnění klávesy Super. "
+#~ "Možnosti „Hledat v oknech“ vyžadují aktivaci modulu WindowSearchProvider"
+
+#~ msgid "Search Windows Icon - Scroll Action"
+#~ msgstr "Ikona hledání - akce posouvání"
+
+#~ msgid ""
+#~ "Choose the behavior when scrolling over the Search Windows icon. The "
+#~ "window cycler works with a list of windows sorted by \"Most Recently "
+#~ "Used\" of the current workspace or all workspaces. Scrolling up cycles "
+#~ "through previously used windows on the same workspace, or all windows "
+#~ "regardless workspace. This option is mainly useful for the static "
+#~ "workspace overview mode."
+#~ msgstr ""
+#~ "Zvolte chování při posouvání nad ikonou Hledat v okně. Algoritmus cyklení "
+#~ "oken pracuje se seznamem oken seřazených podle „Nejnověji použitých“ "
+#~ "aktuální pracovní plochy nebo všech pracovních ploch. Posouvání nahoru "
+#~ "cykluje dříve použitá okna na stejné pracovní ploše nebo všechna okna bez "
+#~ "ohledu na pracovní plochu. Tato volba je užitečná především pro režim "
+#~ "statického přehledu pracovních ploch."
+
+#~ msgid "Cycle All Windows"
+#~ msgstr "Cykluj všechna okna"
+
+#~ msgid "Cycle Windows On Current WS"
+#~ msgstr "Cykluj okna v aktuálním WS"
+
+#~ msgid "App Grid Order"
+#~ msgstr "Pořadí aplikací"
+
+#~ msgid "Window Search Provider - Sorting"
+#~ msgstr "Povolit poskytovatele vyhledávání - řazení"
+
+#~ msgid "Choose the window sorting method"
+#~ msgstr "Zvol metodu třídění okna"
+
+#~ msgid "Most Recently Used (MRU)"
+#~ msgstr "Nejpoužívanější (MRU)"
+
+#~ msgid "MRU - Current Workspace First"
+#~ msgstr "Nejpoužívanější - současný pracovní prostor První"
+
+#~ msgid "MRU - By Workspaces"
+#~ msgstr "Nejpoužívanější - podle pracovních ploch"
+
+#~ msgid "Stable Sequence - By Workspaces"
+#~ msgstr "Stabilní pořadí podle pracovních ploch"
+
+#~ msgid "Animations - General"
+#~ msgstr "Animace - Obecné"
+
+#~ msgid "Animations - Overview"
+#~ msgstr "Animace – přehled"
+
+#~ msgid "WindowSearchProvider"
+#~ msgstr "WindowSearchProvider"
+
+#~ msgid "RecentFilesSearchProvider"
+#~ msgstr "Poskytovatel vyhledávání nedávných souborů"
+
+#~ msgid ""
+#~ "Activates the recent files search provider that can be triggered by a "
+#~ "dash icon, Ctrl + Space hotkey or by typing \"fq//\" prefix in the search "
+#~ "entry field. This option needs File History option enabled in the GNOME "
+#~ "Privacy settings"
+#~ msgstr ""
+#~ "Aktivuje poskytovatele vyhledávání posledních souborů spustitelného "
+#~ "ikonou pomlčka, klávesovou zkratkou Ctrl + mezerník nebo zadáním předpony "
+#~ "\"fq//“ do pole pro zadání vyhledávání. Tato možnost vyžaduje, aby byla v "
+#~ "nastavení ochrany osobních údajů GNOME povolena možnost Historie souborů"
+
+#~ msgid "ExtensionsSearchProvider"
+#~ msgstr "Rozšířený poskytovatel hledání"
+
+#~ msgid "WindowThumbnail"
+#~ msgstr "Miniatury pracovního prostoru"
+
+#~ msgid ""
+#~ "Create Window Thumbnail (PIP) option in the app icon menu and window "
+#~ "preview actions"
+#~ msgstr ""
+#~ "Možnost vytvořit miniaturu okna (PIP) v nabídce ikony aplikace a akce "
+#~ "náhledu okna"
+
+#~ msgid "If you like V-Shell, you can help me with my coffee expenses"
+#~ msgstr "Pokud se vám líbí V-Shell, můžete mi pomoci s mými výdaji na kávu"
+
+#~ msgid ""
+#~ "Overview background crashed!\n"
+#~ "If you are using Blur My Shell, disable overview blur in its settings and "
+#~ "re-enable V-Shell Overview Background to avoid visual glitches."
+#~ msgstr ""
+#~ "Přehled pozadí havaroval!\n"
+#~ "Používáte-li aplikaci Blur My Shell, zakažte v jejím nastavení rozmazání "
+#~ "přehledu a znovu zapněte funkci V-Shell Overview Background, abyste se "
+#~ "vyhnuli vizuálním závadám."
+
+#~ msgid "Search Open Windows (Hotkey: Space)"
+#~ msgstr "Hledat v otevřených oknech (klávesová zkratka: mezerník)"
+
+#~ msgid "Search Recent Files (Hotkey: Shift + Space)"
+#~ msgstr "Prohledej poslední soubory (Shift + mezerník)"
+
+#~ msgid "Search Extensions (Hotkey: Ctrl + Space)"
+#~ msgstr "Prohledej rozšíření (Ctrl + mezerník)"
+
+#~ msgid "Search recent files"
+#~ msgstr "Prohledat nedávné soubory"
+
+#~ msgid "Adjusts workspace thumbnails vertical position."
+#~ msgstr "Upraví vertikální polohu miniatur pracovního prostoru."
+
+#~ msgid ""
+#~ "App grid in app view page will be centered to the display instead of the "
+#~ "available space. This option may have impact on the size of the grid, "
+#~ "more for narrower and small resolution displays, especially if workspace "
+#~ "thumbnails are bigger."
+#~ msgstr ""
+#~ "Mřížka aplikace na stránce zobrazení aplikace bude vystředěna k displeji "
+#~ "místo dostupného místa. Tato možnost může mít vliv na velikost mřížky, "
+#~ "spíše pro užší displeje a displeje s malým rozlišením, zvláště pokud jsou "
+#~ "miniatury pracovního prostoru větší."
+
+#~ msgid "Main panel can be visible always, only in the overview or never."
+#~ msgstr "Hlavní panel může být viditelný vždy, pouze v přehledu nebo nikdy."
+
+#~ msgid "Adjusts secondary monitors workspace thumbnails vertical position."
+#~ msgstr ""
+#~ "Upravuje vertikální polohu miniatur pracovního prostoru sekundárních "
+#~ "monitorů."
+
+#~ msgid "24"
+#~ msgstr "24"
+
+#~ msgid "16"
+#~ msgstr "16"
+
+#~ msgid "Default size is 64."
+#~ msgstr "Výchozí velikost je 64."
+
+#~ msgid "Always Show Window Titles"
+#~ msgstr "Vždy zobrazovat názvy oken"
+
+#~ msgid ""
+#~ "All windows on the workspace preview will show their titles, not only the "
+#~ "one with the mouse pointer."
+#~ msgstr ""
+#~ "Všechna okna v náhledu pracovní plochy budou zobrazovat své názvy, nejen "
+#~ "ty s ukazatelem myši."
+
+#~ msgid ""
+#~ "Allows to disable the default adaptive algorithm and set a fixed size of "
+#~ "icons inside folders."
+#~ msgstr ""
+#~ "Umožňuje zakázat výchozí adaptivní algoritmus a nastavit pevnou velikost "
+#~ "ikon uvnitř složek."
+
+#~ msgid ""
+#~ "Each folder icon shows (up to) 4 app icons as a preview of the folder "
+#~ "content, this option allows you to increase the number to 9 icons if "
+#~ "folder contains more than 4 or 8 apps. The latter avoids half empty "
+#~ "folder icons."
+#~ msgstr ""
+#~ "Každá ikona složky zobrazuje (až) 4 ikony aplikací jako náhled obsahu "
+#~ "složky. Tato možnost umožňuje zvýšit počet na 9 ikon, pokud složka "
+#~ "obsahuje více než 4 nebo 8 aplikací."
+
+#~ msgid "Show Static Background"
+#~ msgstr "Zobrazit statické pozadí"
+
+#~ msgid "Show static background wallpaper instead of the solid grey color."
+#~ msgstr "Zobrazit statickou tapetu na pozadí místo šedé barvy."
+
+#~ msgid "Ripples animation shows up when you trigger hot corner."
+#~ msgstr "Animace vlnění se zobrazí, když spustíte Hot Corner."
+
+#~ msgid "Dash Icon Click"
+#~ msgstr "Dash - kliknutí na ikonu"
+
+#~ msgid ""
+#~ "if the app you clicked on has more than one window and the recently used "
+#~ "window is not on the current workspace, the overview can switch to the "
+#~ "workspace with the recent window."
+#~ msgstr ""
+#~ "pokud aplikace, na kterou jste klikli, má více než jedno okno a naposledy "
+#~ "použité okno není na aktuální pracovní ploše, přehled se může přepnout na "
+#~ "pracovní plochu s posledním oknem."
+
+#~ msgid "Switch to Workspace with Recently Used Window"
+#~ msgstr "Přepnout na plochu s naposledy použitým oknem"
+
+#~ msgid ""
+#~ "If enabled, clicking an app icon in a folder preview directly opens the "
+#~ "app without having to open the folder first. Middle button opens new "
+#~ "window of the app without closing the overview, so you can open multiple "
+#~ "apps in a row on the current workspace and secondary button opens the "
+#~ "folder."
+#~ msgstr ""
+#~ "Pokud je tato možnost povolena, kliknutím na ikonu aplikace v náhledu "
+#~ "složky se aplikace otevře přímo, aniž byste museli nejprve otevřít "
+#~ "složku. Prostřední tlačítko otevře nové okno aplikace bez zavření "
+#~ "přehledu, takže na aktuálním pracovním prostoru můžete otevřít více "
+#~ "aplikací v řadě a sekundární tlačítko otevře složku."
+
+#~ msgid "Top Middle"
+#~ msgstr "Nahoře uprostřed"
+
+#~ msgid "Bottom Middle"
+#~ msgstr "Dole uprostřed"
+
+#~ msgid "Compatibility"
+#~ msgstr "Kompatibilita"
+
+#~ msgid "Fix for Dash to Dock"
+#~ msgstr "Oprava pro Dash to Dock"
+
+#~ msgid ""
+#~ "With the default Ubuntu Dock and other Dash To Dock forks, you may "
+#~ "experience issues with Activities overview after you change Dock position "
+#~ "or change monitors configuration. If you are experiencing such issues, "
+#~ "try to enable this option, or (better) disable/replace the dock extension."
+#~ msgstr ""
+#~ "S výchozím dokem Ubuntu a dalšími variantami Dash To Dock můžete "
+#~ "zaznamenat problémy s přehledem aktivit poté, co změníte polohu doku nebo "
+#~ "změníte konfiguraci monitorů. Pokud máte takové problémy, zkuste tuto "
+#~ "možnost povolit nebo (lépe) zakázat/vyměnit rozšíření doku."
+
+#~ msgid ""
+#~ "V-Shell Modules that can be disabled in case of conflict or misbehavior."
+#~ msgstr ""
+#~ "Moduly V-Shell, které lze deaktivovat v případě konfliktu nebo špatného "
+#~ "chování."
+
+#~ msgid ""
+#~ "Hot corner options, removes right panel barrier that collides with CHC-E "
+#~ "extension."
+#~ msgstr ""
+#~ "Možnosti Hot Corner, odstraňuje zábranu pravého panelu, která koliduje s "
+#~ "rozšířením CHC-E."
diff --git a/extensions/47/vertical-workspaces/po/meson.build b/extensions/47/vertical-workspaces/po/meson.build
new file mode 100644
index 0000000..e4483a5
--- /dev/null
+++ b/extensions/47/vertical-workspaces/po/meson.build
@@ -0,0 +1 @@
+i18n.gettext('vertical-workspaces', preset : 'glib')
diff --git a/extensions/47/vertical-workspaces/po/nl.po b/extensions/47/vertical-workspaces/po/nl.po
new file mode 100644
index 0000000..2d9613e
--- /dev/null
+++ b/extensions/47/vertical-workspaces/po/nl.po
@@ -0,0 +1,1551 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR GdH
+# This file is distributed under the same license as the vertical-workspaces package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: vertical-workspaces\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2023-03-08 12:37+0100\n"
+"PO-Revision-Date: 2023-05-04 14:03+0200\n"
+"Last-Translator: Heimen Stoffels <vistausss@fastmail.com>\n"
+"Language-Team: \n"
+"Language: nl\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Generator: Poedit 3.2.2\n"
+
+#: dash.js:743
+msgid "Search Open Windows (Hotkey: Space)"
+msgstr "Geopende vensters doorzoeken (sneltoets: spatiebalk)"
+
+#: dash.js:816
+msgid "Search Recent Files (Hotkey: Ctrl + Space)"
+msgstr "Onlangs gebruikte bestanden doorzoeken (sneltoets: Ctrl+spatiebalk)"
+
+#: windowSearchProvider.js:117 windowSearchProvider.js:119
+msgid "Open Windows"
+msgstr "Geopende vensters"
+
+#: windowSearchProvider.js:118
+msgid "List of open windows"
+msgstr "Een lijst met geopende vensters"
+
+#: appDisplay.js:1317
+msgid "Force Quit"
+msgstr "Toepassing gedwongen afsluiten"
+
+#: appDisplay.js:1335
+msgid "Move App to Current Workspace ( Shift + Click )"
+msgstr "Toepassing verplaatsen naar huidig werkblad (Shift+muisklik)"
+
+#: prefs.js:47 prefs.js:1465
+msgid "Layout"
+msgstr "Indeling"
+
+#: prefs.js:53
+msgid "Appearance"
+msgstr "Vormgeving"
+
+#: prefs.js:59
+msgid "Behavior"
+msgstr "Gedrag"
+
+#: prefs.js:65
+msgid "Misc"
+msgstr "Overig"
+
+#: prefs.js:71
+msgid "About"
+msgstr "Over"
+
+#: prefs.js:119 prefs.js:517 prefs.js:1030 prefs.js:1456
+msgid "Dash"
+msgstr "Dash"
+
+#: prefs.js:125
+msgid "Dash Position"
+msgstr "Dashlocatie"
+
+#: prefs.js:131
+msgid "Top"
+msgstr "Bovenaan"
+
+#: prefs.js:132
+msgid "Right"
+msgstr "Rechts"
+
+#: prefs.js:133 prefs.js:355
+msgid "Bottom"
+msgstr "Onderaan"
+
+#: prefs.js:134
+msgid "Left"
+msgstr "Links"
+
+#: prefs.js:135 prefs.js:393 prefs.js:557 prefs.js:572 prefs.js:587
+msgid "Hide"
+msgstr "Verbergen"
+
+#: prefs.js:142
+msgid "Center Horizontal Dash to Workspace"
+msgstr "Horizontale dash centreren op werkblad"
+
+#: prefs.js:143
+msgid ""
+"If the Dash Position is set to Top or Bottom, the position will be "
+"recalculated relative to the workspace preview instead of the screen. Works "
+"only with the default Dash."
+msgstr ""
+"Als de dashlocatie boven- of onderaan is, dan wordt de locatie herberekend "
+"op basis van de werkbladvoorvertoning in plaats van het scherm. Werkt alleen "
+"met de standaarddash."
+
+#: prefs.js:160
+msgid "Fine Tune Dash Position"
+msgstr "Dashlocatie aanpassen"
+
+#: prefs.js:161
+msgid ""
+"Adjusts position of the dock on chosen axis. Works only with the default "
+"Dash."
+msgstr ""
+"Pas de locatie van het dock op de gekozen as aan. Werkt alleen met de "
+"standaarddash."
+
+#: prefs.js:170
+msgid "Workspace Thumbnails / Orientation"
+msgstr "Werkbladminiaturen/-oriëntatie"
+
+#: prefs.js:176
+msgid "Thumbnails Position / Workspaces Orientation"
+msgstr "Miniatuurlocatie/Werkbladoriëntatie"
+
+#: prefs.js:177
+msgid ""
+"Position of the workspace thumbnails on the screen also sets orientation of "
+"the workspaces to vertical or horizontal. You have two options to disable "
+"workspace thumbnails, one sets workspaces to the vertical orientation, the "
+"second one to horizontal."
+msgstr ""
+"De locatie van werkbladminiaturen op het scherm stelt tevens de oriëntatie "
+"van werkbladen in op verticaal of horizontaal. U heeft twee mogelijkheden om "
+"miniaturen uit te schakelen: u kunt de werkbladen instellen op verticaal of "
+"horizontaal."
+
+#: prefs.js:183
+msgid "Left \t Vertical Orientation"
+msgstr "Links \t Verticale oriëntatie"
+
+#: prefs.js:184
+msgid "Right \t Vertical Orientation"
+msgstr "Rechts \t Horizontale oriëntatie"
+
+#: prefs.js:185
+msgid "Hide \t Set Vertical Orientation"
+msgstr "Verbergen \t Verticale oriëntatie instellen"
+
+#: prefs.js:186
+msgid "Top \t Horizontal Orientation"
+msgstr "Bovenaan \t Horizontale oriëntatie"
+
+#: prefs.js:187
+msgid "Bottom \t Horizontal Orientation"
+msgstr "Onderaan \t Horizontale oriëntatie"
+
+#: prefs.js:188
+msgid "Hide \t Set Horizontal Orientation"
+msgstr "Verbergen \t Horizontale oriëntatie instellen"
+
+#: prefs.js:204 prefs.js:409
+msgid "Fine Tune Workspace Thumbnails Position"
+msgstr "Werkbladminiatuurlocatie instellen"
+
+#: prefs.js:205
+msgid "Adjusts workspace thumbnails vertical position."
+msgstr "Pas de verticale positie van werkbladminiaturen aan."
+
+#: prefs.js:213
+msgid "Reserve Full Screen Height/Width for Thumbnails"
+msgstr "Gehele scherm gebruiken voor miniaturen"
+
+#: prefs.js:214
+msgid ""
+"The whole screen height/width will be reserved for workspace thumbnails at "
+"the expense of space available for Dash (if the Dash is oriented in a "
+"different axis)."
+msgstr ""
+"De gehele schermhoogte en -breedte zal worden gebruikt voor "
+"werkbladminiaturen. Let op: dit gaat ten koste van de beschikbare dashruimte "
+"(als de dash op een andere oriëntatie is ingesteld)."
+
+#: prefs.js:231 prefs.js:427
+msgid "Workspace Thumbnails Max Scale"
+msgstr "Max. omvang van werkbladminiaturen"
+
+#: prefs.js:232
+msgid ""
+"Adjusts maximum size of the workspace thumbnails (% relative to display "
+"width)."
+msgstr ""
+"Pas de maximale omvang van werkbladminiaturen aan (% relatief in verhouding "
+"tot de schermbreedte)."
+
+#: prefs.js:241 prefs.js:697
+msgid "Workspace Preview"
+msgstr "Werkbladvoorvertoning"
+
+#: prefs.js:256
+msgid "Workspaces Scale"
+msgstr "Werkbladomvang verkleinen"
+
+#: prefs.js:257
+msgid ""
+"Scales down workspace previews so you can fit more of the adjacent "
+"workspaces on the screen. Default size is calculated to use all available "
+"space."
+msgstr ""
+"Maak de werkbladvoorvertoningen kleiner om meer werkbladen op het scherm te "
+"tonen. De standaardomvang maakt gebruik van alle beschikbare ruimte."
+
+#: prefs.js:274
+msgid "Workspaces Spacing"
+msgstr "Ruimte tussen werkbladen"
+
+#: prefs.js:275
+msgid ""
+"Adjusts spacing between workspace previews so you can control how much of "
+"the adjacent workspaces overlap to the current workspace overview. Default "
+"value should set the adjacent workspaces out of the screen."
+msgstr ""
+"Pas de ruimte tussen werkbladvoorvertoningen aan zodat u zelf kunt bepalen "
+"hoeveel werkbladen mogen overlappen. De standaardwaarde ligt buiten het "
+"scherm."
+
+#: prefs.js:284 prefs.js:712 prefs.js:1072
+msgid "App Grid"
+msgstr "Toepassingsrooster"
+
+#: prefs.js:290
+msgid "Center App Grid"
+msgstr "Toepassingsrooster centreren"
+
+#: prefs.js:291
+msgid ""
+"App grid in app view page will be centered to the display instead of the "
+"available space. This option may have impact on the size of the grid, more "
+"for narrower and small resolution displays, especially if workspace "
+"thumbnails are bigger."
+msgstr ""
+"Toon het toepassingsrooster op het midden van het scherm in plaats van over "
+"de gehele ruimte. Let op: deze optie kan van invloed zijn op de "
+"roosteromvang. Op kleine schermen wordt het rooster smaller, vooral als de "
+"werkbladminiaturen groter zijn."
+
+#: prefs.js:300
+msgid "Search View"
+msgstr "Zoekweergave"
+
+#: prefs.js:306
+msgid "Center Search View"
+msgstr "Zoekweergave centreren"
+
+#: prefs.js:307
+msgid ""
+"Search view will be centered to the display instead of the available space."
+msgstr ""
+"Toon de zoekweergave op het midden van het scherm in plaats van over de "
+"gehele ruimte."
+
+#: prefs.js:315
+msgid "Always Show Search Entry"
+msgstr "Zoekvak altijd tonen"
+
+#: prefs.js:316
+msgid ""
+"If disabled, the search entry field will be hidden when not in use, so the "
+"workspace preview and app grid may take up more space."
+msgstr ""
+"Schakel uit om het zoekvak te verbergen als het niet wordt gebruikt, zodat "
+"er meer ruimte voor de werkbladvoorvertoningen en het toepassingsrooster is."
+
+#: prefs.js:333
+msgid "Search Results Width"
+msgstr "Breedte van zoekresultaten"
+
+#: prefs.js:334
+msgid ""
+"Adjusts maximum width of search results view (% relative to default). This "
+"allows you to fit more (or less) app icons into the app search result."
+msgstr ""
+"Pas de breedte van zoekresultaten aan (% relatief ten opzichte van "
+"standaard). Hierdoor kunt u meer of minder pictogrammen in de resultaten "
+"tonen."
+
+#: prefs.js:342 prefs.js:1483
+msgid "Panel"
+msgstr "Bovenbalk"
+
+#: prefs.js:348
+msgid "Main Panel Position"
+msgstr "Bovenbalklocatie"
+
+#: prefs.js:349
+msgid "Allows you to place the main panel at the bottom of your monitor."
+msgstr "Verplaats de bovenbalk naar de onderkant van het scherm."
+
+#: prefs.js:354
+msgid "Top (Default)"
+msgstr "Bovenaan (standaard)"
+
+#: prefs.js:362
+msgid "Main Panel Visibility"
+msgstr "Zichtbaarheid van bovenbalk"
+
+#: prefs.js:363
+msgid "Main panel can be visible always, only in the overview or never."
+msgstr "Toon de bovenbalk altijd, alleen op het overzicht of nooit."
+
+#: prefs.js:368
+msgid "Always Visible (Default)"
+msgstr "Altijd tonen (standaard)"
+
+#: prefs.js:369
+msgid "Overview Only"
+msgstr "Alleen op het overzicht"
+
+#: prefs.js:370
+msgid "Always Hidden"
+msgstr "Altijd verbergen"
+
+#: prefs.js:378
+msgid "Secondary Monitors"
+msgstr "Meerdere beeldschermen"
+
+#: prefs.js:384
+msgid "Workspace Thumbnails Position"
+msgstr "Werkbladminiatuurlocaties"
+
+#: prefs.js:385
+msgid ""
+"Allows you to place workspace thumbnails of secondary monitors on the "
+"opposite side than on the primary monitor."
+msgstr "Plaats werkbladminiaturen op andere beeldschermen dan het hoofdscherm."
+
+#: prefs.js:390
+msgid "Same as Primary"
+msgstr "Gelijk aan hoofdscherm"
+
+#: prefs.js:391
+msgid "Left / Top"
+msgstr "Links/Bovenaan"
+
+#: prefs.js:392
+msgid "Right / Bottom"
+msgstr "Rechts/Onderaan"
+
+#: prefs.js:410
+msgid "Adjusts secondary monitors workspace thumbnails vertical position."
+msgstr "Pas de verticale miniatuurpositie op andere beeldschermen aan."
+
+#: prefs.js:428
+msgid ""
+"Adjusts maximum size of the workspace thumbnails (% relative to display "
+"width) for secondary monitors."
+msgstr ""
+"Pas de maximale omvang van werkbladminiaturen op andere beeldschermen aan (% "
+"relatief in verhouding tot de schermbreedte)."
+
+#: prefs.js:445
+msgid "Workspace Preview Scale"
+msgstr "Werkbladvoorvertoningen verkleinen"
+
+#: prefs.js:446
+msgid "Scales down workspace previews on secondary monitors."
+msgstr "Verklein de voorvertoningen op andere beeldschermen."
+
+#: prefs.js:454
+msgid "Shift Workspace Preview by Panel Height"
+msgstr "Werkbladvoorvertoningen aanpassen aan bovenbalkhoogte"
+
+#: prefs.js:455
+msgid ""
+"This option can help align overview of the secondary monitor with the "
+"primary monitor."
+msgstr ""
+"Met deze optie kunt u het overzicht op een ander beeldscherm gelijkstellen "
+"aan die op het hoofdscherm."
+
+#: prefs.js:464
+msgid "Workspace Switcher Popup"
+msgstr "Werkbladwisselaarpop-up"
+
+#: prefs.js:480
+msgid "Horizontal Position (% from left)"
+msgstr "Horizontale positie (in % vanaf linkerzijde)"
+
+#: prefs.js:481
+msgid ""
+"This popup shows up when you switch workspace using a keyboard shortcut or "
+"gesture outside of the overview. You can disable it on the Behavior tab. If "
+"you want more control over the popup, try Workspace Switcher Manager "
+"extension."
+msgstr ""
+"Deze pop-up wordt getoond als u van werkblad wisselt met behulp van een "
+"sneltoets of gebaar buiten het overzicht om. U kunt de pop-up uitschakelen "
+"op het tabblad ‘Gedrag’. Als u de pop-up naar eigen hand wilt zetten, "
+"probeer dan de Workspace Switcher Manager-uitbreiding."
+
+#: prefs.js:499
+msgid "Vertical Position (% from top)"
+msgstr "Verticale positie (in % vanaf bovenzijde)"
+
+#: prefs.js:523
+msgid "Dash Max Icon Size"
+msgstr "Max. pictogramgrootte in dash"
+
+#: prefs.js:524
+msgid "Maximum size of Dash icons in pixels. Works only with default Dash."
+msgstr ""
+"De maximale pictogramgrootte, in pixels. Let op: dit werkt alleen in "
+"combinatie met de standaarddash."
+
+#: prefs.js:529 prefs.js:732 prefs.js:752 prefs.js:853
+msgid "128"
+msgstr "128"
+
+#: prefs.js:530 prefs.js:733 prefs.js:753 prefs.js:854
+msgid "112"
+msgstr "112"
+
+#: prefs.js:531 prefs.js:734 prefs.js:754 prefs.js:855
+msgid "96"
+msgstr "96"
+
+#: prefs.js:532 prefs.js:735 prefs.js:755 prefs.js:856
+msgid "80"
+msgstr "80"
+
+#: prefs.js:533 prefs.js:676 prefs.js:736 prefs.js:756 prefs.js:857
+msgid "64"
+msgstr "64"
+
+#: prefs.js:534 prefs.js:677 prefs.js:737 prefs.js:757 prefs.js:858
+msgid "48"
+msgstr "48"
+
+#: prefs.js:535 prefs.js:678 prefs.js:758 prefs.js:859
+msgid "32"
+msgstr "32"
+
+#: prefs.js:536
+msgid "24"
+msgstr "24"
+
+#: prefs.js:537
+msgid "16"
+msgstr "16"
+
+#: prefs.js:551
+msgid "Show Apps Icon Position"
+msgstr "Locatie van ‘Toepassingen tonen’"
+
+#: prefs.js:552
+msgid "Sets the position of the \"Show Applications\" icon in the Dash."
+msgstr "Stel de locatie van het pictogram ‘Toepassingen tonen’ in de dash in."
+
+#: prefs.js:558 prefs.js:573 prefs.js:588
+msgid "Start"
+msgstr "Begin"
+
+#: prefs.js:559 prefs.js:574 prefs.js:589
+msgid "End"
+msgstr "Einde"
+
+#: prefs.js:566
+msgid "Open Windows Icon Position"
+msgstr "Locatie van ‘Geopende vensters’"
+
+#: prefs.js:567
+msgid ""
+"This option adds \"Search Open Windows\" icon into dash (if window search "
+"provider enabled on the Behavior tab) so you can directly toggle window "
+"search provider results. Even if you disable this icon, you can use the "
+"secondary mouse button click on the Show Apps Icon, or the Space hotkey to "
+"access this feature."
+msgstr ""
+"Deze optie voegt een pictogram ‘Geopende vensters doorzoeken’ toe aan de "
+"dash (als de vensterzoekdienst is ingeschakeld op het tabblad ‘Gedrag’), "
+"zodat u direct kunt zoeken. Als u dit pictogram uitschakelt, dan kunt u deze "
+"functie alsnog aanroepen met behulp van een rechtermuisklik op ‘Toepassingen "
+"tonen’ of door te drukken op de spatiebalk."
+
+#: prefs.js:581
+msgid "Recent Files Icon Position"
+msgstr "Locatie van ‘Onlangs gebruikte bestanden’"
+
+#: prefs.js:582
+msgid ""
+"This option adds \"Search Recent Files\" icon into dash (if recent files "
+"search provider enabled on the Behavior tab) so you can directly toggle "
+"recent files search provider results. Even if you disable this icon, you can "
+"use Ctrl + Space hotkey to access this feature."
+msgstr ""
+"Deze optie voegt een pictogram ‘Onlangs gebruikte bestanden doorzoeken’ toe "
+"aan de dash (als de bestandszoekdienst is ingeschakeld op het tabblad "
+"‘Gedrag’), zodat u direct kunt zoeken. Als u dit pictogram uitschakelt, dan "
+"kunt u deze functie alsnog aanroepen met behulp van de sneltoets Ctrl + "
+"spatiebalk."
+
+#: prefs.js:597
+msgid "Dash Background Opacity"
+msgstr "Doorzichtigheid van dashachtergrond"
+
+#: prefs.js:598
+msgid "Adjusts the opacity of the dash background."
+msgstr "Pas de doorzichtigheid van de dashachtergrond aan."
+
+#: prefs.js:614
+msgid "Dash Background Radius"
+msgstr "Dash-achtergrondstraal"
+
+#: prefs.js:615
+msgid ""
+"Adjusts the border radius of the dash background in pixels. 0 means default "
+"value."
+msgstr ""
+"Pas de straal van de dashachtergrond aan (in pixels). 0 = standaardwaarde."
+
+#: prefs.js:623 prefs.js:1050
+msgid "Workspace Thumbnails"
+msgstr "Werkbladminiaturen"
+
+#: prefs.js:629
+msgid "Show Workspace Thumbnail Labels"
+msgstr "Werkbladminiatuurlabels tonen"
+
+#: prefs.js:630
+msgid ""
+"Each workspace thumbnail can show its index and name (if defined in the "
+"system settings) or name/title of its most recently used app/window."
+msgstr ""
+"Toon de namen van werkbladen (indien ingesteld in de systeemvoorkeuren) of "
+"naam+titel van onlangs gebruikte toepassing/venster."
+
+#: prefs.js:635 prefs.js:680 prefs.js:1001 prefs.js:1062 prefs.js:1260
+#: prefs.js:1278 prefs.js:1296 prefs.js:1331
+msgid "Disable"
+msgstr "Uitschakelen"
+
+#: prefs.js:636
+msgid "Index"
+msgstr "Index"
+
+#: prefs.js:637
+msgid "Index + WS Name"
+msgstr "Index + Werkbladnaam"
+
+#: prefs.js:638
+msgid "Index + App Name"
+msgstr "Index + Toepassingsnaam"
+
+#: prefs.js:639
+msgid "Index + Window Title"
+msgstr "Index + Venstertitel"
+
+#: prefs.js:646
+msgid "Show WS Thumbnail Label on Hover"
+msgstr "Miniatuurlabels tonen na aanwijzen"
+
+#: prefs.js:647
+msgid "Show label only when the mouse pointer hovers over a thumbnail"
+msgstr "Toon de labels alleen als u met de aanwijzer een miniatuur aanwijst."
+
+#: prefs.js:655
+msgid "Show Wallpaper in Workspace Thumbnails"
+msgstr "Werkbladminiaturen voorzien van achtergrond"
+
+#: prefs.js:656
+msgid "All workspace thumbnails will include the current desktop background."
+msgstr "Toon de huidige bureaubladachtergrond op werkbladminiaturen."
+
+#: prefs.js:664
+msgid "Window Preview"
+msgstr "Venstervoorvertoning"
+
+#: prefs.js:670
+msgid "Window Preview App Icon Size"
+msgstr "Pictogramgrootte in venstervoorvertoning"
+
+#: prefs.js:671
+msgid "Default size is 64."
+msgstr "Standaard: 64."
+
+#: prefs.js:679
+msgid "22"
+msgstr "22"
+
+#: prefs.js:687
+msgid "Always Show Window Titles"
+msgstr "Venstertitels altijd tonen"
+
+#: prefs.js:688
+msgid ""
+"All windows on the workspace preview will show their titles, not only the "
+"one with the mouse pointer."
+msgstr ""
+"Toon venstertitels van alle vensters op de voorvertoning, niet alleen van "
+"het venster onder de aanwijzer."
+
+#: prefs.js:703
+msgid "Show Workspace Preview Background"
+msgstr "Werkbladvoorvertoning voorzien van achtergrond"
+
+#: prefs.js:704
+msgid "Allows you to hide the scaling background of the workspace preview."
+msgstr "Toon of verberg de achtergrond op de werkbladvoorvertoning."
+
+#: prefs.js:718
+msgid "Icon Size"
+msgstr "Pictogramgrootte"
+
+#: prefs.js:719
+msgid ""
+"Allows to force fixed icon size and bypass the default adaptive algorithm."
+msgstr ""
+"Stel een vaste pictogramgrootte in ter vervanging van de standaard "
+"aanpasbare grootte."
+
+#: prefs.js:724 prefs.js:751
+msgid "Adaptive (Default)"
+msgstr "Aanpasbaar (standaard)"
+
+#: prefs.js:725
+msgid "256"
+msgstr "256"
+
+#: prefs.js:726
+msgid "224"
+msgstr "224"
+
+#: prefs.js:727
+msgid "208"
+msgstr "208"
+
+#: prefs.js:728
+msgid "192"
+msgstr "192"
+
+#: prefs.js:729
+msgid "176"
+msgstr "176"
+
+#: prefs.js:730
+msgid "160"
+msgstr "160"
+
+#: prefs.js:731
+msgid "144"
+msgstr "144"
+
+#: prefs.js:745
+msgid "Folder Icon Size"
+msgstr "Pictogramgrootte van mappen"
+
+#: prefs.js:746
+msgid ""
+"Allows to disable the default adaptive algorithm and set a fixed size of "
+"icons inside folders."
+msgstr ""
+"Stel een vaste pictogramgrootte in ter vervanging van de standaard "
+"aanpasbare grootte."
+
+#: prefs.js:766
+msgid "Max App Folder Icon Grid Size"
+msgstr "Max. grootte van mappen op rooster"
+
+#: prefs.js:767
+msgid ""
+"Each folder icon shows (up to) 4 app icons as a preview of the folder "
+"content, this option allows you to increase the number to 9 icons if folder "
+"contains more than 4 or 8 apps. The latter avoids half empty folder icons."
+msgstr ""
+"Elk mappictogram toont maximaal 4 pictogrammen als voorvertoning. Met behulp "
+"van deze optie kunt u het aantal verhogen naar maximaal 9 als de map 4 of 8 "
+"toepassingen bevat. De laatste optie voorkomt halflege mappictogrammen."
+
+#: prefs.js:772
+msgid "2x2 (Default)"
+msgstr "2x2 (standaard)"
+
+#: prefs.js:773
+msgid "3x3 for 5+ apps"
+msgstr "3x3 (5 of meer toepassingen)"
+
+#: prefs.js:774
+msgid "3x3 for 9+ apps"
+msgstr "3x3 (9 of meer toepassingen)"
+
+#: prefs.js:788
+msgid "Columns per Page (0 for adaptive grid)"
+msgstr "Aantal kolommen per pagina (0 = aanpasbaar rooster)"
+
+#: prefs.js:789
+msgid ""
+"Number of columns in application grid. If set to 0 (default setting) the "
+"number will be set automatically to fit available height."
+msgstr ""
+"Het aantal kolommen van het toepassingsrooster. Stel in op 0 (standaard) om "
+"automatisch aan te passen aan de beschikbare hoogte."
+
+#: prefs.js:803
+msgid "Rows per Page (0 for adaptive grid)"
+msgstr "Aantal rijen per pagina (0 = aanpasbaar rooster)"
+
+#: prefs.js:804
+msgid ""
+"Number of rows in application grid. If set to 0 (default setting) the number "
+"will be set automatically to fit available height."
+msgstr ""
+"Het aantal rijen van het toepassingsrooster. Stel in op 0 (standaard) om "
+"automatisch aan te passen aan de beschikbare hoogte."
+
+#: prefs.js:818
+msgid "Folder Columns per Page (0 for adaptive grid)"
+msgstr "Aantal mapkolommen per pagina (0 = aanpasbaar rooster)"
+
+#: prefs.js:819
+msgid ""
+"Number of columns in folder grid. If you leave the value on 0, the number of "
+"columns will be calculated to fit all folder icons."
+msgstr ""
+"Het aantal kolommen van het mappenrooster. Stel in op 0 (standaard) om "
+"automatisch aan te passen aan de beschikbare pictogrammen."
+
+#: prefs.js:833
+msgid "Folder Rows per Page (0 for adaptive grid)"
+msgstr "Aantal maprijen per pagina (0 = aanpasbaar rooster)"
+
+#: prefs.js:834
+msgid ""
+"Number of rows in folder grid. If you leave the value on 0, the number of "
+"rows will be calculated to fit all folder icons."
+msgstr ""
+"Het aantal rijen van het mappenrooster. Stel in op 0 (standaard) om "
+"automatisch aan te passen aan de beschikbare pictogrammen."
+
+#: prefs.js:841 prefs.js:1174 prefs.js:1492
+msgid "Search"
+msgstr "Zoeken"
+
+#: prefs.js:847
+msgid "App Search Icon Size"
+msgstr "Omvang van zoekresultaten"
+
+#: prefs.js:848
+msgid "Size of results provided by the App Search Provider."
+msgstr "De omvang van toepassingszoekresultaten."
+
+#: prefs.js:878
+msgid "Max Search Results Rows"
+msgstr "Aantal zoekresultaatrijen"
+
+#: prefs.js:879
+msgid ""
+"Sets the maximum number of rows for result lists of all search providers "
+"except window search provider which always lists all results."
+msgstr ""
+"Stel het maximumaantal rijen van resultaatlijsten van alle zoekdiensten (met "
+"uitzondering van vensters) in."
+
+#: prefs.js:888
+msgid "Overview Background"
+msgstr "Overzichtsachtergrond"
+
+#: prefs.js:894
+msgid "Show Static Background"
+msgstr "Eigen achtergrond tonen"
+
+#: prefs.js:895
+msgid "Show static background wallpaper instead of the solid grey color."
+msgstr "Stel een eigen achtergrond in in plaats van de grijze kleur."
+
+#: prefs.js:911
+msgid "Blur Window Picker Background"
+msgstr "Vensterkiezerachtergrond vervagen"
+
+#: prefs.js:912
+msgid "Blur background wallpaper (if enabled) in the window picker view."
+msgstr "Vervaag de achtergrond (indien ingeschakeld) van de vensterkiezer."
+
+#: prefs.js:928
+msgid "Blur App Grid/Search View Background"
+msgstr "Toepassingsrooster-/Zoekweergave-achtergrond vervagen"
+
+#: prefs.js:929
+msgid ""
+"Blur background wallpaper (if enabled) in the app grid and search results "
+"views."
+msgstr ""
+"Vervaag de achtergrond (indien ingeschakeld) van het toepassingsrooster en "
+"de zoekweergave."
+
+#: prefs.js:937
+msgid "Smooth Blur Transitions"
+msgstr "Vloeiende vervaagovergangen"
+
+#: prefs.js:938
+msgid ""
+"Makes blur transitions smoother but can impact overall smoothness of "
+"overview animations."
+msgstr ""
+"Maak vervaagovergangen vloeiender. Let op: dit kan van invloed zijn op de "
+"overige animaties."
+
+#: prefs.js:953 prefs.js:980 prefs.js:1002
+msgid "Overview"
+msgstr "Overzicht"
+
+#: prefs.js:959
+msgid "Overview Mode"
+msgstr "Overzichtsmodus"
+
+#: prefs.js:960
+msgid ""
+"The Expose Windows on Hover mode do not expose the workspace preview windows "
+"until the mouse pointer enters any window.\n"
+"The Static Workspace mode does not scale the workspace preview, it only "
+"shows Dash and workspace thumbnails over the desktop. Clicking on a "
+"workspace thumbnail scales the ws preview and exposes its windows like in "
+"the default overview mode."
+msgstr ""
+"De modus ‘Vensters tonen na aanwijzen’ toont geen werkbladminiaturen totdat "
+"de aanwijzer een venster aanwijst.\n"
+"De statische modus toont geen verkleinde werkbladminiaturen, maar alleen de "
+"dash en miniaturen boven het bureaublad. Klik op een werkbladminiatuur om de "
+"voorvertoning te verkleinen en alle vensters te tonen, net als in de "
+"standaard overzichtsmodus."
+
+#: prefs.js:965 prefs.js:1259 prefs.js:1277 prefs.js:1317
+msgid "Default"
+msgstr "Standaard"
+
+#: prefs.js:966
+msgid "Expose Windows on Hover"
+msgstr "Vensters tonen na aanwijzen"
+
+#: prefs.js:967
+msgid "Static Workspace"
+msgstr "Statische werkbladen"
+
+#: prefs.js:974
+msgid "Startup State"
+msgstr "Opstartmodus"
+
+#: prefs.js:975
+msgid "Allows to change the state in which GNOME Shell starts a session."
+msgstr "Geef aan in welke modus GNOME Shell een sessie dient te starten."
+
+#: prefs.js:981
+msgid "Desktop"
+msgstr "Bureaublad"
+
+#: prefs.js:982 prefs.js:1003
+msgid "Applications"
+msgstr "Toepassingen"
+
+#: prefs.js:989
+msgid ""
+"Hot Corner (Install Custom Hot Corners - Extended extension for more options)"
+msgstr ""
+"Snelhoek (installeer voor meer mogelijkheden de uitbreiding ‘Custom Hot "
+"Corners - Extended)"
+
+#: prefs.js:995
+msgid "Hot corner Action"
+msgstr "Snelhoekactie"
+
+#: prefs.js:996
+msgid ""
+"Disable or change behavior of hot corner. Holding down the Ctrl key while "
+"hitting the hot corner switches between Overview/Applications actions."
+msgstr ""
+"Pas het gedrag van de snelhoek aan of schakel deze uit. Houd Ctrl ingedrukt "
+"tijdens het aanwijzen van de snelhoek om te schakelen tussen het overzicht "
+"en de toepassingen."
+
+#: prefs.js:1010
+msgid "Enable Hot Corner in Full-Screen mode"
+msgstr "Snelhoek tonen in schermvullende modus"
+
+#: prefs.js:1011
+msgid ""
+"If you often work with full-screen applications and want the hot corner to "
+"be usable."
+msgstr ""
+"Als u regelmatig met schermvullende toepassingen werkt en de snelhoek wilt "
+"blijven gebruiken."
+
+#: prefs.js:1020
+msgid "Show Ripples Animation"
+msgstr "Golfanimatie tonen"
+
+#: prefs.js:1021
+msgid "Ripples animation shows up when you trigger hot corner."
+msgstr "Toon een golfanimatie zodra u de snelhoek activeert."
+
+#: prefs.js:1036
+msgid "Dash Icon Click"
+msgstr "Klikken op dashpictogram"
+
+#: prefs.js:1037
+msgid ""
+"if the app you clicked on has more than one window and the recently used "
+"window is not on the current workspace, the overview can switch to the "
+"workspace with the recent window."
+msgstr ""
+"Als de aangeklikte toepassing meer dan dan één venster bevat en het onlangs "
+"gebruikte venster niet op het huidige werkblad staat, dan kan worden "
+"overgeschakeld naar het juiste werkblad."
+
+#: prefs.js:1042
+msgid "Activate Last Used Window Immediately"
+msgstr "Laatstgebruikte venster focussen"
+
+#: prefs.js:1043
+msgid "Switch to Workspace with Recently Used Window"
+msgstr "Overschakelen naar werkblad met laatstgebruikte venster"
+
+#: prefs.js:1056
+msgid "Close Workspace Button"
+msgstr "Werkbladsluitknop"
+
+#: prefs.js:1057
+msgid ""
+"The Close Workspace button appears on the workspace thumbnail when you hover "
+"over it and allows you to close all windows on the workspace. You can choose "
+"a safety lock to prevent accidental use."
+msgstr ""
+"De werkbladsluitknop wordt getoond zodra u een miniatuur aanwijst. Hiermee "
+"kunt u alle vensters op het desbetreffende werkblad sluiten. U kunt "
+"instellen dat u sluiten wilt voorkomen."
+
+#: prefs.js:1063
+msgid "Single Click"
+msgstr "Eenmaal klikken"
+
+#: prefs.js:1064
+msgid "Double Click"
+msgstr "Dubbelklikken"
+
+#: prefs.js:1065
+msgid "Ctrl Key + Click"
+msgstr "Ctlr+klik"
+
+#: prefs.js:1078
+msgid "Apps Order"
+msgstr "Toepassingsvolgorde"
+
+#: prefs.js:1079
+msgid ""
+"Choose sorting method for the app grid. Note that sorting by alphabet and "
+"usage ignores folders."
+msgstr ""
+"Kies de sorteermethode van het toepassingsrooster. Let op: sorteren op "
+"alfabet of gebruik negeert mappen."
+
+#: prefs.js:1084
+msgid "Custom (Default)"
+msgstr "Aangepast (standaard)"
+
+#: prefs.js:1085
+msgid "Alphabet"
+msgstr "Alfabet"
+
+#: prefs.js:1086
+msgid "Usage"
+msgstr "Gebruik"
+
+#: prefs.js:1093
+msgid "App Grid Content"
+msgstr "Inhoud van toepassingsrooster"
+
+#: prefs.js:1094
+msgid ""
+"The default Shell removes favorite apps, this option lets you duplicate them "
+"in the grid or remove also running applications. Option \"Favorites and "
+"Running First\" only works with the Alphabet and Usage sorting."
+msgstr ""
+"Standaard worden favoriete toepassingen verborgen. Met behulp van deze optie "
+"kunt u ze klonen op het rooster of ook actieve toepassingen verbergen. Let "
+"op: de optie ‘Favorieten en actieve bovenaan’ werkt alleen in combinatie met "
+"sorteren op alfabet of gebruik."
+
+#: prefs.js:1099
+msgid "Include All"
+msgstr "Alles"
+
+#: prefs.js:1100
+msgid "Include All - Favorites and Running First"
+msgstr "Alles - Favorieten en actieve bovenaan"
+
+#: prefs.js:1101
+msgid "Exclude Favorites (Default)"
+msgstr "Favorieten verbergen (standaard)"
+
+#: prefs.js:1102
+msgid "Exclude Running"
+msgstr "Actieve verbergen"
+
+#: prefs.js:1103
+msgid "Exclude Favorites and Running"
+msgstr "Favorieten en actieve verbergen"
+
+#: prefs.js:1110
+msgid "Active Icons in Folder Preview"
+msgstr "Actieve pictogrammen op mapvoorvertoning"
+
+#: prefs.js:1111
+msgid ""
+"If enabled, clicking an app icon in a folder preview directly opens the app "
+"without having to open the folder first. Middle button opens new window of "
+"the app without closing the overview, so you can open multiple apps in a row "
+"on the current workspace and secondary button opens the folder."
+msgstr ""
+"Schakel in om op een toepassingspictogram te kunnen klikken vanuit een "
+"mapvoorvertoning. Hierdoor hoeft niet eerst de map te worden geopend. Met "
+"een middelklik opent u een nieuw venster zonder het overzicht te sluiten, "
+"zodat u meerdere toepassingen per rij kunt openen. Met een rechtermuisklik "
+"wordt de map geopend."
+
+#: prefs.js:1120
+msgid "Center Open Folders"
+msgstr "Geopende mappen centreren"
+
+#: prefs.js:1121
+msgid ""
+"App folder may open in the center of the screen or above the source folder "
+"icon."
+msgstr ""
+"Toon mappen op het midden van het scherm in plaats van boven het "
+"mappictogram."
+
+#: prefs.js:1130
+msgid "Allow Incomplete Pages"
+msgstr "Onvolledige pagina's tonen"
+
+#: prefs.js:1131
+msgid ""
+"If disabled, icons from the next page (if any) are automatically moved to "
+"fill any empty slot left after an icon was (re)moved (to a folder for "
+"example)."
+msgstr ""
+"Schakel uit om pictogrammen van de volgende pagina (indien beschikbaar) "
+"automatisch te verplaatsen om gaten op te vullen als er pictogrammen "
+"verplaatst of verwijderd zijn."
+
+#: prefs.js:1140
+msgid "App Labels Behavior"
+msgstr "Toepassingslabels"
+
+#: prefs.js:1141
+msgid "Choose how and when to display app names."
+msgstr "Geef aan hoe en wanneer er toepassingsnamen dienen te worden getoond."
+
+#: prefs.js:1146
+msgid "Ellipsized - Expand Selected (Default)"
+msgstr "Ingekort - Selectie volledig tonen (standaard)"
+
+#: prefs.js:1147
+msgid "Always Expanded"
+msgstr "Altijd volledig tonen"
+
+#: prefs.js:1148
+msgid "Hidden - Show Selected Only"
+msgstr "Verborgen - Alleen selectie tonen"
+
+#: prefs.js:1154
+msgid "Reset App Grid Layout"
+msgstr "Standaardindeling herstellen"
+
+#: prefs.js:1155
+msgid ""
+"Removes all stored app grid icons positions, after the reset icons will be "
+"ordered alphabetically."
+msgstr "Wis alle pictogramlocaties en sorteer alle pictogrammen op alfabet."
+
+#: prefs.js:1163
+msgid "Remove App Grid Folders"
+msgstr "Mappen verwijderen"
+
+#: prefs.js:1164
+msgid "Removes all folders, folder apps move to root grid."
+msgstr "Verwijder alle mappen en verplaats toepassingen naar het hoofdrooster."
+
+#: prefs.js:1186
+msgid "Enable Window Search Provider"
+msgstr "Vensters doorzoeken"
+
+#: prefs.js:1187
+msgid ""
+"Activates the window search provider that adds open windows to the search "
+"results. You can search app names and window titles. You can also use \"wq/"
+"\" prefix to suppress results from other search providers."
+msgstr ""
+"Schakel de dienst om geopende vensters te zoeken in. U kunt zoeken op "
+"toepassingsnamen en venstertitels. Ook kunt u ‘wq/’ voorafgaand aan een "
+"zoekopdracht toevoegen om resultaten van andere diensten te verbergen."
+
+#: prefs.js:1195
+msgid "Enable Recent Files Search Provider"
+msgstr "Onlangs gebruikte bestanden doorzoeken"
+
+#: prefs.js:1196
+msgid ""
+"Activates the recent files search provider that can be triggered by a dash "
+"icon, Ctrl + Space hotkey or by typing \"fq//\" prefix in the search entry "
+"field. This option needs File History option enabled in the GNOME Privacy "
+"settings."
+msgstr ""
+"Schakel de dienst in om onlangs gebruikte bestanden te doorzoeken. Dit kan "
+"met behulp van een dashpictogram, Ctrl+spatiebalk of door ‘fq//’ voorafgaand "
+"aan een zoekopdracht in te vullen. Let op: voor deze optie is "
+"bestandsgeschiedenis vereist. Die optie vindt u in de GNOME-"
+"privacyvoorkeuren."
+
+#: prefs.js:1204
+msgid "Enable Fuzzy Match"
+msgstr "Onduidelijke overeenkomsten inschakelen"
+
+#: prefs.js:1205
+msgid ""
+"Enabling the fuzzy match allows you to skip letters in the pattern you are "
+"searching for and find \"Firefox\" even if you type \"ffx\". Works only for "
+"the App, Window and Recent files search providers."
+msgstr ""
+"Schakel onduidelijke overeenkomsten in om letters over te slaan. Voorbeeld: "
+"‘Firefox’ wordt gevonden als u ‘ffx’ typt. Let op: dit werkt alleen in "
+"combinatie met de diensten toepassingen, vensters en onlangs gebruikte "
+"bestanden."
+
+#: prefs.js:1223
+msgid "Animations - General"
+msgstr "Animaties - Algemeen"
+
+#: prefs.js:1238
+msgid "Animation Speed"
+msgstr "Animatiesnelheid"
+
+#: prefs.js:1239
+msgid ""
+"Adjusts the global animation speed in % of the default duration - higher "
+"value means slower animation."
+msgstr ""
+"Pas de algemene animatiesnelheid aan (in %). Hogere waarde = langzamere "
+"animatie."
+
+#: prefs.js:1247
+msgid "Animations - Overview"
+msgstr "Animaties - Overzicht"
+
+#: prefs.js:1253
+msgid "App Grid Animation"
+msgstr "Animatie van toepassingsrooster"
+
+#: prefs.js:1254
+msgid ""
+"When entering the App Grid view, the app grid animates from the edge of the "
+"screen. You can choose direction, keep it Default (direction will be chosen "
+"automatically) or disable the animation if you don't like it."
+msgstr ""
+"Toon een animatie vanaf de zijkant na het openen van het toepassingsrooster. "
+"U kunt aangeven vanuit welke richting de animatie dient te komen (standaard: "
+"automatisch) of de animatie in zijn geheel uitschakelen."
+
+#: prefs.js:1261 prefs.js:1279
+msgid "Right to Left"
+msgstr "Van rechts naar links"
+
+#: prefs.js:1262 prefs.js:1280
+msgid "Left to Right"
+msgstr "Van links naar rechts"
+
+#: prefs.js:1263 prefs.js:1281
+msgid "Bottom to Top"
+msgstr "Van boven naar onder"
+
+#: prefs.js:1264 prefs.js:1282
+msgid "Top to Bottom"
+msgstr "Van onder naar boven"
+
+#: prefs.js:1271
+msgid "Search View Animation"
+msgstr "Animatie van zoekweergave"
+
+#: prefs.js:1272
+msgid ""
+"When search is activated the search view with search results can animate "
+"from the edge of the screen. You can choose direction, keep it Default "
+"(currently Bottom to Top) or disable the animation if you don't like it."
+msgstr ""
+"Toon een animatie vanaf de zijkant na het openen van de zoekweergave. U kunt "
+"aangeven vanuit welke richting de animatie dient te komen (standaard: van "
+"onder naar boven) of de animatie in zijn geheel uitschakelen."
+
+#: prefs.js:1290
+msgid "Workspace Preview Animation"
+msgstr "Animatie van werkbladminiaturen"
+
+#: prefs.js:1291
+msgid ""
+"When entering / leaving the App Grid / Search view, the workspace preview "
+"can animate to/from workspace thumbnail."
+msgstr ""
+"Toon een animatie na het openen en sluiten van het toepassingsrooster en de "
+"zoekweergave."
+
+#: prefs.js:1297
+msgid "Enable"
+msgstr "Inschakelen"
+
+#: prefs.js:1305
+msgid "Workspace Switcher"
+msgstr "Werkbladwisselaar"
+
+#: prefs.js:1311
+msgid "Workspace Switcher Animation"
+msgstr "Animatie van werkbladwisselaar"
+
+#: prefs.js:1312
+msgid ""
+"Allows you to disable movement of the desktop background during workspace "
+"switcher animation outside of the overview. The Static Background mode also "
+"keeps Conky and desktop icons on their place during switching."
+msgstr ""
+"Hiermee kunt u de animatie van de bureaubladachtergrond op de "
+"werkbladwisselaar buiten het overzicht uitschakelen. De statische modus laat "
+"Conky en pictogrammen op hun plaats staan tijdens het wisselen."
+
+#: prefs.js:1318
+msgid "Static Background"
+msgstr "Statische achtergrond"
+
+#: prefs.js:1325
+msgid "Workspace Switcher Popup Mode"
+msgstr "Werkbladwisselaarpop-upmodus"
+
+#: prefs.js:1326
+msgid ""
+"This popup shows up when you switch workspace using a keyboard shortcut or "
+"gesture outside of the overview. You can to disable the popup at all, or "
+"show it on the current monitor (the one with mouse pointer) instead of the "
+"primary."
+msgstr ""
+"Deze pop-up wordt getoond als u van werkblad wisselt met behulp van een "
+"sneltoets of gebaar buiten het overzicht. U kunt de pop-up in zijn geheel "
+"uitschakelen of alleen op het huidige beeldscherm (het scherm met de "
+"aanwijzer) tonen."
+
+#: prefs.js:1332
+msgid "Show on Primary Monitor (Default)"
+msgstr "Tonen op hoofdscherm (standaard)"
+
+#: prefs.js:1333
+msgid "Show on Current Monitor"
+msgstr "Tonen op huidig beeldscherm"
+
+#: prefs.js:1341
+msgid "Notifications"
+msgstr "Meldingen"
+
+#: prefs.js:1347
+msgid "Notification Banner Position"
+msgstr "Meldingslocatie"
+
+#: prefs.js:1348
+msgid "Choose where the notification pop-ups appear on the screen."
+msgstr "Geef aan op welke locatie meldingen dienen te worden getoond."
+
+#: prefs.js:1353
+msgid "Top Left"
+msgstr "Linksboven"
+
+#: prefs.js:1354
+msgid "Top Middle"
+msgstr "Linksmidden"
+
+#: prefs.js:1355
+msgid "Top Right (Default)"
+msgstr "Rechtsboven (standaard)"
+
+#: prefs.js:1356
+msgid "Bottom Left"
+msgstr "Linksonder"
+
+#: prefs.js:1357
+msgid "Bottom Middle"
+msgstr "Middenonder"
+
+#: prefs.js:1358
+msgid "Bottom Right"
+msgstr "Rechtsonder"
+
+#: prefs.js:1365
+msgid "Window Attention Handler"
+msgstr "Vensterfocusafhandeling"
+
+#: prefs.js:1366
+msgid ""
+"When a window requires attention (often a new window), GNOME Shell shows you "
+"a notification about it. You can disable popups of these messages "
+"(notification will be pushed into the message tray silently) or focus the "
+"source window immediately instead."
+msgstr ""
+"Als een venster om focus vraagt (doorgaans een nieuw venster), dan toont "
+"GNOME Shell een melding. U kunt deze meldingen uitschakelen om ze direct "
+"naar het berichtenvak te sturen of het venster direct focussen."
+
+#: prefs.js:1371 prefs.js:1386
+msgid "Show Notifications (Default)"
+msgstr "Meldingen tonen (standaard)"
+
+#: prefs.js:1372
+msgid "Disable Notification Popups"
+msgstr "Meldingen uitschakelen"
+
+#: prefs.js:1373
+msgid "Immediately Focus Window"
+msgstr "Venster direct focussen"
+
+#: prefs.js:1380
+msgid "Favorites"
+msgstr "Favorieten"
+
+#: prefs.js:1381
+msgid "Disable pin/unpin app notifications."
+msgstr "Schakel meldingen omtrent favorieten uit."
+
+#: prefs.js:1387
+msgid "Disable Notifications"
+msgstr "Meldingen uitschakelen"
+
+#: prefs.js:1402
+msgid "Keyboard"
+msgstr "Toetsenbord"
+
+#: prefs.js:1408
+msgid "Override Page Up/Down Shortcuts"
+msgstr "Page Up-/Down-sneltoetsgedrag aanpassen"
+
+#: prefs.js:1409
+msgid ""
+"This option automatically overrides the (Shift +) Super + Page Up/Down "
+"keyboard shortcuts for the current workspace orientation. If you encounter "
+"any issues, check the configuration in the dconf editor."
+msgstr ""
+"Met deze optie kunt u het gedrag van de sneltoetsen (Shift +) Super + Page "
+"Up/Down binnen de huidige werkbladoriëntatie aanpassen. Let op: als u "
+"problemen ervaart, bekijk dan de configuratie in dconf-bewerker."
+
+#: prefs.js:1417
+msgid "Compatibility"
+msgstr "Compatibiliteit"
+
+#: prefs.js:1423
+msgid "Fix for Dash to Dock"
+msgstr "Dash-to-Dock-oplossing"
+
+#: prefs.js:1424
+msgid ""
+"With the default Ubuntu Dock and other Dash To Dock forks, you may "
+"experience issues with Activities overview after you change Dock position or "
+"change monitors configuration. If you are experiencing such issues, try to "
+"enable this option, or (better) disable/replace the dock extension."
+msgstr ""
+"Met het standaard Ubuntu-dock en andere Dash-to-Dock-varianten kunt u "
+"problemen met het activiteitenoverzicht ervaren als u de docklocatie of "
+"beeldschermvoorkeuren aanpast. In dat geval kunt u deze optie proberen of de "
+"dockuitbreiding in kwestie uit te schakelen/te vervangen."
+
+#: prefs.js:1432
+msgid ""
+"V-Shell Modules that can be disabled in case of conflict or misbehavior."
+msgstr ""
+"V-Shellmodules die kunnen worden uitgeschakeld bij problemen of conflicten."
+
+#: prefs.js:1438
+msgid "AppFavorites"
+msgstr "Favoriete toepassingen"
+
+#: prefs.js:1439
+msgid "Pin/unpin app notification options."
+msgstr "Opties omtrent favorietenmeldingen."
+
+#: prefs.js:1447
+msgid "AppDisplay / IconGrid"
+msgstr "Toepassingsweergave/-rooster"
+
+#: prefs.js:1448
+msgid "App grid customization and options."
+msgstr "Opties omtrent het aanpassen van het toepassingsrooster."
+
+#: prefs.js:1457
+msgid "Dash configuration options and support for vertical orientation."
+msgstr "Dashopties en ondersteuning voor verticale oriëntatie."
+
+#: prefs.js:1466
+msgid ""
+"Hot corner options, removes right panel barrier that collides with CHC-E "
+"extension."
+msgstr ""
+"Snelhoekopties. Verwijder de barrière van de rechterbalk die botst met de "
+"CHC-E-uitbreiding."
+
+#: prefs.js:1474
+msgid "MessageTray"
+msgstr "Berichtenvak"
+
+#: prefs.js:1475
+msgid "Notification position options."
+msgstr "Opties omtrent meldingslocaties."
+
+#: prefs.js:1484
+msgid "Panel options."
+msgstr "Bovenbalkopties."
+
+#: prefs.js:1493
+msgid "Search view and app search provider customization and options."
+msgstr "Zoekweergave- en zoekdienstopties."
+
+#: prefs.js:1501
+msgid "SwipeTracker"
+msgstr "Gebaar-volgsysteem"
+
+#: prefs.js:1502
+msgid "Gestures for vertical workspace orientation."
+msgstr "Gebaren in de verticale werkbladoriëntatie."
+
+#: prefs.js:1510
+msgid "WindowAttentionHandler"
+msgstr "Vensterfocusafhandeling"
+
+#: prefs.js:1511
+msgid "Window attention handler options."
+msgstr "Vensterfocusafhandelingsopties."
+
+#: prefs.js:1519
+msgid "WindowManager"
+msgstr "Vensterbeheer"
+
+#: prefs.js:1520
+msgid ""
+"Fixes an upstream bug in the minimization animation of a full-screen window."
+msgstr ""
+"Lost een bug omtrent de minimaliseeranimatie van schermvullende vensters op."
+
+#: prefs.js:1528
+msgid "WindowPreview"
+msgstr "Venstervoorvertoning"
+
+#: prefs.js:1529
+msgid ""
+"Window preview options, fixes an upstream bug that fills the system log with "
+"errors when you close a window from an overview or exit the overview with a "
+"gesture when any window is selected."
+msgstr ""
+"Venstervoorvertoningsopties. Lost een bug op omtrent het vastleggen van "
+"foutmeldingen in het systeemlogboek na het sluiten van een venster vanuit "
+"het overzicht of sluiten van het overzicht met een gebaar."
+
+#: prefs.js:1537
+msgid "Workspace"
+msgstr "Werkblad"
+
+#: prefs.js:1538
+msgid ""
+"Fixes workspace preview allocations for vertical workspaces orientation and "
+"window scaling in static overview modes."
+msgstr ""
+"Lost een bug omtrent het toewijzen van werkbladvoorvertoningen in verticale "
+"oriëntatie op, alsmede vensterschaling in de statische modus."
+
+#: prefs.js:1546
+msgid "WorkspaceAnimation"
+msgstr "Werkbladanimatie"
+
+#: prefs.js:1547
+msgid "Static workspace animation option."
+msgstr "Statische werkbladanimatie."
+
+#: prefs.js:1555
+msgid "WorkspaceSwitcherPopup"
+msgstr "Werkbladwisselaarpop-up"
+
+#: prefs.js:1556
+msgid "Workspace switcher popup position options."
+msgstr "Opties omtrent de werkbladwisselaarpop-up."
+
+#: prefs.js:1573
+msgid "Version"
+msgstr "Versie"
+
+#: prefs.js:1579
+msgid "Reset all options"
+msgstr "Standaardwaarden herstellen"
+
+#: prefs.js:1580
+msgid "Set all options to default values."
+msgstr "Herstel alle standaardvoorkeuren."
+
+#: prefs.js:1586
+msgid "Links"
+msgstr "Links"
+
+#: prefs.js:1590
+msgid "Homepage"
+msgstr "Website"
+
+#: prefs.js:1591
+msgid "Source code and more info about this extension"
+msgstr "Broncode en meer informatie over deze uitbreiding"
+
+#: prefs.js:1596
+msgid "Changelog"
+msgstr "Wijzigingslog"
+
+#: prefs.js:1597
+msgid "See what's changed."
+msgstr "Bekijk alle wijzigingen."
+
+#: prefs.js:1602
+msgid "GNOME Extensions"
+msgstr "GNOME-uitbreidingen"
+
+#: prefs.js:1603
+msgid "Rate and comment the extension on GNOME Extensions site."
+msgstr "Beoordeel deze uitbreiding op de GNOME-uitbreidingensite."
+
+#: prefs.js:1608
+msgid "Report a bug or suggest new feature"
+msgstr "Bug melden of idee delen"
+
+#: prefs.js:1614
+msgid "Buy Me a Coffee"
+msgstr "Trakteer me op koffie"
+
+#: prefs.js:1615
+msgid "If you like this extension, you can help me with my coffee expenses."
+msgstr ""
+"Als u deze uitbreiding graag gebruikt, dan kunt u me trakteren op een kopje "
+"koffie."
+
+#: recentFilesSearchProvider.js:109
+msgid "Search recent files"
+msgstr "Onlangs gebruikte bestanden doorzoeken"
+
+#: recentFilesSearchProvider.js:110
+msgid "Recent Files"
+msgstr "Onlangs gebruikte bestanden"
diff --git a/extensions/47/vertical-workspaces/po/vertical-workspaces.pot b/extensions/47/vertical-workspaces/po/vertical-workspaces.pot
new file mode 100644
index 0000000..1e1b2cf
--- /dev/null
+++ b/extensions/47/vertical-workspaces/po/vertical-workspaces.pot
@@ -0,0 +1,2005 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR GdH
+# This file is distributed under the same license as the vertical-workspaces package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: vertical-workspaces\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2024-07-19 08:40+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: prefs.js:29
+msgid "Profiles"
+msgstr ""
+
+#: prefs.js:34 prefs.js:1977
+msgid "Layout"
+msgstr ""
+
+#: prefs.js:39
+msgid "Appearance"
+msgstr ""
+
+#: prefs.js:44
+msgid "Behavior"
+msgstr ""
+
+#: prefs.js:49 prefs.js:345
+msgid "App Grid"
+msgstr ""
+
+#: prefs.js:54
+msgid "Modules"
+msgstr ""
+
+#: prefs.js:59
+msgid "Misc"
+msgstr ""
+
+#: prefs.js:64
+msgid "About"
+msgstr ""
+
+#: prefs.js:107
+msgid "Custom Profiles"
+msgstr ""
+
+#: prefs.js:108
+msgid "Sets of settings that can help you with the initial customization"
+msgstr ""
+
+#: prefs.js:113
+msgid "Profile 1"
+msgstr ""
+
+#: prefs.js:119
+msgid "Profile 2"
+msgstr ""
+
+#: prefs.js:125
+msgid "Profile 3"
+msgstr ""
+
+#: prefs.js:131
+msgid "Profile 4"
+msgstr ""
+
+#: prefs.js:146 prefs.js:629 prefs.js:1185 prefs.js:1968
+msgid "Dash"
+msgstr ""
+
+#: prefs.js:152
+msgid "Dash Position"
+msgstr ""
+
+#: prefs.js:157 prefs.js:417
+msgid "Bottom"
+msgstr ""
+
+#: prefs.js:158
+msgid "Left"
+msgstr ""
+
+#: prefs.js:159
+msgid "Top"
+msgstr ""
+
+#: prefs.js:160
+msgid "Right"
+msgstr ""
+
+#: prefs.js:161 prefs.js:205 prefs.js:548
+msgid "Hide"
+msgstr ""
+
+#: prefs.js:169
+msgid "Center Horizontal Dash to Workspace"
+msgstr ""
+
+#: prefs.js:170
+msgid ""
+"If the Dash Position is set to Top or Bottom, the position will be "
+"recalculated relative to the workspace preview instead of the screen"
+msgstr ""
+
+#: prefs.js:189
+msgid "Fine Tune Dash Position"
+msgstr ""
+
+#: prefs.js:190
+msgid ""
+"Adjusts the position of the dash on the axis given by the orientation of the "
+"workspaces"
+msgstr ""
+
+#: prefs.js:200
+msgid "Show Apps Icon Position"
+msgstr ""
+
+#: prefs.js:201
+msgid "Sets the position of the \"Show Applications\" icon in the Dash"
+msgstr ""
+
+#: prefs.js:206
+msgid "Start"
+msgstr ""
+
+#: prefs.js:207
+msgid "End"
+msgstr ""
+
+#: prefs.js:215
+msgid "Workspace Thumbnails / Orientation"
+msgstr ""
+
+#: prefs.js:221
+msgid "Thumbnails Position / Workspaces Orientation"
+msgstr ""
+
+#: prefs.js:222
+msgid ""
+"Position of the workspace thumbnails on the screen also sets orientation of "
+"the workspaces to vertical or horizontal. You have two options to disable "
+"workspace thumbnails, one sets workspaces to vertical orientation, the "
+"second one to horizontal."
+msgstr ""
+
+#: prefs.js:227
+msgid "Left \t Vertical Orientation"
+msgstr ""
+
+#: prefs.js:228
+msgid "Right \t Vertical Orientation"
+msgstr ""
+
+#: prefs.js:229
+msgid "Hide \t Vertical Orientation"
+msgstr ""
+
+#: prefs.js:230
+msgid "Top \t Horizontal Orientation"
+msgstr ""
+
+#: prefs.js:231
+msgid "Bottom \t Horizontal Orientation"
+msgstr ""
+
+#: prefs.js:232
+msgid "Hide \t Horizontal Orientation"
+msgstr ""
+
+#: prefs.js:248 prefs.js:564
+msgid "Fine Tune Workspace Thumbnails Position"
+msgstr ""
+
+#: prefs.js:249 prefs.js:565
+msgid ""
+"Adjusts the position of the thumbnails on the axis given by the orientation "
+"of the workspaces"
+msgstr ""
+
+#: prefs.js:257
+msgid "Reserve Full Screen Height/Width for Thumbnails"
+msgstr ""
+
+#: prefs.js:258
+msgid ""
+"The whole screen height/width will be reserved for workspace thumbnails at "
+"the expense of space available for Dash (if the Dash is oriented in a "
+"different axis)."
+msgstr ""
+
+#: prefs.js:275
+msgid "Workspace Thumbnails Max Scale - Window Picker"
+msgstr ""
+
+#: prefs.js:276
+msgid ""
+"Adjusts the maximum size of the workspace thumbnails in the overview "
+"(percentage relative to display width)"
+msgstr ""
+
+#: prefs.js:293
+msgid "Workspace Thumbnails Max Scale - App View"
+msgstr ""
+
+#: prefs.js:294
+msgid "Allows you to set different thumbnails scale for the Applications view"
+msgstr ""
+
+#: prefs.js:302 prefs.js:822
+msgid "Workspace Preview"
+msgstr ""
+
+#: prefs.js:317
+msgid "Workspaces Scale"
+msgstr ""
+
+#: prefs.js:318
+msgid ""
+"Allows to shrink workspace previews to adjust spacing or fit more of the "
+"adjacent workspaces on the screen. Default size is calculated to use all "
+"available space with minimal spacing"
+msgstr ""
+
+#: prefs.js:335
+msgid "Workspaces Spacing"
+msgstr ""
+
+#: prefs.js:336
+msgid ""
+"Adjusts spacing between workspace previews so you can control how much of "
+"the adjacent workspaces overlap to the current workspace overview. Default "
+"value should set the adjacent workspaces off-screen."
+msgstr ""
+
+#: prefs.js:351
+msgid "Center App Grid"
+msgstr ""
+
+#: prefs.js:352
+msgid "Centers the app grid relative to the display instead of available space"
+msgstr ""
+
+#: prefs.js:361
+msgid "Search View"
+msgstr ""
+
+#: prefs.js:367
+msgid "Center Search View"
+msgstr ""
+
+#: prefs.js:368
+msgid ""
+"Centers the search view relative to the display instead of available space"
+msgstr ""
+
+#: prefs.js:376
+msgid "Always Show Search Entry"
+msgstr ""
+
+#: prefs.js:377
+msgid ""
+"If disabled, the search entry field will be hidden when not in use, so the "
+"workspace preview and app grid may take up more space"
+msgstr ""
+
+#: prefs.js:394
+msgid "Search Results Width"
+msgstr ""
+
+#: prefs.js:395
+msgid ""
+"Adjusts the maximum width of search results view (percentage relative to "
+"default). This allows to fit more (or less) app icons into the app search "
+"result"
+msgstr ""
+
+#: prefs.js:405 prefs.js:2013
+msgid "Panel"
+msgstr ""
+
+#: prefs.js:411
+msgid "Main Panel Position"
+msgstr ""
+
+#: prefs.js:412
+msgid "Allows to place the main panel at the bottom of the primary display"
+msgstr ""
+
+#: prefs.js:416
+msgid "Top (Default)"
+msgstr ""
+
+#: prefs.js:425
+msgid "Main Panel Visibility"
+msgstr ""
+
+#: prefs.js:426
+msgid "Allows to hide main panel when not needed"
+msgstr ""
+
+#: prefs.js:430
+msgid "Always Visible (Default)"
+msgstr ""
+
+#: prefs.js:431
+msgid "Overview Only"
+msgstr ""
+
+#: prefs.js:432
+msgid "Always Hidden"
+msgstr ""
+
+#: prefs.js:442
+msgid "Workspace Switcher Popup"
+msgstr ""
+
+#: prefs.js:458
+msgid "Horizontal Position (percentage from the left)"
+msgstr ""
+
+#: prefs.js:459
+msgid ""
+"This popup shows up when you switch workspace using a keyboard shortcut or "
+"gesture outside of the overview. You can disable it on the \"Behavior\" tab. "
+"If you want more control over the popup, try the \"Workspace Switcher "
+"Manager\" extension"
+msgstr ""
+
+#: prefs.js:479
+msgid "Vertical Position (percentage from the top)"
+msgstr ""
+
+#: prefs.js:490
+msgid "Notifications and OSD"
+msgstr ""
+
+#: prefs.js:496
+msgid "Notification Banner Position"
+msgstr ""
+
+#: prefs.js:497
+msgid "Choose where the notification banners appear on the screen"
+msgstr ""
+
+#: prefs.js:501 prefs.js:520 prefs.js:1150
+msgid "Top Left"
+msgstr ""
+
+#: prefs.js:502
+msgid "Top Center (Default)"
+msgstr ""
+
+#: prefs.js:503 prefs.js:522 prefs.js:1151
+msgid "Top Right"
+msgstr ""
+
+#: prefs.js:504 prefs.js:524 prefs.js:1152
+msgid "Bottom Left"
+msgstr ""
+
+#: prefs.js:505
+msgid "Bottom Center"
+msgstr ""
+
+#: prefs.js:506 prefs.js:526 prefs.js:1153
+msgid "Bottom Right"
+msgstr ""
+
+#: prefs.js:514
+msgid "OSD Popup Position"
+msgstr ""
+
+#: prefs.js:515
+msgid ""
+"Choose where the OSD pop-ups (like sound volume level) appear on the screen"
+msgstr ""
+
+#: prefs.js:519 prefs.js:743 prefs.js:787 prefs.js:1087 prefs.js:1107
+#: prefs.js:1130 prefs.js:1244 prefs.js:1363 prefs.js:1380 prefs.js:1397
+#: prefs.js:1463
+msgid "Disable"
+msgstr ""
+
+#: prefs.js:521
+msgid "Top Center"
+msgstr ""
+
+#: prefs.js:523
+msgid "Center"
+msgstr ""
+
+#: prefs.js:525
+msgid "Bottom Center (Default)"
+msgstr ""
+
+#: prefs.js:534
+msgid "Secondary Monitors"
+msgstr ""
+
+#: prefs.js:540
+msgid "Workspace Thumbnails Position"
+msgstr ""
+
+#: prefs.js:541
+msgid ""
+"Allows to place workspace thumbnails of secondary monitors on the opposite "
+"side than on the primary monitor"
+msgstr ""
+
+#: prefs.js:545
+msgid "Same as Primary"
+msgstr ""
+
+#: prefs.js:546
+msgid "Left / Top"
+msgstr ""
+
+#: prefs.js:547
+msgid "Right / Bottom"
+msgstr ""
+
+#: prefs.js:582
+msgid "Workspace Thumbnails Max Scale"
+msgstr ""
+
+#: prefs.js:583
+msgid ""
+"Adjusts maximum size of the workspace thumbnails (percentage relative to the "
+"display width / height) for secondary monitors"
+msgstr ""
+
+#: prefs.js:600
+msgid "Workspace Preview Scale"
+msgstr ""
+
+#: prefs.js:601
+msgid "Allows to scale down workspace previews on secondary monitors"
+msgstr ""
+
+#: prefs.js:609
+msgid "Shift Overview by Panel Height"
+msgstr ""
+
+#: prefs.js:610
+msgid ""
+"This option can help align the overview of the secondary monitor with the "
+"primary one"
+msgstr ""
+
+#: prefs.js:635
+msgid "Dash Max Icon Size"
+msgstr ""
+
+#: prefs.js:636
+msgid ""
+"Maximum size of Dash icons in pixels. Adaptive option switches between "
+"default 64 and 48 for low resolution displays"
+msgstr ""
+
+#: prefs.js:640 prefs.js:1545 prefs.js:1740
+msgid "Adaptive (Default)"
+msgstr ""
+
+#: prefs.js:641 prefs.js:867 prefs.js:1553 prefs.js:1741
+msgid "128"
+msgstr ""
+
+#: prefs.js:642 prefs.js:868 prefs.js:1554 prefs.js:1742
+msgid "112"
+msgstr ""
+
+#: prefs.js:643 prefs.js:1555 prefs.js:1743
+msgid "96"
+msgstr ""
+
+#: prefs.js:644 prefs.js:870 prefs.js:1556 prefs.js:1744
+msgid "80"
+msgstr ""
+
+#: prefs.js:645 prefs.js:871 prefs.js:1557 prefs.js:1745
+msgid "64"
+msgstr ""
+
+#: prefs.js:646 prefs.js:784 prefs.js:872 prefs.js:1558 prefs.js:1746
+msgid "48"
+msgstr ""
+
+#: prefs.js:647 prefs.js:785 prefs.js:873
+msgid "32"
+msgstr ""
+
+#: prefs.js:655
+msgid "Dash Background Style"
+msgstr ""
+
+#: prefs.js:656
+msgid ""
+"Allows you to change the background color of the dash to match the search "
+"results an app folders"
+msgstr ""
+
+#: prefs.js:660 prefs.js:1029 prefs.js:1057 prefs.js:1149 prefs.js:1223
+#: prefs.js:1362 prefs.js:1379 prefs.js:1435 prefs.js:1449
+msgid "Default"
+msgstr ""
+
+#: prefs.js:661
+msgid "Light"
+msgstr ""
+
+#: prefs.js:677
+msgid "Dash Background Opacity"
+msgstr ""
+
+#: prefs.js:678
+msgid "Adjusts the opacity of the Dash background"
+msgstr ""
+
+#: prefs.js:696
+msgid "Dash Background Radius"
+msgstr ""
+
+#: prefs.js:697
+msgid ""
+"Adjusts the border radius of the Dash background in pixels. 0 means the "
+"default value given by the current theme style"
+msgstr ""
+
+#: prefs.js:707
+msgid "Dash Background GNOME 3 Style"
+msgstr ""
+
+#: prefs.js:708
+msgid ""
+"Background of the vertically oriented dash will imitate the GNOME 3 style"
+msgstr ""
+
+#: prefs.js:718
+msgid "Running App Indicator"
+msgstr ""
+
+#: prefs.js:719
+msgid ""
+"Allows you to change style of the running app indicator under the app icon"
+msgstr ""
+
+#: prefs.js:723
+msgid "Dot (Default)"
+msgstr ""
+
+#: prefs.js:724
+msgid "Line"
+msgstr ""
+
+#: prefs.js:732 prefs.js:1233
+msgid "Workspace Thumbnails"
+msgstr ""
+
+#: prefs.js:738
+msgid "Show Workspace Thumbnail Labels"
+msgstr ""
+
+#: prefs.js:739
+msgid ""
+"Each workspace thumbnail can show label with its index and name (if defined "
+"in the system settings) or name/title of its most recently used app/window"
+msgstr ""
+
+#: prefs.js:744
+msgid "Index"
+msgstr ""
+
+#: prefs.js:745
+msgid "Index + WS Name"
+msgstr ""
+
+#: prefs.js:746
+msgid "Index + App Name"
+msgstr ""
+
+#: prefs.js:747
+msgid "Index + Window Title"
+msgstr ""
+
+#: prefs.js:754
+msgid "Show WS Thumbnail Label on Hover"
+msgstr ""
+
+#: prefs.js:755
+msgid "Show the label only when the mouse pointer hovers over the thumbnail"
+msgstr ""
+
+#: prefs.js:763
+msgid "Show Wallpaper in Workspace Thumbnails"
+msgstr ""
+
+#: prefs.js:764
+msgid "All workspace thumbnails will include the current desktop background"
+msgstr ""
+
+#: prefs.js:772 prefs.js:1254
+msgid "Window Preview"
+msgstr ""
+
+#: prefs.js:778
+msgid "Window Preview App Icon Size"
+msgstr ""
+
+#: prefs.js:783
+msgid "64 (Default)"
+msgstr ""
+
+#: prefs.js:786
+msgid "22"
+msgstr ""
+
+#: prefs.js:795
+msgid "Window Title Position / Visibility"
+msgstr ""
+
+#: prefs.js:796
+msgid ""
+"Sets the position of the window title that is displayed when the mouse "
+"hovers over the window or can always be visible"
+msgstr ""
+
+#: prefs.js:800
+msgid "Inside Window"
+msgstr ""
+
+#: prefs.js:801
+msgid "Inside Window Always Visible"
+msgstr ""
+
+#: prefs.js:802
+msgid "Below Window (Default)"
+msgstr ""
+
+#: prefs.js:810
+msgid "Show Close Window Button"
+msgstr ""
+
+#: prefs.js:811
+msgid "Allows you to hide close window button"
+msgstr ""
+
+#: prefs.js:828
+msgid "Show Workspace Preview Background"
+msgstr ""
+
+#: prefs.js:829
+msgid "Allows to hide the background of the workspace preview"
+msgstr ""
+
+#: prefs.js:846
+msgid "Workspace Background Corner Radius"
+msgstr ""
+
+#: prefs.js:847
+msgid "Adjusts the corner radius of the workspace preview in the overview"
+msgstr ""
+
+#: prefs.js:855 prefs.js:1318 prefs.js:2022
+msgid "Search"
+msgstr ""
+
+#: prefs.js:861
+msgid "App Search Icon Size"
+msgstr ""
+
+#: prefs.js:862
+msgid ""
+"Size of results provided by the App Search Provider - smaller size allows to "
+"fit more results. Adaptive option switches between default 96 and 64 for low "
+"resolution displays"
+msgstr ""
+
+#: prefs.js:866
+msgid "Adaptive"
+msgstr ""
+
+#: prefs.js:869
+msgid "96 (Default)"
+msgstr ""
+
+#: prefs.js:893
+msgid "Max Search Results Rows"
+msgstr ""
+
+#: prefs.js:894
+msgid ""
+"Sets the maximum number of rows for result lists of all search providers "
+"except the window search provider which always lists all results"
+msgstr ""
+
+#: prefs.js:904
+msgid "Highlighting"
+msgstr ""
+
+#: prefs.js:905
+msgid ""
+"The GNOME default highlighting style (bold) causes strings to be "
+"\"randomly\" ellipsized, often preventing you from seeing the whole string, "
+"even if there is space for it. The selected style will be applied to all "
+"search results globally. If you are using other extensions that offer this "
+"option, make sure you set the same setting in all of them."
+msgstr ""
+
+#: prefs.js:909
+msgid "Bold (Default)"
+msgstr ""
+
+#: prefs.js:910
+msgid "Underline"
+msgstr ""
+
+#: prefs.js:911
+msgid "None"
+msgstr ""
+
+#: prefs.js:919
+msgid "Overview Background"
+msgstr ""
+
+#: prefs.js:925
+msgid "Show Wallpaper"
+msgstr ""
+
+#: prefs.js:926
+msgid ""
+"Replaces the solid grey background in the overview with the current desktop "
+"wallpaper"
+msgstr ""
+
+#: prefs.js:942
+msgid "Brightness"
+msgstr ""
+
+#: prefs.js:943
+msgid "Brightness of the background wallpaper in the overview"
+msgstr ""
+
+#: prefs.js:959
+msgid "Brightness for Search View"
+msgstr ""
+
+#: prefs.js:960
+msgid ""
+"Allows you to set a lower background brightness for search view mode where "
+"text visibility is more important"
+msgstr ""
+
+#: prefs.js:976
+msgid "Blur Window Picker Background"
+msgstr ""
+
+#: prefs.js:977
+msgid "Sets the amount of background blur in the window picker view"
+msgstr ""
+
+#: prefs.js:993
+msgid "Blur App Grid/Search View Background"
+msgstr ""
+
+#: prefs.js:994
+msgid ""
+"Sets the amount of background blur in the app grid and search results views"
+msgstr ""
+
+#: prefs.js:1002
+msgid "Smooth Blur Transitions"
+msgstr ""
+
+#: prefs.js:1003
+msgid ""
+"Allows for smoother blur transitions, but can affect the overall smoothness "
+"of overview animations on weak hardware"
+msgstr ""
+
+#: prefs.js:1018
+msgid "Overview"
+msgstr ""
+
+#: prefs.js:1024
+msgid "Overview Mode"
+msgstr ""
+
+#: prefs.js:1025
+msgid ""
+"The Expose Windows on Hover mode does not expose the workspace preview "
+"windows until the mouse pointer enters any window\n"
+"The Static Workspace mode keeps the workspace static when you activate the "
+"overview, it only shows Dash, workspace thumbnails and search entry over the "
+"workspace and only clicking on an active workspace thumbnail activates the "
+"default overview"
+msgstr ""
+
+#: prefs.js:1030
+msgid "Expose Windows on Hover"
+msgstr ""
+
+#: prefs.js:1031
+msgid "Static Workspace"
+msgstr ""
+
+#: prefs.js:1038
+msgid "Startup State"
+msgstr ""
+
+#: prefs.js:1039
+msgid "Allows to change the state in which GNOME Shell starts a session"
+msgstr ""
+
+#: prefs.js:1043
+msgid "Overview (Default)"
+msgstr ""
+
+#: prefs.js:1044
+msgid "Desktop"
+msgstr ""
+
+#: prefs.js:1045 prefs.js:1090 prefs.js:1133
+msgid "Applications"
+msgstr ""
+
+#: prefs.js:1052
+msgid "Escape Key Behavior"
+msgstr ""
+
+#: prefs.js:1053
+msgid ""
+"Allows you to close the overview with a single press of the Escape key, even "
+"from the application grid or from search, if the search entry field does not "
+"have focus"
+msgstr ""
+
+#: prefs.js:1058
+msgid "Close Overview"
+msgstr ""
+
+#: prefs.js:1066
+msgid "Click Empty Space To Close"
+msgstr ""
+
+#: prefs.js:1067
+msgid "Enables clicking on an empty space in the overview to close it"
+msgstr ""
+
+#: prefs.js:1076
+msgid "Overlay Key (Super/Windows)"
+msgstr ""
+
+#: prefs.js:1082
+msgid "Single-Press Action"
+msgstr ""
+
+#: prefs.js:1083
+msgid ""
+"Disable or change behavior when you press and release the Super key. The "
+"\"Search Windows\" options requires the \"WSP (Window Search Provider)\" "
+"extension installed and enabled. Link is available on the Modules tab in "
+"Settings. If you want another extension (like AATWS) to handle the overlay "
+"key, set this option to \"Overview - Window Picker (Default)\" and the "
+"\"Double-Press Action\" option to \"Applications (Default)\""
+msgstr ""
+
+#: prefs.js:1088 prefs.js:1131
+msgid "Follow Global Overview Mode"
+msgstr ""
+
+#: prefs.js:1089 prefs.js:1132
+msgid "Overview - Window Picker (Default)"
+msgstr ""
+
+#: prefs.js:1091 prefs.js:1134
+msgid "Overview - Static WS Preview"
+msgstr ""
+
+#: prefs.js:1092 prefs.js:1135
+msgid "Overview - Static Workspace"
+msgstr ""
+
+#: prefs.js:1093 prefs.js:1109 prefs.js:1136
+msgid "Search Windows (requires WSP extension)"
+msgstr ""
+
+#: prefs.js:1102
+msgid "Double-Press Action"
+msgstr ""
+
+#: prefs.js:1103
+msgid ""
+"Disable or change behavior when you double-press the Super key. The \"Search "
+"Windows\" option requires the \"WSP (Window Search Provider)\" extension "
+"installed and enabled. The \"Static WS Overview - Expose Windows\" option "
+"allows you to switch to default Activities Overview window picker view if "
+"you set static workspace (preview) for the single press/release Super key "
+"action"
+msgstr ""
+
+#: prefs.js:1108
+msgid "Applications (Default)"
+msgstr ""
+
+#: prefs.js:1110
+msgid "Overview - Window Picker"
+msgstr ""
+
+#: prefs.js:1119
+msgid "Hot Corner (Install Custom Hot Corners - Extended for more options)"
+msgstr ""
+
+#: prefs.js:1125
+msgid "Hot Corner Action"
+msgstr ""
+
+#: prefs.js:1126
+msgid ""
+"Disable or change behavior of the hot corner. Holding down the Ctrl key "
+"while hitting the hot corner switches between Overview/Applications actions. "
+"The \"Search Windows\" option requires the \"WSP (Window Search Provider)\" "
+"extension installed and enabled"
+msgstr ""
+
+#: prefs.js:1144
+msgid "Hot Corner Position"
+msgstr ""
+
+#: prefs.js:1145
+msgid ""
+"Choose which corner of your monitors will be active. If you choose \"Follow "
+"Dash\" option, the corner will be placed near the left or top edge of the "
+"Dash. The last option extends the hot corner trigger to cover the entire ege "
+"of the monitor where Dash is located"
+msgstr ""
+
+#: prefs.js:1154
+msgid "Follow Dash"
+msgstr ""
+
+#: prefs.js:1155
+msgid "Follow Dash - Hot Edge"
+msgstr ""
+
+#: prefs.js:1163
+msgid "Enable Hot Corner in Full-Screen Mode"
+msgstr ""
+
+#: prefs.js:1164
+msgid ""
+"If you often work with full-screen applications and want the hot corner to "
+"be usable"
+msgstr ""
+
+#: prefs.js:1174
+msgid "Show Ripples Animation"
+msgstr ""
+
+#: prefs.js:1175
+msgid ""
+"The ripple animation is played when the hot corner is activated. The ripple "
+"size has been reduced to be less distracting"
+msgstr ""
+
+#: prefs.js:1191
+msgid "Isolate Workspaces"
+msgstr ""
+
+#: prefs.js:1192
+msgid "Dash will only show apps and windows from the current workspace"
+msgstr ""
+
+#: prefs.js:1202
+msgid "App Icon - Click Behavior"
+msgstr ""
+
+#: prefs.js:1203
+msgid ""
+"Choose your preferred behavior when clicking on an app icon. The \"Prefer "
+"Current Workspace\" option opens a new app window if not present in the "
+"current workspace. The \"Open New Window\" option also switches behavior of "
+"the middle click to \"Activate\" since its default behavior is to open a new "
+"window"
+msgstr ""
+
+#: prefs.js:1207
+msgid "Activate App Immediately"
+msgstr ""
+
+#: prefs.js:1208
+msgid "First Switch to Workspace"
+msgstr ""
+
+#: prefs.js:1209
+msgid "Open New Window (if supported)"
+msgstr ""
+
+#: prefs.js:1210
+msgid "Prefer Current Workspace"
+msgstr ""
+
+#: prefs.js:1218
+msgid "App Icon - Scroll Action"
+msgstr ""
+
+#: prefs.js:1219
+msgid ""
+"Choose the behavior when scrolling over an app icon. The window cycler works "
+"with a list of windows sorted by the \"Most Recently Used\" and grouped by "
+"workspaces. Scrolling up cycles through previously used windows on the same "
+"workspace and then switches to another workspace, if any"
+msgstr ""
+
+#: prefs.js:1224
+msgid "Cycle App Windows - Highlight Selected"
+msgstr ""
+
+#: prefs.js:1225
+msgid "Cycle App Windows - Highlight App"
+msgstr ""
+
+#: prefs.js:1239
+msgid "Close Workspace Button"
+msgstr ""
+
+#: prefs.js:1240
+msgid ""
+"The Close Workspace button appears on the workspace thumbnail when you hover "
+"over it and allows you to close all windows on the workspace. You can choose "
+"a \"safety lock\" to prevent accidental use"
+msgstr ""
+
+#: prefs.js:1245
+msgid "Single Click"
+msgstr ""
+
+#: prefs.js:1246
+msgid "Double Click"
+msgstr ""
+
+#: prefs.js:1247
+msgid "Ctrl Key + Click"
+msgstr ""
+
+#: prefs.js:1260
+msgid "Secondary Button Click Action"
+msgstr ""
+
+#: prefs.js:1261
+msgid "Allows you to add a secondary mouse click action to the window preview"
+msgstr ""
+
+#: prefs.js:1265 prefs.js:1281 prefs.js:1297
+msgid "Activate Window (Default)"
+msgstr ""
+
+#: prefs.js:1266 prefs.js:1282
+msgid "Close Window"
+msgstr ""
+
+#: prefs.js:1267 prefs.js:1283 prefs.js:1298
+msgid "Search For Same App Windows"
+msgstr ""
+
+#: prefs.js:1268 prefs.js:1284 prefs.js:1299
+msgid "Create Window Thumbnail/PiP (requires WTMB extension)"
+msgstr ""
+
+#: prefs.js:1276
+msgid "Middle Button Click Action"
+msgstr ""
+
+#: prefs.js:1277
+msgid "Allows you to add a middle mouse click action to the window preview"
+msgstr ""
+
+#: prefs.js:1292
+msgid "App Icon Click Action"
+msgstr ""
+
+#: prefs.js:1293
+msgid ""
+"Select the action to take when the application icon on the window preview is "
+"clicked"
+msgstr ""
+
+#: prefs.js:1307
+msgid "Always Activate Selected"
+msgstr ""
+
+#: prefs.js:1308
+msgid ""
+"If enabled, the currently selected window will be activated when leaving the "
+"Overview even without clicking. Usage example - press Super to open the "
+"Overview, place mouse pointer over a window, press Super again to activate "
+"the window"
+msgstr ""
+
+#: prefs.js:1324
+msgid "Enable Fuzzy Match"
+msgstr ""
+
+#: prefs.js:1325
+msgid ""
+"Enabling the fuzzy match allows you to skip letters in the pattern you are "
+"searching for and find \"Firefox\" even if you type \"ffx\". Works only for "
+"the App, Windows, Extensions and Recent files search providers"
+msgstr ""
+
+#: prefs.js:1333
+msgid "Animations"
+msgstr ""
+
+#: prefs.js:1348
+msgid "Animation Speed"
+msgstr ""
+
+#: prefs.js:1349
+msgid ""
+"Adjusts the global animation speed in percentage of the default duration - "
+"higher value means slower animation"
+msgstr ""
+
+#: prefs.js:1357
+msgid "App Grid Animation"
+msgstr ""
+
+#: prefs.js:1358
+msgid ""
+"When entering the App Grid view, the app grid animates from the edge of the "
+"screen. You can choose the direction, keep the Default (direction will be "
+"selected automatically) or disable the animation if you don't like it"
+msgstr ""
+
+#: prefs.js:1364 prefs.js:1381
+msgid "Right to Left"
+msgstr ""
+
+#: prefs.js:1365 prefs.js:1382
+msgid "Left to Right"
+msgstr ""
+
+#: prefs.js:1366 prefs.js:1383
+msgid "Bottom to Top"
+msgstr ""
+
+#: prefs.js:1367 prefs.js:1384
+msgid "Top to Bottom"
+msgstr ""
+
+#: prefs.js:1374
+msgid "Search View Animation"
+msgstr ""
+
+#: prefs.js:1375
+msgid ""
+"When search is activated the search view with search results can animate "
+"from the edge of the screen. You can choose the direction, keep the Default "
+"(currently Bottom to Top) or disable the animation if you don't like it."
+msgstr ""
+
+#: prefs.js:1392
+msgid "Workspace Preview Animation"
+msgstr ""
+
+#: prefs.js:1393
+msgid ""
+"When entering / leaving the App Grid / Search view, the workspace preview "
+"can animate to/from workspace thumbnail."
+msgstr ""
+
+#: prefs.js:1398
+msgid "Enable"
+msgstr ""
+
+#: prefs.js:1406
+msgid "Workspace Switcher"
+msgstr ""
+
+#: prefs.js:1412
+msgid "Wraparound"
+msgstr ""
+
+#: prefs.js:1413
+msgid "Continue from the last workspace to the first and vice versa"
+msgstr ""
+
+#: prefs.js:1421
+msgid "Ignore Last (empty) Workspace"
+msgstr ""
+
+#: prefs.js:1422
+msgid ""
+"In Dynamic workspaces mode, there is always one empty workspace at the end. "
+"Switcher can ignore this last workspace"
+msgstr ""
+
+#: prefs.js:1430
+msgid "Workspace Switcher Animation"
+msgstr ""
+
+#: prefs.js:1431
+msgid ""
+"Allows you to disable movement of the desktop background during workspace "
+"switcher animation outside of the overview. The Static Background mode also "
+"keeps Conky and desktop icons on their place during switching."
+msgstr ""
+
+#: prefs.js:1436
+msgid "Static Background"
+msgstr ""
+
+#: prefs.js:1444
+msgid "Workspace Switcher Mode (Isolate Monitors)"
+msgstr ""
+
+#: prefs.js:1445
+msgid ""
+"Note that this is a workaround, not full-fledged feature. GNOME Shell does "
+"not support separate workspaces for each monitor, so V-Shell switches "
+"workspaces only on the primary monitor and moves windows across workspaces "
+"on secondary monitors in order to simulate independent behavior. The current "
+"monitor is determined by the position of the mouse pointer"
+msgstr ""
+
+#: prefs.js:1450
+msgid "Current Monitor"
+msgstr ""
+
+#: prefs.js:1458
+msgid "Workspace Switcher Popup Mode"
+msgstr ""
+
+#: prefs.js:1459
+msgid ""
+"This popup shows up when you switch workspace using a keyboard shortcut or "
+"gesture outside of the overview. You can to disable the popup at all, or "
+"show it on the current monitor (the one with mouse pointer) instead of the "
+"primary."
+msgstr ""
+
+#: prefs.js:1464
+msgid "Show on Primary Monitor (Default)"
+msgstr ""
+
+#: prefs.js:1465
+msgid "Show on Current Monitor"
+msgstr ""
+
+#: prefs.js:1473
+msgid "Notifications"
+msgstr ""
+
+#: prefs.js:1479
+msgid "Window Attention Handler"
+msgstr ""
+
+#: prefs.js:1480
+msgid ""
+"When a window requires attention (often a new window), GNOME Shell shows you "
+"a notification about it. You can disable popups of these messages "
+"(notification will be pushed into the message tray silently) or focus the "
+"source window immediately instead"
+msgstr ""
+
+#: prefs.js:1484 prefs.js:1499
+msgid "Show Notifications (Default)"
+msgstr ""
+
+#: prefs.js:1485
+msgid "Disable Notification Popups"
+msgstr ""
+
+#: prefs.js:1486
+msgid "Immediately Focus Window"
+msgstr ""
+
+#: prefs.js:1494
+msgid "Favorites"
+msgstr ""
+
+#: prefs.js:1495
+msgid "Disable pin/unpin app notifications"
+msgstr ""
+
+#: prefs.js:1500
+msgid "Disable Notifications"
+msgstr ""
+
+#: prefs.js:1518
+msgid "Main App Grid"
+msgstr ""
+
+#: prefs.js:1524
+msgid "Apps Sorting"
+msgstr ""
+
+#: prefs.js:1525
+msgid ""
+"Choose sorting method for the app grid. Note that sorting by usage ignores "
+"folders"
+msgstr ""
+
+#: prefs.js:1529 prefs.js:1698
+msgid "Custom (Default)"
+msgstr ""
+
+#: prefs.js:1530
+msgid "Alphabet - Folders First"
+msgstr ""
+
+#: prefs.js:1531
+msgid "Alphabet - Folders Last"
+msgstr ""
+
+#: prefs.js:1532
+msgid "Usage - No Folders"
+msgstr ""
+
+#: prefs.js:1540
+msgid "Icon Size"
+msgstr ""
+
+#: prefs.js:1541
+msgid ""
+"Allows to set a fixed app grid icon size and bypass the default adaptive "
+"algorithm"
+msgstr ""
+
+#: prefs.js:1546
+msgid "256"
+msgstr ""
+
+#: prefs.js:1547
+msgid "224"
+msgstr ""
+
+#: prefs.js:1548
+msgid "208"
+msgstr ""
+
+#: prefs.js:1549
+msgid "192"
+msgstr ""
+
+#: prefs.js:1550
+msgid "176"
+msgstr ""
+
+#: prefs.js:1551
+msgid "160"
+msgstr ""
+
+#: prefs.js:1552
+msgid "144"
+msgstr ""
+
+#: prefs.js:1574
+msgid "Columns per Page (0 for adaptive grid)"
+msgstr ""
+
+#: prefs.js:1575
+msgid ""
+"Number of columns in the application grid. If set to 0, the number will be "
+"set automatically to fit the available width"
+msgstr ""
+
+#: prefs.js:1591
+msgid "Rows per Page (0 for adaptive grid)"
+msgstr ""
+
+#: prefs.js:1592
+msgid ""
+"Number of rows in the application grid. If set to 0, the number will be set "
+"automatically to fit the available height"
+msgstr ""
+
+#: prefs.js:1620
+msgid "App Grid Page Width Scale"
+msgstr ""
+
+#: prefs.js:1621
+msgid "Adjusts maximum app grid page width relative to the available space"
+msgstr ""
+
+#: prefs.js:1643
+msgid "App Grid Page Height Scale"
+msgstr ""
+
+#: prefs.js:1644
+msgid "Adjusts maximum app grid page height relative to the available space"
+msgstr ""
+
+#: prefs.js:1663
+msgid "Grid Spacing"
+msgstr ""
+
+#: prefs.js:1664
+msgid ""
+"V-Shell uses this value to calculate grid dimensions for adaptive options. "
+"However, the main grid automatically adjusts the spacing based on the grid "
+"and available space"
+msgstr ""
+
+#: prefs.js:1674
+msgid "Allow Incomplete Pages"
+msgstr ""
+
+#: prefs.js:1675
+msgid ""
+"If disabled, icons from the next page (if any) are automatically moved to "
+"fill any empty slot left after an icon was (re)moved (to a folder for "
+"example)"
+msgstr ""
+
+#: prefs.js:1687
+msgid "App Folders"
+msgstr ""
+
+#: prefs.js:1693
+msgid "Folder Apps Sorting"
+msgstr ""
+
+#: prefs.js:1694
+msgid "Choose sorting method for app folders"
+msgstr ""
+
+#: prefs.js:1699
+msgid "Alphabet"
+msgstr ""
+
+#: prefs.js:1700
+msgid "Usage"
+msgstr ""
+
+#: prefs.js:1708
+msgid "Active Icons in Folder Preview"
+msgstr ""
+
+#: prefs.js:1709
+msgid ""
+"If enabled, icons in the folder preview behaves like normal icons, you can "
+"activate or even drag them directly, without having to open the folder "
+"first. This option also affects the app grid default icon size"
+msgstr ""
+
+#: prefs.js:1720
+msgid "App Folder Preview Grid Size"
+msgstr ""
+
+#: prefs.js:1721
+msgid ""
+"Sets a grid size (number of icons) in the folder icon preview. 3x3 options "
+"automatically switches between 2x2 and 3x3 grid depending on the number of "
+"icons in the folder"
+msgstr ""
+
+#: prefs.js:1725
+msgid "2x2 (Default)"
+msgstr ""
+
+#: prefs.js:1726
+msgid "3x3 for 5+ apps"
+msgstr ""
+
+#: prefs.js:1727
+msgid "3x3 for 9+ apps"
+msgstr ""
+
+#: prefs.js:1735
+msgid "Folder Icon Size"
+msgstr ""
+
+#: prefs.js:1736
+msgid ""
+"Allows to set a fixed icon size and bypass the default adaptive algorithm in "
+"the open folder dialog"
+msgstr ""
+
+#: prefs.js:1754
+msgid "Maximum Number Of Columns (0 for automatic)"
+msgstr ""
+
+#: prefs.js:1755
+msgid ""
+"Specifies the maximum number of columns per page in folder grids. If you "
+"leave the value at 0, the maximum number of columns will be calculated based "
+"on available space. The actual folder grid dimensions will be determined by "
+"the number of items within the set limits"
+msgstr ""
+
+#: prefs.js:1771
+msgid "Maximum Number Of Rows (0 for automatic)"
+msgstr ""
+
+#: prefs.js:1772
+msgid ""
+"Specifies the maximum number of rows per page in folder grids. If you leave "
+"the value at 0, the maximum number of rows will be calculated based on "
+"available space. The actual folder grid dimensions will be determined by the "
+"number of items within the set limits"
+msgstr ""
+
+#: prefs.js:1790
+msgid "Folder Grid Spacing"
+msgstr ""
+
+#: prefs.js:1791
+msgid "Adjusts the spacing between icons in a folder grid"
+msgstr ""
+
+#: prefs.js:1801
+msgid "Center Open Folders"
+msgstr ""
+
+#: prefs.js:1802
+msgid ""
+"App folders may open in the center of the screen or be centered on the "
+"folder's source icon"
+msgstr ""
+
+#: prefs.js:1814
+msgid "Content"
+msgstr ""
+
+#: prefs.js:1820
+msgid "App Grid Content"
+msgstr ""
+
+#: prefs.js:1821
+msgid ""
+"The default Shell removes favorite apps, this option allows to duplicate "
+"them in the grid or remove also running applications. Option \"Favorites and "
+"Running First\" only works with the Alphabet and Usage sorting"
+msgstr ""
+
+#: prefs.js:1825
+msgid "Include All"
+msgstr ""
+
+#: prefs.js:1826
+msgid "Include All - Favorites and Running First"
+msgstr ""
+
+#: prefs.js:1827
+msgid "Exclude Favorites (Default)"
+msgstr ""
+
+#: prefs.js:1828
+msgid "Exclude Running"
+msgstr ""
+
+#: prefs.js:1829
+msgid "Exclude Favorites and Running"
+msgstr ""
+
+#: prefs.js:1837
+msgid "App Labels Behavior"
+msgstr ""
+
+#: prefs.js:1838
+msgid "Choose how and when to display app names"
+msgstr ""
+
+#: prefs.js:1842
+msgid "Ellipsized - Expand Selected (Default)"
+msgstr ""
+
+#: prefs.js:1843
+msgid "Always Expanded"
+msgstr ""
+
+#: prefs.js:1844
+msgid "Hidden - Show Selected Only"
+msgstr ""
+
+#: prefs.js:1852
+msgid "Show Page Navigation Buttons"
+msgstr ""
+
+#: prefs.js:1853
+msgid ""
+"You can hide the page navigation buttons if you don't need them or want to "
+"get more space for icons. The buttons are hidden automatically when there is "
+"only one page in the app grid"
+msgstr ""
+
+#: prefs.js:1866
+msgid "Performance"
+msgstr ""
+
+#: prefs.js:1872
+msgid "Smooth App Grid Animations"
+msgstr ""
+
+#: prefs.js:1873
+msgid ""
+"This option allows V-Shell to pre-realize app grid and app folders during "
+"session startup in order to avoid stuttering animations when using them for "
+"the first time. If enabled, the session startup needs a little bit more time "
+"to finish and necessary memory will be allocated at this time"
+msgstr ""
+
+#: prefs.js:1883
+msgid "Reset"
+msgstr ""
+
+#: prefs.js:1888
+msgid "Reset App Grid Layout"
+msgstr ""
+
+#: prefs.js:1889
+msgid ""
+"Removes all stored app grid positions, after reset icons will be sorted "
+"alphabetically, except folder contents"
+msgstr ""
+
+#: prefs.js:1897
+msgid "Remove App Grid Folders"
+msgstr ""
+
+#: prefs.js:1898
+msgid "Removes all folders, folder apps will move to the root grid"
+msgstr ""
+
+#: prefs.js:1914
+msgid "Optional Modules"
+msgstr ""
+
+#: prefs.js:1920
+msgid ""
+"Windows Search Provider - Moved from V-Shell to the standalone \"WSP\" "
+"extension"
+msgstr ""
+
+#: prefs.js:1921
+msgid ""
+"NOTE: This module has been released as a standalone extension with new "
+"features, click to learn more. Related V-Shell options are still available "
+"if you install the WSP extension.\n"
+"\n"
+"WSP adds adds open windows to the search results. You can search app names "
+"and window titles. You can also use \"wq//\" or custom prefix (also by "
+"pressing the Space hotkey in the overview, or clicking dash icon) to "
+"suppress results from other search providers"
+msgstr ""
+
+#: prefs.js:1928
+msgid ""
+"Extensions Search Provider - Moved from V-Shell to the standalone \"ESP\" "
+"extension"
+msgstr ""
+
+#: prefs.js:1929
+msgid ""
+"NOTE: This module has been released as a standalone extension with new "
+"features, click to learn more. Related V-Shell options are still available "
+"if you install the ESP extension.\n"
+"\n"
+"ESP adds extensions to the search results. You can also use \"eq//\" or "
+"custom prefix (also by pressing the Ctrl + Shift + Space hotkey in the "
+"overview, or clicking dash icon) to suppress results from other search "
+"providers"
+msgstr ""
+
+#: prefs.js:1936
+msgid ""
+"Window Thumbnails (PiP) - Moved from V-Shell to the standalone \"WTMB\" "
+"extension"
+msgstr ""
+
+#: prefs.js:1937
+msgid ""
+"NOTE: This module has been released as a standalone extension with new "
+"features, click to learn more. Related V-Shell options are still available "
+"if you install the WTMB extension.\n"
+"\n"
+"WTMB allows the creation of Picture-in-Picture like window thumbnails that "
+"you can use for monitoring of windows on another workspace"
+msgstr ""
+
+#: prefs.js:1944
+msgid ""
+"Built-in Modules (allows to disable modules that conflict with another "
+"extension)"
+msgstr ""
+
+#: prefs.js:1950
+msgid "AppDisplay / IconGrid"
+msgstr ""
+
+#: prefs.js:1951
+msgid "App grid customization and options"
+msgstr ""
+
+#: prefs.js:1959
+msgid "AppFavorites"
+msgstr ""
+
+#: prefs.js:1960
+msgid "Pin/unpin app notification options"
+msgstr ""
+
+#: prefs.js:1969
+msgid "Dash customization and options, support for vertical orientation"
+msgstr ""
+
+#: prefs.js:1978
+msgid "Hot corner options"
+msgstr ""
+
+#: prefs.js:1986
+msgid "MessageTray"
+msgstr ""
+
+#: prefs.js:1987
+msgid "Notification position options"
+msgstr ""
+
+#: prefs.js:1995
+msgid "OsdWindow"
+msgstr ""
+
+#: prefs.js:1996
+msgid "OSD position options"
+msgstr ""
+
+#: prefs.js:2004
+msgid "OverlayKey"
+msgstr ""
+
+#: prefs.js:2005
+msgid "Overlay (Super/Window) key options"
+msgstr ""
+
+#: prefs.js:2014
+msgid "Panel options"
+msgstr ""
+
+#: prefs.js:2023
+msgid "Search view and app search provider customization and options"
+msgstr ""
+
+#: prefs.js:2031
+msgid "SearchController"
+msgstr ""
+
+#: prefs.js:2032
+msgid "Escape key behavior options in the overview"
+msgstr ""
+
+#: prefs.js:2040
+msgid "SwipeTracker"
+msgstr ""
+
+#: prefs.js:2041
+msgid "Gestures for vertical workspace orientation"
+msgstr ""
+
+#: prefs.js:2049
+msgid "WindowAttentionHandler"
+msgstr ""
+
+#: prefs.js:2050
+msgid "Window attention handler options"
+msgstr ""
+
+#: prefs.js:2058
+msgid "WindowManager"
+msgstr ""
+
+#: prefs.js:2059
+msgid ""
+"Fixes an upstream bug in the minimization animation of a full-screen window"
+msgstr ""
+
+#: prefs.js:2067
+msgid "WindowPreview"
+msgstr ""
+
+#: prefs.js:2068
+msgid ""
+"Window preview options, fixes an upstream bug that fills the system log with "
+"errors when you close a window from the overview or exit the overview with a "
+"gesture when any window is selected"
+msgstr ""
+
+#: prefs.js:2076
+msgid "Workspace"
+msgstr ""
+
+#: prefs.js:2077
+msgid ""
+"Fixes workspace preview allocations for vertical workspaces orientation and "
+"window scaling in static overview modes"
+msgstr ""
+
+#: prefs.js:2085
+msgid "WorkspaceAnimation"
+msgstr ""
+
+#: prefs.js:2086
+msgid "Static workspace animation option"
+msgstr ""
+
+#: prefs.js:2094
+msgid "WorkspaceSwitcherPopup"
+msgstr ""
+
+#: prefs.js:2095
+msgid "Workspace switcher popup orientation and position options"
+msgstr ""
+
+#: prefs.js:2111
+msgid "Keyboard"
+msgstr ""
+
+#: prefs.js:2117
+msgid "Override Page Up/Down Shortcuts"
+msgstr ""
+
+#: prefs.js:2118
+msgid ""
+"This option automatically overrides the (Shift +) Super + Page Up/Down "
+"keyboard shortcuts for the current workspace orientation. If you encounter "
+"any issues, check the configuration in the dconf editor"
+msgstr ""
+
+#: prefs.js:2126
+msgid "Workarounds / Hacks"
+msgstr ""
+
+#: prefs.js:2132
+msgid "Delay at Startup"
+msgstr ""
+
+#: prefs.js:2133
+msgid ""
+"If you encounter issues during GNOME Shell startup after logging in, which "
+"could be caused by V-Shell's incompatibility with another extension, try "
+"enabling this option. When enabled, V-Shell is activated after the startup "
+"is complete. It will activate automatically when Dash to Dock, Ubuntu Dock "
+"or Dash to Panel extensions are detected."
+msgstr ""
+
+#: prefs.js:2141
+msgid "Fix New Window Not In Focus"
+msgstr ""
+
+#: prefs.js:2142
+msgid ""
+"If you often find that the app window you open from the Activities overview "
+"does not get focus, try enabling this option."
+msgstr ""
+
+#: prefs.js:2150
+msgid "Fix New Window Not On Current Monitor (experimental)"
+msgstr ""
+
+#: prefs.js:2151
+msgid ""
+"If you use multiple monitors, you may encounter the issue of new windows "
+"opening on a different monitor than expected. This option moves those "
+"windows to the current monitor, determined by the position of the mouse "
+"pointer. However, this is a workaround, and some windows may override it, "
+"moving the window back to the previous monitor during initialization"
+msgstr ""
+
+#: prefs.js:2174
+msgid "Version"
+msgstr ""
+
+#: prefs.js:2180
+msgid "Reset all options"
+msgstr ""
+
+#: prefs.js:2181
+msgid "Reset all options to their default values"
+msgstr ""
+
+#: prefs.js:2187
+msgid "Links"
+msgstr ""
+
+#: prefs.js:2191
+msgid "Homepage"
+msgstr ""
+
+#: prefs.js:2192
+msgid "Source code and more info about this extension"
+msgstr ""
+
+#: prefs.js:2197
+msgid "Changelog"
+msgstr ""
+
+#: prefs.js:2198
+msgid "See what's changed."
+msgstr ""
+
+#: prefs.js:2203
+msgid "GNOME Extensions"
+msgstr ""
+
+#: prefs.js:2204
+msgid "Rate and comment V-Shell on the GNOME Extensions site"
+msgstr ""
+
+#: prefs.js:2209
+msgid "Report a bug or suggest new feature"
+msgstr ""
+
+#: prefs.js:2210
+msgid "Help me to help you!"
+msgstr ""
+
+#: prefs.js:2215
+msgid "Buy Me a Coffee"
+msgstr ""
+
+#: prefs.js:2216
+msgid "Enjoying V-Shell? Consider supporting it by buying me a coffee!"
+msgstr ""
+
+#: lib/util.js:408
+msgid "Updating V-Shell"
+msgstr ""
+
+#: lib/windowSearchProvider.js:118
+msgid "Open Windows"
+msgstr ""
+
+#: lib/windowSearchProvider.js:119
+msgid "Search open windows"
+msgstr ""
+
+#: lib/dash.js:983
+msgid "Force Quit"
+msgstr ""
+
+#: lib/dash.js:1000
+msgid "Move App to Current Workspace ( Shift + Click )"
+msgstr ""
+
+#: lib/dash.js:1003
+msgid "Create Window Thumbnail/PiP"
+msgstr ""
+
+#: lib/search.js:336
+msgid "Searching…"
+msgstr ""
+
+#: lib/search.js:338
+msgid "No results."
+msgstr ""
+
+#: lib/optionsFactory.js:295
+msgid "Reset profile to defaults"
+msgstr ""
+
+#: lib/optionsFactory.js:303
+msgid "GNOME 3 Layout (Vertical WS)"
+msgstr ""
+
+#: lib/optionsFactory.js:304
+msgid "GNOME 4x Layout, Bottom Hot Edge (Horizontal WS)"
+msgstr ""
+
+#: lib/optionsFactory.js:305
+msgid "Top Left Hot Corner Centric (Vertical WS)"
+msgstr ""
+
+#: lib/optionsFactory.js:306
+msgid "Dock-Like Overview, Bottom Hot Edge (Horizontal WS)"
+msgstr ""
+
+#: lib/optionsFactory.js:328
+msgid "Load profile"
+msgstr ""
+
+#: lib/optionsFactory.js:337
+msgid "Save current settings into this profile"
+msgstr ""
+
+#: lib/recentFilesSearchProvider.js:119
+msgid "Recent Files"
+msgstr ""
+
+#: lib/extensionsSearchProvider.js:127
+msgid "Extensions"
+msgstr ""
+
+#: lib/extensionsSearchProvider.js:128
+msgid "Search extensions"
+msgstr ""
diff --git a/extensions/47/vertical-workspaces/prefs.js b/extensions/47/vertical-workspaces/prefs.js
new file mode 100644
index 0000000..1713643
--- /dev/null
+++ b/extensions/47/vertical-workspaces/prefs.js
@@ -0,0 +1,2241 @@
+/**
+ * V-Shell (Vertical Workspaces)
+ * prefs.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2024
+ * @license GPL-3.0
+ */
+
+'use strict';
+
+import Gio from 'gi://Gio';
+import GLib from 'gi://GLib';
+import Gtk from 'gi://Gtk';
+
+import { ExtensionPreferences } from 'resource:///org/gnome/Shell/Extensions/js/extensions/prefs.js';
+
+import * as Settings from './lib/settings.js';
+import * as OptionsFactory from './lib/optionsFactory.js';
+
+// gettext
+let _;
+
+export default class VShell extends ExtensionPreferences {
+ _getPageList() {
+ const itemFactory = new OptionsFactory.ItemFactory();
+ const pageList = [
+ {
+ title: _('Profiles'),
+ iconName: 'open-menu-symbolic',
+ optionList: this._getProfilesOptionList(itemFactory),
+ },
+ {
+ title: _('Layout'),
+ iconName: 'view-grid-symbolic',
+ optionList: this._getLayoutOptionList(itemFactory),
+ },
+ {
+ title: _('Appearance'),
+ iconName: 'view-reveal-symbolic',
+ optionList: this._getAppearanceOptionList(itemFactory),
+ },
+ {
+ title: _('Behavior'),
+ iconName: 'system-run-symbolic',
+ optionList: this._getBehaviorOptionList(itemFactory),
+ },
+ {
+ title: _('App Grid'),
+ iconName: 'view-app-grid-symbolic',
+ optionList: this._getAppGridOptionList(itemFactory),
+ },
+ {
+ title: _('Modules'),
+ iconName: 'application-x-addon-symbolic',
+ optionList: this._getModulesOptionList(itemFactory),
+ },
+ {
+ title: _('Misc'),
+ iconName: 'preferences-other-symbolic',
+ optionList: this._getMiscOptionList(itemFactory),
+ },
+ {
+ title: _('About'),
+ iconName: 'preferences-system-details-symbolic',
+ optionList: this._getAboutOptionList(itemFactory),
+ },
+ ];
+
+ return pageList;
+ }
+
+ fillPreferencesWindow(window) {
+ this.Me = {};
+ this.Me.Settings = Settings;
+
+ this.Me.gSettings = this.getSettings();
+ this.Me.gettext = this.gettext.bind(this);
+ _ = this.Me.gettext;
+ this.Me.metadata = this.metadata;
+
+ this.opt = new this.Me.Settings.Options(this.Me);
+ this.Me.opt = this.opt;
+
+ OptionsFactory.init(this.Me);
+
+ window = new OptionsFactory.AdwPrefs(this.opt).getFilledWindow(window, this._getPageList());
+ window.connect('close-request', () => {
+ this.opt.destroy();
+ this.opt = null;
+ this.Me = null;
+ _ = null;
+ });
+
+ window.set_default_size(840, 800);
+ }
+
+
+ // ////////////////////////////////////////////////////////////////////
+ _getProfilesOptionList(itemFactory) {
+ const optionList = [];
+ // options item format:
+ // (text, caption, widget, settings-variable, [options for combo], sensitivity-depends-on-bool-variable)
+
+ optionList.push(itemFactory.getRowWidget(
+ _('Custom Profiles'),
+ null
+ ));
+
+ optionList.push(itemFactory.getRowWidget(
+ _('Save your configurations'),
+ _("The predefined sets of settings, which can help you with the initial configuration and exploring V-Shell's possibilities, can be renamed and overridden by your own configurations"),
+ itemFactory.newLabel()
+ ));
+
+ optionList.push(itemFactory.getRowWidget(
+ _('Profile 1'),
+ null,
+ itemFactory.newPresetButton(this.opt, 1)
+ ));
+
+ optionList.push(itemFactory.getRowWidget(
+ _('Profile 2'),
+ null,
+ itemFactory.newPresetButton(this.opt, 2)
+ ));
+
+ optionList.push(itemFactory.getRowWidget(
+ _('Profile 3'),
+ null,
+ itemFactory.newPresetButton(this.opt, 3)
+ ));
+
+ optionList.push(itemFactory.getRowWidget(
+ _('Profile 4'),
+ null,
+ itemFactory.newPresetButton(this.opt, 4)
+ ));
+
+ return optionList;
+ }
+
+ _getLayoutOptionList(itemFactory) {
+ const optionList = [];
+ // options item format:
+ // (text, caption, widget, settings-variable, [options for combo], sensitivity-depends-on-bool-variable)
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Dash')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Dash Position'),
+ null,
+ itemFactory.newDropDown(),
+ 'dashPosition',
+ [
+ [_('Bottom'), 2],
+ [_('Left'), 3],
+ [_('Top'), 0],
+ [_('Right'), 1],
+ [_('Hide'), 4],
+ ],
+ 'dashModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Center Horizontal Dash to Workspace'),
+ _('If the Dash Position is set to Top or Bottom, the position will be recalculated relative to the workspace preview instead of the screen'),
+ itemFactory.newSwitch(),
+ 'centerDashToWs',
+ null,
+ 'dashModule'
+ )
+ );
+
+ const dashPositionAdjustment = new Gtk.Adjustment({
+ upper: 100,
+ lower: -100,
+ step_increment: 1,
+ page_increment: 10,
+ });
+
+ const dashPositionScale = itemFactory.newScale(dashPositionAdjustment);
+ dashPositionScale.add_mark(0, Gtk.PositionType.TOP, null);
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Fine Tune Dash Position'),
+ _('Adjusts the position of the dash on the axis given by the orientation of the workspaces'),
+ dashPositionScale,
+ 'dashPositionAdjust',
+ null,
+ 'dashModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Show Apps Icon Position'),
+ _('Sets the position of the "Show Applications" icon in the Dash'),
+ itemFactory.newDropDown(),
+ 'showAppsIconPosition',
+ [
+ [_('Hide'), 2],
+ [_('Start'), 0],
+ [_('End'), 1],
+ ],
+ 'dashModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Workspace Thumbnails / Orientation')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Thumbnails Position / Workspaces Orientation'),
+ _('Position of the workspace thumbnails on the screen also sets orientation of the workspaces to vertical or horizontal. You have two options to disable workspace thumbnails, one sets workspaces to vertical orientation, the second one to horizontal.'),
+ itemFactory.newDropDown(),
+ 'workspaceThumbnailsPosition',
+ // this mess is just because of backward compatibility
+ [
+ [_('Left \t Vertical Orientation'), 0],
+ [_('Right \t Vertical Orientation'), 1],
+ [_('Hide \t Vertical Orientation'), 4],
+ [_('Top \t Horizontal Orientation'), 5],
+ [_('Bottom \t Horizontal Orientation'), 6],
+ [_('Hide \t Horizontal Orientation'), 9],
+ ]
+ )
+ );
+
+ const wstPositionAdjustment = new Gtk.Adjustment({
+ upper: 100,
+ lower: -100,
+ step_increment: 1,
+ page_increment: 10,
+ });
+
+ const wstPositionScale = itemFactory.newScale(wstPositionAdjustment);
+ wstPositionScale.add_mark(0, Gtk.PositionType.TOP, null);
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Fine Tune Workspace Thumbnails Position'),
+ _('Adjusts the position of the thumbnails on the axis given by the orientation of the workspaces'),
+ wstPositionScale,
+ 'wsTmbPositionAdjust'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Reserve Full Screen Height/Width for Thumbnails'),
+ _('The whole screen height/width will be reserved for workspace thumbnails at the expense of space available for Dash (if the Dash is oriented in a different axis).'),
+ itemFactory.newSwitch(),
+ 'wsThumbnailsFull'
+ )
+ );
+
+ const wsThumbnailScaleAdjustment = new Gtk.Adjustment({
+ upper: 30,
+ lower: 0,
+ step_increment: 1,
+ page_increment: 1,
+ });
+
+ const wsThumbnailScale = itemFactory.newScale(wsThumbnailScaleAdjustment);
+ wsThumbnailScale.add_mark(13, Gtk.PositionType.TOP, null);
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Workspace Thumbnails Max Scale - Window Picker'),
+ _('Adjusts the maximum size of the workspace thumbnails in the overview (percentage relative to display width)'),
+ wsThumbnailScale,
+ 'wsThumbnailScale'
+ )
+ );
+
+ const wsThumbnailAppScaleAdjustment = new Gtk.Adjustment({
+ upper: 30,
+ lower: 0,
+ step_increment: 1,
+ page_increment: 1,
+ });
+
+ const wsThumbnailAppScale = itemFactory.newScale(wsThumbnailAppScaleAdjustment);
+ wsThumbnailAppScale.add_mark(13, Gtk.PositionType.TOP, null);
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Workspace Thumbnails Max Scale - App View'),
+ _('Allows you to set different thumbnails scale for the Applications view'),
+ wsThumbnailAppScale,
+ 'wsThumbnailScaleAppGrid'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Workspace Preview')
+ )
+ );
+
+ const wsScaleAdjustment = new Gtk.Adjustment({
+ upper: 100,
+ lower: 30,
+ step_increment: 1,
+ page_increment: 10,
+ });
+
+ const wsScaleScale = itemFactory.newScale(wsScaleAdjustment);
+ wsScaleScale.add_mark(100, Gtk.PositionType.TOP, null);
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Workspaces Scale'),
+ _('Allows to shrink workspace previews to adjust spacing or fit more of the adjacent workspaces on the screen. Default size is calculated to use all available space with minimal spacing'),
+ wsScaleScale,
+ 'wsPreviewScale'
+ )
+ );
+
+ const wsSpacingAdjustment = new Gtk.Adjustment({
+ upper: 500,
+ lower: 10,
+ step_increment: 1,
+ page_increment: 10,
+ });
+
+ const wsSpacingScale = itemFactory.newScale(wsSpacingAdjustment);
+ wsSpacingScale.add_mark(this.opt.WS_MAX_SPACING_OFF_SCREEN, Gtk.PositionType.TOP, null);
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Workspaces Spacing'),
+ _('Adjusts spacing in pixels between workspace previews, allowing you to control how much the adjacent workspaces overlap in the current workspace overview. Setting the value above 349 pixels disables the visibility of workspaces other than the current one during transitions to/from the app grid view, which can also save some graphical resources if many windows are open on other workspaces'),
+ wsSpacingScale,
+ 'wsMaxSpacing'
+ )
+ );
+
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('App Grid')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Center App Grid'),
+ _('Centers the app grid relative to the display instead of available space'),
+ itemFactory.newSwitch(),
+ 'centerAppGrid'
+ )
+ );
+
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Search View')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Center Search View'),
+ _('Centers the search view relative to the display instead of available space'),
+ itemFactory.newSwitch(),
+ 'centerSearch'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Always Show Search Entry'),
+ _('If disabled, the search entry field will be hidden when not in use, so the workspace preview and app grid may take up more space'),
+ itemFactory.newSwitch(),
+ 'showSearchEntry'
+ )
+ );
+
+ const searchViewScaleAdjustment = new Gtk.Adjustment({
+ upper: 150,
+ lower: 50,
+ step_increment: 1,
+ page_increment: 1,
+ });
+
+ const searchViewScale = itemFactory.newScale(searchViewScaleAdjustment);
+ searchViewScale.add_mark(100, Gtk.PositionType.TOP, null);
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Search Results Width'),
+ _('Adjusts the maximum width of search results view (percentage relative to default). This allows to fit more (or less) app icons into the app search result'),
+ searchViewScale,
+ 'searchViewScale',
+ null,
+ 'searchModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Panel')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Main Panel Position'),
+ _('Allows to place the main panel at the bottom of the primary display'),
+ itemFactory.newDropDown(),
+ 'panelPosition',
+ [
+ [_('Top (Default)'), 0],
+ [_('Bottom'), 1],
+ ],
+ 'panelModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Main Panel Visibility'),
+ _('Allows to hide main panel when not needed'),
+ itemFactory.newDropDown(),
+ 'panelVisibility',
+ [
+ [_('Always Visible (Default)'), 0],
+ [_('Overview Only'), 1],
+ [_('Always Hidden'), 2],
+ // [_('Desktop View Only'), 3],
+ ],
+ 'panelModule'
+ )
+ );
+
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Workspace Switcher Popup')
+ )
+ );
+
+ const hAdjustment = new Gtk.Adjustment({
+ lower: 0,
+ upper: 100,
+ step_increment: 1,
+ page_increment: 1,
+ });
+
+ const hScale = itemFactory.newScale(hAdjustment);
+ hScale.add_mark(50, Gtk.PositionType.TOP, null);
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Horizontal Position (percentage from the left)'),
+ _('This popup shows up when you switch workspace using a keyboard shortcut or gesture outside of the overview. You can disable it on the "Behavior" tab. If you want more control over the popup, try the "Workspace Switcher Manager" extension'),
+ hScale,
+ 'wsSwPopupHPosition',
+ null,
+ 'workspaceSwitcherPopupModule'
+ )
+ );
+
+ const vAdjustment = new Gtk.Adjustment({
+ lower: 0,
+ upper: 100,
+ step_increment: 1,
+ page_increment: 1,
+ });
+
+ const vScale = itemFactory.newScale(vAdjustment);
+ vScale.add_mark(50, Gtk.PositionType.TOP, null);
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Vertical Position (percentage from the top)'),
+ null,
+ vScale,
+ 'wsSwPopupVPosition',
+ null,
+ 'workspaceSwitcherPopupModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Notifications and OSD')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Notification Banner Position'),
+ _('Choose where the notification banners appear on the screen'),
+ itemFactory.newDropDown(),
+ 'notificationPosition',
+ [
+ [_('Top Left'), 0],
+ [_('Top Center (Default)'), 1],
+ [_('Top Right'), 2],
+ [_('Bottom Left'), 3],
+ [_('Bottom Center'), 4],
+ [_('Bottom Right'), 5],
+ ],
+ 'messageTrayModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('OSD Popup Position'),
+ _('Choose where the OSD pop-ups (like sound volume level) appear on the screen'),
+ itemFactory.newDropDown(),
+ 'osdPosition',
+ [
+ [_('Disable'), 0],
+ [_('Top Left'), 1],
+ [_('Top Center'), 2],
+ [_('Top Right'), 3],
+ [_('Center'), 4],
+ [_('Bottom Left'), 5],
+ [_('Bottom Center (Default)'), 6],
+ [_('Bottom Right'), 7],
+ ],
+ 'osdWindowModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Secondary Monitors')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Workspace Thumbnails Position'),
+ _('Allows to place workspace thumbnails of secondary monitors on the opposite side than on the primary monitor'),
+ itemFactory.newDropDown(),
+ 'secWsThumbnailsPosition',
+ [
+ [_('Same as Primary'), 2],
+ [_('Left / Top'), 0],
+ [_('Right / Bottom'), 1],
+ [_('Hide'), 3],
+ ]
+ )
+ );
+
+ const secWstPositionAdjustment = new Gtk.Adjustment({
+ upper: 100,
+ lower: -100,
+ step_increment: 1,
+ page_increment: 10,
+ });
+
+ const secWstPositionScale = itemFactory.newScale(secWstPositionAdjustment);
+ secWstPositionScale.add_mark(0, Gtk.PositionType.TOP, null);
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Fine Tune Workspace Thumbnails Position'),
+ _('Adjusts the position of the thumbnails on the axis given by the orientation of the workspaces'),
+ secWstPositionScale,
+ 'secWsTmbPositionAdjust'
+ )
+ );
+
+ const secWsThumbnailScaleAdjustment = new Gtk.Adjustment({
+ upper: 30,
+ lower: 0,
+ step_increment: 1,
+ page_increment: 1,
+ });
+
+ const secWsThumbnailScale = itemFactory.newScale(secWsThumbnailScaleAdjustment);
+ secWsThumbnailScale.add_mark(13, Gtk.PositionType.TOP, null);
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Workspace Thumbnails Max Scale'),
+ _('Adjusts maximum size of the workspace thumbnails (percentage relative to the display width / height) for secondary monitors'),
+ secWsThumbnailScale,
+ 'secWsThumbnailScale'
+ )
+ );
+
+ const wsSecScaleAdjustment = new Gtk.Adjustment({
+ upper: 100,
+ lower: 30,
+ step_increment: 1,
+ page_increment: 10,
+ });
+
+ const wsSecScaleScale = itemFactory.newScale(wsSecScaleAdjustment);
+ wsScaleScale.add_mark(95, Gtk.PositionType.TOP, null);
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Workspace Preview Scale'),
+ _('Allows to scale down workspace previews on secondary monitors'),
+ wsSecScaleScale,
+ 'secWsPreviewScale'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Shift Overview by Panel Height'),
+ _('This option can help align the overview of the secondary monitor with the primary one'),
+ itemFactory.newSwitch(),
+ 'secWsPreviewShift'
+ )
+ );
+
+
+
+ return optionList;
+ }
+
+ _getAppearanceOptionList(itemFactory) {
+ const optionList = [];
+ // options item format:
+ // (text, caption, widget, settings-variable, [options for combo], sensitivity-depends-on-bool-variable)
+
+ // ----------------------------------------------------------------
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Dash')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Dash Max Icon Size'),
+ _('Maximum size of Dash icons in pixels. Adaptive option switches between default 64 and 48 for low resolution displays'),
+ itemFactory.newDropDown(),
+ 'dashMaxIconSize',
+ [
+ [_('Adaptive (Default)'), 0],
+ [_('128'), 128],
+ [_('112'), 112],
+ [_('96'), 96],
+ [_('80'), 80],
+ [_('64'), 64],
+ [_('48'), 48],
+ [_('32'), 32],
+ ],
+ 'dashModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Dash Background Style'),
+ _('Allows you to change the background color of the dash to match the search results an app folders'),
+ itemFactory.newDropDown(),
+ 'dashBgColor',
+ [
+ [_('Default'), 0],
+ [_('Light'), 1],
+ ],
+ 'dashModule'
+ )
+ );
+
+ const dashBgAdjustment = new Gtk.Adjustment({
+ upper: 100,
+ lower: 0,
+ step_increment: 1,
+ page_increment: 10,
+ });
+
+ const dashBgOpacityScale = itemFactory.newScale(dashBgAdjustment);
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Dash Background Opacity'),
+ _('Adjusts the opacity of the Dash background'),
+ dashBgOpacityScale,
+ 'dashBgOpacity',
+ null,
+ 'dashModule'
+ )
+ );
+
+ const dashRadAdjustment = new Gtk.Adjustment({
+ upper: 50,
+ lower: 0,
+ step_increment: 1,
+ page_increment: 1,
+ });
+
+ const dashBgRadiusScale = itemFactory.newScale(dashRadAdjustment);
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Dash Background Radius'),
+ _('Adjusts the border radius of the Dash background in pixels. 0 means the default value given by the current theme style'),
+ dashBgRadiusScale,
+ 'dashBgRadius',
+ null,
+ 'dashModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Dash Background GNOME 3 Style'),
+ _('Background of the vertically oriented dash will imitate the GNOME 3 style'),
+ itemFactory.newSwitch(),
+ 'dashBgGS3Style',
+ null,
+ 'dashModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Running App Indicator'),
+ _('Allows you to change style of the running app indicator under the app icon'),
+ itemFactory.newDropDown(),
+ 'runningDotStyle',
+ [
+ [_('Dot (Default)'), 0],
+ [_('Line'), 1],
+ ],
+ 'dashModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Workspace Thumbnails')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Show Workspace Thumbnail Labels'),
+ _('Each workspace thumbnail can show label with its index and name (if defined in the system settings) or name/title of its most recently used app/window'),
+ itemFactory.newDropDown(),
+ 'showWsTmbLabels',
+ [
+ [_('Disable'), 0],
+ [_('Index'), 1],
+ [_('Index + WS Name'), 2],
+ [_('Index + App Name'), 3],
+ [_('Index + Window Title'), 4],
+ ]
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Show WS Thumbnail Label on Hover'),
+ _('Show the label only when the mouse pointer hovers over the thumbnail'),
+ itemFactory.newSwitch(),
+ 'showWsTmbLabelsOnHover'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Show Wallpaper in Workspace Thumbnails'),
+ _('All workspace thumbnails will include the current desktop background'),
+ itemFactory.newSwitch(),
+ 'showWsSwitcherBg'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Window Preview')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Window Preview App Icon Size'),
+ null,
+ itemFactory.newDropDown(),
+ 'winPreviewIconSize',
+ [
+ [_('64 (Default)'), 0],
+ [_('48'), 1],
+ [_('32'), 2],
+ [_('22'), 3],
+ [_('Disable'), 4],
+ ],
+ 'windowPreviewModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Window Title Position / Visibility'),
+ _('Sets the position of the window title that is displayed when the mouse hovers over the window or can always be visible'),
+ itemFactory.newDropDown(),
+ 'winTitlePosition',
+ [
+ [_('Inside Window'), 0],
+ [_('Inside Window Always Visible'), 1],
+ [_('Below Window (Default)'), 2],
+ ],
+ 'windowPreviewModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Show Close Window Button'),
+ _('Allows you to hide close window button'),
+ itemFactory.newSwitch(),
+ 'winPreviewShowCloseButton',
+ null,
+ 'windowPreviewModule'
+ )
+ );
+
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Workspace Preview')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Show Workspace Preview Background'),
+ _('Allows to hide the background of the workspace preview'),
+ itemFactory.newSwitch(),
+ 'showWsPreviewBg'
+ )
+ );
+
+ const wsPreviewBgRadiusAdjustment = new Gtk.Adjustment({
+ upper: 60,
+ lower: 5,
+ step_increment: 1,
+ page_increment: 5,
+ });
+
+ const wsPreviewBgRadiusSpinButton = itemFactory.newScale(wsPreviewBgRadiusAdjustment);
+ wsPreviewBgRadiusSpinButton.add_mark(30, Gtk.PositionType.TOP, null);
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Workspace Background Corner Radius'),
+ _('Adjusts the corner radius of the workspace preview in the overview'),
+ wsPreviewBgRadiusSpinButton,
+ 'wsPreviewBgRadius'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Search')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('App Search Icon Size'),
+ _('Size of results provided by the App Search Provider - smaller size allows to fit more results. Adaptive option switches between default 96 and 64 for low resolution displays'),
+ itemFactory.newDropDown(),
+ 'searchIconSize',
+ [
+ [_('Adaptive'), 0],
+ [_('128'), 128],
+ [_('112'), 112],
+ [_('96 (Default)'), 96],
+ [_('80'), 80],
+ [_('64'), 64],
+ [_('48'), 48],
+ [_('32'), 32],
+ ],
+ 'searchModule'
+ )
+ );
+
+ const maxSearchResultsAdjustment = new Gtk.Adjustment({
+ upper: 50,
+ lower: 5,
+ step_increment: 1,
+ page_increment: 5,
+ });
+
+ const maxSearchResultsSpinButton = itemFactory.newScale(maxSearchResultsAdjustment);
+ maxSearchResultsSpinButton.add_mark(10, Gtk.PositionType.TOP, null);
+ maxSearchResultsSpinButton.add_mark(20, Gtk.PositionType.TOP, null);
+ maxSearchResultsSpinButton.add_mark(30, Gtk.PositionType.TOP, null);
+ maxSearchResultsSpinButton.add_mark(40, Gtk.PositionType.TOP, null);
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Max Search Results Rows'),
+ _('Sets the maximum number of rows for result lists of all search providers except the window search provider which always lists all results'),
+ maxSearchResultsSpinButton,
+ 'searchMaxResultsRows',
+ null,
+ 'searchModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Highlighting'),
+ _('The GNOME default highlighting style (bold) causes strings to be "randomly" ellipsized, often preventing you from seeing the whole string, even if there is space for it. The selected style will be applied to all search results globally. If you are using other extensions that offer this option, make sure you set the same setting in all of them.'),
+ itemFactory.newDropDown(),
+ 'highlightingStyle',
+ [
+ [_('Bold (Default)'), 0],
+ [_('Underline'), 1],
+ [_('None'), 2],
+ ]
+ )
+ );
+
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Overview Background')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Show Wallpaper'),
+ _('Replaces the solid grey background in the overview with the current desktop wallpaper'),
+ itemFactory.newSwitch(),
+ 'showBgInOverview'
+ )
+ );
+
+ const brightnessBgAdjustment = new Gtk.Adjustment({
+ upper: 100,
+ lower: 0,
+ step_increment: 1,
+ page_increment: 10,
+ });
+
+ const bgBrightnessScale = itemFactory.newScale(brightnessBgAdjustment);
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Brightness'),
+ _('Brightness of the background wallpaper in the overview'),
+ bgBrightnessScale,
+ 'overviewBgBrightness'
+ )
+ );
+
+ const searchBrightnessBgAdjustment = new Gtk.Adjustment({
+ upper: 100,
+ lower: 0,
+ step_increment: 1,
+ page_increment: 10,
+ });
+
+ const searchBgBrightnessScale = itemFactory.newScale(searchBrightnessBgAdjustment);
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Brightness for Search View'),
+ _('Allows you to set a lower background brightness for search view mode where text visibility is more important'),
+ searchBgBrightnessScale,
+ 'searchBgBrightness'
+ )
+ );
+
+ const blurBgAdjustment = new Gtk.Adjustment({
+ upper: 100,
+ lower: 0,
+ step_increment: 1,
+ page_increment: 10,
+ });
+
+ const bgBlurScale = itemFactory.newScale(blurBgAdjustment);
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Blur Window Picker Background'),
+ _('Sets the amount of background blur in the window picker view'),
+ bgBlurScale,
+ 'overviewBgBlurSigma'
+ )
+ );
+
+ const blurAppBgAdjustment = new Gtk.Adjustment({
+ upper: 100,
+ lower: 0,
+ step_increment: 1,
+ page_increment: 10,
+ });
+
+ const bgAppBlurScale = itemFactory.newScale(blurAppBgAdjustment);
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Blur App Grid/Search View Background'),
+ _('Sets the amount of background blur in the app grid and search results views'),
+ bgAppBlurScale,
+ 'appGridBgBlurSigma'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Smooth Blur Transitions'),
+ _('Allows for smoother blur transitions, but can affect the overall smoothness of overview animations on weak hardware'),
+ itemFactory.newSwitch(),
+ 'smoothBlurTransitions'
+ )
+ );
+
+ return optionList;
+ }
+ // ----------------------------------------------------------------
+
+ _getBehaviorOptionList(itemFactory) {
+ const optionList = [];
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Overview')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Overview Mode'),
+ _('The Expose Windows on Hover mode does not expose the workspace preview windows until the mouse pointer enters any window\nThe Static Workspace mode keeps the workspace static when you activate the overview, it only shows Dash, workspace thumbnails and search entry over the workspace and only clicking on an active workspace thumbnail activates the default overview'),
+ itemFactory.newDropDown(),
+ 'overviewMode',
+ [
+ [_('Default'), 0],
+ [_('Expose Windows on Hover'), 1],
+ [_('Static Workspace'), 2],
+ ]
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Startup State'),
+ _('Allows to change the state in which GNOME Shell starts a session'),
+ itemFactory.newDropDown(),
+ 'startupState',
+ [
+ [_('Overview (Default)'), 0],
+ [_('Desktop'), 1],
+ [_('Applications'), 2],
+ ]
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Escape Key Behavior'),
+ _('Allows you to close the overview with a single press of the Escape key, even from the application grid or from search, if the search entry field does not have focus'),
+ itemFactory.newDropDown(),
+ 'overviewEscBehavior',
+ [
+ [_('Default'), 0],
+ [_('Close Overview'), 1],
+ ],
+ 'searchControllerModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Click Empty Space To Close'),
+ _('Enables clicking on an empty space in the overview to close it'),
+ itemFactory.newSwitch(),
+ 'clickEmptyClose',
+ null
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Overlay Key (Super/Windows)')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Single-Press Action'),
+ _('Disable or change behavior when you press and release the Super key. The "Search Windows" options requires the "WSP (Window Search Provider)" extension installed and enabled. Link is available on the Modules tab in Settings. If you want another extension (like AATWS) to handle the overlay key, set this option to "Overview - Window Picker (Default)" and the "Double-Press Action" option to "Applications (Default)"'),
+ itemFactory.newDropDown(),
+ 'overlayKeyPrimary',
+ [
+ [_('Disable'), 0],
+ [_('Follow Global Overview Mode'), 1],
+ [_('Overview - Window Picker (Default)'), 2],
+ [_('Applications'), 3],
+ [_('Overview - Static WS Preview'), 4],
+ [_('Overview - Static Workspace'), 5],
+ [_('Search Windows (requires WSP extension)'), 6],
+ // [_('Search Recent Files'), 7],
+ ],
+ 'overlayKeyModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Double-Press Action'),
+ _('Disable or change behavior when you double-press the Super key. The "Search Windows" option requires the "WSP (Window Search Provider)" extension installed and enabled. The "Static WS Overview - Expose Windows" option allows you to switch to default Activities Overview window picker view if you set static workspace (preview) for the single press/release Super key action'),
+ itemFactory.newDropDown(),
+ 'overlayKeySecondary',
+ [
+ [_('Disable'), 0],
+ [_('Applications (Default)'), 1],
+ [_('Search Windows (requires WSP extension)'), 2],
+ [_('Overview - Window Picker'), 3],
+ // [_('Search Recent Files'), 4],
+ ],
+ 'overlayKeyModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Hot Corner (Install Custom Hot Corners - Extended for more options)')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Hot Corner Action'),
+ _('Disable or change behavior of the hot corner. Holding down the Ctrl key while hitting the hot corner switches between Overview/Applications actions. The "Search Windows" option requires the "WSP (Window Search Provider)" extension installed and enabled'),
+ itemFactory.newDropDown(),
+ 'hotCornerAction',
+ [
+ [_('Disable'), 0],
+ [_('Follow Global Overview Mode'), 1],
+ [_('Overview - Window Picker (Default)'), 2],
+ [_('Applications'), 3],
+ [_('Overview - Static WS Preview'), 4],
+ [_('Overview - Static Workspace'), 5],
+ [_('Search Windows (requires WSP extension)'), 6],
+ ],
+ 'layoutModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Hot Corner Position'),
+ _('Choose which corner of your monitors will be active. If you choose "Follow Dash" option, the corner will be placed near the left or top edge of the Dash. The last option extends the hot corner trigger to cover the entire ege of the monitor where Dash is located'),
+ itemFactory.newDropDown(),
+ 'hotCornerPosition',
+ [
+ [_('Default'), 0],
+ [_('Top Left'), 1],
+ [_('Top Right'), 2],
+ [_('Bottom Left'), 3],
+ [_('Bottom Right'), 4],
+ [_('Follow Dash'), 5],
+ [_('Follow Dash - Hot Edge'), 6],
+ ],
+ 'layoutModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Enable Hot Corner in Full-Screen Mode'),
+ _('If you often work with full-screen applications and want the hot corner to be usable'),
+ itemFactory.newSwitch(),
+ 'hotCornerFullscreen',
+ null,
+ 'layoutModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Show Ripples Animation'),
+ _('The ripple animation is played when the hot corner is activated. The ripple size has been reduced to be less distracting'),
+ itemFactory.newSwitch(),
+ 'hotCornerRipples',
+ null,
+ 'layoutModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Dash')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Isolate Workspaces'),
+ _('Dash will only show apps and windows from the current workspace'),
+ itemFactory.newSwitch(),
+ 'dashIsolateWorkspaces',
+ null,
+ 'dashModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('App Icon - Click Behavior'),
+ _('Choose your preferred behavior when clicking on an app icon. The "Prefer Current Workspace" option opens a new app window if not present in the current workspace. The "Open New Window" option also switches behavior of the middle click to "Activate" since its default behavior is to open a new window'),
+ itemFactory.newDropDown(),
+ 'dashShowWindowsBeforeActivation',
+ [
+ [_('Activate App Immediately'), 0],
+ [_('First Switch to Workspace'), 1],
+ [_('Open New Window (if supported)'), 2],
+ [_('Prefer Current Workspace'), 3],
+ ],
+ 'dashModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('App Icon - Scroll Action'),
+ _('Choose the behavior when scrolling over an app icon. The window cycler works with a list of windows sorted by the "Most Recently Used" and grouped by workspaces. Scrolling up cycles through previously used windows on the same workspace and then switches to another workspace, if any'),
+ itemFactory.newDropDown(),
+ 'dashIconScroll',
+ [
+ [_('Default'), 0],
+ [_('Cycle App Windows - Highlight Selected'), 1],
+ [_('Cycle App Windows - Highlight App'), 2],
+ ],
+ 'dashModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Workspace Thumbnails')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Close Workspace Button'),
+ _('The Close Workspace button appears on the workspace thumbnail when you hover over it and allows you to close all windows on the workspace. You can choose a "safety lock" to prevent accidental use'),
+ itemFactory.newDropDown(),
+ 'closeWsButtonMode',
+ [
+ [_('Disable'), 0],
+ [_('Single Click'), 1],
+ [_('Double Click'), 2],
+ [_('Ctrl Key + Click'), 3],
+ ]
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Window Preview')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Secondary Button Click Action'),
+ _('Allows you to add a secondary mouse click action to the window preview'),
+ itemFactory.newDropDown(),
+ 'winPreviewSecBtnAction',
+ [
+ [_('Activate Window (Default)'), 0],
+ [_('Close Window'), 1],
+ [_('Search For Same App Windows'), 2],
+ [_('Create Window Thumbnail/PiP (requires WTMB extension)'), 3],
+ ],
+ 'windowPreviewModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Middle Button Click Action'),
+ _('Allows you to add a middle mouse click action to the window preview'),
+ itemFactory.newDropDown(),
+ 'winPreviewMidBtnAction',
+ [
+ [_('Activate Window (Default)'), 0],
+ [_('Close Window'), 1],
+ [_('Search For Same App Windows'), 2],
+ [_('Create Window Thumbnail/PiP (requires WTMB extension)'), 3],
+ ],
+ 'windowPreviewModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('App Icon Click Action'),
+ _('Select the action to take when the application icon on the window preview is clicked'),
+ itemFactory.newDropDown(),
+ 'windowIconClickAction',
+ [
+ [_('Activate Window (Default)'), 0],
+ [_('Search For Same App Windows'), 1],
+ [_('Create Window Thumbnail/PiP (requires WTMB extension)'), 2],
+ ],
+ 'windowPreviewModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Always Activate Selected'),
+ _('If enabled, the currently selected window will be activated when leaving the Overview even without clicking. Usage example - press Super to open the Overview, place mouse pointer over a window, press Super again to activate the window'),
+ itemFactory.newSwitch(),
+ 'alwaysActivateSelectedWindow',
+ null,
+ 'windowPreviewModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Search')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('App Grid Search Mode'),
+ _('Select how the search should behave when initiated from the app grid view. The "Filtered App Grid View" option shows all resulting app icons sorted by usage in the app grid view instead of switching to the default search view'),
+ itemFactory.newDropDown(),
+ 'searchAppGridMode',
+ [
+ [_('Search View (Default)'), 0],
+ [_('Filtered App Grid View'), 1],
+ ],
+ 'searchModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Enable Fuzzy Match'),
+ _('Enabling the fuzzy match allows you to skip letters in the pattern you are searching for and find "Firefox" even if you type "ffx". Works only for the App, Windows, Extensions and Recent files search providers'),
+ itemFactory.newSwitch(),
+ 'searchFuzzy'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Animations')
+ )
+ );
+
+ const animationSpeedAdjustment = new Gtk.Adjustment({
+ upper: 500,
+ lower: 1,
+ step_increment: 10,
+ page_increment: 100,
+ });
+
+ const animationSpeedScale = itemFactory.newScale(animationSpeedAdjustment);
+ animationSpeedScale.add_mark(100, Gtk.PositionType.TOP, null);
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Animation Speed'),
+ _('Adjusts the global animation speed in percentage of the default duration - higher value means slower animation'),
+ animationSpeedScale,
+ 'animationSpeedFactor'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('App Grid Animation'),
+ _('When entering the App Grid view, the app grid animates from the edge of the screen. You can choose the direction, keep the Default (direction will be selected automatically) or disable the animation if you don\'t like it'),
+ itemFactory.newDropDown(),
+ 'appGridAnimation',
+ [
+ [_('Default'), 4],
+ [_('Disable'), 0],
+ [_('Right to Left'), 1],
+ [_('Left to Right'), 2],
+ [_('Bottom to Top'), 3],
+ [_('Top to Bottom'), 5],
+ ]
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Search View Animation'),
+ _('When search is activated the search view with search results can animate from the edge of the screen. You can choose the direction, keep the Default (currently Bottom to Top) or disable the animation if you don\'t like it.'),
+ itemFactory.newDropDown(),
+ 'searchViewAnimation',
+ [
+ [_('Default'), 4],
+ [_('Disable'), 0],
+ [_('Right to Left'), 1],
+ [_('Left to Right'), 2],
+ [_('Bottom to Top'), 3],
+ [_('Top to Bottom'), 5],
+ ]
+ )
+ );
+
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Workspace Preview Animation'),
+ _('When entering / leaving the App Grid / Search view, the workspace preview can animate to/from workspace thumbnail.'),
+ itemFactory.newDropDown(),
+ 'workspaceAnimation',
+ [
+ [_('Disable'), 0],
+ [_('Enable'), 1],
+ ]
+ )
+ );
+
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Workspace Switcher')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Wraparound'),
+ _('Continue from the last workspace to the first and vice versa'),
+ itemFactory.newSwitch(),
+ 'wsSwitcherWraparound'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Ignore Last (empty) Workspace'),
+ _('In Dynamic workspaces mode, there is always one empty workspace at the end. Switcher can ignore this last workspace'),
+ itemFactory.newSwitch(),
+ 'wsSwitcherIgnoreLast'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Workspace Switcher Animation'),
+ _('Allows you to disable movement of the desktop background during workspace switcher animation outside of the overview. The Static Background mode also keeps Conky and desktop icons on their place during switching.'),
+ itemFactory.newDropDown(),
+ 'workspaceSwitcherAnimation',
+ [
+ [_('Default'), 0],
+ [_('Static Background'), 1],
+ ],
+ 'workspaceAnimationModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Workspace Switcher Mode (Isolate Monitors)'),
+ _('Note that this is a workaround, not full-fledged feature. GNOME Shell does not support separate workspaces for each monitor, so V-Shell switches workspaces only on the primary monitor and moves windows across workspaces on secondary monitors in order to simulate independent behavior. The current monitor is determined by the position of the mouse pointer'),
+ itemFactory.newDropDown(),
+ 'wsSwitcherMode',
+ [
+ [_('Default'), 0],
+ [_('Current Monitor'), 1],
+ ],
+ 'windowManagerModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Workspace Switcher Popup Mode'),
+ _('This popup shows up when you switch workspace using a keyboard shortcut or gesture outside of the overview. You can to disable the popup at all, or show it on the current monitor (the one with mouse pointer) instead of the primary.'),
+ itemFactory.newDropDown(),
+ 'wsSwPopupMode',
+ [
+ [_('Disable'), 0],
+ [_('Show on Primary Monitor (Default)'), 1],
+ [_('Show on Current Monitor'), 2],
+ ],
+ 'workspaceSwitcherPopupModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Notifications')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Window Attention Handler'),
+ _('When a window requires attention (often a new window), GNOME Shell shows you a notification about it. You can disable popups of these messages (notification will be pushed into the message tray silently) or focus the source window immediately instead'),
+ itemFactory.newDropDown(),
+ 'windowAttentionMode',
+ [
+ [_('Show Notifications (Default)'), 0],
+ [_('Disable Notification Popups'), 1],
+ [_('Immediately Focus Window'), 2],
+ ],
+ 'windowAttentionHandlerModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Favorites'),
+ _('Disable pin/unpin app notifications'),
+ itemFactory.newDropDown(),
+ 'favoritesNotify',
+ [
+ [_('Show Notifications (Default)'), 1],
+ [_('Disable Notifications'), 0],
+ ],
+ 'appFavoritesModule'
+ )
+ );
+
+ return optionList;
+ }
+
+ // -----------------------------------------------------------------------------------------------------------------
+
+ _getAppGridOptionList(itemFactory) {
+ const optionList = [];
+ // options item format:
+ // (text, caption, widget, settings-variable, [options for combo], sensitivity-depends-on-bool-variable)
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Main App Grid')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Apps Sorting'),
+ _('Choose sorting method for the app grid. Note that sorting by usage ignores folders'),
+ itemFactory.newDropDown(),
+ 'appGridOrder',
+ [
+ [_('Custom (Default)'), 0],
+ [_('Alphabet'), 4],
+ [_('Alphabet - Folders First'), 1],
+ [_('Alphabet - Folders Last'), 2],
+ [_('Usage - No Folders'), 3],
+ ],
+ 'appDisplayModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Icon Size'),
+ _('Allows to set a fixed app grid icon size and bypass the default adaptive algorithm'),
+ itemFactory.newDropDown(),
+ 'appGridIconSize',
+ [
+ [_('Adaptive (Default)'), -1],
+ [_('256'), 256],
+ [_('224'), 224],
+ [_('208'), 208],
+ [_('192'), 192],
+ [_('176'), 176],
+ [_('160'), 160],
+ [_('144'), 144],
+ [_('128'), 128],
+ [_('112'), 112],
+ [_('96'), 96],
+ [_('80'), 80],
+ [_('64'), 64],
+ [_('48'), 48],
+ // [_('32'), 32],
+ ],
+ 'appDisplayModule'
+ )
+ );
+
+ const columnsAdjustment = new Gtk.Adjustment({
+ upper: 15,
+ lower: 0,
+ step_increment: 1,
+ page_increment: 1,
+ });
+
+ const columnsSpinBtn = itemFactory.newSpinButton(columnsAdjustment);
+ optionList.push(itemFactory.getRowWidget(
+ _('Columns per Page (0 for adaptive grid)'),
+ _('Number of columns in the application grid. If set to 0, the number will be set automatically to fit the available width'),
+ columnsSpinBtn,
+ 'appGridColumns',
+ null,
+ 'appDisplayModule'
+ ));
+
+ const rowsAdjustment = new Gtk.Adjustment({
+ upper: 15,
+ lower: 0,
+ step_increment: 1,
+ page_increment: 1,
+ });
+
+ const rowsSpinBtn = itemFactory.newSpinButton(rowsAdjustment);
+ optionList.push(itemFactory.getRowWidget(
+ _('Rows per Page (0 for adaptive grid)'),
+ _('Number of rows in the application grid. If set to 0, the number will be set automatically to fit the available height'),
+ rowsSpinBtn,
+ 'appGridRows',
+ null,
+ 'appDisplayModule'
+ ));
+
+ const folderColumnsAdjustment = new Gtk.Adjustment({
+ upper: 15,
+ lower: 0,
+ step_increment: 1,
+ page_increment: 1,
+ });
+
+ const agPageAdjustment = new Gtk.Adjustment({
+ upper: 100,
+ lower: 50,
+ step_increment: 1,
+ page_increment: 10,
+ });
+
+ const agPageWidthScale = itemFactory.newScale(agPageAdjustment);
+ agPageWidthScale.add_mark(60, Gtk.PositionType.TOP, null);
+ agPageWidthScale.add_mark(70, Gtk.PositionType.TOP, null);
+ agPageWidthScale.add_mark(80, Gtk.PositionType.TOP, null);
+ agPageWidthScale.add_mark(90, Gtk.PositionType.TOP, null);
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('App Grid Page Width Scale'),
+ _('Adjusts maximum app grid page width relative to the available space'),
+ agPageWidthScale,
+ 'appGridPageWidthScale',
+ null,
+ 'appDisplayModule'
+ )
+ );
+
+ const aghPageAdjustment = new Gtk.Adjustment({
+ upper: 100,
+ lower: 50,
+ step_increment: 1,
+ page_increment: 10,
+ });
+
+ const agPageHeightScale = itemFactory.newScale(aghPageAdjustment);
+ agPageHeightScale.add_mark(60, Gtk.PositionType.TOP, null);
+ agPageHeightScale.add_mark(70, Gtk.PositionType.TOP, null);
+ agPageHeightScale.add_mark(80, Gtk.PositionType.TOP, null);
+ agPageHeightScale.add_mark(90, Gtk.PositionType.TOP, null);
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('App Grid Page Height Scale'),
+ _('Adjusts maximum app grid page height relative to the available space'),
+ agPageHeightScale,
+ 'appGridPageHeightScale',
+ null,
+ 'appDisplayModule'
+ )
+ );
+
+ const appGridSpacingAdjustment = new Gtk.Adjustment({
+ upper: 30,
+ lower: 5,
+ step_increment: 1,
+ page_increment: 5,
+ });
+
+ const appGridSpacingScale = itemFactory.newScale(appGridSpacingAdjustment);
+ appGridSpacingScale.add_mark(12, Gtk.PositionType.TOP, null);
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Grid Spacing'),
+ _('V-Shell uses this value to calculate grid dimensions for adaptive options. However, the main grid automatically adjusts the spacing based on the grid and available space'),
+ appGridSpacingScale,
+ 'appGridSpacing',
+ null,
+ 'appDisplayModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Allow Incomplete Pages'),
+ _('If disabled, icons from the next page (if any) are automatically moved to fill any empty slot left after an icon was (re)moved (to a folder for example)'),
+ itemFactory.newSwitch(),
+ 'appGridIncompletePages',
+ null,
+ 'appDisplayModule'
+ )
+ );
+
+ // --------------------------------------------------------------------------------------
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('App Folders')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Folder Apps Sorting'),
+ _('Choose sorting method for app folders'),
+ itemFactory.newDropDown(),
+ 'appFolderOrder',
+ [
+ [_('Custom (Default)'), 0],
+ [_('Alphabet'), 1],
+ [_('Usage'), 2],
+ ],
+ 'appDisplayModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Active Icons in Folder Preview'),
+ _('If enabled, icons in the folder preview behaves like normal icons, you can activate or even drag them directly, without having to open the folder first. This option also affects the app grid default icon size'),
+ itemFactory.newSwitch(),
+ 'appGridActivePreview',
+ null,
+ 'appDisplayModule'
+ )
+ );
+
+ const folderIconGridCombo = itemFactory.newDropDown();
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('App Folder Preview Grid Size'),
+ _('Sets a grid size (number of icons) in the folder icon preview. 3x3 options automatically switches between 2x2 and 3x3 grid depending on the number of icons in the folder'),
+ folderIconGridCombo,
+ 'appGridFolderIconGrid',
+ [
+ [_('2x2 (Default)'), 2],
+ [_('3x3 for 5+ apps'), 3],
+ [_('3x3 for 9+ apps'), 4],
+ ],
+ 'appDisplayModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Folder Icon Size'),
+ _('Allows to set a fixed icon size and bypass the default adaptive algorithm in the open folder dialog'),
+ itemFactory.newDropDown(),
+ 'appGridFolderIconSize',
+ [
+ [_('Adaptive (Default)'), -1],
+ [_('128'), 128],
+ [_('112'), 112],
+ [_('96'), 96],
+ [_('80'), 80],
+ [_('64'), 64],
+ [_('48'), 48],
+ ],
+ 'appDisplayModule'
+ )
+ );
+
+ const folderColumnsSpinBtn = itemFactory.newSpinButton(folderColumnsAdjustment);
+ optionList.push(itemFactory.getRowWidget(
+ _('Maximum Number Of Columns (0 for automatic)'),
+ _('Specifies the maximum number of columns per page in folder grids. If you leave the value at 0, the maximum number of columns will be calculated based on available space. The actual folder grid dimensions will be determined by the number of items within the set limits'),
+ folderColumnsSpinBtn,
+ 'appGridFolderColumns',
+ null,
+ 'appDisplayModule'
+ ));
+
+ const folderRowsAdjustment = new Gtk.Adjustment({
+ upper: 15,
+ lower: 0,
+ step_increment: 1,
+ page_increment: 1,
+ });
+
+ const folderRowsSpinBtn = itemFactory.newSpinButton(folderRowsAdjustment);
+ optionList.push(itemFactory.getRowWidget(
+ _('Maximum Number Of Rows (0 for automatic)'),
+ _('Specifies the maximum number of rows per page in folder grids. If you leave the value at 0, the maximum number of rows will be calculated based on available space. The actual folder grid dimensions will be determined by the number of items within the set limits'),
+ folderRowsSpinBtn,
+ 'appGridFolderRows',
+ null,
+ 'appDisplayModule'
+ ));
+
+ const appFolderSpacingAdjustment = new Gtk.Adjustment({
+ upper: 30,
+ lower: 5,
+ step_increment: 1,
+ page_increment: 5,
+ });
+
+ const appFolderSpacingScale = itemFactory.newScale(appFolderSpacingAdjustment);
+ appFolderSpacingScale.add_mark(12, Gtk.PositionType.TOP, null);
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Folder Grid Spacing'),
+ _('Adjusts the spacing between icons in a folder grid'),
+ appFolderSpacingScale,
+ 'appGridFolderSpacing',
+ null,
+ 'appDisplayModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Center Open Folders'),
+ _("App folders may open in the center of the screen or be centered on the folder's source icon"),
+ itemFactory.newSwitch(),
+ 'appGridFolderCenter',
+ null,
+ 'appDisplayModule'
+ )
+ );
+
+ // --------------------------------------------------------------------------------------
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Content')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('App Grid Content'),
+ _('The default Shell removes favorite apps, this option allows to duplicate them in the grid or remove also running applications. Option "Favorites and Running First" only works with the Alphabet and Usage sorting'),
+ itemFactory.newDropDown(),
+ 'appGridContent',
+ [
+ [_('Include All'), 0],
+ [_('Include All - Favorites and Running First'), 1],
+ [_('Exclude Favorites (Default)'), 2],
+ [_('Exclude Running'), 3],
+ [_('Exclude Favorites and Running'), 4],
+ ],
+ 'appDisplayModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('App Labels Behavior'),
+ _('Choose how and when to display app names'),
+ itemFactory.newDropDown(),
+ 'appGridNamesMode',
+ [
+ [_('Ellipsized - Expand Selected (Default)'), 0],
+ [_('Always Expanded'), 1],
+ [_('Hidden - Show Selected Only'), 2],
+ ],
+ 'appDisplayModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Show Page Navigation Buttons'),
+ _("You can hide the page navigation buttons if you don't need them or want to get more space for icons. The buttons are hidden automatically when there is only one page in the app grid"),
+ itemFactory.newSwitch(),
+ 'appGridShowPageArrows',
+ null,
+ 'appDisplayModule'
+ )
+ );
+
+
+ // --------------------------------------------------------------------------------------
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Performance')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Smooth App Grid Animations'),
+ _('This option allows V-Shell to pre-realize app grid and app folders during session startup in order to avoid stuttering animations when using them for the first time. If enabled, the session startup needs a little bit more time to finish and necessary memory will be allocated at this time'),
+ itemFactory.newSwitch(),
+ 'appGridPerformance'
+ )
+ );
+
+ // --------------------------------------------------------------------------------------
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Reset')
+ )
+ );
+
+ optionList.push(itemFactory.getRowWidget(
+ _('Reset App Grid Layout'),
+ _('Removes all stored app grid positions, after reset icons will be sorted alphabetically, except folder contents'),
+ itemFactory.newResetButton(() => {
+ const settings = new Gio.Settings({ schema_id: 'org.gnome.shell' });
+ settings.set_value('app-picker-layout', new GLib.Variant('aa{sv}', []));
+ })
+ ));
+
+ optionList.push(itemFactory.getRowWidget(
+ _('Remove App Grid Folders'),
+ _('Removes all folders, folder apps will move to the root grid'),
+ itemFactory.newResetButton(() => {
+ const settings = new Gio.Settings({ schema_id: 'org.gnome.desktop.app-folders' });
+ settings.set_strv('folder-children', []);
+ })
+ ));
+
+ return optionList;
+ }
+
+ _getModulesOptionList(itemFactory) {
+ const optionList = [];
+ // options item format:
+ // (text, caption, widget, settings-variable, [options for combo], sensitivity-depends-on-bool-variable)
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Optional Modules')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Windows Search Provider - Moved from V-Shell to the standalone "WSP" extension'),
+ _('NOTE: This module has been released as a standalone extension with new features, click to learn more. Related V-Shell options are still available if you install the WSP extension.\n\nWSP adds adds open windows to the search results. You can search app names and window titles. You can also use "wq//" or custom prefix (also by pressing the Space hotkey in the overview, or clicking dash icon) to suppress results from other search providers'),
+ itemFactory.newLinkButton('https://github.com/G-dH/windows-search-provider?tab=readme-ov-file#wsp-windows-search-provider')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Extensions Search Provider - Moved from V-Shell to the standalone "ESP" extension'),
+ _('NOTE: This module has been released as a standalone extension with new features, click to learn more. Related V-Shell options are still available if you install the ESP extension.\n\nESP adds extensions to the search results. You can also use "eq//" or custom prefix (also by pressing the Ctrl + Shift + Space hotkey in the overview, or clicking dash icon) to suppress results from other search providers'),
+ itemFactory.newLinkButton('https://github.com/G-dH/extensions-search-provider?tab=readme-ov-file#esp-extensions-search-provider')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Window Thumbnails (PiP) - Moved from V-Shell to the standalone "WTMB" extension'),
+ _('NOTE: This module has been released as a standalone extension with new features, click to learn more. Related V-Shell options are still available if you install the WTMB extension.\n\nWTMB allows the creation of Picture-in-Picture like window thumbnails that you can use for monitoring of windows on another workspace'),
+ itemFactory.newLinkButton('https://github.com/G-dH/window-thumbnails?tab=readme-ov-file#wtmb-window-thumbnails')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Built-in Modules (allows to disable modules that conflict with another extension)')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('AppDisplay / IconGrid'),
+ _('App grid customization and options'),
+ itemFactory.newSwitch(),
+ 'appDisplayModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('AppFavorites'),
+ _('Pin/unpin app notification options'),
+ itemFactory.newSwitch(),
+ 'appFavoritesModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Dash'),
+ _('Dash customization and options, support for vertical orientation'),
+ itemFactory.newSwitch(),
+ 'dashModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Layout'),
+ _('Hot corner options'),
+ itemFactory.newSwitch(),
+ 'layoutModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('MessageTray'),
+ _('Notification position options'),
+ itemFactory.newSwitch(),
+ 'messageTrayModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('OsdWindow'),
+ _('OSD position options'),
+ itemFactory.newSwitch(),
+ 'osdWindowModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('OverlayKey'),
+ _('Overlay (Super/Window) key options'),
+ itemFactory.newSwitch(),
+ 'overlayKeyModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Panel'),
+ _('Panel options'),
+ itemFactory.newSwitch(),
+ 'panelModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Search'),
+ _('Search view and app search provider customization and options'),
+ itemFactory.newSwitch(),
+ 'searchModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('SearchController'),
+ _('Escape key behavior options in the overview'),
+ itemFactory.newSwitch(),
+ 'searchControllerModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('SwipeTracker'),
+ _('Gestures for vertical workspace orientation'),
+ itemFactory.newSwitch(),
+ 'swipeTrackerModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('WindowAttentionHandler'),
+ _('Window attention handler options'),
+ itemFactory.newSwitch(),
+ 'windowAttentionHandlerModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('WindowManager'),
+ _('Fixes an upstream bug in the minimization animation of a full-screen window'),
+ itemFactory.newSwitch(),
+ 'windowManagerModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('WindowPreview'),
+ _('Window preview options, fixes an upstream bug that fills the system log with errors when you close a window from the overview or exit the overview with a gesture when any window is selected'),
+ itemFactory.newSwitch(),
+ 'windowPreviewModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Workspace'),
+ _('Fixes workspace preview allocations for vertical workspaces orientation and window scaling in static overview modes'),
+ itemFactory.newSwitch(),
+ 'workspaceModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('WorkspaceAnimation'),
+ _('Static workspace animation option'),
+ itemFactory.newSwitch(),
+ 'workspaceAnimationModule'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('WorkspaceSwitcherPopup'),
+ _('Workspace switcher popup orientation and position options'),
+ itemFactory.newSwitch(),
+ 'workspaceSwitcherPopupModule'
+ )
+ );
+
+ return optionList;
+ }
+
+ _getMiscOptionList(itemFactory) {
+ const optionList = [];
+ // options item format:
+ // (text, caption, widget, settings-variable, [options for combo], sensitivity-depends-on-bool-variable)
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Keyboard')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Override Page Up/Down Shortcuts'),
+ _('This option automatically overrides the (Shift +) Super + Page Up/Down keyboard shortcuts for the current workspace orientation. If you encounter any issues, check the configuration in the dconf editor'),
+ itemFactory.newSwitch(),
+ 'enablePageShortcuts'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Workarounds / Hacks')
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Delay at Startup'),
+ _("If you encounter issues during GNOME Shell startup after logging in, which could be caused by V-Shell's incompatibility with another extension, try enabling this option. When enabled, V-Shell is activated after the startup is complete. It will activate automatically when Dash to Dock, Ubuntu Dock or Dash to Panel extensions are detected."),
+ itemFactory.newSwitch(),
+ 'delayStartup'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Fix New Window Not In Focus'),
+ _('If you often find that the app window you open from the Activities overview does not get focus, try enabling this option.'),
+ itemFactory.newSwitch(),
+ 'newWindowFocusFix'
+ )
+ );
+
+ optionList.push(
+ itemFactory.getRowWidget(
+ _('Fix New Window Not On Current Monitor (experimental)'),
+ _('If you use multiple monitors, you may encounter the issue of new windows opening on a different monitor than expected. This option moves those windows to the current monitor, determined by the position of the mouse pointer. However, this is a workaround, and some windows may override it, moving the window back to the previous monitor during initialization'),
+ itemFactory.newSwitch(),
+ 'newWindowMonitorFix'
+ )
+ );
+
+ return optionList;
+ }
+
+ // --------------------------------------------------------------------------------------------------
+
+ _getAboutOptionList(itemFactory) {
+ const optionList = [];
+
+ optionList.push(itemFactory.getRowWidget(
+ this.Me.metadata.name
+ ));
+
+ const versionName = this.Me.metadata['version-name'] ?? '';
+ let version = this.Me.metadata['version'] ?? '';
+ version = versionName && version ? `/${version}` : version;
+ const versionStr = `${versionName}${version}`;
+ optionList.push(itemFactory.getRowWidget(
+ _('Version'),
+ null,
+ itemFactory.newLabel(versionStr)
+ ));
+
+ optionList.push(itemFactory.getRowWidget(
+ _('Reset all options'),
+ _('Reset all options to their default values'),
+ itemFactory.newOptionsResetButton()
+ ));
+
+
+ optionList.push(itemFactory.getRowWidget(
+ _('Links')
+ ));
+
+ optionList.push(itemFactory.getRowWidget(
+ _('Homepage'),
+ _('Source code and more info about this extension'),
+ itemFactory.newLinkButton('https://github.com/G-dH/vertical-workspaces')
+ ));
+
+ optionList.push(itemFactory.getRowWidget(
+ _('Changelog'),
+ _("See what's changed."),
+ itemFactory.newLinkButton('https://github.com/G-dH/vertical-workspaces/blob/main/CHANGELOG.md')
+ ));
+
+ optionList.push(itemFactory.getRowWidget(
+ _('GNOME Extensions'),
+ _('Rate and comment V-Shell on the GNOME Extensions site'),
+ itemFactory.newLinkButton('https://extensions.gnome.org/extension/5177')
+ ));
+
+ optionList.push(itemFactory.getRowWidget(
+ _('Report a bug or suggest new feature'),
+ _('Help me to help you!'),
+ itemFactory.newLinkButton('https://github.com/G-dH/vertical-workspaces/issues')
+ ));
+
+ optionList.push(itemFactory.getRowWidget(
+ _('Buy Me a Coffee'),
+ _('Enjoying V-Shell? Consider supporting it by buying me a coffee!'),
+ itemFactory.newLinkButton('https://buymeacoffee.com/georgdh')
+ ));
+
+ return optionList;
+ }
+}
diff --git a/extensions/47/vertical-workspaces/schemas/meson.build b/extensions/47/vertical-workspaces/schemas/meson.build
new file mode 100644
index 0000000..ae9efc2
--- /dev/null
+++ b/extensions/47/vertical-workspaces/schemas/meson.build
@@ -0,0 +1,6 @@
+schema = rdnn + '.gschema.xml'
+schema_dir = datadir / 'glib-2.0' / 'schemas'
+
+install_data(schema, install_dir : schema_dir)
+
+gnome.post_install(glib_compile_schemas : true)
diff --git a/extensions/47/vertical-workspaces/schemas/org.gnome.shell.extensions.vertical-workspaces.gschema.xml b/extensions/47/vertical-workspaces/schemas/org.gnome.shell.extensions.vertical-workspaces.gschema.xml
new file mode 100644
index 0000000..c2c52fa
--- /dev/null
+++ b/extensions/47/vertical-workspaces/schemas/org.gnome.shell.extensions.vertical-workspaces.gschema.xml
@@ -0,0 +1,907 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schemalist gettext-domain="vertical-workspaces">
+ <schema id="org.gnome.shell.extensions.vertical-workspaces" path="/org/gnome/shell/extensions/vertical-workspaces/">
+ <key type="i" name="ws-thumbnails-position">
+ <default>0</default>
+ </key>
+ <key type="b" name="ws-thumbnails-full">
+ <default>false</default>
+ </key>
+ <key type="i" name="secondary-ws-thumbnails-position">
+ <default>2</default>
+ </key>
+ <key type="i" name="ws-max-spacing">
+ <default>350</default>
+ </key>
+ <key type="i" name="ws-preview-scale">
+ <default>95</default>
+ </key>
+ <key type="i" name="secondary-ws-preview-scale">
+ <default>95</default>
+ </key>
+ <key type="b" name="secondary-ws-preview-shift">
+ <default>false</default>
+ </key>
+ <key type="i" name="dash-position">
+ <default>0</default>
+ </key>
+ <key type="i" name="dash-position-adjust">
+ <default>-100</default>
+ </key>
+ <key type="i" name="show-app-icon-position">
+ <default>0</default>
+ </key>
+ <key type="i" name="dash-show-windows-icon">
+ <default>1</default>
+ </key>
+ <key type="i" name="dash-show-recent-files-icon">
+ <default>1</default>
+ </key>
+ <key type="i" name="dash-show-extensions-icon">
+ <default>1</default>
+ </key>
+ <key type="i" name="wst-position-adjust">
+ <default>-100</default>
+ </key>
+ <key type="i" name="show-wst-labels">
+ <default>3</default>
+ </key>
+ <key type="b" name="show-wst-labels-on-hover">
+ <default>false</default>
+ </key>
+ <key type="i" name="sec-wst-position-adjust">
+ <default>0</default>
+ </key>
+ <key type="i" name="close-ws-button-mode">
+ <default>2</default>
+ </key>
+ <key type="b" name="center-dash-to-ws">
+ <default>false</default>
+ </key>
+ <key type="b" name="show-search-entry">
+ <default>false</default>
+ </key>
+ <key type="b" name="center-search">
+ <default>true</default>
+ </key>
+ <key type="b" name="center-app-grid">
+ <default>false</default>
+ </key>
+ <key type="i" name="ws-thumbnail-scale">
+ <default>13</default>
+ </key>
+ <key type="i" name="ws-thumbnail-scale-appgrid">
+ <default>13</default>
+ </key>
+ <key type="i" name="secondary-ws-thumbnail-scale">
+ <default>13</default>
+ </key>
+ <key type="i" name="dash-max-icon-size">
+ <default>0</default>
+ </key>
+ <key type="i" name="dash-bg-opacity">
+ <default>20</default>
+ </key>
+ <key type="i" name="dash-bg-color">
+ <default>1</default>
+ </key>
+ <key type="i" name="dash-bg-radius">
+ <default>18</default>
+ </key>
+ <key type="b" name="dash-bg-gs3-style">
+ <default>false</default>
+ </key>
+ <key type="i" name="running-dot-style">
+ <default>1</default>
+ </key>
+ <key type="b" name="enable-page-shortcuts">
+ <default>false</default>
+ </key>
+ <key type="b" name="show-ws-switcher-bg">
+ <default>false</default>
+ </key>
+ <key type="b" name="show-ws-preview-bg">
+ <default>true</default>
+ </key>
+ <key type="i" name="ws-preview-bg-radius">
+ <default>30</default>
+ </key>
+ <key type="b" name="show-bg-in-overview">
+ <default>true</default>
+ </key>
+ <key type="i" name="overview-bg-blur-sigma">
+ <default>30</default>
+ </key>
+ <key type="i" name="app-grid-bg-blur-sigma">
+ <default>40</default>
+ </key>
+ <key type="i" name="overview-bg-brightness">
+ <default>60</default>
+ </key>
+ <key type="i" name="search-bg-brightness">
+ <default>30</default>
+ </key>
+ <key type="b" name="smooth-blur-transitions">
+ <default>false</default>
+ </key>
+ <key type="i" name="app-grid-animation">
+ <default>4</default>
+ </key>
+ <key type="i" name="search-view-animation">
+ <default>0</default>
+ </key>
+ <key type="i" name="workspace-animation">
+ <default>1</default>
+ </key>
+ <key type="i" name="workspace-switcher-animation">
+ <default>1</default>
+ </key>
+ <key type="i" name="ws-switcher-mode">
+ <default>0</default>
+ </key>
+ <key type="i" name="animation-speed-factor">
+ <default>100</default>
+ </key>
+ <key type="i" name="win-preview-icon-size">
+ <default>1</default>
+ </key>
+ <key type="i" name="win-title-position">
+ <default>0</default>
+ </key>
+ <key type="i" name="startup-state">
+ <default>0</default>
+ </key>
+ <key type="i" name="overview-mode">
+ <default>0</default>
+ </key>
+ <key type="i" name="search-icon-size">
+ <default>0</default>
+ </key>
+ <key type="i" name="search-width-scale">
+ <default>100</default>
+ </key>
+ <key type="i" name="app-grid-icon-size">
+ <default>-1</default>
+ </key>
+ <key type="i" name="app-grid-columns">
+ <default>0</default>
+ </key>
+ <key type="i" name="app-grid-rows">
+ <default>0</default>
+ </key>
+ <key type="i" name="app-grid-order">
+ <default>0</default>
+ </key>
+ <key type="i" name="app-folder-order">
+ <default>0</default>
+ </key>
+ <key type="i" name="app-grid-content">
+ <default>2</default>
+ </key>
+ <key type="i" name="app-grid-folder-icon-size">
+ <default>-1</default>
+ </key>
+ <key type="i" name="app-grid-folder-columns">
+ <default>0</default>
+ </key>
+ <key type="i" name="app-grid-folder-rows">
+ <default>0</default>
+ </key>
+ <key type="i" name="app-grid-spacing">
+ <default>12</default>
+ </key>
+ <key type="i" name="app-grid-folder-spacing">
+ <default>12</default>
+ </key>
+ <key type="b" name="app-grid-incomplete-pages">
+ <default>false</default>
+ </key>
+ <key type="i" name="app-grid-names">
+ <default>1</default>
+ </key>
+ <key type="i" name="app-grid-folder-icon-grid">
+ <default>3</default>
+ </key>
+ <key type="b" name="app-grid-active-preview">
+ <default>false</default>
+ </key>
+ <key type="b" name="app-grid-folder-center">
+ <default>false</default>
+ </key>
+ <key type="i" name="app-grid-page-width-scale">
+ <default>90</default>
+ </key>
+ <key type="i" name="app-grid-page-height-scale">
+ <default>90</default>
+ </key>
+ <key type="b" name="app-grid-show-page-arrows">
+ <default>true</default>
+ </key>
+ <key type="i" name="dash-show-windows-before-activation">
+ <default>1</default>
+ </key>
+ <key type="i" name="dash-icon-scroll">
+ <default>1</default>
+ </key>
+ <key type="b" name="dash-isolate-workspaces">
+ <default>false</default>
+ </key>
+ <key type="i" name="search-windows-icon-scroll">
+ <default>1</default>
+ </key>
+ <key type="b" name="search-windows-enable">
+ <default>true</default>
+ </key>
+ <key type="i" name="search-windows-order">
+ <default>1</default>
+ </key>
+ <key type="b" name="search-fuzzy">
+ <default>false</default>
+ </key>
+ <key type="i" name="search-max-results-rows">
+ <default>5</default>
+ </key>
+ <key type="i" name="search-app-grid-mode">
+ <default>0</default>
+ </key>
+ <key type="i" name="panel-visibility">
+ <default>0</default>
+ </key>
+ <key type="i" name="panel-position">
+ <default>0</default>
+ </key>
+ <key type="i" name="window-attention-mode">
+ <default>0</default>
+ </key>
+ <key type="i" name="ws-sw-popup-h-position">
+ <default>50</default>
+ </key>
+ <key type="i" name="ws-sw-popup-v-position">
+ <default>95</default>
+ </key>
+ <key type="i" name="ws-sw-popup-mode">
+ <default>1</default>
+ </key>
+ <key type="b" name="ws-switcher-wraparound">
+ <default>false</default>
+ </key>
+ <key type="b" name="ws-switcher-ignore-last">
+ <default>false</default>
+ </key>
+ <key type="i" name="favorites-notify">
+ <default>1</default>
+ </key>
+ <key type="i" name="notification-position">
+ <default>2</default>
+ </key>
+ <key type="i" name="osd-position">
+ <default>6</default>
+ </key>
+ <key type="i" name="hot-corner-action">
+ <default>1</default>
+ </key>
+ <key type="i" name="hot-corner-position">
+ <default>0</default>
+ </key>
+ <key type="b" name="hot-corner-fullscreen">
+ <default>true</default>
+ </key>
+ <key type="b" name="hot-corner-ripples">
+ <default>true</default>
+ </key>
+ <key type="b" name="always-activate-selected-window">
+ <default>false</default>
+ </key>
+ <key type="i" name="win-preview-sec-mouse-btn-action">
+ <default>3</default>
+ </key>
+ <key type="i" name="win-preview-mid-mouse-btn-action">
+ <default>0</default>
+ </key>
+ <key type="b" name="win-preview-show-close-button">
+ <default>true</default>
+ </key>
+ <key type="i" name="window-icon-click-action">
+ <default>1</default>
+ </key>
+ <key type="i" name="overlay-key-primary">
+ <default>1</default>
+ </key>
+ <key type="i" name="overlay-key-secondary">
+ <default>1</default>
+ </key>
+ <key type="i" name="overview-esc-behavior">
+ <default>0</default>
+ </key>
+ <key type="b" name="click-empty-close">
+ <default>false</default>
+ </key>
+ <key type="b" name="new-window-focus-fix">
+ <default>false</default>
+ </key>
+ <key type="b" name="new-window-monitor-fix">
+ <default>false</default>
+ </key>
+ <key type="b" name="app-grid-performance">
+ <default>false</default>
+ </key>
+ <key name='highlighting-style' type='i'>
+ <default>1</default>
+ </key>
+ <key type="b" name="delay-startup">
+ <default>false</default>
+ </key>
+
+ <key type="b" name="workspace-switcher-popup-module">
+ <default>true</default>
+ </key>
+ <key type="b" name="workspace-animation-module">
+ <default>true</default>
+ </key>
+ <key type="b" name="workspace-module">
+ <default>true</default>
+ </key>
+ <key type="b" name="window-manager-module">
+ <default>true</default>
+ </key>
+ <key type="b" name="window-preview-module">
+ <default>true</default>
+ </key>
+ <key type="b" name="win-attention-handler-module">
+ <default>true</default>
+ </key>
+ <key type="b" name="swipe-tracker-module">
+ <default>true</default>
+ </key>
+ <key type="b" name="search-controller-module">
+ <default>true</default>
+ </key>
+ <key type="b" name="search-module">
+ <default>true</default>
+ </key>
+ <key type="b" name="panel-module">
+ <default>true</default>
+ </key>
+ <key type="b" name="overlay-key-module">
+ <default>true</default>
+ </key>
+ <key type="b" name="osd-window-module">
+ <default>true</default>
+ </key>
+ <key type="b" name="message-tray-module">
+ <default>true</default>
+ </key>
+ <key type="b" name="layout-module">
+ <default>true</default>
+ </key>
+ <key type="b" name="dash-module">
+ <default>true</default>
+ </key>
+ <key type="b" name="app-display-module">
+ <default>true</default>
+ </key>
+ <key type="b" name="app-favorites-module">
+ <default>true</default>
+ </key>
+ <key type="b" name="recent-files-search-provider-module">
+ <default>false</default>
+ </key>
+
+ <key type="b" name="aaa-loading-profile">
+ <default>false</default>
+ </key>
+
+ <key type="s" name="profile-name-1">
+ <default>""</default>
+ </key>
+ <key type="a{ss}" name="profile-data-1">
+ <default>{
+ 'workspaceThumbnailsPosition': '1',
+ 'wsMaxSpacing': '350',
+ 'wsPreviewScale': '95',
+ 'secWsPreviewScale': '95',
+ 'secWsPreviewShift': 'false',
+ 'wsThumbnailsFull': 'false',
+ 'secWsThumbnailsPosition': '2',
+ 'dashPosition': '3',
+ 'dashPositionAdjust': '0',
+ 'wsTmbPositionAdjust': '-80',
+ 'showWsTmbLabels': '3',
+ 'showWsTmbLabelsOnHover': 'false',
+ 'closeWsButtonMode': '2',
+ 'secWsTmbPositionAdjust': '-80',
+ 'dashMaxIconSize': '0',
+ 'centerDashToWs': 'false',
+ 'showAppsIconPosition': '1',
+ 'wsThumbnailScale': '13',
+ 'wsThumbnailScaleAppGrid': '13',
+ 'secWsThumbnailScale': '13',
+ 'showSearchEntry': 'true',
+ 'centerSearch': 'true',
+ 'centerAppGrid': 'true',
+ 'dashBgOpacity': '80',
+ 'dashBgColor': '0',
+ 'dashBgRadius': '0',
+ 'dashBgGS3Style': 'true',
+ 'runningDotStyle': '1',
+ 'showWsSwitcherBg': 'true',
+ 'showWsPreviewBg': 'false',
+ 'wsPreviewBgRadius': '30',
+ 'showBgInOverview': 'true',
+ 'overviewBgBrightness': '30',
+ 'searchBgBrightness': '30',
+ 'overviewBgBlurSigma': '0',
+ 'appGridBgBlurSigma': '40',
+ 'smoothBlurTransitions': 'false',
+ 'appGridAnimation': '4',
+ 'searchViewAnimation': '0',
+ 'workspaceAnimation': '1',
+ 'animationSpeedFactor': '100',
+ 'winPreviewIconSize': '1',
+ 'winTitlePosition': '0',
+ 'startupState': '0',
+ 'overviewMode': '0',
+ 'wsSwitcherMode': '0',
+ 'workspaceSwitcherAnimation': '1',
+ 'searchIconSize': '0',
+ 'searchViewScale': '100',
+ 'appGridIconSize': '-1',
+ 'appGridColumns': '0',
+ 'appGridRows': '0',
+ 'appGridFolderIconSize': '-1',
+ 'appGridFolderColumns': '0',
+ 'appGridFolderRows': '0',
+ 'appGridFolderIconGrid': '2',
+ 'appGridContent': '2',
+ 'appGridIncompletePages': 'false',
+ 'appGridOrder': '0',
+ 'appFolderOrder': '0',
+ 'appGridNamesMode': '1',
+ 'appGridActivePreview': 'false',
+ 'appGridFolderCenter': 'false',
+ 'appGridPageWidthScale': '90',
+ 'appGridPageHeightScale': '90',
+ 'appGridSpacing': '12',
+ 'appGridFolderSpacing': '12',
+ 'appGridShowPageArrows': 'false',
+ 'searchWindowsOrder': '1',
+ 'searchFuzzy': 'false',
+ 'searchMaxResultsRows': '5',
+ 'searchAppGridMode': '0',
+ 'dashShowWindowsBeforeActivation': '1',
+ 'dashIconScroll': '1',
+ 'dashIsolateWorkspaces': 'false',
+ 'searchWindowsIconScroll': '1',
+ 'panelVisibility': '0',
+ 'panelPosition': '0',
+ 'windowAttentionMode': '0',
+ 'wsSwPopupHPosition': '50',
+ 'wsSwPopupVPosition': '95',
+ 'wsSwPopupMode': '1',
+ 'wsSwitcherWraparound': 'false',
+ 'wsSwitcherIgnoreLast': 'false',
+ 'favoritesNotify': '1',
+ 'notificationPosition': '1',
+ 'osdPosition': '6',
+ 'hotCornerAction': '1',
+ 'hotCornerPosition': '0',
+ 'hotCornerFullscreen': 'true',
+ 'hotCornerRipples': 'true',
+ 'alwaysActivateSelectedWindow': 'false',
+ 'winPreviewSecBtnAction': '3',
+ 'winPreviewMidBtnAction': '1',
+ 'winPreviewShowCloseButton': 'true',
+ 'windowIconClickAction': '1',
+ 'overlayKeyPrimary': '1',
+ 'overlayKeySecondary': '1',
+ 'overviewEscBehavior': '0',
+ 'newWindowFocusFix': 'false',
+ 'newWindowMonitorFix': '0',
+ 'highlightingStyle': '1',
+
+ 'workspaceSwitcherPopupModule': 'true',
+ 'workspaceAnimationModule': 'true',
+ 'workspaceModule': 'true',
+ 'windowManagerModule': 'true',
+ 'windowPreviewModule': 'true',
+ 'windowAttentionHandlerModule': 'true',
+ 'swipeTrackerModule': 'true',
+ 'searchControllerModule': 'true',
+ 'searchModule': 'true',
+ 'panelModule': 'true',
+ 'overlayKeyModule': 'true',
+ 'osdWindowModule': 'true',
+ 'messageTrayModule': 'true',
+ 'layoutModule': 'true',
+ 'dashModule': 'true',
+ 'appFavoritesModule': 'true',
+ 'appDisplayModule': 'true'
+ }</default>
+ </key>
+
+ <key type="s" name="profile-name-2">
+ <default>""</default>
+ </key>
+ <key type="a{ss}" name="profile-data-2">
+ <default>{
+ 'workspaceThumbnailsPosition': '5',
+ 'wsMaxSpacing': '80',
+ 'wsPreviewScale': '95',
+ 'secWsPreviewScale': '95',
+ 'secWsPreviewShift': 'false',
+ 'wsThumbnailsFull': 'false',
+ 'secWsThumbnailsPosition': '2',
+ 'dashPosition': '2',
+ 'dashPositionAdjust': '0',
+ 'wsTmbPositionAdjust': '0',
+ 'showWsTmbLabels': '0',
+ 'showWsTmbLabelsOnHover': 'false',
+ 'closeWsButtonMode': '2',
+ 'secWsTmbPositionAdjust': '0',
+ 'dashMaxIconSize': '0',
+ 'centerDashToWs': 'false',
+ 'showAppsIconPosition': '1',
+ 'wsThumbnailScale': '5',
+ 'wsThumbnailScaleAppGrid': '15',
+ 'secWsThumbnailScale': '5',
+ 'showSearchEntry': 'false',
+ 'centerSearch': 'true',
+ 'centerAppGrid': 'true',
+ 'dashBgOpacity': '20',
+ 'dashBgColor': '1',
+ 'dashBgRadius': '0',
+ 'dashBgGS3Style': 'false',
+ 'runningDotStyle': '1',
+ 'showWsSwitcherBg': 'false',
+ 'showWsPreviewBg': 'true',
+ 'wsPreviewBgRadius': '30',
+ 'showBgInOverview': 'true',
+ 'overviewBgBrightness': '50',
+ 'searchBgBrightness': '30',
+ 'overviewBgBlurSigma': '50',
+ 'appGridBgBlurSigma': '40',
+ 'smoothBlurTransitions': 'false',
+ 'appGridAnimation': '4',
+ 'searchViewAnimation': '0',
+ 'workspaceAnimation': '1',
+ 'animationSpeedFactor': '100',
+ 'winPreviewIconSize': '1',
+ 'winTitlePosition': '0',
+ 'startupState': '0',
+ 'overviewMode': '0',
+ 'wsSwitcherMode': '0',
+ 'workspaceSwitcherAnimation': '0',
+ 'searchIconSize': '0',
+ 'searchViewScale': '100',
+ 'appGridIconSize': '-1',
+ 'appGridColumns': '0',
+ 'appGridRows': '0',
+ 'appGridFolderIconSize': '-1',
+ 'appGridFolderColumns': '0',
+ 'appGridFolderRows': '0',
+ 'appGridFolderIconGrid': '2',
+ 'appGridContent': '2',
+ 'appGridIncompletePages': 'false',
+ 'appGridOrder': '0',
+ 'appFolderOrder': '0',
+ 'appGridNamesMode': '1',
+ 'appGridActivePreview': 'false',
+ 'appGridFolderCenter': 'true',
+ 'appGridPageWidthScale': '80',
+ 'appGridPageHeightScale': '90',
+ 'appGridSpacing': '12',
+ 'appGridFolderSpacing': '12',
+ 'appGridShowPageArrows': 'true',
+ 'searchWindowsOrder': '1',
+ 'searchFuzzy': 'false',
+ 'searchMaxResultsRows': '5',
+ 'searchAppGridMode': '0',
+ 'dashShowWindowsBeforeActivation': '1',
+ 'dashIconScroll': '1',
+ 'dashIsolateWorkspaces': 'false',
+ 'searchWindowsIconScroll': '1',
+ 'panelVisibility': '0',
+ 'panelPosition': '0',
+ 'windowAttentionMode': '0',
+ 'wsSwPopupHPosition': '50',
+ 'wsSwPopupVPosition': '95',
+ 'wsSwPopupMode': '1',
+ 'wsSwitcherWraparound': 'false',
+ 'wsSwitcherIgnoreLast': 'false',
+ 'favoritesNotify': '1',
+ 'notificationPosition': '1',
+ 'osdPosition': '6',
+ 'hotCornerAction': '1',
+ 'hotCornerPosition': '6',
+ 'hotCornerFullscreen': 'true',
+ 'hotCornerRipples': 'false',
+ 'alwaysActivateSelectedWindow': 'false',
+ 'winPreviewSecBtnAction': '2',
+ 'winPreviewMidBtnAction': '1',
+ 'winPreviewShowCloseButton': 'true',
+ 'windowIconClickAction': '1',
+ 'overlayKeyPrimary': '1',
+ 'overlayKeySecondary': '1',
+ 'overviewEscBehavior': '0',
+ 'newWindowFocusFix': 'false',
+ 'newWindowMonitorFix': '0',
+ 'highlightingStyle': '1',
+
+ 'workspaceSwitcherPopupModule': 'true',
+ 'workspaceAnimationModule': 'true',
+ 'workspaceModule': 'true',
+ 'windowManagerModule': 'true',
+ 'windowPreviewModule': 'true',
+ 'windowAttentionHandlerModule': 'true',
+ 'swipeTrackerModule': 'true',
+ 'searchControllerModule': 'true',
+ 'searchModule': 'true',
+ 'panelModule': 'true',
+ 'overlayKeyModule': 'true',
+ 'osdWindowModule': 'true',
+ 'messageTrayModule': 'true',
+ 'layoutModule': 'true',
+ 'dashModule': 'true',
+ 'appFavoritesModule': 'true',
+ 'appDisplayModule': 'true'
+ }</default>
+ </key>
+
+ <key type="s" name="profile-name-3">
+ <default>""</default>
+ </key>
+ <key type="a{ss}" name="profile-data-3">
+ <default>{
+ 'workspaceThumbnailsPosition': '0',
+ 'wsMaxSpacing': '350',
+ 'wsPreviewScale': '95',
+ 'secWsPreviewScale': '95',
+ 'secWsPreviewShift': 'false',
+ 'wsThumbnailsFull': 'false',
+ 'secWsThumbnailsPosition': '2',
+ 'dashPosition': '0',
+ 'dashPositionAdjust': '-100',
+ 'wsTmbPositionAdjust': '-100',
+ 'showWsTmbLabels': '3',
+ 'showWsTmbLabelsOnHover': 'false',
+ 'closeWsButtonMode': '2',
+ 'secWsTmbPositionAdjust': '-100',
+ 'dashMaxIconSize': '0',
+ 'centerDashToWs': 'false',
+ 'showAppsIconPosition': '0',
+ 'wsThumbnailScale': '13',
+ 'wsThumbnailScaleAppGrid': '13',
+ 'secWsThumbnailScale': '13',
+ 'showSearchEntry': 'false',
+ 'centerSearch': 'true',
+ 'centerAppGrid': 'false',
+ 'dashBgOpacity': '15',
+ 'dashBgColor': '1',
+ 'dashBgRadius': '0',
+ 'dashBgGS3Style': 'false',
+ 'runningDotStyle': '1',
+ 'showWsSwitcherBg': 'false',
+ 'showWsPreviewBg': 'true',
+ 'wsPreviewBgRadius': '30',
+ 'showBgInOverview': 'true',
+ 'overviewBgBrightness': '60',
+ 'searchBgBrightness': '30',
+ 'overviewBgBlurSigma': '30',
+ 'appGridBgBlurSigma': '80',
+ 'smoothBlurTransitions': 'false',
+ 'appGridAnimation': '4',
+ 'searchViewAnimation': '0',
+ 'workspaceAnimation': '1',
+ 'animationSpeedFactor': '100',
+ 'winPreviewIconSize': '1',
+ 'winTitlePosition': '0',
+ 'startupState': '2',
+ 'overviewMode': '1',
+ 'wsSwitcherMode': '0',
+ 'workspaceSwitcherAnimation': '1',
+ 'searchIconSize': '0',
+ 'searchViewScale': '100',
+ 'appGridIconSize': '-1',
+ 'appGridColumns': '0',
+ 'appGridRows': '0',
+ 'appGridFolderIconSize': '-1',
+ 'appGridFolderColumns': '0',
+ 'appGridFolderRows': '0',
+ 'appGridFolderIconGrid': '3',
+ 'appGridContent': '2',
+ 'appGridIncompletePages': 'false',
+ 'appGridOrder': '0',
+ 'appFolderOrder': '0',
+ 'appGridNamesMode': '1',
+ 'appGridActivePreview': 'true',
+ 'appGridFolderCenter': 'false',
+ 'appGridPageWidthScale': '90',
+ 'appGridPageHeightScale': '90',
+ 'appGridSpacing': '12',
+ 'appGridFolderSpacing': '12',
+ 'appGridShowPageArrows': 'false',
+ 'searchWindowsOrder': '1',
+ 'searchFuzzy': 'false',
+ 'searchMaxResultsRows': '5',
+ 'searchAppGridMode': '0',
+ 'dashShowWindowsBeforeActivation': '1',
+ 'dashIconScroll': '1',
+ 'dashIsolateWorkspaces': 'false',
+ 'searchWindowsIconScroll': '1',
+ 'panelVisibility': '0',
+ 'panelPosition': '0',
+ 'windowAttentionMode': '0',
+ 'wsSwPopupHPosition': '50',
+ 'wsSwPopupVPosition': '95',
+ 'wsSwPopupMode': '1',
+ 'wsSwitcherWraparound': 'false',
+ 'wsSwitcherIgnoreLast': 'false',
+ 'favoritesNotify': '0',
+ 'notificationPosition': '2',
+ 'osdPosition': '6',
+ 'hotCornerAction': '1',
+ 'hotCornerPosition': '1',
+ 'hotCornerFullscreen': 'true',
+ 'hotCornerRipples': 'true',
+ 'alwaysActivateSelectedWindow': 'false',
+ 'winPreviewSecBtnAction': '2',
+ 'winPreviewMidBtnAction': '1',
+ 'winPreviewShowCloseButton': 'true',
+ 'windowIconClickAction': '1',
+ 'overlayKeyPrimary': '1',
+ 'overlayKeySecondary': '1',
+ 'overviewEscBehavior': '0',
+ 'newWindowFocusFix': 'false',
+ 'newWindowMonitorFix': '0',
+ 'highlightingStyle': '1',
+
+ 'workspaceSwitcherPopupModule': 'true',
+ 'workspaceAnimationModule': 'true',
+ 'workspaceModule': 'true',
+ 'windowManagerModule': 'true',
+ 'windowPreviewModule': 'true',
+ 'windowAttentionHandlerModule': 'true',
+ 'swipeTrackerModule': 'true',
+ 'searchControllerModule': 'true',
+ 'searchModule': 'true',
+ 'panelModule': 'true',
+ 'overlayKeyModule': 'true',
+ 'osdWindowModule': 'true',
+ 'messageTrayModule': 'true',
+ 'layoutModule': 'true',
+ 'dashModule': 'true',
+ 'appFavoritesModule': 'true',
+ 'appDisplayModule': 'true'
+ }</default>
+ </key>
+
+ <key type="s" name="profile-name-4">
+ <default>""</default>
+ </key>
+ <key type="a{ss}" name="profile-data-4">
+ <default>{
+ 'workspaceThumbnailsPosition': '6',
+ 'wsMaxSpacing': '65',
+ 'wsPreviewScale': '95',
+ 'secWsPreviewScale': '95',
+ 'secWsPreviewShift': 'false',
+ 'wsThumbnailsFull': 'false',
+ 'secWsThumbnailsPosition': '2',
+ 'dashPosition': '2',
+ 'dashPositionAdjust': '0',
+ 'wsTmbPositionAdjust': '0',
+ 'showWsTmbLabels': '3',
+ 'showWsTmbLabelsOnHover': 'false',
+ 'closeWsButtonMode': '2',
+ 'secWsTmbPositionAdjust': '0',
+ 'dashMaxIconSize': '0',
+ 'centerDashToWs': 'false',
+ 'showAppsIconPosition': '1',
+ 'wsThumbnailScale': '10',
+ 'wsThumbnailScaleAppGrid': '10',
+ 'secWsThumbnailScale': '10',
+ 'showSearchEntry': 'false',
+ 'centerSearch': 'true',
+ 'centerAppGrid': 'false',
+ 'dashBgOpacity': '100',
+ 'dashBgColor': '0',
+ 'dashBgRadius': '0',
+ 'dashBgGS3Style': 'false',
+ 'runningDotStyle': '1',
+ 'showWsSwitcherBg': 'true',
+ 'showWsPreviewBg': 'true',
+ 'wsPreviewBgRadius': '30',
+ 'showBgInOverview': 'true',
+ 'overviewBgBrightness': '60',
+ 'searchBgBrightness': '30',
+ 'overviewBgBlurSigma': '80',
+ 'appGridBgBlurSigma': '80',
+ 'smoothBlurTransitions': 'false',
+ 'appGridAnimation': '4',
+ 'searchViewAnimation': '3',
+ 'workspaceAnimation': '1',
+ 'animationSpeedFactor': '100',
+ 'winPreviewIconSize': '1',
+ 'winTitlePosition': '0',
+ 'startupState': '2',
+ 'overviewMode': '2',
+ 'wsSwitcherMode': '0',
+ 'workspaceSwitcherAnimation': '1',
+ 'searchIconSize': '0',
+ 'searchViewScale': '100',
+ 'appGridIconSize': '-1',
+ 'appGridColumns': '0',
+ 'appGridRows': '0',
+ 'appGridFolderIconSize': '-1',
+ 'appGridFolderColumns': '0',
+ 'appGridFolderRows': '0',
+ 'appGridFolderIconGrid': '3',
+ 'appGridContent': '2',
+ 'appGridIncompletePages': 'false',
+ 'appGridOrder': '0',
+ 'appFolderOrder': '0',
+ 'appGridNamesMode': '1',
+ 'appGridActivePreview': 'true',
+ 'appGridFolderCenter': 'false',
+ 'appGridPageWidthScale': '80',
+ 'appGridPageHeightScale': '90',
+ 'appGridSpacing': '12',
+ 'appGridFolderSpacing': '12',
+ 'appGridShowPageArrows': 'true',
+ 'searchWindowsOrder': '1',
+ 'searchFuzzy': 'false',
+ 'searchMaxResultsRows': '5',
+ 'searchAppGridMode': '0',
+ 'dashShowWindowsBeforeActivation': '1',
+ 'dashIconScroll': '1',
+ 'dashIsolateWorkspaces': 'false',
+ 'searchWindowsIconScroll': '1',
+ 'panelVisibility': '0',
+ 'panelPosition': '0',
+ 'windowAttentionMode': '0',
+ 'wsSwPopupHPosition': '50',
+ 'wsSwPopupVPosition': '95',
+ 'wsSwPopupMode': '1',
+ 'wsSwitcherWraparound': 'false',
+ 'wsSwitcherIgnoreLast': 'false',
+ 'favoritesNotify': '0',
+ 'notificationPosition': '1',
+ 'osdPosition': '6',
+ 'hotCornerAction': '1',
+ 'hotCornerPosition': '6',
+ 'hotCornerFullscreen': 'true',
+ 'hotCornerRipples': 'false',
+ 'alwaysActivateSelectedWindow': 'false',
+ 'winPreviewSecBtnAction': '2',
+ 'winPreviewMidBtnAction': '1',
+ 'winPreviewShowCloseButton': 'true',
+ 'windowIconClickAction': '1',
+ 'overlayKeyPrimary': '1',
+ 'overlayKeySecondary': '1',
+ 'overviewEscBehavior': '0',
+ 'newWindowFocusFix': 'false',
+ 'newWindowMonitorFix': '0',
+ 'highlightingStyle': '1',
+
+ 'workspaceSwitcherPopupModule': 'true',
+ 'workspaceAnimationModule': 'true',
+ 'workspaceModule': 'true',
+ 'windowManagerModule': 'true',
+ 'windowPreviewModule': 'true',
+ 'windowAttentionHandlerModule': 'true',
+ 'swipeTrackerModule': 'true',
+ 'searchControllerModule': 'true',
+ 'searchModule': 'true',
+ 'panelModule': 'true',
+ 'overlayKeyModule': 'true',
+ 'osdWindowModule': 'true',
+ 'messageTrayModule': 'true',
+ 'layoutModule': 'true',
+ 'dashModule': 'true',
+ 'appFavoritesModule': 'true',
+ 'appDisplayModule': 'true'
+ }</default>
+ </key>
+
+ </schema>
+</schemalist>
diff --git a/extensions/47/vertical-workspaces/screenshots/screenshot.jpg b/extensions/47/vertical-workspaces/screenshots/screenshot.jpg
new file mode 100644
index 0000000..b10585e
--- /dev/null
+++ b/extensions/47/vertical-workspaces/screenshots/screenshot.jpg
Binary files differ
diff --git a/extensions/47/vertical-workspaces/screenshots/screenshot0.jpg b/extensions/47/vertical-workspaces/screenshots/screenshot0.jpg
new file mode 100644
index 0000000..866298b
--- /dev/null
+++ b/extensions/47/vertical-workspaces/screenshots/screenshot0.jpg
Binary files differ
diff --git a/extensions/47/vertical-workspaces/screenshots/screenshot0.png b/extensions/47/vertical-workspaces/screenshots/screenshot0.png
new file mode 100644
index 0000000..b6af4b9
--- /dev/null
+++ b/extensions/47/vertical-workspaces/screenshots/screenshot0.png
Binary files differ
diff --git a/extensions/47/vertical-workspaces/screenshots/screenshot1.png b/extensions/47/vertical-workspaces/screenshots/screenshot1.png
new file mode 100644
index 0000000..a23c76f
--- /dev/null
+++ b/extensions/47/vertical-workspaces/screenshots/screenshot1.png
Binary files differ
diff --git a/extensions/47/vertical-workspaces/screenshots/screenshot2.png b/extensions/47/vertical-workspaces/screenshots/screenshot2.png
new file mode 100644
index 0000000..58b2887
--- /dev/null
+++ b/extensions/47/vertical-workspaces/screenshots/screenshot2.png
Binary files differ
diff --git a/extensions/47/vertical-workspaces/screenshots/screenshot3.png b/extensions/47/vertical-workspaces/screenshots/screenshot3.png
new file mode 100644
index 0000000..3d8f48a
--- /dev/null
+++ b/extensions/47/vertical-workspaces/screenshots/screenshot3.png
Binary files differ
diff --git a/extensions/47/vertical-workspaces/screenshots/screenshot4.png b/extensions/47/vertical-workspaces/screenshots/screenshot4.png
new file mode 100644
index 0000000..e4e5f4f
--- /dev/null
+++ b/extensions/47/vertical-workspaces/screenshots/screenshot4.png
Binary files differ
diff --git a/extensions/47/vertical-workspaces/screenshots/screenshot5.png b/extensions/47/vertical-workspaces/screenshots/screenshot5.png
new file mode 100644
index 0000000..e6ecb55
--- /dev/null
+++ b/extensions/47/vertical-workspaces/screenshots/screenshot5.png
Binary files differ
diff --git a/extensions/47/vertical-workspaces/screenshots/vertical-workspaces.gif b/extensions/47/vertical-workspaces/screenshots/vertical-workspaces.gif
new file mode 100644
index 0000000..c97c653
--- /dev/null
+++ b/extensions/47/vertical-workspaces/screenshots/vertical-workspaces.gif
Binary files differ
diff --git a/extensions/47/vertical-workspaces/stylesheet.css b/extensions/47/vertical-workspaces/stylesheet.css
new file mode 100644
index 0000000..9aa1a99
--- /dev/null
+++ b/extensions/47/vertical-workspaces/stylesheet.css
@@ -0,0 +1,449 @@
+/*
+* V-Shell (Vertical Workspaces)
+* stylesheet.css
+*/
+
+/* General dash */
+#dash.vertical {
+ margin: 0px;
+ padding: 0px;
+}
+
+#dash.vertical .app-well-app,
+#dash.vertical .show-apps {
+ /* left/right padding exceeds dash bg by 6px
+ to cover the spacing between dash and the edge of the screen
+ so the icons will be selectable even at the edge
+ this spacing must be accounted for in overview allocate() */
+ padding-right: 24px;
+ padding-left: 24px;
+ /*spacing between icons*/
+ padding-top: 1px;
+ padding-bottom: 1px;
+ margin: 0px;
+}
+
+#dash.vertical .dash-separator {
+ height: 1px;
+ margin-right: 2px;
+ margin-left: 2px;
+ margin-top: 4px;
+ margin-bottom: 4px;
+}
+
+#dash.vertical .overview-icon {
+ padding: 5px 0;
+}
+
+#dash.vertical .app-well-app-running-dot {
+ margin: 4px 0px;
+}
+
+#dash.vertical .app-grid-running-dot-custom {
+ margin: 4px 0px;
+ width: 2px;
+ height: 16px;
+}
+
+#dash.vertical .dash-background {
+ margin: 0px;
+}
+
+#dash.vertical-gs3-left .dash-background {
+ border-radius: 0 18px 18px 0;
+ border-left: 0px;
+ padding: 8px 12px 8px 4px;
+ margin-left: 0;
+}
+
+#dash.vertical-gs3-right .dash-background {
+ border-radius: 18px 0 0 18px;
+ border-right: 0px;
+ padding: 8px 4px 8px 12px;
+ margin-right: 0;
+}
+
+#dash.vertical-gs3-left {
+ margin-right: 12px;
+ margin-left: 0px;
+ padding: 0px;
+}
+
+#dash.vertical-gs3-right {
+ margin-right: 0px;
+ margin-left: 12px;
+ padding: 0px;
+}
+
+#dash.vertical-gs3-left .app-well-app,
+#dash.vertical-gs3-left .show-apps,
+#dash.vertical-gs3-right .app-well-app,
+#dash.vertical-gs3-right .show-apps {
+ /* left/right padding exceeds dash bg by 6px to
+ cover spacing between dash icons and the edge of the screen
+ so the icons will be selectable even at the edge
+ this spacing must be accounted for in overview allocate() */
+ padding: 0;
+ padding-right: 9px;
+ padding-left: 9px;
+}
+
+.dash-background-light {
+ background-color: rgb(200, 200, 200);
+ border-color: rgba(150, 150, 150, 0.4);
+}
+
+.app-grid-running-dot-custom {
+ width: 16px;
+ height: 2px;
+}
+
+.dash-label {
+ border-radius: 14px;
+}
+
+/* add shadow to the app grid app label to be readable if it overlaps light icon below */
+.overview-icon-with-label, .folder-name-label {
+ text-shadow: 1px 1px 3px rgba(33, 33, 33, 0.5);
+}
+
+/* adjustment for the vertical ws switcher indicator popup */
+.ws-switcher-indicator {
+ padding: 3px;
+ margin: 5px;
+}
+
+.ws-switcher-indicator:active {
+ padding: 5px;
+ margin: 3px;
+}
+
+/* ws thumbnails captions */
+.ws-tmb-label {
+ padding: 2px;
+ color: rgb(255, 255, 255);
+ background-color: rgba(40,40,40,0.8);
+ text-align: center;
+}
+
+.workspace-thumbnail-indicator {
+ border-radius: 6px;
+}
+
+.ws-tmb-labeled {
+ border: 0px;
+}
+
+.ws-tmb-transparent {
+ border: 0px;
+ background-color: rgba(200, 200, 200, 0.16);
+}
+
+/* app grid page indicators */
+.page-indicator-icon {
+ margin: 0px;
+}
+
+.page-indicator {
+ padding: 0px;
+}
+
+.page-indicators {
+ spacing: 20px;
+ margin: 0;
+}
+
+.page-indicators-horizontal {
+ margin-top: 0px;
+ margin-bottom: 10px;
+}
+
+.page-indicators-vertical {
+ margin-left: 0px;
+ margin-right: 10px;
+}
+
+.search-entry{
+ margin: 0;
+ margin-top: 12px;
+ margin-bottom: 6px;
+ background-color: rgba(200, 200, 200, 0.1);
+ color: white;
+ border-color: rgba(160, 160, 160, 0.4);
+}
+
+.search-entry StLabel.hint-text {
+ color: rgba(200, 200, 200, 0.5);
+}
+
+.search-entry:hover,
+.search-entry:focus {
+ background-color: rgba(200, 200, 200, 0.1);
+}
+
+.search-entry-om2 {
+ color: white;
+ background-color: rgba(40, 40, 40, 1);
+}
+
+.search-entry-om2:hover,
+.search-entry-om2:focus {
+ background-color: rgba(50, 50, 50, 1);
+}
+
+/* for static ws mode */
+/*.search-section-content-bg,*/
+.search-section-content-bg-om2 {
+ border-radius: 26px;
+ border: 1px, rgb(60, 60, 60);
+ padding-top: 15px;
+ background-color: rgb(40, 40, 40);
+}
+
+/* Reduce edge fading of search results scroll view */
+.vfade { -st-vfade-offset: 34px; }
+.hfade { -st-hfade-offset: 34px; }
+
+StButton#vhandle,
+.search-section-content {
+ background-color: rgba(200, 200, 200, 0.08);
+ border: solid 1px rgba(150, 150, 150, 0.3);
+}
+
+.search-section {
+ spacing: 12px;
+}
+
+/* "no results" / "searching..." text*/
+.search-statustext, .search-statustext-om2 {
+ background-color: rgba(200, 200, 200, 0.08);
+ color: white;
+ margin-top: 50px;
+ padding: 30px;
+ border-radius: 20px;
+ text-shadow: 0px 0px 5px rgb(23, 23, 23);
+}
+
+.search-statustext-om2 {
+ background-color: rgb(40, 40, 40);
+ border: 1px rgba(200, 200, 200, 0.1);
+}
+
+#panel:overview, .transparent-panel {
+ background-color: transparent;
+}
+
+/* reduce spacing between app icons in search results */
+.grid-search-results {
+ spacing: 8px;
+ margin-left: 12px;
+ margin-right: 12px;
+}
+
+.show-apps-icon-horizontal-hide {
+ width: 0;
+ margin: 0;
+ spacing: 0;
+}
+
+.show-apps-icon-vertical-hide {
+ height: 0;
+ margin: 0;
+ spacing: 0;
+}
+
+.workspace-close-button {
+ color: white;
+ background-color: dimgrey;
+ width: 18px;
+ height: 18px;
+ padding: 2px;
+ margin: 2px;
+ box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
+ border: 0px;
+ border-radius: 35px;
+}
+
+.workspace-close-button-hover {
+ background-color: rgb(255, 0, 0);
+}
+
+/* ws tmb placeholder */
+.placeholder-vertical {
+ background-size: contain;
+ height: 18px;
+}
+
+.prev-page-indicator {
+ background-gradient-start: transparent;
+ background-gradient-end: rgba(255, 255, 255, 0.05);
+ background-gradient-direction: vertical;
+ border-radius: 0px 0px 30px 30px;
+}
+.next-page-indicator {
+ background-gradient-start: rgba(255, 255, 255, 0.05);
+ background-gradient-end: transparent;
+ background-gradient-direction: vertical;
+ border-radius: 30px 30px 0px 0px;
+
+}
+
+/* reduce size of hot corner ripples to half */
+.ripple-box {
+ width: 26px;
+ height: 26px;
+}
+
+.osd-window {
+ margin: 4em;
+ margin-bottom: 8em; /* avoid overlap with dock extension */
+}
+
+.app-folder-dialog-container {
+ padding: 18px;
+}
+
+.app-folder-dialog {
+ border-color: rgba(160, 160, 160, 0.3);
+}
+
+.folder-name-container {
+ spacing: 12px;
+}
+
+/* 46 changes the default bg color from transparent to the solid color blending with widget background */
+#dash.dash-46 .show-apps,
+#dash.dash-46 .overview-tile,
+#dash.dash-46 .overview-icon,
+.app-folder-45 .overview-icon, /* 45 only */
+.app-folder-46 .overview-icon,
+.page-navigation-arrow,
+.search-provider-icon,
+.list-search-result,
+.grid-search-result,
+.overview-tile {
+ background-color: transparent;
+ }
+
+ /* Needed only for 46+, but doesn't hurt 45 */
+#dash.dash-46 .overview-tile:hover .overview-icon,
+#dash.dash-46 .overview-tile:focus .overview-icon,
+#dash.dash-46 .overview-tile:selected .overview-icon,
+#dash.dash-46 .show-apps:hover .overview-icon,
+#dash.dash-46 .show-apps:focus .overview-icon,
+#dash.dash-46 .show-apps:selected .overview-icon,
+.edit-folder-button:hover,
+.page-navigation-arrow:hover,
+.search-provider-icon:hover,
+.search-provider-icon:focus,
+.search-provider-icon:selected,
+.list-search-result:hover,
+.list-search-result:focus,
+.list-search-result:selected,
+.app-display-46 .overview-tile:hover,
+.app-display-46 .overview-tile:focus,
+.app-display-46 .overview-tile:selected,
+.app-folder-46:hover,
+.app-folder-45:hover .overview-icon,
+.app-folder-45:focus .overview-icon,
+#searchResults .overview-tile:hover,
+#searchResults .overview-tile:focus,
+#searchResults .overview-tile:selected,
+.grid-search-result-46:hover,
+.grid-search-result-46:focus,
+.grid-search-result-46:selected,
+.app-folder-dialog .overview-tile:hover,
+.app-folder-dialog .overview-tile:focus,
+.app-folder-dialog .overview-tile:selected,
+.overview-icon:hover,
+.overview-icon:focus,
+.overview-icon:selected {
+ background-color: rgba(200, 200, 200, 0.15);
+ }
+
+.overview-tile:drop, /* 46 needs to add color so the highlighting style is visible on the app folder preview */
+.app-folder-dialog,
+.edit-folder-button,
+.folder-name-entry,
+.app-folder-46,
+.app-folder-46 .overview-tile,
+.app-folder-45 .overview-icon,
+.edit-folder-button,
+.folder-name-entry {
+ background-color: rgba(200, 200, 200, 0.08);
+}
+
+
+#dash.vertical-46 {
+ margin: 0px;
+ padding: 0px;
+}
+
+#dash.vertical-46-gs3-left {
+ margin-left: 0px;
+ margin-right: 12px;
+}
+
+#dash.vertical-46-gs3-right {
+ margin-right: 0px;
+ margin-left: 12px;
+}
+
+#dash.vertical-46 .overview-tile,
+#dash.vertical-46 .show-apps {
+ margin: 0px;
+ background-color: transparent;
+ /* this padding should keep the dash 6px from the screen edge */
+ padding: 0, 24px;
+}
+
+#dash.vertical-46 .dash-separator {
+ height: 1px;
+ margin-right: 2px;
+ margin-left: 2px;
+ margin-top: 4px;
+ margin-bottom: 4px;
+}
+
+#dash.vertical-46 .app-grid-running-dot {
+ margin: 0px;
+ offset-y: 0;
+}
+
+#dash.vertical-46 .app-grid-running-dot-custom {
+ margin: 0px;
+ width: 2px;
+ height: 16px;
+ offset-y: 0;
+}
+
+#dash.vertical-46 .dash-background {
+ padding: 12px;
+ margin: 0;
+}
+
+#dash.vertical-46-gs3-left .overview-tile,
+#dash.vertical-46-gs3-left .show-apps {
+ /* this padding should extend the icon tile to the edge of the dash background */
+ padding: 0, 12px;
+}
+
+#dash.vertical-46-gs3-right .overview-tile,
+#dash.vertical-46-gs3-right .show-apps {
+ padding: 0, 12px;
+}
+
+#dash.vertical-46-gs3-left .dash-background {
+ border-radius: 0 18px 18px 0;
+ border-left: 0px;
+}
+
+#dash.vertical-46-gs3-right .dash-background {
+ border-radius: 18px 0 0 18px;
+ border-right: 0px;
+}
+
+/* reverse padding */
+.ws-switcher-vertical {
+ padding: 18px 12px
+}