Exemple #1
0
def run():
    packages.try_install('ibus')
    packages.try_install('ibus-anthy')
    util.create_symlink('./config.ini', '~/.config/ibus/config.ini')
    util.create_symlink('./start', '~/.config/x/start-ibus.sh')
    util.create_symlink('./start', '~/.config/ibus/start')
    util.create_symlink('./setup', '~/.config/ibus/setup')
Exemple #2
0
def run():
    packages.try_install('sxhkd-git')
    packages.try_install('xdo-git')

    util.create_symlink('./config', '~/.config/sxhkd')
    util.create_symlink('./beep-shot.mp3', '~/.local/share/')
    util.create_symlink('./start', '~/.config/x/start-sxhkd.sh')
Exemple #3
0
def run():
    spell_dir = '~/.config/nvim/spell/'
    packages.try_install('neovim-git')

    for name in ['undo', 'backup', 'swap', 'spell']:
        util.create_dir('~/.config/nvim/' + name)

    for path in util.find('./*.vim'):
        util.create_symlink(path, '~/.config/nvim/')
    util.create_symlink('./spell/pl.utf-8.add', spell_dir)
    util.create_symlink('./spell/en.utf-8.add', spell_dir)
    util.download(
        'ftp://ftp.vim.org/pub/vim/runtime/spell/en.utf-8.spl',
        '~/.config/nvim/spell/')
    util.download(
        'ftp://ftp.vim.org/pub/vim/runtime/spell/pl.utf-8.spl',
        '~/.config/nvim/spell/')
    util.download(
        'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim',
        '~/.config/nvim/autoload/plug.vim')
    util.create_file(
        '~/.config/zsh/editor.sh',
        'export EDITOR=nvim;alias vim=nvim',
        overwrite=True)

    commands = ['PlugInstall']
    for path in util.find(spell_dir):
        if 'add' in path and 'spl' not in path:
            commands.append('mkspell! ' + path)
    util.run_verbose(['nvim'] + sum([['-c', cmd] for cmd in commands], []))
Exemple #4
0
def run():
    packages.try_install('mutt-patched')
    util.create_file('~/.mutt/certificates')
    util.create_dir('~/.mutt/cache/bodies')
    util.create_dir('~/.mutt/cache/headers')
    util.create_symlink('./colors.muttrc', '~/.mutt/')
    util.create_symlink('./muttrc', '~/.mutt/')
Exemple #5
0
def run():
    if not util.has_executable('mpv'):
        packages.try_install('luajit')
        packages.try_install('mpv')
    util.create_symlink('./config', '~/.config/mpvmd')
    util.create_symlink('./mpvmd', '~/.local/bin/')
    util.create_symlink('./mpvmc', '~/.local/bin/')
    util.create_symlink('./mpvmd.service', '~/.config/systemd/user/')
Exemple #6
0
def run():
    packages.try_install('zsh')
    util.create_symlink('./zshrc', '~/.zshrc')
    util.create_symlink('./zprofile', '~/.zprofile')
    util.create_symlink('./zshenv', '~/.zshenv')
    util.create_dir('~/.config/zsh')

    util.run_verbose(['lesskey', '-o', expanduser('~/.less'), '--', './lesskey'])
Exemple #7
0
def run():
    if 'cygwin' in sys.platform:
        packages.try_install('ssh')
    else:
        packages.try_install('openssh')

    util.create_symlink('./ssh', '~/.ssh')
    util.run_verbose(['chmod', '0600', util.abs_path('~/.ssh/config')])
Exemple #8
0
def run():
    if not packages.try_install('mpd-light'):
        packages.try_install('mpd')
    packages.try_install('mpc')

    util.create_symlink('./config', '~/.config/mpd')
    util.create_dir('~/.config/mpd/playlists')
    for file in ['database', 'log', 'pid', 'state', 'sticker.sql']:
        util.create_file('~/.config/mpd/' + file)
    util.create_symlink('./start', '~/.config/x/start-mpd.sh')
Exemple #9
0
def run():
    packages.try_install('urxvt-perls')
    packages.try_install('rxvt-unicode')

    if util.exists('/usr/lib/urxvt/perl/keyboard-select') \
            and not util.exists('/usr/local/lib/urxvt/perl/keyboard-select'):
        util.create_symlink(
            '/usr/lib/urxvt/perl/keyboard-select',
            '/usr/local/lib/urxvt/perl/keyboard-select')

    util.create_symlink('./ext', '~/.urxvt/ext')
    util.create_symlink('./Xresources', '~/.config/Xresources')
    util.create_symlink('./notify-urxvt', '~/.local/bin/')
