[gnome-tweak-tool] sound: enable amplify above 100 percent key
- From: Jeremy Bicha <jbicha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool] sound: enable amplify above 100 percent key
- Date: Wed, 10 Jan 2018 14:05:30 +0000 (UTC)
commit 0d0fe3c03ffd89f9ee3aaf34d7e17f50e2a350d1
Author: Didier Roche <didrocks ubuntu com>
Date: Wed Jan 10 14:56:29 2018 +0100
sound: enable amplify above 100 percent key
Add an option to enable amplifying main volume output above 100% in a new
"sound" category.
Note that the sound panel is not installed yet because the new option
isn't used in GNOME yet.
If it was installed, you'll need gsettings-desktop-schemas 3.27
for the sound panel to display.
https://bugzilla.gnome.org/show_bug.cgi?id=791276
gtweak/tweaks/tweak_group_sound.py | 16 ++++++++++++++++
po/POTFILES.in | 1 +
2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_group_sound.py b/gtweak/tweaks/tweak_group_sound.py
new file mode 100644
index 0000000..78705ef
--- /dev/null
+++ b/gtweak/tweaks/tweak_group_sound.py
@@ -0,0 +1,16 @@
+# Copyright (c) 2017 Canonical
+# SPDX-License-Identifier: GPL-3.0+
+# License-Filename: LICENSES/GPL-3.0
+
+from gi.repository import Gio, GLib, Gtk
+
+import gtweak
+from gtweak.tweakmodel import Tweak
+from gtweak.widgets import ListBoxTweakGroup, GSettingsSwitchTweak
+
+TWEAK_GROUPS = [
+ ListBoxTweakGroup(_("Sound"),
+ GSettingsSwitchTweak(_("Over-Amplification"), "org.gnome.desktop.sound",
"allow-volume-above-100-percent",
+ desc=_("Allows raising the volume above 100%. This can result in a loss of audio
quality; it is better to increase application volume settings, if possible.")),
+ )
+]
diff --git a/po/POTFILES.in b/po/POTFILES.in
index abd1e57..93e35e4 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -12,6 +12,7 @@ gtweak/tweaks/tweak_group_xkb.py
gtweak/tweaks/tweak_group_power.py
gtweak/tweaks/tweak_group_shell_extensions.py
gtweak/tweaks/tweak_group_startup.py
+gtweak/tweaks/tweak_group_sound.py
gtweak/tweaks/tweak_group_top_bar.py
gtweak/tweaks/tweak_group_windows.py
gtweak/tweaks/tweak_group_workspaces.py
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]