95 lines
6.5 KiB
Shell
95 lines
6.5 KiB
Shell
#!/usr/bin/env bash
|
|
# What a niri desktop needs to be usable on its own, by group and by distro. niri is only a
|
|
# compositor: the portals, polkit agent, keyring, audio stack, fonts and icons come from here.
|
|
# Names for Fedora and Debian are best effort (several come from COPR/PPAs or are built from
|
|
# source there; the installer says so for any it cannot find).
|
|
# Each entry: "what it is for|package". Missing packages on a distro are listed as "-".
|
|
|
|
# --- Arch (and CachyOS, EndeavourOS, Manjaro, Artix) ---------------------------------
|
|
ARCH_BUILD=(
|
|
"building the shell|rust" "building the shell|base-devel" "libcava / aubio headers|pkgconf"
|
|
)
|
|
ARCH_DESKTOP=(
|
|
"the compositor|niri" "X11 apps under niri|xwayland-satellite"
|
|
"portals (screen sharing, file pickers)|xdg-desktop-portal" "portals for niri|xdg-desktop-portal-gnome"
|
|
"portal fallback (settings, GTK)|xdg-desktop-portal-gtk" "polkit prompts|polkit-gnome"
|
|
"secret storage (Wi-Fi, SteamGridDB key)|gnome-keyring" "secret-tool|libsecret"
|
|
"xdg user folders|xdg-user-dirs" "xdg-open|xdg-utils" "mime defaults|shared-mime-info"
|
|
"removable drives|udisks2" "trash|trash-cli" "desktop launchers and trash|glib2"
|
|
)
|
|
ARCH_SERVICES=(
|
|
"audio server|pipewire" "pipewire pulse|pipewire-pulse" "pipewire alsa|pipewire-alsa" "session manager, wpctl|wireplumber"
|
|
"pactl|libpulse" "network|networkmanager" "bluetooth|bluez" "bluetoothctl|bluez-utils"
|
|
"power profiles|power-profiles-daemon" "brightness|brightnessctl" "media keys, players|playerctl"
|
|
"battery and sensors|upower" "sensors|lm_sensors" "pci info|pciutils" "ddc monitors|ddcutil"
|
|
)
|
|
ARCH_TOOLS=(
|
|
"colours from the wallpaper|matugen" "clipboard|wl-clipboard" "clipboard history|cliphist" "keeps copies after an app closes|wl-clip-persist" "lock screen until the shell's own is proved|swaylock" "idle lock and sleep|swayidle"
|
|
"calculator|libqalculate" "screenshots|grim" "region picker|slurp" "screen recorder|gpu-screen-recorder"
|
|
"GIF recordings, video|ffmpeg" "text recognition|tesseract" "text recognition data|tesseract-data-eng" "annotating screenshots|satty"
|
|
"notifications from scripts|libnotify" "visualiser and beat tracker|libcava" "beat tracker|aubio"
|
|
"lyrics and weather|curl" "image conversion|imagemagick" "json|jq" "wallpaper video|mpv"
|
|
)
|
|
ARCH_THEME=(
|
|
"icon font|ttf-material-symbols-variable" "clock and workspace font|ttf-rubik-vf" "mono font|ttf-jetbrains-mono-nerd"
|
|
"text fonts|noto-fonts" "CJK text|noto-fonts-cjk" "emoji|noto-fonts-emoji"
|
|
"app icons|papirus-icon-theme" "GTK theme|adw-gtk-theme" "cursor|bibata-cursor-theme" "Qt theming|qt6ct"
|
|
)
|
|
|
|
# --- Fedora ---------------------------------------------------------------------------
|
|
FEDORA_BUILD=( "building the shell|rust" "building the shell|cargo" "building the shell|gcc" "headers|pkgconf-pkg-config" )
|
|
FEDORA_DESKTOP=(
|
|
"the compositor|niri" "X11 apps under niri|xwayland-satellite"
|
|
"portals|xdg-desktop-portal" "portals for niri|xdg-desktop-portal-gnome" "portal fallback|xdg-desktop-portal-gtk"
|
|
"polkit prompts|polkit-gnome" "secret storage|gnome-keyring" "secret-tool|libsecret"
|
|
"xdg user folders|xdg-user-dirs" "xdg-open|xdg-utils" "removable drives|udisks2" "trash|trash-cli" "desktop launchers and trash|glib2"
|
|
)
|
|
FEDORA_SERVICES=(
|
|
"audio server|pipewire" "pipewire pulse|pipewire-pulseaudio" "session manager|wireplumber" "pactl|pulseaudio-utils"
|
|
"network|NetworkManager" "bluetooth|bluez" "power profiles|power-profiles-daemon" "brightness|brightnessctl"
|
|
"media keys|playerctl" "battery|upower" "sensors|lm_sensors" "pci info|pciutils" "ddc monitors|ddcutil"
|
|
)
|
|
FEDORA_TOOLS=(
|
|
"colours from the wallpaper|matugen" "clipboard|wl-clipboard" "clipboard history|cliphist" "lock screen until the shell's own is proved|swaylock" "idle lock and sleep|swayidle"
|
|
"calculator|libqalculate" "screenshots|grim" "region picker|slurp" "screen recorder|gpu-screen-recorder"
|
|
"video|ffmpeg-free" "text recognition|tesseract" "annotating screenshots|swappy" "notifications from scripts|libnotify"
|
|
"visualiser|libcava" "beat tracker|aubio" "lyrics and weather|curl" "image conversion|ImageMagick" "json|jq"
|
|
)
|
|
FEDORA_THEME=(
|
|
"icon font|google-material-symbols-fonts" "clock font|rubik-fonts" "mono font|jetbrains-mono-fonts"
|
|
"text fonts|google-noto-sans-fonts" "CJK text|google-noto-sans-cjk-fonts" "emoji|google-noto-emoji-fonts"
|
|
"app icons|papirus-icon-theme" "GTK theme|adw-gtk3-theme" "Qt theming|qt6ct"
|
|
)
|
|
|
|
# --- Debian / Ubuntu ------------------------------------------------------------------
|
|
DEBIAN_BUILD=( "building the shell|cargo" "building the shell|build-essential" "headers|pkg-config" )
|
|
DEBIAN_DESKTOP=(
|
|
"the compositor|niri" "X11 apps under niri|xwayland-satellite"
|
|
"portals|xdg-desktop-portal" "portals for niri|xdg-desktop-portal-gnome" "portal fallback|xdg-desktop-portal-gtk"
|
|
"polkit prompts|policykit-1-gnome" "secret storage|gnome-keyring" "secret-tool|libsecret-tools"
|
|
"xdg user folders|xdg-user-dirs" "xdg-open|xdg-utils" "removable drives|udisks2" "trash|trash-cli" "desktop launchers and trash|libglib2.0-bin"
|
|
)
|
|
DEBIAN_SERVICES=(
|
|
"audio server|pipewire" "pipewire pulse|pipewire-pulse" "session manager|wireplumber" "pactl|pulseaudio-utils"
|
|
"network|network-manager" "bluetooth|bluez" "power profiles|power-profiles-daemon" "brightness|brightnessctl"
|
|
"media keys|playerctl" "battery|upower" "sensors|lm-sensors" "pci info|pciutils" "ddc monitors|ddcutil"
|
|
)
|
|
DEBIAN_TOOLS=(
|
|
"colours from the wallpaper|matugen" "clipboard|wl-clipboard" "clipboard history|cliphist" "lock screen until the shell's own is proved|swaylock" "idle lock and sleep|swayidle"
|
|
"calculator|libqalculate-dev" "screenshots|grim" "region picker|slurp" "screen recorder|gpu-screen-recorder"
|
|
"video|ffmpeg" "text recognition|tesseract-ocr" "annotating screenshots|swappy" "notifications from scripts|libnotify-bin"
|
|
"visualiser|libcava" "beat tracker|libaubio5" "lyrics and weather|curl" "image conversion|imagemagick" "json|jq"
|
|
)
|
|
DEBIAN_THEME=(
|
|
"icon font|fonts-material-design-icons-iconfont" "clock font|fonts-rubik" "mono font|fonts-jetbrains-mono"
|
|
"text fonts|fonts-noto-core" "CJK text|fonts-noto-cjk" "emoji|fonts-noto-color-emoji"
|
|
"app icons|papirus-icon-theme" "GTK theme|adw-gtk3" "Qt theming|qt6ct"
|
|
)
|
|
|
|
# Prints "why|package" lines for the group on this distro.
|
|
package_set() {
|
|
local group="$1" name
|
|
name="$(printf '%s' "$BASE_DISTRO" | tr '[:lower:]' '[:upper:]')_${group}"
|
|
local -n arr="$name" 2>/dev/null || return 0
|
|
printf '%s\n' "${arr[@]}"
|
|
}
|