コード例 #1
0
    def __init__(self,notebook):
        Section.__init__(self,ui='startpage.ui',id='box_startpage')
        self.sections={
            1:{ 0:'tool_launcher',
                1:'tool_dash',
                2:'tool_panel',
                3:'tool_unity_switcher',
                4:'tool_unity_webapps',
                5:'tool_additional'},
            2:{ 0:'tool_general',
                1:'tool_compiz_switcher',
                2:'tool_windows_spread',
                3:'tool_windows_snapping',
                4:'tool_hotcorners',
                5:'tool_wm_additional'},
            3:{ 0:'tool_system',
                1:'tool_icons',
                2:'tool_cursors',
                3:'tool_fonts',
                4:'tool_window_controls'},
            4:{ 0:'tool_desktop_icons',
                1:'tool_desktop_security',
                2:'tool_desktop_scrolling'}
        }

        Tab.__init__(self,[OverviewToolButton(
                            section=section,page=page,id=id,notebook=notebook)
                    for section,set in self.sections.items()
                        for page,id in set.items()
            ]
        )

        self.register_tab(self.handler)
        self.register()
コード例 #2
0
ファイル: overview.py プロジェクト: me4oslav/unity-tweak-tool
    def __init__(self, notebook):
        Section.__init__(self, ui='overview.ui', id='box_overview')
        self.sections = {
            1: {
                0: 'b_unity-launcher',
                1: 'b_unity-search',
                2: 'b_unity-panel',
                3: 'b_unity-switcher',
                4: 'b_unity-webapps',
                5: 'b_unity-additional'
            },
            2: {
                0: 'b_wm-general',
                1: 'b_wm-workspaces',
                2: 'b_wm-window-spread',
                3: 'b_wm-window-snapping',
                4: 'b_wm-hotcorners',
                5: 'b_wm-additional'
            },
            3: {
                0: 'b_appearance-theme',
                1: 'b_appearance-icons',
                2: 'b_appearance-cursors',
                3: 'b_appearance-fonts',
                4: 'b_appearance-window-controls'
            },
            4: {
                0: 'b_system-desktop-icons',
                1: 'b_system-security',
                2: 'b_system-scrolling'
            }
        }

        Tab.__init__(self, [
            OverviewButton(
                section=section, page=page, id=id, notebook=notebook)
            for section, set in self.sections.items()
            for page, id in set.items()
        ])

        self.register_tab(self.handler)
        self.register()

        # Symbolic icons
        self.icons = Gtk.IconTheme.get_default()
        self.style_context = self.builder.get_object(
            'overview_window').get_style_context()
        self.style_context.connect('changed', self.on_style_context_change)
コード例 #3
0
    def __init__(self, notebook):
        Section.__init__(self, ui='startpage.ui', id='box_startpage')
        self.sections = {
            1: {
                0: 'tool_launcher',
                1: 'tool_dash',
                2: 'tool_panel',
                3: 'tool_unity_switcher',
                4: 'tool_unity_webapps',
                5: 'tool_additional'
            },
            2: {
                0: 'tool_general',
                1: 'tool_compiz_switcher',
                2: 'tool_windows_spread',
                3: 'tool_windows_snapping',
                4: 'tool_hotcorners',
                5: 'tool_wm_additional'
            },
            3: {
                0: 'tool_system',
                1: 'tool_icons',
                2: 'tool_cursors',
                3: 'tool_fonts',
                4: 'tool_window_controls'
            },
            4: {
                0: 'tool_desktop_icons',
                1: 'tool_desktop_security',
                2: 'tool_desktop_scrolling'
            }
        }

        Tab.__init__(self, [
            OverviewToolButton(
                section=section, page=page, id=id, notebook=notebook)
            for section, set in self.sections.items()
            for page, id in set.items()
        ])

        self.register_tab(self.handler)
        self.register()
