summaryrefslogtreecommitdiffstats
path: root/extensions/47/middleclickclose
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/47/middleclickclose')
-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
21 files changed, 1773 insertions, 0 deletions
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);