示例#1
0
from pyinfra.operations import pacman

pacman.packages(name="Install Vivaldi",
                packages=["vivaldi"],
                update=True,
                upgrade=True,
                sudo=True)

#TODO install profile
示例#2
0
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",
示例#3
0
from pyinfra.operations import pacman


pacman.packages(
    name="Install Rofi",
    packages=[
        "rofi"
    ],
    update=True,
    upgrade=True,
    sudo=True
)
示例#4
0
文件: feh.py 项目: blankaex/dotfiles
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"])
示例#5
0
文件: git.py 项目: blankaex/dotfiles
from pyinfra.operations import pacman

pacman.packages(name="Install git",
                packages=["git", "subversion"],
                update=True,
                upgrade=True,
                sudo=True)
示例#6
0
from pyinfra.operations import pacman

pacman.packages(name="Install fcitx",
                packages=["fcitx", "fcitx-configtool", "fcitx-mozc"],
                update=True,
                upgrade=True,
                sudo=True)
示例#7
0
from pyinfra.operations import pacman

pacman.packages(name="Install Redshift",
                packages=["redshift"],
                update=True,
                upgrade=True,
                sudo=True)
示例#8
0
from pyinfra.operations import pacman


pacman.packages(
    name="Install yt-dlp",
    packages=[
        "yt-dlp"
    ],
    update=True,
    upgrade=True,
    sudo=True
)
示例#9
0
from pyinfra.operations import pacman

pacman.packages(name="Install zathura",
                packages=["zathura", "zathura-pdf-mupdf"],
                update=True,
                upgrade=True,
                sudo=True)
示例#10
0
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)
示例#11
0
from pyinfra.operations import pacman


pacman.packages(
    name="Install dunst",
    packages=[
        "dunst",
        "libnotify"
    ],
    update=True,
    upgrade=True,
    sudo=True
)
示例#12
0
from pyinfra.operations import pacman

pacman.packages(name="Install Synaptics driver",
                packages=["xf86-input-synaptics"],
                update=True,
                upgrade=True,
                sudo=True)
示例#13
0
from pyinfra.operations import pacman

pacman.packages(
    name="Install Vim and a plugin",
    packages=["vim-fugitive", "vim"],
    update=True,
)
示例#14
0
from pyinfra.operations import pacman


pacman.packages(
    name="Install Thunderbird",
    packages=[
        "thunderbird"
    ],
    update=True,
    upgrade=True,
    sudo=True
)
示例#15
0
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)
示例#16
0
from pyinfra.operations import pacman

SUDO = True

pacman.packages(
    name='Install Vim and a plugin',
    packages=['vim-fugitive', 'vim'],
    update=True,
)
示例#17
0
文件: mpd.py 项目: blankaex/dotfiles
from pyinfra.operations import pacman

pacman.packages(name="Install mpd + ncmpcpp",
                packages=["mpd", "ncmpcpp", "ueberzug"],
                update=True,
                upgrade=True,
                sudo=True)
示例#18
0
from pyinfra.operations import pacman


pacman.packages(
    name="Install neofetch",
    packages=[
        "neofetch"
    ],
    update=True,
    upgrade=True,
    sudo=True
)
示例#19
0
from pyinfra.operations import pacman

pacman.packages(name="Install bspwm",
                packages=["bspwm"],
                update=True,
                upgrade=True,
                sudo=True)
示例#20
0
from pyinfra.operations import pacman

SUDO = True

pacman.packages(
    {'Install Vim and a plugin'},
    ['vim-fugitive', 'vim'],
    update=True,
)
示例#21
0
from pyinfra.operations import pacman

pacman.packages(name="Install ripgrep",
                packages=["ripgrep"],
                update=True,
                upgrade=True,
                sudo=True)
示例#22
0
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",
示例#23
0
from pyinfra.operations import pacman


pacman.packages(
    name="Install mpv",
    packages=[
        "mpv"
    ],
    update=True,
    upgrade=True,
    sudo=True
)
示例#24
0
from pyinfra.operations import pacman


pacman.packages(
    name="Install pywal",
    packages=[
        "python-pywal"
    ],
    update=True,
    upgrade=True,
    sudo=True
)
示例#25
0
from pyinfra.operations import pacman


pacman.packages(
    name="Install WeeChat",
    packages=[
        "weechat"
    ],
    update=True,
    upgrade=True,
    sudo=True
)
示例#26
0
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"])
示例#27
0
from pyinfra.operations import pacman


pacman.packages(
    name="Install Firefox",
    packages=[
        "firefox"
    ],
    update=True,
    upgrade=True,
    sudo=True
)


#TODO install profile
示例#28
0
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"])
示例#29
0
from pyinfra.operations import pacman


pacman.packages(
    name="Install alacritty",
    packages=[
        "alacritty"
    ],
    update=True,
    upgrade=True,
    sudo=True
)