コード例 #4
0
    def __init__(self,notebook):
        Section.__init__(self,ui='overview.ui',id='box_overview')
        self.sections={
            1:{ 0:'b_unity-launcher',
                1:'b_unity-search',
                2:'b_unity-panel',
                3:'b_unity-switcher',
                4:'b_unity-webapps',
                5:'b_unity-additional'},
            2:{ 0:'b_wm-general',
                1:'b_wm-workspaces',
                2:'b_wm-window-spread',
                3:'b_wm-window-snapping',
                4:'b_wm-hotcorners',
                5:'b_wm-additional'},
            3:{ 0:'b_appearance-theme',
                1:'b_appearance-icons',
                2:'b_appearance-cursors',
                3:'b_appearance-fonts',
                4:'b_appearance-window-controls'},
            4:{ 0:'b_system-desktop-icons',
                1:'b_system-security',
                2:'b_system-scrolling'}
        }

        Tab.__init__(self,[OverviewButton(
                            section=section,page=page,id=id,notebook=notebook)
                    for section,set in self.sections.items()
                        for page,id in set.items()
            ]
        )

        self.register_tab(self.handler)
        self.register()
 
        # Symbolic icons
        self.icons = Gtk.IconTheme.get_default()
        self.style_context = self.builder.get_object('overview_window').get_style_context()
        self.style_context.connect('changed', self.on_style_context_change)
コード例 #5
0
    '/org/compiz/profiles/unity/plugins/unityshell/',
    'key':
    'launcher-opacity',
    'type':
    'double',
    'min':
    0.2,  # TODO : Check these min max. Most prolly wrong.
    'max':
    8.0,  # But fine since they are ignored anyway.
    'ticks': [(0.666, Gtk.PositionType.BOTTOM, None)]
})

LauncherIcons = Tab([
    sw_launcher_hidemode, cbox_autohide_animation, radio_reveal_left,
    radio_reveal_topleft, sw_launcher_transparent,
    radio_launcher_visibility_primary, radio_launcher_visibility_all,
    cbox_urgent_animation, cbox_launch_animation, cbox_launcher_icon_colouring,
    spin_launcher_icon_size, sc_reveal_sensitivity, sc_launcher_transparency,
    color_launcher_color_cus
])

#=============== DASH ==========================

sw_dash_blur = Switch({
    'id':
    'sw_dash_blur',
    'builder':
    Unity.builder,
    'schema':
    'org.compiz.unityshell',
    'path':
    '/org/compiz/profiles/unity/plugins/unityshell/',
コード例 #6
0
ファイル: unity.py プロジェクト: chrisglass/unity-tweak-tool
     'type'   : 'double',
     'min'    : 0.2, # TODO : Check these min max. Most prolly wrong.
     'max'    : 8.0, # But fine since they are ignored anyway.
     'ticks'  : [(0.666, Gtk.PositionType.BOTTOM, None)]

 })



LauncherIcons=Tab([sw_launcher_hidemode,
                   cbox_autohide_animation,
                   radio_reveal_left, 
                   radio_reveal_topleft,
                   radio_launcher_visibility_primary,
                   radio_launcher_visibility_all,
                   cbox_urgent_animation,
                   cbox_launch_animation,
                   cbox_launcher_icon_colouring,
                   spin_launcher_icon_size,
                   sc_reveal_sensitivity,
                   sc_launcher_transparency,
                   color_launcher_color_cus])

#=============== DASH ==========================


sw_dash_blur= Switch({
    'id'        : 'sw_dash_blur',
    'builder'   : Unity.builder,
    'schema'    : 'org.compiz.unityshell',
    'path'      : '/org/compiz/profiles/unity/plugins/unityshell/',
コード例 #7
0
    'dependants': []
})

tb_devices= ToggleButton({
    'id'        : 'tb_devices',
    'builder'   : System.builder,
    'schema'    : 'org.gnome.nautilus.desktop',
    'path'      : None,
    'key'       : 'volumes-visible',
    'type'      : 'boolean',
    'map'       : {True:True,False:False},
    'dependants': []
})

DesktopIcons=Tab([  tb_home_folder,
                    tb_network,
                    tb_trash,
                    tb_devices])

check_security_lock_screen= CheckBox({
    'id'        : 'check_security_lock_screen',
    'builder'   : System.builder,
    'schema'    : 'org.gnome.desktop.lockdown',
    'path'      : None,
    'key'       : 'disable-lock-screen',
    'type'      : 'boolean',
    'map'       : {True:True,False:False},
    'dependants': []
})

