├── TODO.md ├── po ├── LINGUAS ├── POTFILES ├── meson.build ├── soft-brightness.pot ├── cs.po ├── fa.po ├── nl.po ├── tr.po └── fr.po ├── meson-gse ├── .gitignore ├── po │ └── meson.build ├── git-subtree-push ├── git-subtree-pull ├── meson-gse ├── meson-scripts │ └── make-extension ├── lib │ ├── logger.js │ └── convenience.js ├── meson.build.m4 ├── README.md └── LICENSE ├── .gitignore ├── docs ├── icon.png ├── preferences.png └── soft-brightness.png ├── .gitattributes ├── .travis.yml ├── src ├── metadata.json.in ├── utils.js └── prefs.js ├── meson-gse.build ├── schemas └── org.gnome.shell.extensions.soft-brightness.gschema.xml ├── meson.build ├── README.md ├── dbus-interfaces └── org.gnome.Mutter.DisplayConfig.xml └── LICENSE /TODO.md: -------------------------------------------------------------------------------- 1 | = Todo, bugs 2 | 3 | None so far. 4 | -------------------------------------------------------------------------------- /po/LINGUAS: -------------------------------------------------------------------------------- 1 | cs 2 | fa 3 | fr 4 | nl 5 | tr 6 | -------------------------------------------------------------------------------- /meson-gse/.gitignore: -------------------------------------------------------------------------------- 1 | \#*# 2 | .#* 3 | *~ 4 | *.backup 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | \#*# 2 | .#* 3 | *~ 4 | *.backup 5 | 6 | /build 7 | -------------------------------------------------------------------------------- /docs/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/F-i-f/soft-brightness/master/docs/icon.png -------------------------------------------------------------------------------- /docs/preferences.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/F-i-f/soft-brightness/master/docs/preferences.png -------------------------------------------------------------------------------- /docs/soft-brightness.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/F-i-f/soft-brightness/master/docs/soft-brightness.png -------------------------------------------------------------------------------- /po/POTFILES: -------------------------------------------------------------------------------- 1 | src/extension.js 2 | src/prefs.js 3 | src/utils.js 4 | schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml 5 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | /docs/** linguist-documentation 2 | /meson-gse/** linguist-vendored 3 | /meson.build linguist-generated 4 | /po/meson.build linguist-generated 5 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | git: 2 | depth: 1 3 | quiet: true 4 | 5 | branches: 6 | only: 7 | - master 8 | 9 | language: python 10 | 11 | python: 3.7 12 | 13 | script: 14 | - pip3 install ninja meson 15 | - ./meson-gse/meson-gse 16 | - meson build 17 | - ninja -C build test install extension.zip 18 | 19 | matrix: 20 | include: 21 | - os: linux 22 | dist: xenial 23 | -------------------------------------------------------------------------------- /po/meson.build: -------------------------------------------------------------------------------- 1 | # meson-gse - Library for gnome-shell extensions 2 | # Copyright (C) 2019, 2021 Philippe Troin (F-i-f on Github) 3 | # 4 | # This program is free software: you can redistribute it and/or modify 5 | # it under the terms of the GNU General Public License as published by 6 | # the Free Software Foundation, either version 3 of the License, or 7 | # (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program. If not, see . 16 | 17 | i18n.gettext(gse_gettext_domain, preset: 'glib', install: true, install_dir: gse_target_locale_dir) 18 | -------------------------------------------------------------------------------- /meson-gse/po/meson.build: -------------------------------------------------------------------------------- 1 | # meson-gse - Library for gnome-shell extensions 2 | # Copyright (C) 2019, 2021 Philippe Troin (F-i-f on Github) 3 | # 4 | # This program is free software: you can redistribute it and/or modify 5 | # it under the terms of the GNU General Public License as published by 6 | # the Free Software Foundation, either version 3 of the License, or 7 | # (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program. If not, see . 16 | 17 | i18n.gettext(gse_gettext_domain, preset: 'glib', install: true, install_dir: gse_target_locale_dir) 18 | -------------------------------------------------------------------------------- /meson-gse/git-subtree-push: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # meson-gse - Library for gnome-shell extensions 4 | # Copyright (C) 2019, 2022 Philippe Troin (F-i-f on Github) 5 | # 6 | # This program is free software: you can redistribute it and/or modify 7 | # it under the terms of the GNU General Public License as published by 8 | # the Free Software Foundation, either version 3 of the License, or 9 | # (at your option) any later version. 10 | # 11 | # This program is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | # GNU General Public License for more details. 15 | # 16 | # You should have received a copy of the GNU General Public License 17 | # along with this program. If not, see . 18 | 19 | set -eu 20 | git subtree push -P meson-gse git@github.com:F-i-f/meson-gse.git master 21 | -------------------------------------------------------------------------------- /meson-gse/git-subtree-pull: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # meson-gse - Library for gnome-shell extensions 4 | # Copyright (C) 2019 Philippe Troin (F-i-f on Github) 5 | # 6 | # This program is free software: you can redistribute it and/or modify 7 | # it under the terms of the GNU General Public License as published by 8 | # the Free Software Foundation, either version 3 of the License, or 9 | # (at your option) any later version. 10 | # 11 | # This program is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | # GNU General Public License for more details. 15 | # 16 | # You should have received a copy of the GNU General Public License 17 | # along with this program. If not, see . 18 | 19 | set -eu 20 | git subtree pull -P meson-gse -m "Pull from meson-gse." git@github.com:F-i-f/meson-gse.git master 21 | -------------------------------------------------------------------------------- /src/metadata.json.in: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Add or override the brightness slider to change the brightness via an alpha layer (and optionally stop using or cooperate with the exising backlight, if present).\nEither internal, external or all monitors can be dimmed.\nSee the GitHub page for details.\n\nNote that this extension will keep running on the lock screen, as you'd also want the brightness setting to apply to the lock screen as well. Please report on GitHub if this gives you any trouble.", 3 | "gettext-domain": "@gettext_domain@", 4 | "name": "Soft brightness", 5 | "settings-schema": "org.gnome.shell.extensions.soft-brightness", 6 | "shell-version": [ 7 | "3.33.90", 8 | "3.34", 9 | "3.35.1", 10 | "3.35.92", 11 | "3.36", 12 | "3.38", 13 | "40", 14 | "41", 15 | "42" 16 | ], 17 | "url": "https://github.com/F-i-f/soft-brightness", 18 | "uuid": "@uuid@", 19 | "vcs_revision": "@VCS_TAG@", 20 | "version": @version@ 21 | } 22 | -------------------------------------------------------------------------------- /meson-gse.build: -------------------------------------------------------------------------------- 1 | # Soft-brightness - Control the display's brightness via an alpha channel. 2 | # Copyright (C) 2019-2022 Philippe Troin (F-i-f on Github) 3 | # 4 | # This program is free software: you can redistribute it and/or modify 5 | # it under the terms of the GNU General Public License as published by 6 | # the Free Software Foundation, either version 3 of the License, or 7 | # (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program. If not, see . 16 | 17 | gse_project({soft-brightness}, 18 | {fifi.org}, 19 | {30}, 20 | { 21 | gse_sources += files('src/utils.js') 22 | gse_libs += [gse_lib_logger] 23 | gse_data += [] 24 | gse_schemas += [] 25 | gse_dbus_interfaces += [files('dbus-interfaces/org.gnome.Mutter.DisplayConfig.xml')] 26 | }) 27 | -------------------------------------------------------------------------------- /meson-gse/meson-gse: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # meson-gse - Library for gnome-shell extensions 4 | # Copyright (C) 2019 Philippe Troin (F-i-f on Github) 5 | # 6 | # This program is free software: you can redistribute it and/or modify 7 | # it under the terms of the GNU General Public License as published by 8 | # the Free Software Foundation, either version 3 of the License, or 9 | # (at your option) any later version. 10 | # 11 | # This program is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | # GNU General Public License for more details. 15 | # 16 | # You should have received a copy of the GNU General Public License 17 | # along with this program. If not, see . 18 | 19 | set -eu 20 | 21 | progname="${0##*/}" 22 | project_base="$(cd "$(dirname "$0")"/.. && pwd)" 23 | gse_lib_base="$project_base"/meson-gse 24 | 25 | if [ -d "$project_base/po" ] 26 | then 27 | cp -a "$gse_lib_base"/po/meson.build "$project_base/po/" 28 | fi 29 | 30 | exitcode=0 31 | target="$project_base/meson.build" 32 | m4 -P "$gse_lib_base/meson.build.m4" "$project_base/meson-gse.build" > "$target" || exitcode=$? 33 | if [ $exitcode -ne 0 ] 34 | then 35 | rm -f "$target" 36 | exit $exitcode 37 | fi 38 | -------------------------------------------------------------------------------- /meson-gse/meson-scripts/make-extension: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # meson-gse - Library for gnome-shell extensions 4 | # Copyright (C) 2019 Philippe Troin (F-i-f on Github) 5 | # 6 | # This program is free software: you can redistribute it and/or modify 7 | # it under the terms of the GNU General Public License as published by 8 | # the Free Software Foundation, either version 3 of the License, or 9 | # (at your option) any later version. 10 | # 11 | # This program is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | # GNU General Public License for more details. 15 | # 16 | # You should have received a copy of the GNU General Public License 17 | # along with this program. If not, see . 18 | 19 | set -eu 20 | 21 | progname="${0##*/}" 22 | 23 | if [ $# != 3 ] 24 | then 25 | echo 1>&2 "usage: $progname " 26 | exit 1 27 | fi 28 | 29 | install_dir="$1" 30 | output_dir="$(cd "$2" && pwd)" 31 | output_file="$3" 32 | 33 | tmpdir="" 34 | clean() { 35 | local xit=$? xit2=0 36 | rm -fr "$tmpdir" || xit2=$? 37 | if [ "$xit" -eq 0 ] 38 | then 39 | xit=$xit2 40 | fi 41 | trap - EXIT 42 | exit $xit 43 | } 44 | 45 | trap clean INT TERM HUP QUIT EXIT 46 | 47 | tmpdir="$(mktemp -d "$(pwd)/make-extension-XXXXXXX.tmp")" 48 | DESTDIR="$tmpdir" ninja install 49 | cd "$tmpdir$install_dir" && zip -r "$output_dir/$output_file" * 50 | -------------------------------------------------------------------------------- /meson-gse/lib/logger.js: -------------------------------------------------------------------------------- 1 | // meson-gse - Library for gnome-shell extensions 2 | // Copyright (C) 2019-2021 Philippe Troin (F-i-f on Github) 3 | // 4 | // This program is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // This program is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU General Public License 15 | // along with this program. If not, see . 16 | 17 | const ExtensionUtils = imports.misc.extensionUtils; 18 | const GLib = imports.gi.GLib; 19 | 20 | const Me = ExtensionUtils.getCurrentExtension(); 21 | 22 | var Logger = class MesonGseLogger { 23 | constructor(title) { 24 | this._first_log = true; 25 | this._title = title; 26 | this._debug = false; 27 | } 28 | 29 | get_version() { 30 | return Me.metadata['version']+' / git '+Me.metadata['vcs_revision']; 31 | } 32 | 33 | log(text) { 34 | if (this._first_log) { 35 | this._first_log = false; 36 | let msg = 'version ' + this.get_version(); 37 | let gnomeShellVersion = imports.misc.config.PACKAGE_VERSION; 38 | if (gnomeShellVersion != undefined) { 39 | msg += ' on Gnome-Shell ' + gnomeShellVersion; 40 | } 41 | let gjsVersion = imports.system.version; 42 | if (gjsVersion != undefined) { 43 | let gjsVersionMajor = Math.floor(gjsVersion / 10000); 44 | let gjsVersionMinor = Math.floor((gjsVersion % 10000) / 100); 45 | let gjsVersionPatch = gjsVersion % 100; 46 | msg +=( ' / gjs ' + gjsVersionMajor 47 | + '.' +gjsVersionMinor 48 | + '.' +gjsVersionPatch 49 | + ' ('+gjsVersion+')'); 50 | } 51 | let sessionType = GLib.getenv('XDG_SESSION_TYPE'); 52 | if (sessionType != undefined) { 53 | msg += ' / ' + sessionType; 54 | } 55 | this.log(msg); 56 | } 57 | log(''+this._title+': '+text); 58 | } 59 | 60 | log_debug(text) { 61 | if (this._debug) { 62 | this.log(text); 63 | } 64 | } 65 | 66 | set_debug(debug) { 67 | this._debug = debug; 68 | } 69 | 70 | get_debug() { 71 | return this._debug; 72 | } 73 | }; 74 | -------------------------------------------------------------------------------- /src/utils.js: -------------------------------------------------------------------------------- 1 | // Soft-brightness - Control the display's brightness via an alpha channel. 2 | // Copyright (C) 2019, 2021 Philippe Troin (F-i-f on Github) 3 | // 4 | // This program is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // This program is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU General Public License 15 | // along with this program. If not, see . 16 | 17 | const ByteArray = imports.byteArray; 18 | const Gio = imports.gi.Gio; 19 | 20 | const ExtensionUtils = imports.misc.extensionUtils; 21 | const Me = ExtensionUtils.getCurrentExtension(); 22 | 23 | let cachedDisplayConfigProxy = null; 24 | 25 | function getDisplayConfigProxy() { 26 | if (cachedDisplayConfigProxy == null) { 27 | let xml = null; 28 | let file = Gio.File.new_for_path(Me.path + '/dbus-interfaces/org.gnome.Mutter.DisplayConfig.xml'); 29 | try { 30 | let [ok, bytes] = file.load_contents(null); 31 | if (ok) { 32 | xml = ByteArray.toString(bytes); 33 | } 34 | } catch(e) { 35 | log('failed to load DisplayConfig interface XML'); 36 | return; 37 | } 38 | cachedDisplayConfigProxy = Gio.DBusProxy.makeProxyWrapper(xml); 39 | 40 | } 41 | return cachedDisplayConfigProxy; 42 | } 43 | 44 | function newDisplayConfig(callback) { 45 | let displayConfigProxy = getDisplayConfigProxy(); 46 | return new displayConfigProxy(Gio.DBus.session, 47 | 'org.gnome.Mutter.DisplayConfig', 48 | '/org/gnome/Mutter/DisplayConfig', 49 | callback); 50 | } 51 | 52 | function getMonitorConfig(displayConfigProxy, callback) { 53 | displayConfigProxy.GetResourcesRemote((function(result) { 54 | if (result.length <= 2) { 55 | callback(null, "Cannot get DisplayConfig: No outputs in GetResources()"); 56 | } else { 57 | let monitors = []; 58 | for (let i=0; i < result[2].length; ++i) { 59 | let output = result[2][i]; 60 | if (output.length <= 7) { 61 | callback(null, "Cannot get DisplayConfig: No properties on output #"+i); 62 | return; 63 | } 64 | let props = output[7]; 65 | let display_name = props['display-name'].get_string()[0]; 66 | let connector_name = output[4]; 67 | if (! display_name || display_name == "") { 68 | let display_name = "Monitor on output "+connector_name; 69 | } 70 | monitors.push([display_name, connector_name]); 71 | } 72 | callback(monitors, null); 73 | } 74 | }).bind(this)); 75 | } 76 | -------------------------------------------------------------------------------- /schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | false 15 | Use backlight control. 16 | Use the regular backlight control. 17 | 18 | 19 | "all" 20 | Monitors. 21 | The monitors whose brightness should be adjusted. 22 | 23 | 24 | "" 25 | Builtin monitor. 26 | The name of the built-in monitor. 27 | 28 | 29 | "when-correcting" 30 | Prevent window unredirecting behavior. 31 | If set to never, unredirection is never 32 | prevented. If set to when-correcting, unredirection will be 33 | prevented when the brightness is not at the maximum setting (and 34 | an alpha layer is lowering the brightness). If set to always, 35 | window unredirection will always be prevented when this 36 | extension is active, allowing tear-free display. 37 | 38 | 39 | 40 | 0.1 41 | Minimum brightness. 42 | Minimum brightness level. 43 | 44 | 45 | 46 | 1 47 | Current brightness level. 48 | The current brightness level. 49 | 50 | 51 | true 52 | Mouse cursor brightness control. 53 | When enabled, the mouse cursor follows the 54 | brightness setting. When disabled, the mouse cursor always 55 | remains at full brightness. Controlling mouse cursor brightness 56 | can sometimes show the wrong cursor and introduce cursor lag. 57 | You may want to disable it if you encounter cursor issues. Note 58 | that if another Gnome Shell component clones the mouse (like the 59 | Zoom accessibility feature), the cursor will follow the screen 60 | brightness. 61 | 62 | 63 | 64 | false 65 | Debugging. 66 | Enable debugging for the extension. 67 | 68 | 69 | 70 | 71 | 73 | -------------------------------------------------------------------------------- /meson-gse/lib/convenience.js: -------------------------------------------------------------------------------- 1 | /* -*- mode: js; js-basic-offset: 4; indent-tabs-mode: nil -*- */ 2 | /* 3 | Copyright (c) 2011-2012, Giovanni Campagna 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are met: 7 | * Redistributions of source code must retain the above copyright 8 | notice, this list of conditions and the following disclaimer. 9 | * Redistributions in binary form must reproduce the above copyright 10 | notice, this list of conditions and the following disclaimer in the 11 | documentation and/or other materials provided with the distribution. 12 | * Neither the name of the GNOME nor the 13 | names of its contributors may be used to endorse or promote products 14 | derived from this software without specific prior written permission. 15 | 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 17 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 18 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 19 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY 20 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 21 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 22 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 23 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 25 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 | */ 27 | 28 | const Gettext = imports.gettext; 29 | const Gio = imports.gi.Gio; 30 | 31 | const Config = imports.misc.config; 32 | const ExtensionUtils = imports.misc.extensionUtils; 33 | 34 | /** 35 | * initTranslations: 36 | * @domain: (optional): the gettext domain to use 37 | * 38 | * Initialize Gettext to load translations from extensionsdir/locale. 39 | * If @domain is not provided, it will be taken from metadata['gettext-domain'] 40 | */ 41 | function initTranslations(domain) { 42 | let extension = ExtensionUtils.getCurrentExtension(); 43 | 44 | domain = domain || extension.metadata['gettext-domain']; 45 | 46 | // check if this extension was built with "make zip-file", and thus 47 | // has the locale files in a subfolder 48 | // otherwise assume that extension has been installed in the 49 | // same prefix as gnome-shell 50 | let localeDir = extension.dir.get_child('locale'); 51 | if (localeDir.query_exists(null)) 52 | Gettext.bindtextdomain(domain, localeDir.get_path()); 53 | else 54 | Gettext.bindtextdomain(domain, Config.LOCALEDIR); 55 | } 56 | 57 | /** 58 | * getSettings: 59 | * @schema: (optional): the GSettings schema id 60 | * 61 | * Builds and return a GSettings schema for @schema, using schema files 62 | * in extensionsdir/schemas. If @schema is not provided, it is taken from 63 | * metadata['settings-schema']. 64 | */ 65 | function getSettings(schema) { 66 | let extension = ExtensionUtils.getCurrentExtension(); 67 | 68 | schema = schema || extension.metadata['settings-schema']; 69 | 70 | const GioSSS = Gio.SettingsSchemaSource; 71 | 72 | // check if this extension was built with "make zip-file", and thus 73 | // has the schema files in a subfolder 74 | // otherwise assume that extension has been installed in the 75 | // same prefix as gnome-shell (and therefore schemas are available 76 | // in the standard folders) 77 | let schemaDir = extension.dir.get_child('schemas'); 78 | let schemaSource; 79 | if (schemaDir.query_exists(null)) 80 | schemaSource = GioSSS.new_from_directory(schemaDir.get_path(), 81 | GioSSS.get_default(), 82 | false); 83 | else 84 | schemaSource = GioSSS.get_default(); 85 | 86 | let schemaObj = schemaSource.lookup(schema, true); 87 | if (!schemaObj) 88 | throw new Error('Schema ' + schema + ' could not be found for extension ' 89 | + extension.metadata.uuid + '. Please check your installation.'); 90 | 91 | return new Gio.Settings({ settings_schema: schemaObj }); 92 | } 93 | 94 | -------------------------------------------------------------------------------- /po/soft-brightness.pot: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the soft-brightness package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | #, fuzzy 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: soft-brightness\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2022-03-02 08:06-0800\n" 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 | "Last-Translator: FULL NAME \n" 14 | "Language-Team: LANGUAGE \n" 15 | "Language: \n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=UTF-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | 20 | #: src/prefs.js:51 21 | msgid "Soft Brightness" 22 | msgstr "" 23 | 24 | #: src/prefs.js:61 25 | msgid "Version" 26 | msgstr "" 27 | 28 | #: src/prefs.js:83 29 | msgid "Use backlight control:" 30 | msgstr "" 31 | 32 | #: src/prefs.js:94 33 | msgid "Monitor(s):" 34 | msgstr "" 35 | 36 | #: src/prefs.js:98 37 | msgid "All" 38 | msgstr "" 39 | 40 | #: src/prefs.js:99 41 | msgid "Built-in" 42 | msgstr "" 43 | 44 | #: src/prefs.js:100 45 | msgid "External" 46 | msgstr "" 47 | 48 | #: src/prefs.js:108 49 | msgid "Built-in monitor:" 50 | msgstr "" 51 | 52 | #: src/prefs.js:131 53 | msgid "Full-screen behavior:" 54 | msgstr "" 55 | 56 | #: src/prefs.js:135 57 | msgid "Do not enforce brightness in full-screen" 58 | msgstr "" 59 | 60 | #: src/prefs.js:136 61 | msgid "Brightness enforced in full-screen" 62 | msgstr "" 63 | 64 | #: src/prefs.js:137 65 | msgid "Brightness enforced in full-screen, always tear-free" 66 | msgstr "" 67 | 68 | #: src/prefs.js:145 69 | msgid "Minimum brightness (0..1):" 70 | msgstr "" 71 | 72 | #: src/prefs.js:164 73 | msgid "Mouse cursor brightness control:" 74 | msgstr "" 75 | 76 | #: src/prefs.js:175 77 | msgid "Debug:" 78 | msgstr "" 79 | 80 | #: src/prefs.js:188 81 | msgid "" 82 | "Copyright © 2019-2022 Philippe Troin (F-" 83 | "i-f on GitHub)" 84 | msgstr "" 85 | 86 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:15 87 | msgid "Use backlight control." 88 | msgstr "" 89 | 90 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:16 91 | msgid "Use the regular backlight control." 92 | msgstr "" 93 | 94 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:20 95 | msgid "Monitors." 96 | msgstr "" 97 | 98 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:21 99 | msgid "The monitors whose brightness should be adjusted." 100 | msgstr "" 101 | 102 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:25 103 | msgid "Builtin monitor." 104 | msgstr "" 105 | 106 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:26 107 | msgid "The name of the built-in monitor." 108 | msgstr "" 109 | 110 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:30 111 | msgid "Prevent window unredirecting behavior." 112 | msgstr "" 113 | 114 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:31 115 | msgid "" 116 | "If set to never, unredirection is never prevented. If set to when-" 117 | "correcting, unredirection will be prevented when the brightness is not at " 118 | "the maximum setting (and an alpha layer is lowering the brightness). If set " 119 | "to always, window unredirection will always be prevented when this extension " 120 | "is active, allowing tear-free display." 121 | msgstr "" 122 | 123 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:41 124 | msgid "Minimum brightness." 125 | msgstr "" 126 | 127 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:42 128 | msgid "Minimum brightness level." 129 | msgstr "" 130 | 131 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:47 132 | msgid "Current brightness level." 133 | msgstr "" 134 | 135 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:48 136 | msgid "The current brightness level." 137 | msgstr "" 138 | 139 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:52 140 | msgid "Mouse cursor brightness control." 141 | msgstr "" 142 | 143 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:53 144 | msgid "" 145 | "When enabled, the mouse cursor follows the brightness setting. When " 146 | "disabled, the mouse cursor always remains at full brightness. Controlling " 147 | "mouse cursor brightness can sometimes show the wrong cursor and introduce " 148 | "cursor lag. You may want to disable it if you encounter cursor issues. Note " 149 | "that if another Gnome Shell component clones the mouse (like the Zoom " 150 | "accessibility feature), the cursor will follow the screen brightness." 151 | msgstr "" 152 | 153 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:65 154 | msgid "Debugging." 155 | msgstr "" 156 | 157 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:66 158 | msgid "Enable debugging for the extension." 159 | msgstr "" 160 | -------------------------------------------------------------------------------- /po/cs.po: -------------------------------------------------------------------------------- 1 | # Czech translations for soft-brightness package. 2 | # Copyright (C) 2019, 2020 THE soft-brightness'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the soft-brightness package. 4 | # Philippe Troin, 2019, 2020. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: soft-brightness\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2022-03-02 08:06-0800\n" 11 | "PO-Revision-Date: 2022-03-02 08:08-0800\n" 12 | "Last-Translator: Pavel Borecki\n" 13 | "Language-Team: none\n" 14 | "Language: cs\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" 19 | 20 | #: src/prefs.js:51 21 | msgid "Soft Brightness" 22 | msgstr "Softwarová regulace jasu" 23 | 24 | #: src/prefs.js:61 25 | msgid "Version" 26 | msgstr "Verze" 27 | 28 | #: src/prefs.js:83 29 | msgid "Use backlight control:" 30 | msgstr "Použít ovládání podsvětlení:" 31 | 32 | #: src/prefs.js:94 33 | msgid "Monitor(s):" 34 | msgstr "Monitory:" 35 | 36 | #: src/prefs.js:98 37 | msgid "All" 38 | msgstr "Všechny" 39 | 40 | #: src/prefs.js:99 41 | msgid "Built-in" 42 | msgstr "Vestavěný" 43 | 44 | #: src/prefs.js:100 45 | msgid "External" 46 | msgstr "Externí" 47 | 48 | #: src/prefs.js:108 49 | msgid "Built-in monitor:" 50 | msgstr "Vestavěný displej:" 51 | 52 | #: src/prefs.js:131 53 | msgid "Full-screen behavior:" 54 | msgstr "Chování v celoobrazovkovém režimu:" 55 | 56 | #: src/prefs.js:135 57 | msgid "Do not enforce brightness in full-screen" 58 | msgstr "Nevynucovat jas v celoobrazovkovém režimu" 59 | 60 | #: src/prefs.js:136 61 | msgid "Brightness enforced in full-screen" 62 | msgstr "Vynutit úroveň jasu v celoobrazovkovém režimu" 63 | 64 | #: src/prefs.js:137 65 | msgid "Brightness enforced in full-screen, always tear-free" 66 | msgstr "Vynutit úroveň jasu v celoobrazovkovém režimu, bez zaškubávání" 67 | 68 | #: src/prefs.js:145 69 | msgid "Minimum brightness (0..1):" 70 | msgstr "Minimální jas (0..1):" 71 | 72 | #: src/prefs.js:164 73 | msgid "Mouse cursor brightness control:" 74 | msgstr "" 75 | 76 | #: src/prefs.js:175 77 | msgid "Debug:" 78 | msgstr "Ladění:" 79 | 80 | #: src/prefs.js:188 81 | msgid "" 82 | "Copyright © 2019-2022 Philippe Troin (F-" 83 | "i-f on GitHub)" 84 | msgstr "Autorská práva © 2019-2022 Philippe Troin (F-i-f na portálu GitHub)" 85 | 86 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:15 87 | msgid "Use backlight control." 88 | msgstr "Použít ovládání podsvícení." 89 | 90 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:16 91 | msgid "Use the regular backlight control." 92 | msgstr "Použít ovládání jasu v hardware." 93 | 94 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:20 95 | msgid "Monitors." 96 | msgstr "Monitory." 97 | 98 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:21 99 | msgid "The monitors whose brightness should be adjusted." 100 | msgstr "Monitory, kterých jas upravit." 101 | 102 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:25 103 | msgid "Builtin monitor." 104 | msgstr "Vestavěný displej." 105 | 106 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:26 107 | msgid "The name of the built-in monitor." 108 | msgstr "Název pro vestavěný displej." 109 | 110 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:30 111 | msgid "Prevent window unredirecting behavior." 112 | msgstr "Prevence nepřesměrovávání oken." 113 | 114 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:31 115 | msgid "" 116 | "If set to never, unredirection is never prevented. If set to when-" 117 | "correcting, unredirection will be prevented when the brightness is not at " 118 | "the maximum setting (and an alpha layer is lowering the brightness). If set " 119 | "to always, window unredirection will always be prevented when this extension " 120 | "is active, allowing tear-free display." 121 | msgstr "" 122 | "„never“: nepřesměrování není bráněno. „when-correcting“: nepřsměrování bude " 123 | "bráněno, když úroveň není na maximu (a alfa vrstva jas snižuje). „always“: " 124 | "nepřesměrovávání oken bude bráněno vždy, když je toto rozšíření aktivní, " 125 | "čímž se zabrání záškubům při zobrazování (vertikální synchronizace)." 126 | 127 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:41 128 | msgid "Minimum brightness." 129 | msgstr "Minimální jas." 130 | 131 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:42 132 | msgid "Minimum brightness level." 133 | msgstr "Minimální úroveň jasu." 134 | 135 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:47 136 | msgid "Current brightness level." 137 | msgstr "Stávající úroveň jasu." 138 | 139 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:48 140 | msgid "The current brightness level." 141 | msgstr "Stávající úroveň jasu." 142 | 143 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:52 144 | msgid "Mouse cursor brightness control." 145 | msgstr "" 146 | 147 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:53 148 | msgid "" 149 | "When enabled, the mouse cursor follows the brightness setting. When " 150 | "disabled, the mouse cursor always remains at full brightness. Controlling " 151 | "mouse cursor brightness can sometimes show the wrong cursor and introduce " 152 | "cursor lag. You may want to disable it if you encounter cursor issues. Note " 153 | "that if another Gnome Shell component clones the mouse (like the Zoom " 154 | "accessibility feature), the cursor will follow the screen brightness." 155 | msgstr "" 156 | 157 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:65 158 | msgid "Debugging." 159 | msgstr "Ladění." 160 | 161 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:66 162 | msgid "Enable debugging for the extension." 163 | msgstr "Zapnout ladící režim rozšíření." 164 | -------------------------------------------------------------------------------- /po/fa.po: -------------------------------------------------------------------------------- 1 | # Persian translations for Soft Brightness. 2 | # Copyright (C) 2020 soft-brightness 3 | # This file is distributed under the same license as the soft-brightness package. 4 | # Mahdi Hosseinzadeh , 2020. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: soft-brightness\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2022-03-02 08:06-0800\n" 11 | "PO-Revision-Date: 2020-10-30 14:00+0330\n" 12 | "Last-Translator: Mahdi Hosseinzadeh\n" 13 | "Language-Team: \n" 14 | "Language: fa\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Generator: Poedit 2.4.1\n" 19 | "Plural-Forms: nplurals=2; plural=(n==0 || n==1);\n" 20 | 21 | #: src/prefs.js:51 22 | msgid "Soft Brightness" 23 | msgstr "روشنایی ملایم" 24 | 25 | #: src/prefs.js:61 26 | msgid "Version" 27 | msgstr "نسخه" 28 | 29 | #: src/prefs.js:83 30 | msgid "Use backlight control:" 31 | msgstr "ادغام در کنترل روشنایی صفحه نمایش:" 32 | 33 | #: src/prefs.js:94 34 | msgid "Monitor(s):" 35 | msgstr "صفحه نمایش:" 36 | 37 | #: src/prefs.js:98 38 | msgid "All" 39 | msgstr "همه" 40 | 41 | #: src/prefs.js:99 42 | msgid "Built-in" 43 | msgstr "اصلی" 44 | 45 | #: src/prefs.js:100 46 | msgid "External" 47 | msgstr "خارجی" 48 | 49 | #: src/prefs.js:108 50 | msgid "Built-in monitor:" 51 | msgstr "صفحه نمایش اصلی:" 52 | 53 | #: src/prefs.js:131 54 | msgid "Full-screen behavior:" 55 | msgstr "عملکرد در نمای تمام‌صفحه:" 56 | 57 | #: src/prefs.js:135 58 | msgid "Do not enforce brightness in full-screen" 59 | msgstr "عدم اجرا در نمای تمام‌صفحه" 60 | 61 | #: src/prefs.js:136 62 | msgid "Brightness enforced in full-screen" 63 | msgstr "اجرا در نمای تمام‌صفحه" 64 | 65 | #: src/prefs.js:137 66 | msgid "Brightness enforced in full-screen, always tear-free" 67 | msgstr "اجرا در نمای تمام‌صفحه، بدون تکه‌تکه شدن تصویر" 68 | 69 | #: src/prefs.js:145 70 | msgid "Minimum brightness (0..1):" 71 | msgstr "حداقل روشنایی (از ۰ تا ۱):" 72 | 73 | #: src/prefs.js:164 74 | msgid "Mouse cursor brightness control:" 75 | msgstr "کنترل روشنایی نشانگر ماوس:" 76 | 77 | #: src/prefs.js:175 78 | msgid "Debug:" 79 | msgstr "حالت اشکال‌زدایی:" 80 | 81 | #: src/prefs.js:188 82 | msgid "" 83 | "Copyright © 2019-2022 Philippe Troin (F-" 84 | "i-f on GitHub)" 85 | msgstr "" 86 | 87 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:15 88 | msgid "Use backlight control." 89 | msgstr "ادغام در کنترل روشنایی صفحه نمایش." 90 | 91 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:16 92 | msgid "Use the regular backlight control." 93 | msgstr "استفاده از کنترل روشنایی عادی." 94 | 95 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:20 96 | msgid "Monitors." 97 | msgstr "صفحات نمایش." 98 | 99 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:21 100 | msgid "The monitors whose brightness should be adjusted." 101 | msgstr "صفحات نمایشی که باید روشناییشان تنظیم شود." 102 | 103 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:25 104 | msgid "Builtin monitor." 105 | msgstr "صفحه نمایش اصلی." 106 | 107 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:26 108 | msgid "The name of the built-in monitor." 109 | msgstr "نام صفحه نمایش اصلی." 110 | 111 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:30 112 | msgid "Prevent window unredirecting behavior." 113 | msgstr "غیرفعال کردن حالت ترسیم خارج صفحه (unredirection) پنجره." 114 | 115 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:31 116 | msgid "" 117 | "If set to never, unredirection is never prevented. If set to when-" 118 | "correcting, unredirection will be prevented when the brightness is not at " 119 | "the maximum setting (and an alpha layer is lowering the brightness). If set " 120 | "to always, window unredirection will always be prevented when this extension " 121 | "is active, allowing tear-free display." 122 | msgstr "" 123 | "در صورتی که گزینه‌ی هرگز انتخاب شود، ترسیم خارج صفحه (unredirection) مجاز " 124 | "خواهد بود. در صورت انتخاب گزینه‌ی هنگام اصلاح، هنگامی که روشنایی در مقدار " 125 | "حداکثری‌اش نباشد (یک لایه آلفا روشنایی را کاهش داده باشد)، از ترسیم خارج صفحه " 126 | "جلوگیری می‌شود. با انتخاب گزینه‌ی همیشه، تا زمانی که این افزونه فعال باشد، از " 127 | "ترسیم خارج صفحه جلوگیری شده و تکه‌تکه شدن تصویر اتفاق نخواهد افتاد." 128 | 129 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:41 130 | msgid "Minimum brightness." 131 | msgstr "حداقل روشنایی." 132 | 133 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:42 134 | msgid "Minimum brightness level." 135 | msgstr "حداقل میزان روشنایی." 136 | 137 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:47 138 | msgid "Current brightness level." 139 | msgstr "میزان روشنایی فعلی." 140 | 141 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:48 142 | msgid "The current brightness level." 143 | msgstr "میزان روشنایی فعلی." 144 | 145 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:52 146 | msgid "Mouse cursor brightness control." 147 | msgstr "کنترل روشنایی نشانگر ماوس." 148 | 149 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:53 150 | msgid "" 151 | "When enabled, the mouse cursor follows the brightness setting. When " 152 | "disabled, the mouse cursor always remains at full brightness. Controlling " 153 | "mouse cursor brightness can sometimes show the wrong cursor and introduce " 154 | "cursor lag. You may want to disable it if you encounter cursor issues. Note " 155 | "that if another Gnome Shell component clones the mouse (like the Zoom " 156 | "accessibility feature), the cursor will follow the screen brightness." 157 | msgstr "" 158 | "هنگام فعال بودن، نشانگر ماوس از تنظیمات روشنایی پیروی خواهد کرد. هنگام " 159 | "غیرفعال بودن، نشانگر ماوس با روشنایی تمام نشان داده می‌شود. این گزینه ممکن " 160 | "است باعث شود گاهی اوقات نشانگر اشتباهی نمایش داده شود یا باعث تأخیر در نمایش " 161 | "آن شود. در صورت مواجه با مشکل، این گزینه را غیرفعال کنید. توجه کنید که اگر " 162 | "افزونه‌ی دیگری از پوسته‌ی گنوم، نشانگر ماوس را شبیه‌سازی کند (مانند قابلیت " 163 | "بزرگنمایی صفحه)، نشانگر ماوس از روشنایی صفحه نمایش پیروی خواهد کرد." 164 | 165 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:65 166 | msgid "Debugging." 167 | msgstr "حالت اشکال‌زدایی." 168 | 169 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:66 170 | msgid "Enable debugging for the extension." 171 | msgstr "فعال‌سازی حالت اشکال‌زدایی افزونه." 172 | -------------------------------------------------------------------------------- /po/nl.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the soft-brightness package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: soft-brightness\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2022-03-02 08:06-0800\n" 11 | "PO-Revision-Date: 2022-03-02 08:07-0800\n" 12 | "Last-Translator: Heimen Stoffels \n" 13 | "Language-Team: \n" 14 | "Language: nl\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Generator: Poedit 3.0\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 | 21 | #: src/prefs.js:51 22 | msgid "Soft Brightness" 23 | msgstr "Zachte helderheid" 24 | 25 | #: src/prefs.js:61 26 | msgid "Version" 27 | msgstr "Versie" 28 | 29 | #: src/prefs.js:83 30 | msgid "Use backlight control:" 31 | msgstr "Achtergrondverlichtingsregeling gebruiken:" 32 | 33 | #: src/prefs.js:94 34 | msgid "Monitor(s):" 35 | msgstr "Beeldscherm(en):" 36 | 37 | #: src/prefs.js:98 38 | msgid "All" 39 | msgstr "Alle" 40 | 41 | #: src/prefs.js:99 42 | msgid "Built-in" 43 | msgstr "Ingebouwd" 44 | 45 | #: src/prefs.js:100 46 | msgid "External" 47 | msgstr "Extern" 48 | 49 | #: src/prefs.js:108 50 | msgid "Built-in monitor:" 51 | msgstr "Ingebouwd beeldscherm:" 52 | 53 | #: src/prefs.js:131 54 | msgid "Full-screen behavior:" 55 | msgstr "Gedrag bij beeldvullende toepassingen:" 56 | 57 | #: src/prefs.js:135 58 | msgid "Do not enforce brightness in full-screen" 59 | msgstr "Helderheidsniveau niet afdwingen" 60 | 61 | #: src/prefs.js:136 62 | msgid "Brightness enforced in full-screen" 63 | msgstr "Helderheidsniveau afdwingen" 64 | 65 | #: src/prefs.js:137 66 | msgid "Brightness enforced in full-screen, always tear-free" 67 | msgstr "Helderheidsniveau afdwingen, scheurvrij" 68 | 69 | #: src/prefs.js:145 70 | msgid "Minimum brightness (0..1):" 71 | msgstr "Minimumniveau: (0..1):" 72 | 73 | #: src/prefs.js:164 74 | msgid "Mouse cursor brightness control:" 75 | msgstr "Helderheid van cursor:" 76 | 77 | #: src/prefs.js:175 78 | msgid "Debug:" 79 | msgstr "Foutopsporing:" 80 | 81 | #: src/prefs.js:188 82 | msgid "" 83 | "Copyright © 2019-2022 Philippe Troin (F-" 84 | "i-f on GitHub)" 85 | msgstr "Copyright © 2019-2022 Philippe Troin (F-i-f op GitHub)" 86 | 87 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:15 88 | msgid "Use backlight control." 89 | msgstr "Gebruik achtergrondverlichtingsregeling." 90 | 91 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:16 92 | msgid "Use the regular backlight control." 93 | msgstr "Gebruik de standaard achtergrondverlichtingsregeling." 94 | 95 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:20 96 | msgid "Monitors." 97 | msgstr "Beeldschermen." 98 | 99 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:21 100 | msgid "The monitors whose brightness should be adjusted." 101 | msgstr "De beeldschermen waarvan de helderheid moet worden aangepast." 102 | 103 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:25 104 | msgid "Builtin monitor." 105 | msgstr "Ingebouwd beeldscherm." 106 | 107 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:26 108 | msgid "The name of the built-in monitor." 109 | msgstr "De naam van het ingebouwde beeldscherm." 110 | 111 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:30 112 | msgid "Prevent window unredirecting behavior." 113 | msgstr "Voorkom vensterschaling." 114 | 115 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:31 116 | msgid "" 117 | "If set to never, unredirection is never prevented. If set to when-" 118 | "correcting, unredirection will be prevented when the brightness is not at " 119 | "the maximum setting (and an alpha layer is lowering the brightness). If set " 120 | "to always, window unredirection will always be prevented when this extension " 121 | "is active, allowing tear-free display." 122 | msgstr "" 123 | "Stel in op ‘never’ om schaling te voorkomen. Stel in op ‘when-correcting’ om " 124 | "schaling te voorkomen als de helderheid niet op zijn hoogst staat (en een " 125 | "alfalaag de helderheid verlaagt). Stel in op ‘always’ om schaling altijd te " 126 | "voorkomen, alsmede scheuren." 127 | 128 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:41 129 | msgid "Minimum brightness." 130 | msgstr "Het minimumniveau." 131 | 132 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:42 133 | msgid "Minimum brightness level." 134 | msgstr "Het minimum helderheidsniveau." 135 | 136 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:47 137 | msgid "Current brightness level." 138 | msgstr "Huidige helderheidsniveau." 139 | 140 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:48 141 | msgid "The current brightness level." 142 | msgstr "Het huidige helderheidsniveau." 143 | 144 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:52 145 | msgid "Mouse cursor brightness control." 146 | msgstr "Regel de helderheid van de cursor." 147 | 148 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:53 149 | msgid "" 150 | "When enabled, the mouse cursor follows the brightness setting. When " 151 | "disabled, the mouse cursor always remains at full brightness. Controlling " 152 | "mouse cursor brightness can sometimes show the wrong cursor and introduce " 153 | "cursor lag. You may want to disable it if you encounter cursor issues. Note " 154 | "that if another Gnome Shell component clones the mouse (like the Zoom " 155 | "accessibility feature), the cursor will follow the screen brightness." 156 | msgstr "" 157 | "Schakel in om de cursor de helderheidsinstelling te laten volgen. Schakel " 158 | "uit om de cursor altijd op volledige helderheid te tonen. Als een ander " 159 | "onderdeel (zoals de vergrootglasfunctie) is ingeschakeld, dan wordt altijd " 160 | "de volledige helderheid gebruikt. Let op: inschakelen kan soms leiden tot " 161 | "het tonen van de verkeerde cursor en voor vertraging zorgen - schakel uit " 162 | "als u problemen ervaart." 163 | 164 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:65 165 | msgid "Debugging." 166 | msgstr "Foutopsporing." 167 | 168 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:66 169 | msgid "Enable debugging for the extension." 170 | msgstr "Schakel foutopsporing van deze uitbreiding in." 171 | -------------------------------------------------------------------------------- /po/tr.po: -------------------------------------------------------------------------------- 1 | # Turkish translations for soft-brightness package. 2 | # Copyright (C) 2020 THE soft-brightness'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the soft-brightness package. 4 | # Muha Aliss, 2020. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: soft-brightness\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2022-03-02 08:06-0800\n" 11 | "PO-Revision-Date: 2022-03-02 08:07-0800\n" 12 | "Last-Translator: Muha Aliss \n" 13 | "Language-Team: Turkish\n" 14 | "Language: tr\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 19 | "X-Generator: Poedit 2.4.1\n" 20 | "X-Poedit-SourceCharset: UTF-8\n" 21 | 22 | #: src/prefs.js:51 23 | msgid "Soft Brightness" 24 | msgstr "Soft Brightness" 25 | 26 | #: src/prefs.js:61 27 | msgid "Version" 28 | msgstr "Sürüm" 29 | 30 | #: src/prefs.js:83 31 | msgid "Use backlight control:" 32 | msgstr "Arka ışık kontrolünü kullan:" 33 | 34 | #: src/prefs.js:94 35 | msgid "Monitor(s):" 36 | msgstr "Monitör(ler):" 37 | 38 | #: src/prefs.js:98 39 | msgid "All" 40 | msgstr "Tümü" 41 | 42 | #: src/prefs.js:99 43 | msgid "Built-in" 44 | msgstr "Yerleşik" 45 | 46 | #: src/prefs.js:100 47 | msgid "External" 48 | msgstr "Harici" 49 | 50 | #: src/prefs.js:108 51 | msgid "Built-in monitor:" 52 | msgstr "Yerleşik monitör:" 53 | 54 | #: src/prefs.js:131 55 | msgid "Full-screen behavior:" 56 | msgstr "Tam ekran davranışı:" 57 | 58 | #: src/prefs.js:135 59 | msgid "Do not enforce brightness in full-screen" 60 | msgstr "Tam ekranda parlaklığı zorunlu kılma" 61 | 62 | #: src/prefs.js:136 63 | msgid "Brightness enforced in full-screen" 64 | msgstr "Tam ekranda uygulanan parlaklık" 65 | 66 | #: src/prefs.js:137 67 | msgid "Brightness enforced in full-screen, always tear-free" 68 | msgstr "Tam ekranda uygulanan parlaklık, her zaman yırtılmaz" 69 | 70 | #: src/prefs.js:145 71 | msgid "Minimum brightness (0..1):" 72 | msgstr "Minimum parlaklık (0..1):" 73 | 74 | #: src/prefs.js:164 75 | msgid "Mouse cursor brightness control:" 76 | msgstr "Fare imleci parlaklık kontrolü:" 77 | 78 | #: src/prefs.js:175 79 | msgid "Debug:" 80 | msgstr "Hata ayıklama:" 81 | 82 | #: src/prefs.js:188 83 | msgid "" 84 | "Copyright © 2019-2022 Philippe Troin (F-" 85 | "i-f on GitHub)" 86 | msgstr "Telif hakkı © 2019-2022 Philippe Troin (GitHub'da F-i-f)" 87 | 88 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:15 89 | msgid "Use backlight control." 90 | msgstr "Arka ışık kontrolünü kullan." 91 | 92 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:16 93 | msgid "Use the regular backlight control." 94 | msgstr "Normal arka ışık kontrolünü kullan." 95 | 96 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:20 97 | msgid "Monitors." 98 | msgstr "Monitörler." 99 | 100 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:21 101 | msgid "The monitors whose brightness should be adjusted." 102 | msgstr "Parlaklığı ayarlanması gereken monitörler." 103 | 104 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:25 105 | msgid "Builtin monitor." 106 | msgstr "Dahili monitör." 107 | 108 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:26 109 | msgid "The name of the built-in monitor." 110 | msgstr "Yerleşik monitörün adı." 111 | 112 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:30 113 | msgid "Prevent window unredirecting behavior." 114 | msgstr "Pencere yeniden yönlendirme davranışını önle." 115 | 116 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:31 117 | msgid "" 118 | "If set to never, unredirection is never prevented. If set to when-" 119 | "correcting, unredirection will be prevented when the brightness is not at " 120 | "the maximum setting (and an alpha layer is lowering the brightness). If set " 121 | "to always, window unredirection will always be prevented when this extension " 122 | "is active, allowing tear-free display." 123 | msgstr "" 124 | "Hiçbir zaman olarak ayarlanırsa, yeniden yönlendirme asla engellenmez. " 125 | "Düzeltme sırasında ayarlanırsa, parlaklık maksimum ayarda olmadığında (ve " 126 | "bir alfa katmanı parlaklığı düşürdüğünde) yeniden yönlendirme " 127 | "engellenecektir. Her zaman olarak ayarlanırsa, bu uzantı etkin olduğunda " 128 | "pencere yeniden yönlendirmesi her zaman engellenecek ve yırtılmasız görüntü " 129 | "sağlanacaktır." 130 | 131 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:41 132 | msgid "Minimum brightness." 133 | msgstr "Minimum parlaklık." 134 | 135 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:42 136 | msgid "Minimum brightness level." 137 | msgstr "Minimum parlaklık seviyesi." 138 | 139 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:47 140 | msgid "Current brightness level." 141 | msgstr "Mevcut parlaklık seviyesi." 142 | 143 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:48 144 | msgid "The current brightness level." 145 | msgstr "Mevcut parlaklık seviyesi." 146 | 147 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:52 148 | msgid "Mouse cursor brightness control." 149 | msgstr "Fare imleci parlaklık kontrolü." 150 | 151 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:53 152 | msgid "" 153 | "When enabled, the mouse cursor follows the brightness setting. When " 154 | "disabled, the mouse cursor always remains at full brightness. Controlling " 155 | "mouse cursor brightness can sometimes show the wrong cursor and introduce " 156 | "cursor lag. You may want to disable it if you encounter cursor issues. Note " 157 | "that if another Gnome Shell component clones the mouse (like the Zoom " 158 | "accessibility feature), the cursor will follow the screen brightness." 159 | msgstr "" 160 | "Etkinleştirildiğinde, fare imleci parlaklık ayarını takip eder. Devre dışı " 161 | "bırakıldığında, fare imleci her zaman tam parlaklıkta kalır. Fare imleci " 162 | "parlaklığını kontrol etmek bazen yanlış imleci gösterebilir ve imleç " 163 | "gecikmesine neden olabilir. İmleç sorunlarıyla karşılaşırsanız devre dışı " 164 | "bırakmak isteyebilirsiniz. Başka bir Gnome Shell bileşeni fareyi klonlarsa " 165 | "(Zoom erişilebilirlik özelliği gibi), imlecin ekran parlaklığını " 166 | "izleyeceğini unutmayın." 167 | 168 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:65 169 | msgid "Debugging." 170 | msgstr "Hata ayıklama." 171 | 172 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:66 173 | msgid "Enable debugging for the extension." 174 | msgstr "Uzantı için hata ayıklamayı etkinleştir." 175 | -------------------------------------------------------------------------------- /po/fr.po: -------------------------------------------------------------------------------- 1 | # French translations for soft-brightness package. 2 | # Copyright (C) 2019, 2020 THE soft-brightness'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the soft-brightness package. 4 | # Philippe Troin, 2019, 2020. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: soft-brightness\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2022-03-02 08:06-0800\n" 11 | "PO-Revision-Date: 2022-03-02 08:08-0800\n" 12 | "Last-Translator: Philippe Troin (F-i-f on Github)\n" 13 | "Language-Team: none\n" 14 | "Language: fr\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" 19 | 20 | #: src/prefs.js:51 21 | msgid "Soft Brightness" 22 | msgstr "Luminosité logicielle" 23 | 24 | #: src/prefs.js:61 25 | msgid "Version" 26 | msgstr "Version" 27 | 28 | #: src/prefs.js:83 29 | msgid "Use backlight control:" 30 | msgstr "Utiliser le rétroéclairage :" 31 | 32 | #: src/prefs.js:94 33 | msgid "Monitor(s):" 34 | msgstr "Moniteur(s) :" 35 | 36 | #: src/prefs.js:98 37 | msgid "All" 38 | msgstr "Tous" 39 | 40 | #: src/prefs.js:99 41 | msgid "Built-in" 42 | msgstr "Interne" 43 | 44 | #: src/prefs.js:100 45 | msgid "External" 46 | msgstr "Externes" 47 | 48 | #: src/prefs.js:108 49 | msgid "Built-in monitor:" 50 | msgstr "Écran intégré :" 51 | 52 | #: src/prefs.js:131 53 | msgid "Full-screen behavior:" 54 | msgstr "Comportement en plein-écran :" 55 | 56 | #: src/prefs.js:135 57 | msgid "Do not enforce brightness in full-screen" 58 | msgstr "Ne pas changer la luminosité en plein-écran" 59 | 60 | #: src/prefs.js:136 61 | msgid "Brightness enforced in full-screen" 62 | msgstr "Réglage de luminosité actif en plein-écran" 63 | 64 | #: src/prefs.js:137 65 | msgid "Brightness enforced in full-screen, always tear-free" 66 | msgstr "Réglage de luminosité actif en plein-écran, mode sans-déchirures" 67 | 68 | #: src/prefs.js:145 69 | msgid "Minimum brightness (0..1):" 70 | msgstr "Luminosité minimale (0..1) :" 71 | 72 | #: src/prefs.js:164 73 | msgid "Mouse cursor brightness control:" 74 | msgstr "Contrôle de la luminosité du curseur de la souris :" 75 | 76 | #: src/prefs.js:175 77 | msgid "Debug:" 78 | msgstr "Débogage :" 79 | 80 | #: src/prefs.js:188 81 | msgid "" 82 | "Copyright © 2019-2022 Philippe Troin (F-" 83 | "i-f on GitHub)" 84 | msgstr "Copyright © 2019-2022 Philippe Troin (F-i-f sur GitHub)" 85 | 86 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:15 87 | msgid "Use backlight control." 88 | msgstr "Utilisation du rétroéclairage." 89 | 90 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:16 91 | msgid "Use the regular backlight control." 92 | msgstr "Utiliser le rétroéclairage." 93 | 94 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:20 95 | msgid "Monitors." 96 | msgstr "Moniteurs." 97 | 98 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:21 99 | msgid "The monitors whose brightness should be adjusted." 100 | msgstr "Les moniteurs sur lesquels la luminosité sera changée." 101 | 102 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:25 103 | msgid "Builtin monitor." 104 | msgstr "Ecran intégré." 105 | 106 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:26 107 | msgid "The name of the built-in monitor." 108 | msgstr "Nom de l'écran intégré." 109 | 110 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:30 111 | msgid "Prevent window unredirecting behavior." 112 | msgstr "Eviter la non-redirection des fenêtres." 113 | 114 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:31 115 | msgid "" 116 | "If set to never, unredirection is never prevented. If set to when-" 117 | "correcting, unredirection will be prevented when the brightness is not at " 118 | "the maximum setting (and an alpha layer is lowering the brightness). If set " 119 | "to always, window unredirection will always be prevented when this extension " 120 | "is active, allowing tear-free display." 121 | msgstr "" 122 | "\"never\": la non-redirection n'est jamais évitée. \"when-correcting\": la " 123 | "non-redirection est évitée quand la luminosité n'est pas maximale. \"always" 124 | "\": la non-redirection est toujours évité, et l'affichage est toujours sans " 125 | "déchirure (synchronisation verticale)." 126 | 127 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:41 128 | msgid "Minimum brightness." 129 | msgstr "Luminosité minimale." 130 | 131 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:42 132 | msgid "Minimum brightness level." 133 | msgstr "Niveau de luminosité minimale." 134 | 135 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:47 136 | msgid "Current brightness level." 137 | msgstr "Luminosité actuelle." 138 | 139 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:48 140 | msgid "The current brightness level." 141 | msgstr "La niveau de luminosité actif." 142 | 143 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:52 144 | msgid "Mouse cursor brightness control." 145 | msgstr "Contrôle de la luminosité du curseur de la souris." 146 | 147 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:53 148 | msgid "" 149 | "When enabled, the mouse cursor follows the brightness setting. When " 150 | "disabled, the mouse cursor always remains at full brightness. Controlling " 151 | "mouse cursor brightness can sometimes show the wrong cursor and introduce " 152 | "cursor lag. You may want to disable it if you encounter cursor issues. Note " 153 | "that if another Gnome Shell component clones the mouse (like the Zoom " 154 | "accessibility feature), the cursor will follow the screen brightness." 155 | msgstr "" 156 | "Activer le contrôle de la luminosité du curseur de la souris. S'il est " 157 | "actif, la luminosité du curseur de la souris suivra celle de l'écran. S'il " 158 | "est inactif, le curseur de la souris restera toujours à la luminosité " 159 | "maximale. Le contrôle de la luminosité du curseur montre parfois le mauvais " 160 | "curseur et peut entrainer un décalage entre le mouvement de la souris et " 161 | "celui du curseur à l'écran. En cas de problèmes avec le curseur de la " 162 | "souris, désactiver l'option. Noter que si un autre composant de Gnome Shell " 163 | "(tel que le Zoom) clone le curseur de la souris, celui-ci suivra alors la " 164 | "luminosité de l'écran." 165 | 166 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:65 167 | msgid "Debugging." 168 | msgstr "Débogage." 169 | 170 | #: schemas/org.gnome.shell.extensions.soft-brightness.gschema.xml:66 171 | msgid "Enable debugging for the extension." 172 | msgstr "Activer le mode débogage de l'extension." 173 | -------------------------------------------------------------------------------- /meson-gse/meson.build.m4: -------------------------------------------------------------------------------- 1 | # -*- meson -*- 2 | m4_divert(-1) 3 | 4 | m4_changequote(`{',`}') 5 | m4_changecom({}) 6 | 7 | # First, define some macros 8 | 9 | # m4 1.4.18 examples/forloop2.m4 10 | # m4_forloop(var, from, to, stmt) - improved version: 11 | # works even if VAR is not a strict macro name 12 | # performs sanity check that FROM is larger than TO 13 | # allows complex numerical expressions in TO and FROM 14 | m4_define({m4_forloop}, {m4_ifelse(m4_eval({($2) <= ($3)}), {1}, 15 | {m4_pushdef({$1})_$0({$1}, m4_eval({$2}), 16 | m4_eval({$3}), {$4})m4_popdef({$1})})}) 17 | m4_define({_m4_forloop}, 18 | {m4_define({$1}, {$2})$4{}m4_ifelse({$2}, {$3}, {}, 19 | {$0({$1}, m4_incr({$2}), {$3}, {$4})})}) 20 | 21 | # 1.4.18 examples/foreachq4.m4 22 | # m4_foreachq(x, {item_1, item_2, ..., item_n}, stmt) 23 | # quoted list, version based on forloop 24 | m4_define({m4_foreachq}, 25 | {m4_ifelse({$2}, {}, {}, {_$0({$1}, {$3}, $2)})}) 26 | m4_define({_m4_foreachq}, 27 | {m4_pushdef({$1}, m4_forloop({$1}, {3}, {$#}, 28 | {$0_({1}, {2}, m4_indir({$1}))}){m4_popdef( 29 | {$1})})m4_indir({$1}, $@)}) 30 | m4_define({_m4_foreachq_}, 31 | {{m4_define({$$1}, {$$3})$$2{}}}) 32 | 33 | # The various js interpreters to test for, from most recent to oldest 34 | m4_define({js_versions}, {91, 78, 68, 60, 52}) 35 | 36 | m4_divert{}m4_dnl 37 | # AUTOGENERATED FILE - DO NOT EDIT 38 | # This file has been generated from meson-gse/meson.build.m4 and meson-gse.build 39 | 40 | m4_define({gse_project}, 41 | {# meson-gse - Library for gnome-shell extensions 42 | # Copyright (C) 2019-2022 Philippe Troin (F-i-f on Github) 43 | # 44 | # This program is free software: you can redistribute it and/or modify 45 | # it under the terms of the GNU General Public License as published by 46 | # the Free Software Foundation, either version 3 of the License, or 47 | # (at your option) any later version. 48 | # 49 | # This program is distributed in the hope that it will be useful, 50 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 51 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 52 | # GNU General Public License for more details. 53 | # 54 | # You should have received a copy of the GNU General Public License 55 | # along with this program. If not, see . 56 | 57 | # Boilerplate 58 | project('$1', 59 | version: '$3', 60 | meson_version: '>= 0.50.0', 61 | license: 'GPL3' ) 62 | 63 | gnome = import('gnome') 64 | i18n = import('i18n') 65 | 66 | gse_lib_convenience = files('meson-gse/lib/convenience.js') 67 | gse_lib_logger = files('meson-gse/lib/logger.js') 68 | 69 | gse_gettext_domain = meson.project_name() 70 | gse_sources = files('src/extension.js') 71 | gse_libs = [] 72 | gse_data = [] 73 | gse_schemas = [] 74 | gse_dbus_interfaces = [] 75 | 76 | gse_run_command_obj = run_command('test', '-f', 'src/prefs.js', check : false) 77 | if gse_run_command_obj.returncode() == 0 78 | gse_sources += files('src/prefs.js') 79 | endif 80 | 81 | gse_run_command_obj = run_command('test', '-f', 'src/stylesheet.css', check : false) 82 | if gse_run_command_obj.returncode() == 0 83 | gse_data += files('src/stylesheet.css') 84 | endif 85 | 86 | gse_schema_main = 'schemas/org.gnome.shell.extensions.'+ meson.project_name() + '.gschema.xml' 87 | gse_run_command_obj = run_command('test', '-f', gse_schema_main, check : false) 88 | if gse_run_command_obj.returncode() == 0 89 | gse_schemas += files(gse_schema_main) 90 | endif 91 | 92 | m4_foreachq({js_version}, {js_versions()}, {gse_js{}js_version() = find_program('js{}js_version()', required: false) 93 | })m4_dnl 94 | 95 | # Include extension-specific settings 96 | $4m4_dnl 97 | # End of extension-specific settings 98 | 99 | # Boilerplate 100 | gse_run_command_obj = run_command('sh', '-c', 'echo $HOME', check : false) 101 | if gse_run_command_obj.returncode() != 0 102 | error('HOME not found, exit=@0@'.format(gse_run_command_obj.returncode())) 103 | endif 104 | home = gse_run_command_obj.stdout().strip() 105 | 106 | gse_uuid = meson.project_name() + '@$2' 107 | gse_target_dir = home + '/.local/share/gnome-shell/extensions/' + gse_uuid 108 | gse_target_dir_schemas = join_paths(gse_target_dir, 'schemas') 109 | gse_target_locale_dir = join_paths(gse_target_dir, 'locale') 110 | gse_target_dir_dbus_intf = join_paths(gse_target_dir, 'dbus-interfaces') 111 | 112 | meson_extra_scripts = 'meson-gse/meson-scripts' 113 | 114 | gse_metadata_conf = configuration_data() 115 | git_rev_cmd = run_command('git', 'describe', '--tags', '--long', '--always', check : false) 116 | if git_rev_cmd.returncode() != 0 117 | warning('git rev-parse exit=@0@'.format(git_rev_cmd.returncode())) 118 | gse_metadata_conf.set('VCS_TAG', 'unknown') 119 | else 120 | gse_metadata_conf.set('VCS_TAG', git_rev_cmd.stdout().strip()) 121 | endif 122 | gse_metadata_conf.set('uuid', gse_uuid) 123 | gse_metadata_conf.set('version', meson.project_version()) 124 | gse_metadata_conf.set('gettext_domain', gse_gettext_domain) 125 | 126 | gse_data += configure_file(input: 'src/metadata.json.in', 127 | output: 'metadata.json', 128 | configuration: gse_metadata_conf) 129 | 130 | # This should work but doesn't: 131 | #gse_metadata = vcs_tag(command: ['git', 'rev-parse', 'HEAD'], 132 | # input: files('metadata.json.in'), 133 | # output: 'metadata.json', 134 | # fallback: 'unknown') 135 | #gse_data += gse_metadata 136 | 137 | if gse_schemas != [] 138 | custom_target('gse-gschemas.compiled', 139 | build_by_default: true, 140 | command: ['sh', '-c', 'glib-compile-schemas --targetdir . $(dirname @INPUT0@)'], 141 | input: gse_schemas, 142 | output: 'gschemas.compiled', 143 | install: true, 144 | install_dir: gse_target_dir_schemas) 145 | install_data(gse_schemas, 146 | install_dir: gse_target_dir_schemas) 147 | endif 148 | 149 | gse_js_found = 0 150 | m4_foreachq({js_version}, {js_versions()}, { 151 | if gse_js{}js_version().found() and gse_js_found == 0 152 | foreach gse_source : gse_sources 153 | test('Checking syntax of ' + '@0@'.format(gse_source), 154 | gse_js{}js_version(), 155 | args: ['-w', '-c', gse_source]) 156 | endforeach 157 | gse_js_found = 1 158 | endif 159 | })m4_dnl 160 | 161 | install_data(gse_sources + gse_data + gse_libs, 162 | install_dir: gse_target_dir) 163 | 164 | install_data(gse_dbus_interfaces, 165 | install_dir: gse_target_dir_dbus_intf) 166 | 167 | custom_target('gse-extension.zip', 168 | build_by_default: false, 169 | install: false, 170 | command: [files(join_paths(meson_extra_scripts, 'make-extension')), gse_target_dir, '@OUTDIR@', '@OUTPUT@'], 171 | output: 'extension.zip') 172 | 173 | gse_run_command_obj = run_command('test', '-d', 'po', check : false) 174 | if gse_run_command_obj.returncode() == 0 175 | subdir('po') 176 | endif})m4_dnl 177 | -------------------------------------------------------------------------------- /meson.build: -------------------------------------------------------------------------------- 1 | # -*- meson -*- 2 | # AUTOGENERATED FILE - DO NOT EDIT 3 | # This file has been generated from meson-gse/meson.build.m4 and meson-gse.build 4 | 5 | # Soft-brightness - Control the display's brightness via an alpha channel. 6 | # Copyright (C) 2019-2022 Philippe Troin (F-i-f on Github) 7 | # 8 | # This program is free software: you can redistribute it and/or modify 9 | # it under the terms of the GNU General Public License as published by 10 | # the Free Software Foundation, either version 3 of the License, or 11 | # (at your option) any later version. 12 | # 13 | # This program is distributed in the hope that it will be useful, 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | # GNU General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program. If not, see . 20 | 21 | # meson-gse - Library for gnome-shell extensions 22 | # Copyright (C) 2019-2022 Philippe Troin (F-i-f on Github) 23 | # 24 | # This program is free software: you can redistribute it and/or modify 25 | # it under the terms of the GNU General Public License as published by 26 | # the Free Software Foundation, either version 3 of the License, or 27 | # (at your option) any later version. 28 | # 29 | # This program is distributed in the hope that it will be useful, 30 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 31 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 32 | # GNU General Public License for more details. 33 | # 34 | # You should have received a copy of the GNU General Public License 35 | # along with this program. If not, see . 36 | 37 | # Boilerplate 38 | project('soft-brightness', 39 | version: '30', 40 | meson_version: '>= 0.50.0', 41 | license: 'GPL3' ) 42 | 43 | gnome = import('gnome') 44 | i18n = import('i18n') 45 | 46 | gse_lib_convenience = files('meson-gse/lib/convenience.js') 47 | gse_lib_logger = files('meson-gse/lib/logger.js') 48 | 49 | gse_gettext_domain = meson.project_name() 50 | gse_sources = files('src/extension.js') 51 | gse_libs = [] 52 | gse_data = [] 53 | gse_schemas = [] 54 | gse_dbus_interfaces = [] 55 | 56 | gse_run_command_obj = run_command('test', '-f', 'src/prefs.js', check : false) 57 | if gse_run_command_obj.returncode() == 0 58 | gse_sources += files('src/prefs.js') 59 | endif 60 | 61 | gse_run_command_obj = run_command('test', '-f', 'src/stylesheet.css', check : false) 62 | if gse_run_command_obj.returncode() == 0 63 | gse_data += files('src/stylesheet.css') 64 | endif 65 | 66 | gse_schema_main = 'schemas/org.gnome.shell.extensions.'+ meson.project_name() + '.gschema.xml' 67 | gse_run_command_obj = run_command('test', '-f', gse_schema_main, check : false) 68 | if gse_run_command_obj.returncode() == 0 69 | gse_schemas += files(gse_schema_main) 70 | endif 71 | 72 | gse_js91 = find_program('js91', required: false) 73 | gse_js78 = find_program('js78', required: false) 74 | gse_js68 = find_program('js68', required: false) 75 | gse_js60 = find_program('js60', required: false) 76 | gse_js52 = find_program('js52', required: false) 77 | 78 | # Include extension-specific settings 79 | 80 | gse_sources += files('src/utils.js') 81 | gse_libs += [gse_lib_logger] 82 | gse_data += [] 83 | gse_schemas += [] 84 | gse_dbus_interfaces += [files('dbus-interfaces/org.gnome.Mutter.DisplayConfig.xml')] 85 | # End of extension-specific settings 86 | 87 | # Boilerplate 88 | gse_run_command_obj = run_command('sh', '-c', 'echo $HOME', check : false) 89 | if gse_run_command_obj.returncode() != 0 90 | error('HOME not found, exit=@0@'.format(gse_run_command_obj.returncode())) 91 | endif 92 | home = gse_run_command_obj.stdout().strip() 93 | 94 | gse_uuid = meson.project_name() + '@fifi.org' 95 | gse_target_dir = home + '/.local/share/gnome-shell/extensions/' + gse_uuid 96 | gse_target_dir_schemas = join_paths(gse_target_dir, 'schemas') 97 | gse_target_locale_dir = join_paths(gse_target_dir, 'locale') 98 | gse_target_dir_dbus_intf = join_paths(gse_target_dir, 'dbus-interfaces') 99 | 100 | meson_extra_scripts = 'meson-gse/meson-scripts' 101 | 102 | gse_metadata_conf = configuration_data() 103 | git_rev_cmd = run_command('git', 'describe', '--tags', '--long', '--always', check : false) 104 | if git_rev_cmd.returncode() != 0 105 | warning('git rev-parse exit=@0@'.format(git_rev_cmd.returncode())) 106 | gse_metadata_conf.set('VCS_TAG', 'unknown') 107 | else 108 | gse_metadata_conf.set('VCS_TAG', git_rev_cmd.stdout().strip()) 109 | endif 110 | gse_metadata_conf.set('uuid', gse_uuid) 111 | gse_metadata_conf.set('version', meson.project_version()) 112 | gse_metadata_conf.set('gettext_domain', gse_gettext_domain) 113 | 114 | gse_data += configure_file(input: 'src/metadata.json.in', 115 | output: 'metadata.json', 116 | configuration: gse_metadata_conf) 117 | 118 | # This should work but doesn't: 119 | #gse_metadata = vcs_tag(command: ['git', 'rev-parse', 'HEAD'], 120 | # input: files('metadata.json.in'), 121 | # output: 'metadata.json', 122 | # fallback: 'unknown') 123 | #gse_data += gse_metadata 124 | 125 | if gse_schemas != [] 126 | custom_target('gse-gschemas.compiled', 127 | build_by_default: true, 128 | command: ['sh', '-c', 'glib-compile-schemas --targetdir . $(dirname @INPUT0@)'], 129 | input: gse_schemas, 130 | output: 'gschemas.compiled', 131 | install: true, 132 | install_dir: gse_target_dir_schemas) 133 | install_data(gse_schemas, 134 | install_dir: gse_target_dir_schemas) 135 | endif 136 | 137 | gse_js_found = 0 138 | 139 | if gse_js91.found() and gse_js_found == 0 140 | foreach gse_source : gse_sources 141 | test('Checking syntax of ' + '@0@'.format(gse_source), 142 | gse_js91, 143 | args: ['-w', '-c', gse_source]) 144 | endforeach 145 | gse_js_found = 1 146 | endif 147 | 148 | if gse_js78.found() and gse_js_found == 0 149 | foreach gse_source : gse_sources 150 | test('Checking syntax of ' + '@0@'.format(gse_source), 151 | gse_js78, 152 | args: ['-w', '-c', gse_source]) 153 | endforeach 154 | gse_js_found = 1 155 | endif 156 | 157 | if gse_js68.found() and gse_js_found == 0 158 | foreach gse_source : gse_sources 159 | test('Checking syntax of ' + '@0@'.format(gse_source), 160 | gse_js68, 161 | args: ['-w', '-c', gse_source]) 162 | endforeach 163 | gse_js_found = 1 164 | endif 165 | 166 | if gse_js60.found() and gse_js_found == 0 167 | foreach gse_source : gse_sources 168 | test('Checking syntax of ' + '@0@'.format(gse_source), 169 | gse_js60, 170 | args: ['-w', '-c', gse_source]) 171 | endforeach 172 | gse_js_found = 1 173 | endif 174 | 175 | if gse_js52.found() and gse_js_found == 0 176 | foreach gse_source : gse_sources 177 | test('Checking syntax of ' + '@0@'.format(gse_source), 178 | gse_js52, 179 | args: ['-w', '-c', gse_source]) 180 | endforeach 181 | gse_js_found = 1 182 | endif 183 | 184 | install_data(gse_sources + gse_data + gse_libs, 185 | install_dir: gse_target_dir) 186 | 187 | install_data(gse_dbus_interfaces, 188 | install_dir: gse_target_dir_dbus_intf) 189 | 190 | custom_target('gse-extension.zip', 191 | build_by_default: false, 192 | install: false, 193 | command: [files(join_paths(meson_extra_scripts, 'make-extension')), gse_target_dir, '@OUTDIR@', '@OUTPUT@'], 194 | output: 'extension.zip') 195 | 196 | gse_run_command_obj = run_command('test', '-d', 'po', check : false) 197 | if gse_run_command_obj.returncode() == 0 198 | subdir('po') 199 | endif 200 | -------------------------------------------------------------------------------- /src/prefs.js: -------------------------------------------------------------------------------- 1 | // Soft-brightness - Control the display's brightness via an alpha channel. 2 | // Copyright (C) 2019-2022 Philippe Troin (F-i-f on Github) 3 | // 4 | // This program is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // This program is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU General Public License 15 | // along with this program. If not, see . 16 | 17 | const Gio = imports.gi.Gio; 18 | const GObject = imports.gi.GObject; 19 | const Gtk = imports.gi.Gtk; 20 | 21 | const ExtensionUtils = imports.misc.extensionUtils; 22 | const Me = ExtensionUtils.getCurrentExtension(); 23 | const Utils = Me.imports.utils; 24 | 25 | const Gettext = imports.gettext.domain(Me.metadata['gettext-domain']); 26 | const _ = Gettext.gettext; 27 | 28 | const Logger = Me.imports.logger; 29 | 30 | const SoftBrightnessSettings = GObject.registerClass(class SoftBrightnessSettings extends Gtk.Grid { 31 | 32 | setup() { 33 | this.margin_top = 12; 34 | this.margin_bottom = this.margin_top; 35 | this.margin_start = 48; 36 | this.margin_end = this.margin_start; 37 | this.row_spacing = 6; 38 | this.column_spacing = this.row_spacing; 39 | this.orientation = Gtk.Orientation.VERTICAL; 40 | 41 | this._settings = ExtensionUtils.getSettings(); 42 | this._logger = new Logger.Logger('Soft-Brightness/prefs'); 43 | this._logger.set_debug(this._settings.get_boolean('debug')); 44 | 45 | let ypos = 1; 46 | let descr; 47 | 48 | this.title_label = new Gtk.Label({ 49 | use_markup: true, 50 | label: '' 51 | +_('Soft Brightness')+'', 52 | hexpand: true, 53 | halign: Gtk.Align.CENTER 54 | }); 55 | this.attach(this.title_label, 1, ypos, 2, 1); 56 | 57 | ypos += 1; 58 | 59 | this.version_label = new Gtk.Label({ 60 | use_markup: true, 61 | label: ''+_('Version') 62 | + ' ' + this._logger.get_version() + '', 63 | hexpand: true, 64 | halign: Gtk.Align.CENTER, 65 | }); 66 | this.attach(this.version_label, 1, ypos, 2, 1); 67 | 68 | ypos += 1; 69 | 70 | this.link_label = new Gtk.Label({ 71 | use_markup: true, 72 | label: '' 73 | + Me.metadata.url + '', 74 | hexpand: true, 75 | halign: Gtk.Align.CENTER, 76 | margin_bottom: this.margin_bottom 77 | }); 78 | this.attach(this.link_label, 1, ypos, 2, 1); 79 | 80 | ypos += 1; 81 | 82 | descr = _(this._settings.settings_schema.get_key('use-backlight').get_description()); 83 | this.enabled_label = new Gtk.Label({label: _("Use backlight control:"), halign: Gtk.Align.START}); 84 | this.enabled_label.set_tooltip_text(descr); 85 | this.enabled_control = new Gtk.Switch({halign: Gtk.Align.END}); 86 | this.enabled_control.set_tooltip_text(descr); 87 | this.attach(this.enabled_label, 1, ypos, 1, 1); 88 | this.attach(this.enabled_control, 2, ypos, 1, 1); 89 | this._settings.bind('use-backlight', this.enabled_control, 'active', Gio.SettingsBindFlags.DEFAULT); 90 | 91 | ypos += 1; 92 | 93 | descr = _(this._settings.settings_schema.get_key('monitors').get_description()); 94 | this.monitors_label = new Gtk.Label({label: _("Monitor(s):"), halign: Gtk.Align.START}); 95 | this.monitors_label.set_tooltip_text(descr); 96 | this.monitors_control = new Gtk.ComboBoxText({halign: Gtk.Align.END}); 97 | this.monitors_control.set_tooltip_text(descr); 98 | this.monitors_control.append("all", _("All")); 99 | this.monitors_control.append("built-in", _("Built-in")); 100 | this.monitors_control.append("external", _("External")); 101 | this._settings.bind('monitors', this.monitors_control, 'active-id', Gio.SettingsBindFlags.DEFAULT); 102 | this.attach(this.monitors_label, 1, ypos, 1, 1); 103 | this.attach(this.monitors_control, 2, ypos, 1, 1); 104 | 105 | ypos += 1; 106 | 107 | descr = _(this._settings.settings_schema.get_key('builtin-monitor').get_description()); 108 | this.builtin_monitor_label = new Gtk.Label({label: _("Built-in monitor:"), halign: Gtk.Align.START}); 109 | this.builtin_monitor_label.set_tooltip_text(descr); 110 | this.builtin_monitor_control = new Gtk.ComboBoxText({halign: Gtk.Align.END}); 111 | this.builtin_monitor_control.set_tooltip_text(descr); 112 | let builtin_monitor_name = this._settings.get_string('builtin-monitor'); 113 | if (builtin_monitor_name != "") { 114 | this.builtin_monitor_control.append(builtin_monitor_name, builtin_monitor_name); 115 | } 116 | this.displayConfigProxy = Utils.newDisplayConfig((function(proxy, error) { 117 | if (error) { 118 | log("Cannot get DisplayConfig: "+error); 119 | return; 120 | } 121 | this.displayConfigProxy.connectSignal('MonitorsChanged', this._refreshMonitors.bind(this)); 122 | this._refreshMonitors(); 123 | }).bind(this)); 124 | this._bindBuiltinMonitorControl(); 125 | this.attach(this.builtin_monitor_label, 1, ypos, 1, 1); 126 | this.attach(this.builtin_monitor_control, 2, ypos, 1, 1); 127 | 128 | ypos += 1; 129 | 130 | descr = _(this._settings.settings_schema.get_key('prevent-unredirect').get_description()); 131 | this.prevent_unredirect_label = new Gtk.Label({label: _("Full-screen behavior:"), halign: Gtk.Align.START}); 132 | this.prevent_unredirect_label.set_tooltip_text(descr); 133 | this.prevent_unredirect_control = new Gtk.ComboBoxText({halign: Gtk.Align.END}); 134 | this.prevent_unredirect_control.set_tooltip_text(descr); 135 | this.prevent_unredirect_control.append("never", _("Do not enforce brightness in full-screen")); 136 | this.prevent_unredirect_control.append("when-correcting", _("Brightness enforced in full-screen")); 137 | this.prevent_unredirect_control.append("always", _("Brightness enforced in full-screen, always tear-free")); 138 | this._settings.bind('prevent-unredirect', this.prevent_unredirect_control, 'active-id', Gio.SettingsBindFlags.DEFAULT); 139 | this.attach(this.prevent_unredirect_label, 1, ypos, 1, 1); 140 | this.attach(this.prevent_unredirect_control, 2, ypos, 1, 1); 141 | 142 | ypos += 1; 143 | 144 | descr = _(this._settings.settings_schema.get_key('min-brightness').get_description()); 145 | this.min_brightness_label = new Gtk.Label({label: _("Minimum brightness (0..1):"), halign: Gtk.Align.START}); 146 | this.min_brightness_label.set_tooltip_text(descr); 147 | this.min_brightness_control = new Gtk.SpinButton({ 148 | halign: Gtk.Align.END, 149 | digits: 2, 150 | adjustment: new Gtk.Adjustment({ 151 | lower: 0.0, 152 | upper: 1.0, 153 | step_increment: 0.01 154 | }) 155 | }); 156 | this.min_brightness_control.set_tooltip_text(descr); 157 | this.attach(this.min_brightness_label, 1, ypos, 1, 1); 158 | this.attach(this.min_brightness_control, 2, ypos, 1, 1); 159 | this._settings.bind('min-brightness', this.min_brightness_control, 'value', Gio.SettingsBindFlags.DEFAULT); 160 | 161 | ypos += 1; 162 | 163 | descr = _(this._settings.settings_schema.get_key('clone-mouse').get_description()); 164 | this.debug_label = new Gtk.Label({label: _("Mouse cursor brightness control:"), halign: Gtk.Align.START}); 165 | this.debug_label.set_tooltip_text(descr); 166 | this.debug_control = new Gtk.Switch({halign: Gtk.Align.END}); 167 | this.debug_control.set_tooltip_text(descr); 168 | this.attach(this.debug_label, 1, ypos, 1, 1); 169 | this.attach(this.debug_control, 2, ypos, 1, 1); 170 | this._settings.bind('clone-mouse', this.debug_control, 'active', Gio.SettingsBindFlags.DEFAULT); 171 | 172 | ypos += 1; 173 | 174 | descr = _(this._settings.settings_schema.get_key('debug').get_description()); 175 | this.debug_label = new Gtk.Label({label: _("Debug:"), halign: Gtk.Align.START}); 176 | this.debug_label.set_tooltip_text(descr); 177 | this.debug_control = new Gtk.Switch({halign: Gtk.Align.END}); 178 | this.debug_control.set_tooltip_text(descr); 179 | this.attach(this.debug_label, 1, ypos, 1, 1); 180 | this.attach(this.debug_control, 2, ypos, 1, 1); 181 | this._settings.bind('debug', this.debug_control, 'active', Gio.SettingsBindFlags.DEFAULT); 182 | 183 | ypos += 1; 184 | 185 | this.copyright_label = new Gtk.Label({ 186 | use_markup: true, 187 | label: '' 188 | + _('Copyright © 2019-2022 Philippe Troin (F-i-f on GitHub)') 189 | + '', 190 | hexpand: true, 191 | halign: Gtk.Align.CENTER, 192 | margin_top: this.margin_bottom 193 | }); 194 | this.attach(this.copyright_label, 1, ypos, 2, 1); 195 | 196 | ypos += 1; 197 | } 198 | 199 | _bindBuiltinMonitorControl() { 200 | this._settings.bind('builtin-monitor', this.builtin_monitor_control, 'active-id', Gio.SettingsBindFlags.DEFAULT); 201 | } 202 | 203 | _unbindBuiltinMonitorControl() { 204 | Gio.Settings.unbind(this.builtin_monitor_control, 'active-id'); 205 | } 206 | 207 | _refreshMonitors() { 208 | Utils.getMonitorConfig(this.displayConfigProxy, (function(result, error) { 209 | if (error) { 210 | log("Cannot get DisplayConfig: "+error); 211 | return; 212 | } 213 | let builtin_monitor_name = this._settings.get_string('builtin-monitor'); 214 | this._unbindBuiltinMonitorControl(); 215 | this.builtin_monitor_control.remove_all(); 216 | let builtin_found = false; 217 | for (let i=0; i < result.length; ++i) { 218 | let display_name = result[i][0]; 219 | if (display_name == builtin_monitor_name) { 220 | builtin_found = true; 221 | } 222 | this.builtin_monitor_control.append(display_name, display_name); 223 | } 224 | if (! builtin_found && builtin_monitor_name != "") { 225 | this.builtin_monitor_control.append(builtin_monitor_name, builtin_monitor_name); 226 | } 227 | this._bindBuiltinMonitorControl(); 228 | }).bind(this)); 229 | } 230 | }); 231 | 232 | function init() { 233 | ExtensionUtils.initTranslations(); 234 | } 235 | 236 | function buildPrefsWidget() { 237 | let widget = new SoftBrightnessSettings(); 238 | widget.setup(); 239 | // show_all() is only available/necessary on GTK < 4.0. 240 | if (widget.show_all !== undefined) { 241 | widget.show_all(); 242 | } 243 | 244 | return widget; 245 | } 246 | -------------------------------------------------------------------------------- /meson-gse/README.md: -------------------------------------------------------------------------------- 1 | # meson-gse 2 | 3 | # A Gnome Shell Extension library 4 | 5 | ## Overview 6 | 7 | meson-gse contains various files needed when using meson for building 8 | Gnome Shell extensions. 9 | 10 | This repository is supposed to be included in the `meson-gse` 11 | top-level directory of your extension (with git-subtree and/or 12 | git-submodule). 13 | 14 | ## Gnome Shell Extensions using meson-gse 15 | 16 | - [SSH Search Provider Reborn](https://github.com/F-i-f/ssh-search-provider/) 17 | 18 | - [Soft Brightness](https://github.com/F-i-f/soft-brightness/) 19 | 20 | - [Tweaks in System Menu](https://github.com/F-i-f/tweaks-system-menu/) 21 | 22 | - [Weeks Start on Monday Again...](https://github.com/F-i-f/weeks-start-on-monday/) 23 | 24 | ## Usage 25 | 26 | ### Expected layout 27 | 28 | meson-gse expects your project to have a certain layout: 29 | 30 | - `po/` 31 | 32 | - Internationalization files go here. 33 | 34 | - `schemas/` 35 | 36 | - Any GSettings schema go here, they are expected to be of the form: 37 | 38 | - `schemas/org.gnome.shell.extensions.`_your project 39 | name_`.gschema.xml` **[auto-included]** 40 | 41 | - `src/` 42 | 43 | - JavaScript and CSS goes here 44 | 45 | - `src/extension.js` This file is mandatory for a Gnome-shell 46 | extension. **[auto-included]** 47 | 48 | - `src/metadata.json.in` Mandatory template for the metadata file, 49 | see below. **[auto-included]** 50 | 51 | - `src/stylesheet.css` Optional. **[auto-included]** 52 | 53 | - `src/pref.js` Optional. **[auto-included]** 54 | 55 | ### Import meson-gse in your git tree 56 | 57 | In your extension's top-level directory, run: 58 | 59 | ```shell 60 | git subtree add -P meson-gse -m "Pull from meson-gse as a subtree." git@github.com:F-i-f/meson-gse.git master 61 | ``` 62 | 63 | As a convenience, when pulling update from the project, two commands 64 | automate pushing and pulling: 65 | 66 | ```shell 67 | meson-gse/git-subtree-pull 68 | meson-gse/git-subtree-push 69 | ``` 70 | 71 | ### Create required files 72 | 73 | You need to create two files: `meson-gse.build` and 74 | `src/metadata.json.in` 75 | 76 | #### The `meson-gse.build` file 77 | 78 | ##### Syntax 79 | 80 | ```shell 81 | # You can put a header here 82 | # But no meson directives can be used 83 | gse_project({extension name}, {extension uuid domain}, {extension version}, {gse assignments, meson code block}) 84 | # You can put other comments or meson directives after the gse_project statement 85 | ``` 86 | 87 | - _extension name_ will be used as the _project name_ in the 88 | `meson_project()` definition and must conform to its requirements. 89 | 90 | - _extension uuid domain_ will be appended to _extension name_ when 91 | generating the extension's UUID. 92 | 93 | - _extension_version_ must be a single integer as it will be used in 94 | the Gnome Shell extension's `metadata.json` file. 95 | 96 | - _gse_assignments, meson code block_ can be any meson code, but you're 97 | expected to fill in some meson-gse variables as described below. 98 | 99 | ##### Available meson-gse variables 100 | 101 | - __gse_sources__ 102 | 103 | You can add any JavaScript files to this meson variable. Note that 104 | the `src/extension.js` and `src/prefs.js` (if it exists) files are 105 | automatically included. 106 | 107 | **Example:** 108 | 109 | ```meson 110 | gse_sources += files('src/other.js', 'src/foo.js') 111 | ``` 112 | 113 | The `gse_sources` files are installed in the extension's root 114 | directory by the `install` or `extension.zip` `ninja` targets. 115 | 116 | - __gse_libs__ 117 | 118 | This meson variable is intended for external JavaScript libraries. 119 | The difference between `gse_sources` and `gse_libs` is that the 120 | `gse_sources` JavaScript files will be checked for syntax when 121 | running `ninja check` while the `gse_libs` JavaScript files won't. 122 | 123 | The very commonly used `convenience.js` file is included in the 124 | meson-gse distribution and its path is available in the meson 125 | variable `gse_lib_convenience`. 126 | 127 | A very [basic logging 128 | class](https://github.com/F-i-f/meson-gse/blob/master/lib/logger.js) 129 | is also provided, and its path is available in the `gse_lib_logger` 130 | meson variable. 131 | 132 | **Example:** 133 | 134 | ```meson 135 | gse_libs += gse_lib_convenience 136 | gse_libs += files('lib/other-library.js') 137 | ``` 138 | 139 | The `gse_libs` files are installed in the extension's root directory 140 | by the `install` or `extension.zip` `ninja` targets. 141 | 142 | - __gse_data__ 143 | 144 | This meson variable can be used for other non-JavaScript data files. 145 | The `src/stylesheet.css` file is automatically included if it 146 | exists. 147 | 148 | **Example:** 149 | 150 | ```meson 151 | gse_data += files('icons/blah.png', 'src/datafile.xml') 152 | ``` 153 | 154 | The `gse_data` files are installed in the extension's root directory 155 | by the `install` or `extension.zip` `ninja` targets. 156 | 157 | - __gse_schemas__ 158 | 159 | This meson variable can be used for GSettings schemas that need to 160 | be included. If your extension's schema is stored in 161 | `schemas/org.gnome.shell.extensions.`_meson project 162 | name_`.gschema.xml`, it will be automatically included. 163 | 164 | **Example:** 165 | 166 | ```meson 167 | gse_schemas += files('schemas/other-schema.xml') 168 | ``` 169 | 170 | The `gse_schemas` files are installed in the extension's `schemas` 171 | directory by the `install` or `extension.zip` `ninja` targets. 172 | 173 | - __gse_dbus_interfaces__ 174 | 175 | If your extension requires to be shipped with some missing or 176 | private DBus interfaces, you can use this meson variable. 177 | 178 | **Example:** 179 | 180 | ```meson 181 | gse_dbus_interfaces += files('dbus-interfaces/private.xml') 182 | ``` 183 | 184 | The `gse_dbus_interfaces` files are installed in the extension's 185 | `dbus-interfaces` directory by the `install` or `extension.zip` 186 | `ninja` targets. 187 | 188 | #### The `src/metadata.json.in` file 189 | 190 | This is a template for the extension's `metadata.json` file. Meson 191 | will fill in some variables automatically. All variables expansions 192 | are surrounded with `@` signs, like in `@variable@`. 193 | 194 | ##### Available `metadata.json.in` expansions 195 | 196 | - `@uuid@` – fills in your extension's uuid. 197 | 198 | - `@gettext_domain@` – will be replaced by your extension's gettext 199 | domain. This is typically your meson project name / extension name. 200 | 201 | - `@version@` – your extension's version as declared in the 202 | `gse_project()` statement. 203 | 204 | - `@VCS_TAG@` – will be the current git revision number. 205 | 206 | ### Run the `meson-gse/meson-gse` tool, `meson` and `ninja` 207 | 208 | ```shell 209 | meson-gse/meson-gse 210 | meson build 211 | ninja -C build test # Checks syntax of JavaScript files 212 | ninja -C build install # Install to $HOME/.local/share/gnome-shell/extensions 213 | ninja -C build extension.zip # Builds the extension in build/extension.zip 214 | ``` 215 | 216 | ## Examples 217 | 218 | ### Simple project 219 | 220 | I'm working on project _simple_, version _1_ and my extension's domain 221 | is _example.com_. If your file layout is: 222 | 223 | - `meson-gse.build` 224 | 225 | ```meson 226 | meson_gse_project({simple}, {example.com}, {1}) 227 | ``` 228 | 229 | - `src/extension.js` 230 | 231 | ```javascript 232 | const Extension = class Extension { 233 | Name: 'Hello, world!', 234 | 235 | enable: function() { 236 | log('Hello world enabled'); 237 | }, 238 | 239 | disable: function() { 240 | log('Hello world disabled'); 241 | } 242 | }; 243 | 244 | function init() { 245 | return new Extension(); 246 | } 247 | ``` 248 | 249 | - `src/metadata.json.in` 250 | 251 | ```json 252 | { 253 | "description": "Says: hello, world.", 254 | "name": "Hello, world!", 255 | "shell-version": [ 256 | "3.30" 257 | ], 258 | "gettext-domain": "@gettext_domain@", 259 | "settings-schema": "org.gnome.shell.extensions.hello-world", 260 | "url": "http://example.com/", 261 | "uuid": "@uuid@", 262 | "version": @version@, 263 | "vcs_revision": "@VCS_TAG@" 264 | } 265 | ``` 266 | 267 | Create the two above files in a git repository: 268 | 269 | ```shell 270 | mkdir hello-world 271 | cd hello-world 272 | git init 273 | echo "gse_project({simple}, {example.com}, {1})" > meson-gse.build 274 | mkdir src 275 | cat <<-'EOD' > src/extension.js 276 | const Extension = class Extension { 277 | Name: 'Hello, world!', 278 | 279 | enable: function() { 280 | log('Hello world enabled'); 281 | }, 282 | 283 | disable: function() { 284 | log('Hello world disabled'); 285 | } 286 | }); 287 | 288 | function init() { 289 | return new Extension(); 290 | } 291 | EOD 292 | cat <<-'EOD' > src/metadata.json.in 293 | { 294 | "description": "Says: hello, world.", 295 | "name": "Hello, world!", 296 | "shell-version": [ 297 | "3.30" 298 | ], 299 | "gettext-domain": "@gettext_domain@", 300 | "settings-schema": "org.gnome.shell.extensions.hello-world", 301 | "url": "http://example.com/", 302 | "uuid": "@uuid@", 303 | "version": @version@, 304 | "vcs_revision": "@VCS_TAG@" 305 | } 306 | EOD 307 | git add meson-gse.build src 308 | git commit -m "Initial checkin." 309 | git subtree add -P meson-gse -m "Pull from meson-gse as a subtree." git@github.com:F-i-f/meson-gse.git master 310 | meson-gse/meson-gse 311 | meson build 312 | ninja -C build test install 313 | ``` 314 | 315 | And your extension is installed and ready to be enabled in Tweaks. 316 | 317 | ### More complex examples 318 | 319 | Refer to the [projects using meson-gse](#gnome-shell-extensions-using-meson-gse). 320 | 321 | ## Requirements 322 | 323 | - [Meson](https://mesonbuild.com/) 0.50.0 or later. 324 | - [GNU M4](https://www.gnu.org/software/m4/m4.html) 325 | 326 | M4 is needed to generate `meson.build` from `meson-gse.build`. 327 | 328 | ## Recent changes 329 | 330 | ### 2022-05-20 331 | 332 | - Support js91 for javascript validation. 333 | - Support Meson 0.61 and later. 334 | - Fix issue in git-subtree-push. 335 | 336 | ### 2021-12-20 337 | 338 | - Fix compatibility issue with meson 0.60. 339 | - Require meson 0.50.0 or later for builds. 340 | 341 | ## Credits 342 | 343 | - I've been inspired by the 344 | [gnome-shell-extensions](https://gitlab.gnome.org/GNOME/gnome-shell-extensions/) 345 | for writing the meson build files. Thanks to [Florian 346 | Müllner](https://gitlab.gnome.org/fmuellner). 347 | 348 | - meson-gse includes the `convenience.js` file from Giovanni Campagna 349 | . 350 | 351 | 355 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Soft Brightness Gnome Shell Extension 2 | 3 | [![Build Status](https://travis-ci.org/F-i-f/soft-brightness.svg?branch=master)](https://travis-ci.org/F-i-f/soft-brightness) 4 | 5 | ![Brightness slider in Gnome Shell's system menu](docs/soft-brightness.png) 6 | 7 | ## Overview 8 | 9 | Soft Brightness uses an alpha overlay to control the brightness on all 10 | or some of your monitors. It integrates smoothly and does not 11 | interfere with other Gnome Shell features. It works flawlessly with 12 | the _Night Light_, the _Magnifier_ from the Accessibility Services, or 13 | with screen captures (as long as they are initiated by Gnome Shell). 14 | 15 | Common uses are: 16 | 17 | - Your laptop has no back-light, maybe because it's not supported, or 18 | you have an OLED display. 19 | 20 | - You want to control the brightness level of external monitor like 21 | you do with your built-in screen. 22 | 23 | Bonus features: 24 | 25 | - Minimum brightness level: do not get lost in the dark. 26 | 27 | - Can operate the shell in tear-free (VSync) mode at all time. 28 | 29 | - Disables itself temporarily when a screen shot is taken. 30 | 31 | ## Configuration 32 | 33 | Soft Brightness comes with a configuration panel, which can be 34 | accessed from the "Tweaks" application or the [Gnome Shell Extensions 35 | page](https://extensions.gnome.org/local/). 36 | 37 | ![Soft Brightness preference panel](docs/preferences.png) 38 | 39 | ### Configuration Settings 40 | 41 | #### _Use backlight control_ 42 | 43 | When enabled, Soft Brightness will work together with your computer's 44 | back-light. The brightness slider and keyboard brightness hotkeys 45 | will control both the back-light and the Soft Brightness overlays. 46 | This is most useful: 47 | 48 | - if you have a back-light and _Monitors_ is set to _External_, or 49 | 50 | - if a back-light is detected by Gnome but is not working (like some 51 | OLED panel laptops which report having a back-light brightness which 52 | doesn't exist). In that latter case _Monitors_ should be set to 53 | _All_. 54 | 55 | If _Use backlight control_ is disabled, the Brightness slider will 56 | only control the Soft Brightness overlays. The keyboard brightness 57 | hotkeys will keep their default bindings. 58 | 59 | #### _Monitor(s)_ 60 | 61 | - If set to _All_, a brightness overlay will be added to all attached 62 | monitors. 63 | 64 | - If set to _Built-in_, the brightness overlay will only be added to 65 | the built-in monitor, which is the setting right below _Monitor(s)_. 66 | 67 | - If set to _External_, a brightness overlay will only be added to all 68 | monitors which are not the built-in monitor, defined in the setting 69 | right below _Monitor(s)_. 70 | 71 | #### _Built-in monitor_ 72 | 73 | A list of currently attached monitors is displayed. Pick from the 74 | list which monitor should be considered the built-in monitor. 75 | 76 | The setting only has an effect if _Monitor(s)_ is set to _Built-in_ or 77 | _External_. 78 | 79 | #### _Full-screen behavior_ 80 | 81 | Choose one of: 82 | 83 | - _Do not enforce brightness in full-screen_: When an application 84 | enters full-screen mode, remove the brightness overlays. You may 85 | want to try this setting if your applications' refresh rate is 86 | lagging in full-screen. The application will 87 | [unredirect](https://passthroughpo.st/linux-desktop-compositors-performance-functionality) 88 | its window and will bypass Gnome Shell's compositing (this is the 89 | default for full-screen applications in Gnome Shell unless changed 90 | by another extension). 91 | 92 | - _Brightness enforced in full-screen_: The brightness overlay stays 93 | active when an application enters full-screen mode. This also 94 | prevents the app from unredirecting its window (its surface will be 95 | composited with Gnome Shell, and as a side-effect, will be subjected 96 | to vertical refresh synchronization, ensuring tear-free rendering). 97 | This is the default. 98 | 99 | - _Brightness enforced in full-screen, always tear-free_: Works like 100 | _Brightness enforced in full-screen_, but will still prevent 101 | full-screen applications from unredirecting their windows even if no 102 | brightness overlay is active (brightness is 100%). Applications 103 | will then always be rendered 104 | [tear-free](https://en.wikipedia.org/wiki/Screen_tearing), whatever 105 | the brightness may be. In this mode, Soft Brightness can be used as 106 | a replacement for extensions like _Fix Fullscreen Tearing_. 107 | 108 | #### _Minimum brightness_ 109 | 110 | Sets the minimum allowable brightness for the display where _0_ is 111 | completely dark and _1_ completely bright. Defaults to _0.1_ (10%). 112 | 113 | The minimum brightness will also be enforced for the panel back-light 114 | if _Use backlight control_ is on. 115 | 116 | When the brightness is set to 0%, the display will go completely dark, 117 | it may be hard to reset the brightness with the slider then. 118 | 119 | #### _Mouse cursor brightness control_ 120 | 121 | Toggles between having the mouse cursor brightness follow the screen 122 | brightness (on/_true_) and keeping the mouse cursor at full brightness 123 | (off/_false_). 124 | 125 | Gnome Shell's handling of cursor tracking can be sometimes buggy and 126 | can show the wrong cursor type or size when the mouse cursor 127 | brightness follows the screen brightness. It also introduces some 128 | pointer motion lag. 129 | 130 | Note that if an other Gnome Shell component enables mouse tracking 131 | (for example the Zoom accessibility option), then the mouse cursor 132 | brightness will always follow the screen's. 133 | 134 | #### _Debug_ 135 | 136 | When toggled on, Soft Brightness will log extra debugging information 137 | to the system journal (or syslog). 138 | 139 | This will be useful if you encounter a bug: In that case, please turn 140 | _Debug_ on, and try to reproduce the issue with that setting before 141 | capturing the debug logging. 142 | 143 | Soft Brightness's debug messages can be watched with: 144 | 145 | ``` 146 | journalctl -f | grep 'gnome-shell.*Soft-Brightness' 147 | ``` 148 | 149 | ### Effect on power consumption 150 | 151 | Soft Brightness will cause extra load on the hardware and therefore 152 | slightly increase power usage, as it needs to add extra alpha layers 153 | and track the mouse among other things. This is true of any Gnome 154 | Shell extension. 155 | 156 | If Soft Brightness controls an LCD panel, changing the brightness will 157 | not change at all the panel's power consumption. Use the back-light 158 | instead: Changing the back-light brightness will affect power 159 | consumption, the lower the brightness, the lower the power usage. 160 | 161 | If Soft Brightness controls an OLED panel, changing the brightness 162 | will affect power consumption, the lower the brightness, the lower the 163 | power usage. 164 | 165 | ### Common use cases and usage scenarios 166 | 167 | #### You have a desktop computer 168 | 169 | Soft Brightness can be used to control the brightness of all your 170 | attached monitors: 171 | 172 | - Set _Use backlight control_ to _Off_. 173 | 174 | - Set _Monitor(s)_ to _All_. 175 | 176 | #### You have a laptop computer with a back-light 177 | 178 | You can leave the control of your attached display to the back-light 179 | and use Soft Brightness to control the brightness of external 180 | displays: 181 | 182 | - Set _Use backlight control_ to _On_. 183 | 184 | - Set _Monitor(s)_ to _External_. 185 | 186 | - Configure _Built-in monitor_ to your built-in panel's name. 187 | 188 | #### You have a laptop computer without a back-light 189 | 190 | For example an OLED panel or non-functional back-light. Have 191 | Soft-Brightness control the brightness for all your monitors: 192 | 193 | - Set _Use backlight control_ to _On_. 194 | 195 | - Set _Monitor(s)_ to _All_. 196 | 197 | ## License 198 | 199 | Soft Brightness is free software: you can redistribute it and/or 200 | modify it under the terms of the GNU General Public License as 201 | published by the Free Software Foundation, either version 3 of the 202 | License, or (at your option) any later version. 203 | 204 | This program is distributed in the hope that it will be useful, but 205 | WITHOUT ANY WARRANTY; without even the implied warranty of 206 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 207 | General Public License for more details. 208 | 209 | You should have received a copy of the GNU General Public License 210 | along with this program. If not, see [http://www.gnu.org/licenses/]. 211 | 212 | ## Download / Install 213 | 214 | Install directly from the [Gnome Shell Extensions 215 | site](https://extensions.gnome.org/extension/1625/soft-brightness/). 216 | 217 | Or download the [zip 218 | file](https://github.com/F-i-f/soft-brightness/releases/download/v30/soft-brightness@fifi.org.v30.shell-extension.zip) 219 | from the GitHub [releases 220 | page](https://github.com/F-i-f/soft-brightness/releases) and run: 221 | 222 | ``` shell 223 | gnome-extensions install soft-brightness@fifi.org.v30.shell-extension.zip 224 | ``` 225 | 226 | ## Building from source 227 | 228 | ### Requirements 229 | 230 | - [meson](http://mesonbuild.com/) v0.50.0 or later. 231 | 232 | ### Running the build 233 | 234 | - Check out: `git clone https://github.com/F-i-f/soft-brightness` 235 | 236 | - `cd soft-brightness` 237 | 238 | - Run meson: `meson build` 239 | 240 | - To install in your your gnome shell extensions' directory (~/.local/share/gnome-shell/extensions), run ninja: `ninja -C build install` 241 | 242 | - To build the extension zip files, run: `ninja -C build extension.zip`, the extension will be found under `build/extension.zip`. 243 | 244 | ## Changelog 245 | 246 | ### Version 30 247 | #### May 20, 2022 248 | 249 | - Support Gnome Shell 42. 250 | - Drop compatibility with Gnome Shell 3.32. The earliest supported 251 | version is now 3.33.90. 252 | - Fix version detection code to handle non-numeric versions 253 | (eg. 42.beta). 254 | - Fix error at startup ("TypeError: this._overlays is null"). 255 | - Meson-gse update: Support js91, meson 0.61. 256 | - Cleanups. 257 | 258 | ### Version 29 259 | #### December 22, 2021 260 | 261 | - Fixed long standing issue with _Mouse cursor brightness control_ not 262 | working on Gnome 40 and later. 263 | - Declare compatibility with version 40 and 41 of Gnome Shell instead 264 | of using minor versions (40.0 and 41.1). This should clear reports 265 | of the extension being incompatible with well-supported versions. 266 | - Drop compatibility with Gnome Shell 3.28 and 3.30 (which do not have 267 | getSettings/initTranslations in ExtensionUtils). 268 | - Update meson-gse: 269 | - Fix build issues with meson 0.60.0. 270 | - Bump minimum meson version to 0.50.0. 271 | - Clean up code: 272 | - Remove Lang imports. 273 | - Use ExtensionUtils for getSettings/initTranslations instead of 274 | using meson-gse's convenience.js. 275 | - Drop old Gnome Shell 3.28 compatibility code. 276 | 277 | ### Version 28 278 | #### December 18, 2021 279 | 280 | - Gnome Shell 41 compatibility. 281 | - Update meson-gse to latest: 282 | - Bug fix for preferences logging. 283 | - Add Dutch translation (courtesy of @Vistaus). 284 | 285 | ### Version 27 286 | #### March 25, 2021 287 | 288 | - Gnome-shell 40.0 compatibility. 289 | - Update preferences for Gnome-shell 40.0. 290 | - Disable mouse cloning on Gnome-shell 40 and later. 291 | - Update meson-gse to latest: 292 | - Now prints the GJS version in the system log at start-up (if debug 293 | is enabled). 294 | - Support more mozjs version (78, 68, 52) for build-time syntax 295 | checks (`ninja test`). 296 | 297 | ### Version 26 298 | #### November 12, 2020 299 | 300 | - Fix mouse cursor offset bug on GS 3.38. 301 | 302 | ### Version 25 303 | #### October 30, 2020 304 | 305 | - Added Persian translation. 306 | 307 | ### Version 23, 24 308 | #### October 29, 2020 309 | 310 | - Added Turkish translation. 311 | 312 | ### Version 22 313 | #### October 28, 2020 314 | 315 | - GS 3.38 compatibility: CursorSprite.set_anchor_point has been removed. 316 | 317 | ### Version 21 318 | #### October 8, 2020 319 | 320 | - Only disable mouse tracking on Gnome-Shell 3.38 when gjs 1.65 up to 321 | 1.66.0 inclusive are detected. 322 | - Report gjs version in log. 323 | 324 | ### Version 20 325 | #### October 6, 2020 326 | 327 | - Kludgy work-around a Gnome-Shell bug where mouse tracking doesn't 328 | generate events by delaying the mouse tracking initialization after 329 | the extension has loaded. 330 | - Disable mouse tracking on Gnome-Shell 3.38 until [Gnome-Shell Issue 331 | #3237](https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3237) is 332 | fixed. 333 | - Support Gnome-Shell 3.38. 334 | 335 | ### Version 19 336 | #### April 24, 2020 337 | 338 | - Add a preference for toggling mouse cloning. 339 | - Fix typos. 340 | - Update French translation. 341 | 342 | ### Version 18 343 | #### March 12, 2020 344 | 345 | - Fix Gnome-shell 3.34 cursor tracking broken on Wayland 346 | - Enhance cursor tracking performance regression on GS >= 3.34 347 | introduced in version 16. 348 | 349 | ### Version 17 350 | #### March 11, 2020 351 | 352 | - Gnome-shell 3.36 compatibility. 353 | - Fix deprecation warning in preferences. 354 | - Update meson-gse to latest. 355 | 356 | ### Version 16 357 | #### March 10, 2020 358 | 359 | - Re-enable mouse cloning on Wayland GS >= 3.34.1 (work-around only 360 | active for 3.33.90 < GS < 3.34.1). 361 | - Added Czech translation (thanks to p-bo on GitHub). 362 | - Fix annoying bug on GS 3.34 where the brightness slider will creep 363 | back to 100% whenever changed to something lower (only when using 364 | backlight control). 365 | 366 | ### Version 15 367 | #### October 27, 2019 368 | 369 | - Now compatible with GS 3.34 and GS 3.35.1. 370 | - Do not clone mouse on GS > 3.33.90 when running under Wayland 371 | (work-around [Mutter issue 372 | #826](https://gitlab.gnome.org/GNOME/mutter/issues/826)). 373 | - Minor code clean-ups. 374 | - Show GS version and session type (Wayland/X11) at start-up when 375 | debugging. 376 | 377 | ### Version 14 378 | #### August 21, 2019 379 | 380 | Fixed broken version 13 update. 381 | - Fix slider not up-to-date at start on GS 3.33.90. 382 | - Fix broken GS 3.32 compatibility code. 383 | 384 | ### Version 13 385 | #### August 19, 2019 386 | 387 | - _Note that this version is broken._ Please use versions 12 (on 388 | Gnome-Shell 3.32 and lower), or version 14 (all Shell versions). 389 | - Gnome-shell 3.33 compatibility. 390 | 391 | ### Version 12 392 | #### April 23, 2019 393 | 394 | - Fix Drag-n-Drop (eg. in Overview). 395 | 396 | ### Version 11 397 | #### April 23, 2019 398 | 399 | - Fix bug where the cursor sprite changes were not tracked correctly 400 | on Gnome Shell 3.28. 401 | - Fix regression crash by infinite recursion when attempting to "Use 402 | backlight" without a hardware backlight. If that happens, the 403 | extension will use its internal setting for the brightness value. 404 | 405 | ### Version 10 406 | #### April 23, 2019 407 | 408 | - Fix extension errors on Gnome Shell 3.32. 409 | - Fix cursor disappearing when external monitors are plugged in or the 410 | _Monitor(s)_ preference setting is changed. 411 | - Fix flickering on Gnome Shell 3.32 when mouse hovers non-overlaid 412 | display sections but overlays are active on other monitors. 413 | - Fix mouse still being tracked unnecessarily when the overlays should 414 | activate but don't because the monitors they would apply to are not 415 | connected. 416 | - Gnome Shell 3.28 compatibility. 417 | - Expand documentation. 418 | 419 | ### Version 9 420 | #### April 20, 2019 421 | 422 | - The mouse pointer is now affected by the brightness. 423 | - Better & simpler Magnifier handling. 424 | - Fix bugs. 425 | - Improved code maintainability. 426 | 427 | ### Version 8 428 | #### April 16, 2019 429 | 430 | - Remove the overlay during screenshots: they are now unaffected by 431 | the brightness setting. 432 | - Keep the brightness setting when the magnifier (aka. Universal 433 | Access Magnifier/Zoom) is on. 434 | - Fix bugs. 435 | 436 | ### Version 7 437 | #### March 30, 2019 438 | 439 | - Fix warning in logger.js that was introduced in version 6. 440 | 441 | ### Version 6 442 | #### March 26, 2019 443 | 444 | - ES6 / Gnome-Shell 3.32 compatibility (still compatible with 3.30 and lower). 445 | - Updated meson-gse to latest. 446 | - Minor doc updates. 447 | 448 | ### Version 5 449 | #### March 24, 2019 450 | 451 | - Updated meson-gse to latest. 452 | - Fix extension error on disable. 453 | - Fix extension error on enable-disable-enable. 454 | - Minor non-user visible, internal changes to preferences dialog. 455 | - Minor doc updates. 456 | 457 | ### Version 4 458 | #### February 11, 2019 459 | 460 | - README.md: Meson 0.44.0 or later is required. 461 | - README.md: Add credits. 462 | - Drop duplicate shipped file in lib/convenience.js. 463 | - Add GPLv3 in LICENSE. 464 | - Use meson-gse for building: custom scripts moved there. 465 | - Fix french translations not showing up. 466 | - Beautify preferences dialog. 467 | - Fix a few strings for consistency. 468 | - Fix wrong gettext-domain in schema file. 469 | - Remove all global variables from extension. 470 | 471 | ### Version 3 472 | #### February 6, 2019 473 | 474 | - Moved to git. 475 | - Use meson for builds, restructure source tree. 476 | - Added internationalization, and french translation. 477 | - Added LICENSE and README.md files. 478 | - Show git revision in debug logging. 479 | - Brightness overlays now mask the entire desktop, including transients. 480 | - Brightness overlays don't prevent DND actions in the overview anymore. 481 | - Fix a couple of typos. 482 | 483 | ### Version 2 484 | #### February 5, 2019 485 | 486 | - The extension now removes the standard brightness control and puts its own in place (as opposed to trying to monkey patch the existing control). 487 | 488 | - Handle external/built-in monitor. 489 | 490 | - Control what happens in full-screen. 491 | 492 | #### Notes 493 | 494 | The git release shows as 3 in the source code, but the extension (as built by the [Gnome Shell Extensions website](https://extensions.gnome.org/)) shows the release at 2. 495 | Let's call it release 2 then. 496 | 497 | ### Version 1 498 | #### February 2, 2019 499 | 500 | First public release. 501 | 502 | ## Credits 503 | 504 | - The [`meson-gse` credits](https://github.com/F-i-f/meson-gse/) are 505 | included here by reference. 506 | 507 | 509 | 511 | 513 | 515 | 517 | 519 | -------------------------------------------------------------------------------- /dbus-interfaces/org.gnome.Mutter.DisplayConfig.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 12 | 13 | 14 | 15 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 283 | 284 | 285 | 292 | 293 | 294 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /meson-gse/LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | --------------------------------------------------------------------------------