Esempio n. 1
0
def __nav_pane():  # Setup windows explorer sidebar
    registry.set_key_value(regkey('NAVBAR_HG'),
                           'Attributes', 'b084010c', 'DWORD')
    registry.set_key_value(regkey('NAVBAR_LIB'),
                           'Attributes', 'b080010d', 'DWORD')
    registry.set_key_value(regkey('NAVBAR_COMP'),
                           'Attributes', 'b094010c', 'DWORD')
    registry.set_key_value(regkey('NAVBAR_NET'),
                           'Attributes', 'b0040064', 'DWORD')
Esempio n. 2
0
def __nav_pane():  # Setup windows explorer sidebar
    registry.set_key_value(regkey('NAVBAR_HG'), 'Attributes', 'b084010c',
                           'DWORD')
    registry.set_key_value(regkey('NAVBAR_LIB'), 'Attributes', 'b080010d',
                           'DWORD')
    registry.set_key_value(regkey('NAVBAR_COMP'), 'Attributes', 'b094010c',
                           'DWORD')
    registry.set_key_value(regkey('NAVBAR_NET'), 'Attributes', 'b0040064',
                           'DWORD')
Esempio n. 3
0
def __cmd_fonts(): # Get opendyslexic working in cmd
    #registry.set_key_value(regkey('TRUE_FONT'), '0',      'Lucida Console', 'SZ')
    #registry.set_key_value(regkey('TRUE_FONT'), '00',     'White Rabbit',   'SZ')
    #registry.set_key_value(regkey('TRUE_FONT'), '000',    'Consolas',       'SZ')
    # TODO: Set/Add key value (set seems to not work. try adding instead)
    registry.set_key_value(regkey('TRUE_FONT'), '0000',   'Mono Dyslexic Regular', 'SZ')
    registry.set_key_value(regkey('TRUE_FONT'), '00000',  'Mono Dyslexic', 'SZ')
    registry.set_key_value(regkey('TRUE_FONT'), '000000', 'Mono_Dyslexic', 'SZ')
Esempio n. 4
0
def __cmd_fonts(): # Get opendyslexic working in cmd
    #registry.set_key_value(regkey('TRUE_FONT'), '0',      'Lucida Console', 'SZ')
    #registry.set_key_value(regkey('TRUE_FONT'), '00',     'White Rabbit',   'SZ')
    #registry.set_key_value(regkey('TRUE_FONT'), '000',    'Consolas',       'SZ')
    # TODO: Set/Add key value (set seems to not work. try adding instead)
    registry.set_key_value(regkey('TRUE_FONT'), '0000',   'Mono Dyslexic Regular', 'SZ')
    registry.set_key_value(regkey('TRUE_FONT'), '00000',  'Mono Dyslexic', 'SZ')
    registry.set_key_value(regkey('TRUE_FONT'), '000000', 'Mono_Dyslexic', 'SZ')
Esempio n. 5
0
def __disable_areo_shake():  # Disable Aero Shake
    registry.set_key_value(regkey('EXPLORER_POL'),
                           'NoWindowMinimizingShortcuts', 1,  'DWORD')
Esempio n. 6
0
def __autohotkey_editor(editor):  # Autohotkey will use the right editor
    registry.set_key_value(regkey('AHK_CMD'),
                           '(Default)', '"'+editor+'" "%1"', 'SZ')
Esempio n. 7
0
def __hide_file_bit(bit=0):  # Don't Hide File Extensions
    bit = bool(bit)
    registry.set_key_value(regkey('EXPLORER_ADV'),
                           'HideFileExt', 0,                  'DWORD')
Esempio n. 8
0
def __disable_winL_lock():  # Dont lock screeon on WIN+L
    registry.set_key_value(regkey('SYSTEM_POL'),
                           'DisableLockWorkstation', 1,       'DWORD')
Esempio n. 9
0
def __remove_sidebar_network():
    registry.set_key_value(
        'HKEY_CLASSES_ROOT\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}ShellFolder', 'Attributes', 'b0040064', 'DWORD')
Esempio n. 10
0
def __show_sidebar_computer():
    registry.set_key_value(
        'HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\ShellFolder', 'Attributes', 'b094010c', 'DWORD')
Esempio n. 11
0
def __disable_areo_shake():  # Disable Aero Shake
    registry.set_key_value(regkey('EXPLORER_POL'),
                           'NoWindowMinimizingShortcuts', 1, 'DWORD')
Esempio n. 12
0
def __autohotkey_editor(editor):  # Autohotkey will use the right editor
    registry.set_key_value(regkey('AHK_CMD'), '(Default)',
                           '"' + editor + '" "%1"', 'SZ')
Esempio n. 13
0
def __hide_file_bit(bit=0):  # Don't Hide File Extensions
    bit = bool(bit)
    registry.set_key_value(regkey('EXPLORER_ADV'), 'HideFileExt', 0, 'DWORD')
Esempio n. 14
0
def __disable_winL_lock():  # Dont lock screeon on WIN+L
    registry.set_key_value(regkey('SYSTEM_POL'), 'DisableLockWorkstation', 1,
                           'DWORD')
Esempio n. 15
0
def __remove_sidebar_network():
    registry.set_key_value(
        'HKEY_CLASSES_ROOT\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}ShellFolder',
        'Attributes', 'b0040064', 'DWORD')
Esempio n. 16
0
def __show_sidebar_computer():
    registry.set_key_value(
        'HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\ShellFolder',
        'Attributes', 'b094010c', 'DWORD')
Esempio n. 17
0
def set_env_var(var, val):
    try:
        registry.set_key_value(regkey('LOCAL_ENVVAR'), var, val, 'EXPAND_SZ')
    except WindowsError as ex:
        print(repr(ex))
        raise
Esempio n. 18
0
def set_env_var(var, val):
    try:
        registry.set_key_value(regkey('LOCAL_ENVVAR'), var, val, 'EXPAND_SZ')
    except WindowsError as ex:
        print(repr(ex))
        raise