예제 #1
0
    'group'     : 'radio_active_monitor',
    'value'     : 'follow-focus',
    'dependants': []
})

# TODO
# list_unity_additional_accelerators


AdditionalIcons=Tab([check_hud_store_data,
                     check_shortcuts_hints_overlay,
                     radio_all_monitors,
                     radio_active_monitor])

# Pass in the id of restore defaults button to enable it.
LauncherIcons.enable_restore('b_unity_launcher_reset')
DashIcons.enable_restore('b_unity_dash_reset')
PanelIcons.enable_restore('b_unity_panel_reset')
SwitcherIcons.enable_restore('b_unity_switcher_reset')
WebappsIcons.enable_restore('b_unity_webapps_reset')
AdditionalIcons.enable_restore('b_unity_additional_reset')

# Each page must be added using add_page
Unity.add_page(LauncherIcons)
Unity.add_page(DashIcons)
Unity.add_page(PanelIcons)
Unity.add_page(SwitcherIcons)
Unity.add_page(WebappsIcons)
Unity.add_page(AdditionalIcons)

# XXX : Spaghetti bridge
예제 #2
0
    'type': 'string',
    'group': 'radio_active_monitor',
    'value': 'follow-focus',
    'dependants': []
})

# TODO
# list_unity_additional_accelerators

AdditionalIcons = Tab([
    check_hud_store_data, check_shortcuts_hints_overlay, radio_all_monitors,
    radio_active_monitor
])

# Pass in the id of restore defaults button to enable it.
LauncherIcons.enable_restore('b_unity_launcher_reset')
DashIcons.enable_restore('b_unity_dash_reset')
PanelIcons.enable_restore('b_unity_panel_reset')
SwitcherIcons.enable_restore('b_unity_switcher_reset')
WebappsIcons.enable_restore('b_unity_webapps_reset')
AdditionalIcons.enable_restore('b_unity_additional_reset')

# Each page must be added using add_page
Unity.add_page(LauncherIcons)
Unity.add_page(DashIcons)
Unity.add_page(PanelIcons)
Unity.add_page(SwitcherIcons)
Unity.add_page(WebappsIcons)
Unity.add_page(AdditionalIcons)

# XXX : Spaghetti bridge
예제 #3
0
    'id'        : 'radio_two_finger',
    'builder'   : System.builder,
    'schema'    : 'org.gnome.' + dynamic.touchpad_schema + '.peripherals.touchpad',
    'path'      : None,
    'key'       : 'scroll-method',
    'type'      : 'string',
    'group'     : 'radio_two_finger',
    'value'     : 'two-finger-scrolling',
    'dependants': []
})

ScrollingIcons=Tab([radio_overlay_scrollbars,
                    cbox_overlay_scrollbar_mode,
                    radio_legacy_scrollbars,
                    radio_edge,
                    radio_two_finger,
                    check_horizontal_scrolling])

# Pass in the id of restore defaults button to enable it.
DesktopIcons.enable_restore('b_desktop_settings_icons_reset')
SecurityIcons.enable_restore('b_desktop_settings_security_reset')
ScrollingIcons.enable_restore('b_settings_scrolling_reset')

# Each page must be added using add_page
System.add_page(DesktopIcons)
System.add_page(SecurityIcons)
System.add_page(ScrollingIcons)

# After all pages are added, the section needs to be registered to start listening for events
System.register()
radio_right=Radio({
    'id'        : 'radio_right',
    'builder'   : Appearance.builder,
    'schema'    : 'org.gnome.desktop.wm.preferences',
    'path'      : None,
    'key'       : 'button-layout',
    'type'      : 'string',
    'group'     : 'radio_right',
    'value'     : ':minimize,maximize,close',
    'dependants': []
})


WindowControls=Tab([radio_left,
                    radio_right])

# Pass in the id of restore defaults button to enable it.
Fonts.enable_restore('b_theme_font_reset')
WindowControls.enable_restore('b_window_control_reset')

# Each page must be added using add_page
Appearance.add_page(Fonts)
# XXX : Disabled since the implementation is inadequate
# Appearance.add_page(WindowControls)

themesettings=HandlerObject(SpaghettiThemeSettings(Appearance.builder))
Appearance.add_page(themesettings)

# After all pages are added, the section needs to be registered to start listening for events
Appearance.register()
예제 #5
0
# scale_auto_raise_delay
# colorbutton_resize_outline
# colorbutton_resize_fill


AdditionalIcons=Tab([switch_auto_raise,
                     switch_raise_on_click,
					 cbox_focus_mode,
					 cbox_double_click,
					 cbox_middle_click,
					 cbox_right_click])


# Pass in the id of restore defaults button to enable it.
GeneralIcons.enable_restore('b_compiz_general_reset')
WorkspaceSettingsIcons.enable_restore('b_compiz_workspace_reset')
WindowSpreadIcons.enable_restore('b_compiz_windows_spread_reset')
#WindowSnappingIcons.enable_restore('')
AdditionalIcons.enable_restore('b_wm_additional_reset')

## Each page must be added using add_page
WindowManager.add_page(GeneralIcons)
WindowManager.add_page(WorkspaceSettingsIcons)
WindowManager.add_page(WindowSpreadIcons)
#WindowManager.add_page(WindowSnappingIcons)
WindowManager.add_page(AdditionalIcons)

# XXX : Spaghetti bridge
wmsettings=HandlerObject(SpaghettiCompizSettings(WindowManager.builder))
WindowManager.add_page(wmsettings)
예제 #6
0
})

radio_right = Radio({
    'id': 'radio_right',
    'builder': Appearance.builder,
    'schema': 'org.gnome.desktop.wm.preferences',
    'path': None,
    'key': 'button-layout',
    'type': 'string',
    'group': 'radio_right',
    'value': ':minimize,maximize,close',
    'dependants': []
})

WindowControls = Tab([radio_left, radio_right])

# Pass in the id of restore defaults button to enable it.
Fonts.enable_restore('b_theme_font_reset')
WindowControls.enable_restore('b_window_control_reset')

# Each page must be added using add_page
Appearance.add_page(Fonts)
# XXX : Disabled since the implementation is inadequate
# Appearance.add_page(WindowControls)

themesettings = HandlerObject(SpaghettiThemeSettings(Appearance.builder))
Appearance.add_page(themesettings)

# After all pages are added, the section needs to be registered to start listening for events
Appearance.register()
예제 #7
0
radio_two_finger = Radio({
    'id': 'radio_two_finger',
    'builder': System.builder,
    'schema': 'org.gnome.' + dynamic.touchpad_schema + '.peripherals.touchpad',
    'path': None,
    'key': 'scroll-method',
    'type': 'string',
    'group': 'radio_two_finger',
    'value': 'two-finger-scrolling',
    'dependants': []
})

ScrollingIcons = Tab([
    radio_overlay_scrollbars, cbox_overlay_scrollbar_mode,
    radio_legacy_scrollbars, radio_edge, radio_two_finger,
    check_horizontal_scrolling
])

# Pass in the id of restore defaults button to enable it.
DesktopIcons.enable_restore('b_desktop_settings_icons_reset')
SecurityIcons.enable_restore('b_desktop_settings_security_reset')
ScrollingIcons.enable_restore('b_settings_scrolling_reset')

# Each page must be added using add_page
System.add_page(DesktopIcons)
System.add_page(SecurityIcons)
System.add_page(ScrollingIcons)

# After all pages are added, the section needs to be registered to start listening for events
System.register()