Files
dotfiles/installer/30-printer.sh
T
gitadmin 156b7261db refactor: migrate from shell-based sync to mise dotfiles management
- Replace sync-config/sync-script with mise.toml [dotfiles] directives
- Convert installer scripts to mise tasks (shells, desktop, theme, webapps)
- Remove config/nvim-old (deprecated neovim config)
- Add omarchy theme system with multi-app configs (btop, hyprland, kitty, foot, tmux, etc.)
- Move SSH hosts to config.d/* include pattern
- Add Tera templates for dynamic config generation (git-local, dofiles.conf)
- Update pi agent settings (0.80.10, packages list)
- Add mise tasks for pi plugin setup and nvim tooling
2026-07-18 06:11:59 +00:00

39 lines
1.0 KiB
Bash
Executable File

#!/bin/sh -e
if [[ ! -x "$(command -v paru)" ]]; then
sudo pacman -S --noconfirm --needed paru || exit 1
fi
paru --noconfirm --needed -Sy \
cups \
cups-filters \
cups-pdf \
system-config-printer \
avahi \
nss-mdns \
splix \
foomatic-db \
foomatic-db-engine \
foomatic-db-gutenprint-ppds \
foomatic-db-nonfree \
foomatic-db-nonfree-ppds \
foomatic-db-ppds \
gutenprint
if [[ -x "$(command -v systemctl)" ]]; then
sudo systemctl enable --now cups.service
fi
# Disable multicast dns in resolved. Avahi will provide this for better network printer discovery
sudo mkdir -p /etc/systemd/resolved.conf.d
echo -e "[Resolve]\nMulticastDNS=no" | sudo tee /etc/systemd/resolved.conf.d/10-disable-multicast.conf
if [[ -x "$(command -v systemctl)" ]]; then
sudo systemctl enable --now avahi-daemon.service
fi
# Enable automatically adding remote printers
if ! grep -q '^CreateRemotePrinters Yes' /etc/cups/cups-browsed.conf; then
echo 'CreateRemotePrinters Yes' | sudo tee -a /etc/cups/cups-browsed.conf
fi