Exemple #10
0
def run():
    packages.try_install('weechat')
    util.create_symlink('./alias.conf', '~/.weechat/')
    util.create_symlink('./charset.conf', '~/.weechat/')
    util.create_symlink('./exec.conf', '~/.weechat/')
    util.create_symlink('./irc.conf', '~/.weechat/')
    util.create_symlink('./logger.conf', '~/.weechat/')
    util.create_symlink('./relay.conf', '~/.weechat/')
    util.create_symlink('./plugins.conf', '~/.weechat/')
    util.create_symlink('./script.conf', '~/.weechat/')
    util.create_symlink('./trigger.conf', '~/.weechat/')
    util.create_symlink('./weechat.conf', '~/.weechat/')
    util.create_symlink('./buflist.conf', '~/.weechat/')
    util.create_symlink('./autosort.conf', '~/.weechat/')
    util.create_symlink('./buffer_autoset.conf', '~/.weechat/')
    util.create_symlink('./python/custom_hotlist.py', '~/.weechat/python/')
Exemple #11
0
def run():
    if not util.has_executable('bspwm'):
        packages.try_install('bspwm-git')  # window manager
    packages.try_install('dmenu')          # program executor
    packages.try_install('feh')            # wallpaper renderer
    packages.try_install('i3lock')         # lock screen

    util.create_symlink('./bspwmrc', '~/.config/bspwm/')
    util.create_symlink('./rules', '~/.config/bspwm/')
    util.create_symlink('./start', '~/.config/x/start-wm.sh')
Exemple #12
0
def run():
    packages.try_install('getmail')
    util.create_dir('~/mail/new')
    util.create_dir('~/mail/cur')
    util.create_dir('~/mail/tmp')

    packages.try_install('neomutt')
    packages.try_install('w3m')
    packages.try_install('lynx')
    packages.try_install('docbook-xsl')
    util.create_file('~/.mutt/certificates')
    util.create_dir('~/.mutt/cache/bodies')
    util.create_dir('~/.mutt/cache/headers')

    util.create_symlink('./file_email', '~/.mutt/')
    util.create_symlink('./colors.muttrc', '~/.mutt/')
    util.create_symlink('./muttrc', '~/.mutt/')
    util.create_symlink('./mailcap', '~/.mailcap')
Exemple #13
0
def run():
    spell_dir = '~/.config/vim/spell/'

    choices = [
        'vim',
        'gvim',  # gvim supports for X11 clipboard, but has more dependencies
    ]
    choice = None
    while choice not in choices:
        choice = input('Which package to install? (%s) ' % choices).lower()
    packages.try_install(choice)
    packages.try_install('fzf')

    for name in ['undo', 'backup', 'swap', 'spell', 'autoload']:
        util.create_dir('~/.config/vim/' + name)

    for path in util.find('./../nvim/*.vim'):
        util.create_symlink(path, '~/.config/vim/')
    util.create_symlink('./../nvim/spell/pl.utf-8.add', spell_dir)
    util.create_symlink('./../nvim/spell/en.utf-8.add', spell_dir)
    util.download(
        'ftp://ftp.vim.org/pub/vim/runtime/spell/en.utf-8.spl',
        '~/.config/vim/spell/')
    util.download(
        'ftp://ftp.vim.org/pub/vim/runtime/spell/pl.utf-8.spl',
        '~/.config/vim/spell/')
    util.download(
        'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim',
        '~/.config/vim/autoload/plug.vim')
    util.create_file(
        '~/.config/zsh/editor.sh', 'export EDITOR=vim', overwrite=True)
    util.create_symlink('~/.config/vim/', '~/.vim')
    util.create_symlink('~/.config/vim/init.vim', '~/.vimrc')

    commands = ['PlugInstall']
    for path in util.find(spell_dir):
        if 'add' in path and 'spl' not in path:
            commands.append('mkspell! ' + path)
    util.run_verbose(['vim'] + sum([['-c', cmd] for cmd in commands], []))
Exemple #14
0
def run():
    packages.try_install('mujs')
    packages.try_install('luajit')
    packages.try_install('mpv')
    util.create_symlink('./config', '~/.config/mpv')
