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'])
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')
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/')
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')
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')
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])
def run(): packages.try_install('luajit') if not util.has_executable('mpv'): packages.try_install('mpv-git') util.create_symlink('./config', '~/.config/mpv')
def supported(self): if self.use_sudo and not util.has_executable('sudo'): return False return util.has_executable(self.executable)
def supported(self): return util.has_executable('yaourt') and util.has_executable('sudo')
def supported(self): return util.has_executable('pacman') and util.has_executable('sudo')
def supported(self): return util.has_executable('apt-cyg')
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')
def supported(self): return util.has_executable(self.executable)
def supported(self): return util.has_executable("pacaur")
def supported(self): return util.has_executable("pacman") and util.has_executable("sudo")