示例#1
0
def install():
    if check_installed("grub-customizer"):
        message("Grub Customizer is already installed.")
        return

    install_from_ppa('ppa:danielrichter2007/grub-customizer',
                     'grub-customizer')
示例#2
0
def install_mc_os_themes():
    message("Installing Mc-OS Themes...")

    copytree_delete_existing(RESOURCES.GNOME_THEMES(), PATHS.THEMES_PATH())

    set_gsetting('org.gnome.desktop.wm.preferences', 'theme', 'McOS-MJV-dark')
    set_gsetting('org.gnome.desktop.interface', 'gtk-theme', 'McOS-MJV-dark')
示例#3
0
def install():
    message("Installing dotfiles...")
    for path in dotfiles:
        source = pathlib.Path('resources', 'dotfiles', path)
        if not source.exists():
            raise ValueError(f"The source file does not exist: '{source}'")
        add_dotfile(source.resolve(), pathlib.Path(pathlib.Path.home(), path))
    message("Dotfiles installed")
def install():
    if check_installed("libreoffice"):
        message("Libre Office is already installed.")
        return

    # This command is in the PPA but Ubuntu lacks an installation candidate
    #run_bash_command('sudo apt-get install python-software-properties')
    install_from_ppa('ppa:libreoffice/ppa', 'libreoffice')
def install():
    if check_installed("flatpak"):
        message("flatpak is already installed.")
        return

    install_from_ppa('ppa:alexlarsson/flatpak',
                     'flatpak')

    run_bash_command(
        'flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo')
示例#6
0
def install_capitaine_cursors():
    message("Installing Capitaine Cursors...")
    repo_path = clone_repo(
        'https://github.com/keeferrourke/capitaine-cursors.git')

    for theme in os.listdir(repo_path):
        theme_path = pathlib.Path(repo_path, theme).resolve()
        if "dist" in str(theme_path):
            copytree_delete_existing(
                theme_path, pathlib.Path(PATHS.ICONS_PATH(), "capitaine-cursors"))

    shutil.rmtree(repo_path)
示例#7
0
def install():
    if check_installed("bcompare"):
        message("Beyond Compare is already installed.")
        return

    output_file = 'bcompare-4.2.6.23150_amd64.deb'
    url = f'http://www.scootersoftware.com/{output_file}'

    message("Downloading Beyond Compare...")
    request.urlretrieve(url, output_file)
    message("Finished downloading Beyond Compare.")
    install_dpkg(output_file)
    os.remove(output_file)
def main():

    print_banner()

    if not is_root_user():
        message("This script must be run with sudo permissions")
        return

    try:
        if query_yes_no("Install applications?"):
            applications.install()
        if query_yes_no("Install dot files?"):
            dotfiles.install()
        if query_yes_no("Setup Gnome?"):
            gnome.setup()
        message("Finished running script!")
    except KeyboardInterrupt:
        print('')
        message(f'User aborted script.')
        sys.exit()
def install():
    if check_installed("code"):
        message("VS Code is already installed.")
        return

    url = "https://go.microsoft.com/fwlink/?LinkID=760868"
    output_file = "vscode.deb"

    message("Downloading VS Code...")
    response = requests.get(url, allow_redirects=True)
    message("Finished downloading VS Code.")
    with open(output_file, 'wb') as file:
        file.write(response.content)
        install_dpkg(output_file)
    os.remove(output_file)

    # Install Extensions
    run_bash_command('code --install-extension eamodio.gitlens')
    #run_bash_command('code --install-extension hoovercj.vscode-power-mode')
    run_bash_command('code --install-extension ms-python.python')
    run_bash_command('code --install-extension ms-vscode.cpptools')
    run_bash_command('code --install-extension PKief.material-icon-theme')
    run_bash_command('code --install-extension zhuangtongfa.Material-theme')
def install():
    if check_installed("vscodium"):
        message("VSCodium is already installed.")
        return

    url = "https://github.com/VSCodium/vscodium/releases/download/1.33.1/vscodium_1.33.1-1556929548_amd64.deb"
    output_file = "vscodium.deb"

    message("Downloading VSCodium...")
    response = requests.get(url, allow_redirects=True)
    message("Finished downloading VSCodium.")
    with open(output_file, 'wb') as file:
        file.write(response.content)
        install_dpkg(output_file)
    os.remove(output_file)

    # Install Extensions
    run_bash_command('vscodium --install-extension eamodio.gitlens')
    #run_bash_command('code --install-extension hoovercj.vscode-power-mode')
    run_bash_command('vscodium --install-extension ms-python.python')
    run_bash_command('vscodium --install-extension ms-vscode.cpptools')
    run_bash_command('vscodium --install-extension PKief.material-icon-theme')
    run_bash_command(
        'vscodium --install-extension zhuangtongfa.Material-theme')
示例#11
0
def install_grub_theme():
    message("Installing Grub theme..")
    copytree_delete_existing(pathlib.Path(RESOURCES.GRUB_THEMES(), 'preikestolen').resolve(),
                             pathlib.Path(PATHS.GRUB_PATH(), 'themes/preikestolen'))
示例#12
0
def install():
    if check_installed("keepassxc"):
        message("KeePassXC is already installed.")
        return

    install_from_ppa('ppa:phoerious/keepassxc', 'keepassxc')