Exemple #15
0
def run():
    packages.try_install('xorg-font-utils')
    packages.try_install('otf-ipafont')
    packages.try_install('ttf-dejavu')
    packages.try_install('ttf-symbola')
    packages.try_install('ttf-font-awesome')
    packages.try_install('ttf-monapo')

    if os.path.exists('/usr/share/fonts'):
        fonts_dir = '~/.local/share/fonts/'

        util.create_dir(fonts_dir)
        for font_path in util.find('./*.ttf'):
            util.create_symlink(font_path, fonts_dir)

        if util.has_executable('mkfontscale'):
            util.run_verbose(['mkfontscale', util.expand_path(fonts_dir)])
        if util.has_executable('mkfontdir'):
            util.run_verbose(['mkfontdir', util.expand_path(fonts_dir)])
        if util.has_executable('xset'):
            util.run_verbose(['xset', '+fp', util.expand_path(fonts_dir)])
            util.run_verbose(['xset', 'fp', 'rehash'])

    if util.has_executable('fc-cache'):
        util.create_symlink('./fonts.conf', '~/.config/fontconfig/')
        util.run_verbose(['fc-cache'])
Exemple #16
0
def run():
    packages.try_install('fzf')  # super opener
    packages.try_install('silver-searcher-git')  # super grep
    util.create_symlink('./agignore', '~/.agignore')
Exemple #17
0
def run():
    # the server itself
    packages.try_install('xorg')
    # for clip to work
    packages.try_install('xclip')
    # for startx
    packages.try_install('xorg-xinit')
    # to fix the mouse cursor
    packages.try_install('xorg-xsetroot')
    # to query monitor information
    packages.try_install('xorg-xrandr')
    # for all sort of things
    packages.try_install('xdotool')
    # sync primary and selection clipboards
    packages.try_install('autocutsel')
    # keep clipboard data after process exit
    packages.try_install('clipit')
    # for compton
    packages.try_install('pkg-config')
    # for shadows, transparency and vsync
    packages.try_install('compton')
    # for screenshots
    packages.try_install('shot-git')

    util.create_symlink('./xinitrc', '~/.xinitrc')
    util.create_symlink('./compton.conf', '~/.config/compton.conf')
Exemple #18
0
def run():
    packages.try_install('trackma-git')
Exemple #19
0
def run():
    packages.try_install('xterm')

    util.create_symlink('./Xresources', '~/.config/Xresources')
    util.run_verbose(['xrdb', '-override', expanduser('~/.config/Xresources')])
Exemple #20
0
def run():
    packages.try_install('translate-shell-git')
Exemple #21
0
def run():
    packages.try_install('rtorrent')

    util.create_dir('~/hub/rtorrent/session')
    util.create_dir('~/hub/rtorrent/data')
    util.create_symlink('./rtorrent.rc', '~/.rtorrent.rc')
Exemple #22
0
def run():
    packages.try_install('ctags')
    util.create_symlink('./ctags', '~/.ctags')
Exemple #23
0
def run():
    if not util.has_executable('vifm'):
        packages.try_install('vifm')
    util.create_dir('~/.config/vifm')
    util.create_symlink('./vifmrc', '~/.config/vifm/vifmrc')
    util.create_symlink('./colors', '~/.config/vifm/colors')
Exemple #24
0
def run():
    packages.try_install('qutebrowser')
    util.create_symlink('./config.py', '~/.config/qutebrowser/')
    util.create_symlink('./greasemonkey', '~/.local/share/qutebrowser/')
Exemple #25
0
def run():
    packages.try_install('firefox')
    if 'cygwin' in sys.platform:
        util.copy_file('./vimperatorrc', '~/.vimperatorrc')
    else:
        util.create_symlink('./vimperatorrc', '~/.vimperatorrc')
Exemple #26
0
def run():
    packages.try_install('fzf')  # super opener
    packages.try_install('silver-searcher-git')  # super grep (vim-fzf dependency)
    packages.try_install('ripgrep')  # super grep (shell)
    util.create_symlink('./agignore', '~/.agignore')
Exemple #27
0
def run():
    packages.try_install('htop')
    util.create_symlink('./htoprc', '~/.config/htop/htoprc')
Exemple #28
0
def run():
    packages.try_install('luajit')
    if not util.has_executable('mpv'):
        packages.try_install('mpv-git')
    util.create_symlink('./config', '~/.config/mpv')
Exemple #29
0
def run():
    packages.try_install('libxkbcommon-x11')  # fix qt5
    packages.try_install('python-pyqt5')      # for panel
    packages.try_install('dmenu')             # program executor
    if not util.has_executable('bspwm'):
        packages.try_install('bspwm-git')     # window manager
    packages.try_install('sxhkd-git')         # hotkey manager
    packages.try_install('xdo-git')           # like xdotool, but different
    packages.try_install('feh')               # wallpaper renderer

    util.create_symlink('./sxhkdrc', '~/.config/sxhkd/')
    util.create_symlink('./bspwmrc', '~/.config/bspwm/')
    util.create_symlink('./toggle-state', '~/.config/bspwm/')
    util.create_symlink('./rules', '~/.config/bspwm/')
    util.create_symlink('./start', '~/.config/x/start-bspwm.sh')