예제 #1
0
파일: install.py 프로젝트: rr-/dotfiles
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'])
예제 #2
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')

    if util.has_executable('zsh'):
        util.create_symlink('./zlogin', '~/.zlogin')
예제 #3
0
파일: install.py 프로젝트: rr-/dotfiles
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/')
예제 #4
0
파일: install.py 프로젝트: rr-/dotfiles
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')
예제 #5
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')
예제 #6
0
def run():
    try:
        install_autohotkey()
    except Exception as ex:
        logger.error(ex)

    script_path = util.expand_path('./hk.ahk')
    if util.has_executable('cygpath'):
        script_path = util.run_silent(
            ['cygpath', '-w', script_path])[1].strip()

    logger.info('Adding script to autostart')
    util.run_silent([
        'reg',
        'add', r'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run',
        '/v', 'AutoHotkey',
        '/t', 'REG_SZ',
        '/f',
        '/d', script_path])
예제 #7
0
def run():
    packages.try_install('luajit')
    if not util.has_executable('mpv'):
        packages.try_install('mpv-git')
    util.create_symlink('./config', '~/.config/mpv')
예제 #8
0
 def supported(self):
     if self.use_sudo and not util.has_executable('sudo'):
         return False
     return util.has_executable(self.executable)
예제 #9
0
 def supported(self):
     return util.has_executable('yaourt') and util.has_executable('sudo')
예제 #10
0
 def supported(self):
     return util.has_executable('pacman') and util.has_executable('sudo')
예제 #11
0
 def supported(self):
     return util.has_executable('apt-cyg')
예제 #12
0
파일: install.py 프로젝트: rr-/dotfiles
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')
예제 #13
0
파일: packages.py 프로젝트: rr-/dotfiles
 def supported(self):
     return util.has_executable(self.executable)
예제 #14
0
파일: packages.py 프로젝트: rr-/dotfiles
 def supported(self):
     return util.has_executable("pacaur")
예제 #15
0
파일: packages.py 프로젝트: rr-/dotfiles
 def supported(self):
     return util.has_executable("pacman") and util.has_executable("sudo")