from pyinfra import host from pyinfra.facts.server import * from pyinfra.operations import files home = host.get_fact(Home) hostname = host.get_fact(Hostname) files.rsync(name="Deploy issue", src="root/etc/issue", dest=f"/etc/issue", sudo=True)
from config.colors import colors from pyinfra import host from pyinfra.facts.server import * from pyinfra.operations import files home = host.get_fact(Home) hostname = host.get_fact(Hostname) files.rsync( name="Deploy xinit configs", src="dotfiles/.xinitrc", dest=f"{home}/.xinitrc" ) files.template( name="Deploy Xresources", src="dotfiles/.Xresources.j2", dest=f"{home}/.Xresources", colors=colors )
from pyinfra import host from pyinfra.facts.server import * from pyinfra.operations import files home = host.get_fact(Home) hostname = host.get_fact(Hostname) #TODO files.rsync(name="Deploy yt-dlp configs", src="dotfiles/.config/yt-dlp/", dest=f"{home}/.config/yt-dlp/", flags=["-a"])
from pyinfra import host from pyinfra.facts.server import * from pyinfra.operations import files home = host.get_fact(Home) hostname = host.get_fact(Hostname) files.rsync(name="Deploy mpd configs", src="dotfiles/.config/mpd/", dest=f"{home}/.config/mpd/", flags=["-a"]) files.rsync(name="Deploy ncmpcpp configs", src="dotfiles/.config/ncmpcpp/", dest=f"{home}/.config/ncmpcpp/", flags=["-a"])
from pyinfra.facts.server import * from pyinfra.operations import files from pyinfra.operations import pacman from pyinfra.operations import server home = host.get_fact(Home) hostname = host.get_fact(Hostname) pacman.packages(name="Install feh", packages=["feh"], update=True, upgrade=True, sudo=True) files.rsync(name="Deploy temporary wallpaper", src="config/wallpaper.jpg", dest=f"{home}/Pictures/wallpapers/wallpaper.jpg") server.shell( name="Apply temporary wallpaper", commands=[f"feh --bg-fill {home}/Pictures/wallpapers/wallpaper.jpg"])
from pyinfra import host from pyinfra.facts.server import * from pyinfra.operations import files from pyinfra.operations import server home = host.get_fact(Home) files.rsync( name="Deploy Neovim configs", src="dotfiles/.config/nvim/", dest=f"{home}/.config/nvim/", flags=[ "-a" ] ) server.shell( name="Install Neovim plugins", commands=[ "nvim +'PlugInstall --sync' +qa" ] )
update=True, upgrade=True, sudo=True) server.shell(name="Install autojump", commands=["trizen -Syu --noconfirm autojump"]) git.repo(name="Clone Prezto", src="https://github.com/sorin-ionescu/prezto.git", dest=f"{home}/.zprezto", update_submodules=True, recursive_submodules=True) for zfile in glob(f"{home}/.zprezto/runcoms/z*"): zfile = basename(zfile) files.link(name=f"Symlink {zfile}", target=f"{home}/.zprezto/runcoms/{zfile}", path=f"{home}/.{zfile}") server.shell(name="Touch secret env vars", commands=[f"touch {home}/.config/.secrets"]) files.rsync( name="Install Prezto theme", src="dotfiles/.zprezto/modules/prompt/functions/prompt_kyoto_setup", dest=f"{home}/.zprezto/modules/prompt/functions/prompt_kyoto_setup") git.repo(name="Clone zsh-git-prompt", src="https://github.com/blankaex/zsh-git-prompt", dest=f"{home}/.local/src/zsh-git-prompt")
from pyinfra import host from pyinfra.facts.server import * from pyinfra.operations import files home = host.get_fact(Home) hostname = host.get_fact(Hostname) files.rsync( name="Deploy synaptics config", src="root/etc/X11/xorg.conf.d/70-synaptics.conf", dest=f"/etc/X11/xorg.conf.d/70-synaptics.conf", sudo=True )
from pyinfra import host from pyinfra.facts.server import * from pyinfra.operations import files from pyinfra.operations import server home = host.get_fact(Home) # TODO template this files.rsync(name="Deploy pywal configs", src="dotfiles/.config/wal/", dest=f"{home}/.config/wal/", flags=["-a"]) server.shell(name="Install pywal theme", commands=["wal --theme blank"])
from pyinfra import host from pyinfra.facts.server import * from pyinfra.operations import files home = host.get_fact(Home) hostname = host.get_fact(Hostname) files.rsync(name="Deploy pacman config", src="root/etc/pacman.conf", dest="/etc/pacman.conf", sudo=True)
from pyinfra import host from pyinfra.facts.server import * from pyinfra.operations import files home = host.get_fact(Home) hostname = host.get_fact(Hostname) files.rsync(name="Deploy Redshift configs", src="dotfiles/.config/redshift/", dest=f"{home}/.config/redshift/", flags=["-a"])
from pyinfra import host from pyinfra.facts.server import * from pyinfra.operations import files from pyinfra.operations import server home = host.get_fact(Home) hostname = host.get_fact(Hostname) files.rsync(name="Sync Prezto configs", src="dotfiles/.zprezto/runcoms/", dest=f"{home}/.zprezto/runcoms/", flags=["-a", "--exclude '*.j2'"]) files.template(name="Deploy .zprofile", src="dotfiles/.zprezto/runcoms/zprofile.j2", dest=f"{home}/.zprezto/runcoms/zprofile", hostname=hostname)
from pyinfra import host from pyinfra.facts.server import * from pyinfra.operations import files home = host.get_fact(Home) hostname = host.get_fact(Hostname) # TODO template the skin maybe files.rsync(name="Deploy fcitx configs", src="dotfiles/.config/fcitx/", dest=f"{home}/.config/fcitx/", flags=["-a"])
from pyinfra import host from pyinfra.facts.server import * from pyinfra.operations import files home = host.get_fact(Home) hostname = host.get_fact(Hostname) files.rsync( name="Deploy mpv configs", src="dotfiles/.config/mpv/", dest=f"{home}/.config/mpv/", flags=[ "-a" ] )
from pyinfra import host from pyinfra.facts.server import * from pyinfra.operations import files home = host.get_fact(Home) hostname = host.get_fact(Hostname) files.rsync(name="Deploy neofetch configs", src="dotfiles/.config/neofetch/", dest=f"{home}/.config/neofetch/", flags=["-a"])
from config.colors import colors from pyinfra import host from pyinfra.facts.server import * from pyinfra.operations import files home = host.get_fact(Home) hostname = host.get_fact(Hostname) files.rsync(name="Deploy bspwm configs [1/2]", src="dotfiles/.config/bspwm/", dest=f"{home}/.config/bspwm/", flags=["-a", "--exclude '*.j2'"]) files.template(name="Deploy bspwm configs [2/2]", src="dotfiles/.config/bspwm/bspwmrc.j2", dest=f"{home}/.config/bspwm/bspwmrc", mode="755", hostname=hostname, colors=colors)
from config.colors import colors from pyinfra import host from pyinfra.facts.server import * from pyinfra.operations import files home = host.get_fact(Home) hostname = host.get_fact(Hostname) files.template(name="Deploy sxhkd config", src="dotfiles/.config/sxhkd/sxhkdrc.j2", dest=f"{home}/.config/sxhkd/sxhkdrc", hostname=hostname) files.rsync(name="Deploy sxhkd scripts", src="dotfiles/.config/sxhkd/scripts/", dest=f"{home}/.config/sxhkd/scripts/", flags=["-a"])
from pyinfra import host from pyinfra.facts.server import * from pyinfra.operations import files home = host.get_fact(Home) hostname = host.get_fact(Hostname) files.rsync(name="Deploy gtk2 config", src="dotfiles/.gtkrc-2.0", dest=f"{home}/.gtkrc-2.0") files.rsync(name="Deploy gtk3 config", src="dotfiles/.config/gtk-3.0/", dest=f"{home}/.config/gtk-3.0/", flags=["-a"]) files.rsync(name="Deploy gtk file chooser config", src="dotfiles/.config/gtk-2.0/", dest=f"{home}/.config/gtk-2.0/", flags=["-a"]) files.rsync(name="Deploy gtk themes", src="dotfiles/.themes/", dest=f"{home}/.themes/", flags=["-a"]) files.rsync(name="Deploy cursor themes", src="dotfiles/.icons/default/", dest=f"{home}/.icons/default/", flags=["-a"])