self._original_factor = self._xsettings.get_window_scaling_factor() else: self._xsettings.set_window_scaling_factor(self._original_factor) adj.set_value(self._original_factor) self._close() self._dialog.destroy() TWEAK_GROUPS = [ ListBoxTweakGroup(TWEAK_GROUP_WINDOWS, GSettingsSwitchTweak(_("Attached Modal Dialogs"),"org.gnome.mutter", "attach-modal-dialogs"), GSettingsSwitchTweak(_("Automatically Raise Windows"),"org.gnome.desktop.wm.preferences", "auto-raise"), GSettingsSwitchTweak(_("Resize with Secondary-click"),"org.gnome.desktop.wm.preferences", "resize-with-right-button"), GSettingsComboTweak(_("Window Action Key"), "org.gnome.desktop.wm.preferences", "mouse-button-modifier", [("disabled", _("Disabled")), ("<Alt>", "Alt"), ("<Super>", "Super")]), GSettingsComboEnumTweak(_("Focus Mode"), "org.gnome.desktop.wm.preferences", "focus-mode"), Title(_("Titlebar Actions"), "", uid="title-titlebar-actions"), GSettingsComboEnumTweak(_("Double-click"),"org.gnome.desktop.wm.preferences", "action-double-click-titlebar"), GSettingsComboEnumTweak(_("Middle-click"),"org.gnome.desktop.wm.preferences", "action-middle-click-titlebar"), GSettingsComboEnumTweak(_("Secondary-click"),"org.gnome.desktop.wm.preferences", "action-right-click-titlebar"), Title(_("Titlebar Buttons"), "", uid="title-theme"), ShowWindowButtons(_("Maximize"), "maximize"), ShowWindowButtons(_("Minimize"), "minimize"), Title(_("HiDPI"), "", uid="title-hidpi"), WindowScalingFactorTweak(), ) ]
return False sg = build_horizontal_sizegroup() sw = StaticWorkspaceTweak(size_group=sg, loaded=_shell_loaded) depends_how = lambda x,kn: not(x.get_boolean(kn)) TWEAK_GROUPS = [ ListBoxTweakGroup(TWEAK_GROUP_TOPBAR, ApplicationMenuTweak(), Title(_("Clock"),""), GSettingsCheckTweak(_("Show date"),"org.gnome.desktop.interface", "clock-show-date", schema_filename="org.gnome.desktop.interface.gschema.xml"), GSettingsCheckTweak(_("Show seconds"), "org.gnome.desktop.interface", "clock-show-seconds", schema_filename="org.gnome.desktop.interface.gschema.xml"), Title(_("Calendar"),""), GSettingsCheckTweak(_("Show week numbers"),"org.gnome.desktop.calendar", "show-weekdate", schema_filename="org.gnome.desktop.calendar.gschema.xml"), ), ListBoxTweakGroup(TWEAK_GROUP_POWER, Title(_("When Power Button is Pressed"), "", uid="title-theme"), GSettingsComboEnumTweak(_("Action"), "org.gnome.settings-daemon.plugins.power", "power-button-action", size_group=sg), Title(_("When Laptop Lid is Closed"), "", uid="title-theme"), GSettingsComboEnumTweak(_("On Battery Power"),"org.gnome.settings-daemon.plugins.power", "lid-close-battery-action", size_group=sg), GSettingsComboEnumTweak(_("When plugged in"),"org.gnome.settings-daemon.plugins.power", "lid-close-ac-action", size_group=sg), GSettingsSwitchTweak(_("Suspend even if an external monitor is plugged in"),"org.gnome.settings-daemon.plugins.power", "lid-close-suspend-with-external-monitor", size_group=sg), IgnoreLidSwitchTweak(), ), ListBoxTweakGroup(TWEAK_GROUP_WORKSPACES, sw, GSettingsSpinButtonTweak(_("Number of Workspaces"), "org.gnome.desktop.wm.preferences", "num-workspaces", depends_on = sw, depends_how=depends_how, size_group=sg), GSettingsSwitchTweak(_("Workspaces only on primary display"),"org.gnome.mutter", "workspaces-only-on-primary", schema_filename="org.gnome.shell.gschema.xml", loaded=_shell_loaded), ) ]
GSettingsSwitchTweak(_("Animations"), "org.gnome.desktop.interface", "enable-animations"), Title(_("Themes"), "", uid="title-theme"), GtkThemeSwitcher(), CursorThemeSwitcher(), IconThemeSwitcher(), ShellThemeTweak(loaded=_shell_loaded), Title(_("Background"), "", uid="title-theme"), GSettingsFileChooserButtonTweak( _("Image"), "org.gnome.desktop.background", "picture-uri", local_only=True, mimetypes=["application/xml", "image/png", "image/jpeg"]), GSettingsComboEnumTweak(_("Adjustment"), "org.gnome.desktop.background", "picture-options"), Title(_("Lock Screen"), "", uid="title-theme"), GSettingsFileChooserButtonTweak( _("Image"), "org.gnome.desktop.screensaver", "picture-uri", local_only=True, mimetypes=["application/xml", "image/png", "image/jpeg"]), GSettingsComboEnumTweak(_("Adjustment"), "org.gnome.desktop.screensaver", "picture-options"), # Title(_("Files"), ""), # GSettingsSwitchTweak(_("Use location entry"), "org.gnome.nautilus.preferences", # "always-use-location-entry",schema_filename="org.gnome.nautilus.gschema.xml"),
TWEAK_GROUPS = [ ListBoxTweakGroup( _("Keyboard and Mouse"), GSettingsSwitchTweak( _("Show All Input Sources"), "org.gnome.desktop.input-sources", "show-all-sources", logout_required=True, ), KeyThemeSwitcher(), GSettingsComboTweak(_("Switch between overview and desktop"), "org.gnome.mutter", "overlay-key", [("Super_L", _("Left super")), ("Super_R", _("Right super"))]), Title(_("Mouse"), ""), GSettingsSwitchTweak( _("Show location of pointer"), "org.gnome.settings-daemon.peripherals.mouse", "locate-pointer", schema_filename="org.gnome.settings-daemon.peripherals.gschema.xml" ), PrimaryPasteTweak(), Title(_("Touchpad"), ""), GSettingsComboEnumTweak( _("Click method"), "org.gnome.desktop.peripherals.touchpad", "click-method", schema_filename="org.gnome.desktop.peripherals.gschema.xml"), ), ]
_("Keyboard and Mouse"), GSettingsSwitchTweak( _("Show All Input Sources"), "org.gnome.desktop.input-sources", "show-all-sources", logout_required=True, ), KeyThemeSwitcher(), GSettingsComboTweak(_("Switch between overview and desktop"), "org.gnome.mutter", "overlay-key", [("Super_L", _("Left super")), ("Super_R", _("Right super"))]), Title(_("Mouse"), ""), GSettingsComboEnumTweak( _("Acceleration profile"), "org.gnome.desktop.peripherals.mouse", "accel-profile", schema_filename="org.gnome.desktop.peripherals.gschema.xml"), GSettingsSwitchTweak( _("Show location of pointer"), "org.gnome.settings-daemon.peripherals.mouse", "locate-pointer", schema_filename="org.gnome.settings-daemon.peripherals.gschema.xml" ), GSettingsSwitchTweak(_("Middle-click Paste"), "org.gnome.desktop.interface", "gtk-enable-primary-paste"), Title(_("Touchpad"), ""), GSettingsComboEnumTweak( _("Click method"), "org.gnome.desktop.peripherals.touchpad",
depends_on=dicons, schema_filename="org.gnome.nautilus.gschema.xml"), GSettingsCheckTweak(_("Network Servers"), "org.gnome.nautilus.desktop", "network-icon-visible", depends_on=dicons, schema_filename="org.gnome.nautilus.gschema.xml"), GSettingsCheckTweak(_("Trash"), "org.gnome.nautilus.desktop", "trash-icon-visible", depends_on=dicons, schema_filename="org.gnome.nautilus.gschema.xml"), GSettingsCheckTweak(_("Mounted Volumes"), "org.gnome.nautilus.desktop", "volumes-visible", depends_on=dicons, schema_filename="org.gnome.nautilus.gschema.xml"), Title(_("Background"), "", uid="title-theme"), GSettingsComboEnumTweak(_("Mode"), "org.gnome.desktop.background", "picture-options"), GSettingsFileChooserButtonTweak( _("Background Location"), "org.gnome.desktop.background", "picture-uri", local_only=True, mimetypes=["application/xml", "image/png", "image/jpeg"]), #Title(_("Files"), ""), #GSettingsSwitchTweak(_("Use location entry"), "org.gnome.nautilus.preferences", "always-use-location-entry",schema_filename="org.gnome.nautilus.gschema.xml"), ) ]
TWEAK_GROUPS = [ ListBoxTweakGroup(_("Keyboard & Mouse"), Title(_("Keyboard"), "", top=True), GSettingsSwitchTweak(_("Show Extended Input Sources"), "org.gnome.desktop.input-sources", "show-all-sources", desc=_("Increases the choice of input sources in the Settings application."), logout_required=True,), KeyThemeSwitcher(), ComposeDialogLauncher(), OverviewShortcutTweak(), AdditionalLayoutButton(), Title(_("Mouse"), ""), GSettingsComboEnumTweak(_("Acceleration Profile"), "org.gnome.desktop.peripherals.mouse", "accel-profile", schema_filename="org.gnome.desktop.peripherals.gschema.xml"), GSettingsSwitchTweak(_("Pointer Location"), "org.gnome.settings-daemon.peripherals.mouse", "locate-pointer", schema_filename="org.gnome.settings-daemon.peripherals.gschema.xml", desc=_("Press the Ctrl key to highlight the pointer.")), GSettingsSwitchTweak(_("Middle Click Paste"), "org.gnome.desktop.interface", "gtk-enable-primary-paste"), Title(_("Touchpad"), ""), GSettingsSwitchTweak(_("Disable While Typing"), "org.gnome.desktop.peripherals.touchpad", "disable-while-typing", schema_filename="org.gnome.desktop.peripherals.gschema.xml"),