check_security_logout= CheckBox({
    'id'        : 'check_security_logout',
コード例 #8
0
cbox_autohide_animation = ComboBox({
    'id': 'cbox_autohide_animation',
    'builder': Unity.builder,
    'schema': 'org.compiz.unityshell',
    'path': '/org/compiz/profiles/unity/plugins/unityshell/',
    'key': 'autohide-animation',
    'type': 'int',
    'map': {
        0: 0,
        1: 1,
        2: 2,
        3: 3
    }
})

LauncherIcons = Tab([sw_launcher_hidemode, cbox_autohide_animation])

sw_dash_blur = Switch({
    'id':
    'sw_dash_blur',
    'builder':
    Unity.builder,
    'schema':
    'org.compiz.unityshell',
    'path':
    '/org/compiz/profiles/unity/plugins/unityshell/',
    'key':
    'dash-blur-experimental',
    'type':
    'int',
    'map':
コード例 #9
0
spin_textscaling=SpinButton({
    'id'     : 'spin_textscaling',
    'builder': Appearance.builder,
    'schema' : 'org.gnome.desktop.interface',
    'path'   : None,
    'key'    : 'text-scaling-factor',
    'type'   : 'double',
    'min'    : 0.50,
    'max'    : 3.00
})

Fonts=Tab([font_default,
                font_document,
                font_monospace,
                font_window_title,
                cbox_antialiasing,
                cbox_hinting,
                spin_textscaling])

#========== WINDOW CONTROLS =====================

radio_left=Radio({
    'id'        : 'radio_left',
    'builder'   : Appearance.builder,
    'schema'    : 'org.gnome.desktop.wm.preferences',
    'path'      : None,
    'key'       : 'button-layout',
    'type'      : 'string',
    'group'     : 'radio_left',
    'value'     : 'close,minimize,maximize:',
コード例 #10
0
#     				 'animation:Horizontal Folds':6,
#     				 'animation:Magic Lamp':7,
#     				 'animation:Magic Lamp Wavy':8,
#     				 'animation:Sidekick':9,
#     				 'animation:Zoom':10}
# })


# TODO
# sw_compiz_zoom
# list_compiz_general_zoom_accelerators
# cbox_minimize_animation
# cbox_unminimize_animation
# list_compiz_general_keys_accelerators

GeneralIcons=Tab([cbox_opengl]) #,
				  # cbox_minimize_animation,
				  # cbox_unminimize_animation])


#=============== WORKSPACE SETTINGS ==========================

spin_horizontal_desktop=SpinButton({
    'id'     : 'spin_horizontal_desktop',
    'builder': WindowManager.builder,
    'schema' : 'org.compiz.core',
    'path'   : '/org/compiz/profiles/unity/plugins/core/',
    'key'    : 'hsize',
    'type'   : 'int',
    'min'    : 1,
    'max'    : 25
コード例 #11
0
    }
})

spin_textscaling = SpinButton({
    'id': 'spin_textscaling',
    'builder': Appearance.builder,
    'schema': 'org.gnome.desktop.interface',
    'path': None,
    'key': 'text-scaling-factor',
    'type': 'double',
    'min': 0.50,
    'max': 3.00
})

Fonts = Tab([
    font_default, font_document, font_monospace, font_window_title,
    cbox_antialiasing, cbox_hinting, spin_textscaling
])

#========== WINDOW CONTROLS =====================

radio_left = Radio({
    'id': 'radio_left',
    'builder': Appearance.builder,
    'schema': 'org.gnome.desktop.wm.preferences',
    'path': None,
    'key': 'button-layout',
    'type': 'string',
    'group': 'radio_left',
    'value': 'close,minimize,maximize:',
    'dependants': []
})
コード例 #12
0
ファイル: system.py プロジェクト: omkar1610/unity-tweak-tool
tb_devices = ToggleButton({
    'id': 'tb_devices',
    'builder': System.builder,
    'schema': dynamic.desktop_schema,
    'path': None,
    'key': 'volumes-visible',
    'type': 'boolean',
    'map': {
        True: True,
        False: False
    },
    'dependants': []
})

DesktopIcons = Tab([tb_home_folder, tb_network, tb_trash, tb_devices])

check_security_lock_screen = CheckBox({
    'id': 'check_security_lock_screen',
    'builder': System.builder,
    'schema': 'org.gnome.desktop.lockdown',
    'path': None,
    'key': 'disable-lock-screen',
    'type': 'boolean',
    'map': {
        True: True,
        False: False
    },
    'dependants': []
})