from pyinfra.operations import pacman pacman.packages(name="Install Vivaldi", packages=["vivaldi"], update=True, upgrade=True, sudo=True) #TODO install profile
from pyinfra import host from pyinfra.facts.server import Home from pyinfra.operations import files from pyinfra.operations import pacman from pyinfra.operations import server home = host.get_fact(Home) pacman.packages( name="Install nvim", packages=[ "neovim" ], update=True, upgrade=True, sudo=True ) files.link( name="Symlink vim -> nvim", target="/usr/bin/nvim", path="/usr/bin/vim", sudo=True ) server.shell( name="Install vim-plug",
from pyinfra.operations import pacman pacman.packages( name="Install Rofi", packages=[ "rofi" ], update=True, upgrade=True, sudo=True )
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.operations import pacman pacman.packages(name="Install git", packages=["git", "subversion"], update=True, upgrade=True, sudo=True)
from pyinfra.operations import pacman pacman.packages(name="Install fcitx", packages=["fcitx", "fcitx-configtool", "fcitx-mozc"], update=True, upgrade=True, sudo=True)
from pyinfra.operations import pacman pacman.packages(name="Install Redshift", packages=["redshift"], update=True, upgrade=True, sudo=True)
from pyinfra.operations import pacman pacman.packages( name="Install yt-dlp", packages=[ "yt-dlp" ], update=True, upgrade=True, sudo=True )
from pyinfra.operations import pacman pacman.packages(name="Install zathura", packages=["zathura", "zathura-pdf-mupdf"], update=True, upgrade=True, sudo=True)
from pyinfra.operations import systemd from pyinfra.operations import pacman pacman.packages(name="Install Pipewire", packages=["pipewire", "pipewire-pulse", "pavucontrol"], update=True, upgrade=True, sudo=True) systemd.service(name="Configure PipeWire", service="pipewire-pulse", running=True, enabled=True, user_mode=True)
from pyinfra.operations import pacman pacman.packages( name="Install dunst", packages=[ "dunst", "libnotify" ], update=True, upgrade=True, sudo=True )
from pyinfra.operations import pacman pacman.packages(name="Install Synaptics driver", packages=["xf86-input-synaptics"], update=True, upgrade=True, sudo=True)
from pyinfra.operations import pacman pacman.packages( name="Install Vim and a plugin", packages=["vim-fugitive", "vim"], update=True, )
from pyinfra.operations import pacman pacman.packages( name="Install Thunderbird", packages=[ "thunderbird" ], update=True, upgrade=True, sudo=True )
from pyinfra.operations import pacman pacman.packages(name="Install Xorg", packages=[ "xorg", "xorg-xev", "xorg-xinit", "xorg-xkill", "xorg-xprop", "xorg-xrandr", "autorandr", "xcape" ], sudo=True)
from pyinfra.operations import pacman SUDO = True pacman.packages( name='Install Vim and a plugin', packages=['vim-fugitive', 'vim'], update=True, )
from pyinfra.operations import pacman pacman.packages(name="Install mpd + ncmpcpp", packages=["mpd", "ncmpcpp", "ueberzug"], update=True, upgrade=True, sudo=True)
from pyinfra.operations import pacman pacman.packages( name="Install neofetch", packages=[ "neofetch" ], update=True, upgrade=True, sudo=True )
from pyinfra.operations import pacman pacman.packages(name="Install bspwm", packages=["bspwm"], update=True, upgrade=True, sudo=True)
from pyinfra.operations import pacman SUDO = True pacman.packages( {'Install Vim and a plugin'}, ['vim-fugitive', 'vim'], update=True, )
from pyinfra.operations import pacman pacman.packages(name="Install ripgrep", packages=["ripgrep"], update=True, upgrade=True, sudo=True)
from pyinfra import host from pyinfra.facts.server import Home from pyinfra.operations import git from pyinfra.operations import files from pyinfra.operations import pacman home = host.get_fact(Home) pacman.packages( name="Install ranger", packages=[ "ranger", "sxiv" ], update=True, upgrade=True, sudo=True ) git.repo( name="Clone ranger-autojump", src="https://github.com/fdw/ranger-autojump", dest=f"{home}/.local/src/ranger-autojump" ) files.link( name="Symlink autojump plugin",
from pyinfra.operations import pacman pacman.packages( name="Install mpv", packages=[ "mpv" ], update=True, upgrade=True, sudo=True )
from pyinfra.operations import pacman pacman.packages( name="Install pywal", packages=[ "python-pywal" ], update=True, upgrade=True, sudo=True )
from pyinfra.operations import pacman pacman.packages( name="Install WeeChat", packages=[ "weechat" ], update=True, upgrade=True, sudo=True )
from pyinfra.operations import pacman from pyinfra.operations import server pacman.packages(name="Install fonts", packages=[ "adobe-source-code-pro-fonts", "adobe-source-han-sans-jp-fonts", "noto-fonts", "noto-fonts-cjk" ], update=True, upgrade=True, sudo=True) server.shell(name="Install fonts (AUR)", commands=["trizen -Syu --noconfirm otf-source-han-code-jp"])
from pyinfra.operations import pacman pacman.packages( name="Install Firefox", packages=[ "firefox" ], update=True, upgrade=True, sudo=True ) #TODO install profile
from pyinfra.operations import pacman from pyinfra.operations import server pacman.packages(name="Install sxhkd", packages=["sxhkd", "maim"], update=True, upgrade=True, sudo=True) server.shell(name="Install i3lock-color", commands=["trizen -Syu --noconfirm i3lock-color"])
from pyinfra.operations import pacman pacman.packages( name="Install alacritty", packages=[ "alacritty" ], update=True, upgrade=True, sudo=True )