From 6fc5c852ece18bef4af58acfd7499c59af1c86b2 Mon Sep 17 00:00:00 2001 From: David Date: Fri, 5 Feb 2021 22:31:52 +0100 Subject: [PATCH] feat: automatically generate a pkglist for pacman add a hook to pacman, generating a list of installed pakages and writing it to `/home/swytch/.config/paru/pkglist` --- .config/pacman/hooks/pkglist.hook | 10 ++++ .config/paru/pkglist.txt | 89 +++++++++++++++++++++++++++++++ .local/bin/arch_setup | 33 +----------- 3 files changed, 100 insertions(+), 32 deletions(-) create mode 100644 .config/pacman/hooks/pkglist.hook create mode 100644 .config/paru/pkglist.txt diff --git a/.config/pacman/hooks/pkglist.hook b/.config/pacman/hooks/pkglist.hook new file mode 100644 index 0000000..a24d05a --- /dev/null +++ b/.config/pacman/hooks/pkglist.hook @@ -0,0 +1,10 @@ +[Trigger] +Operation = Remove +Operation = Install +Type = Package +Target = * + +[Action] +Description = Update the pkglist... +When = PostTransaction +Exec = /bin/sh -c '/usr/bin/pacman -Qqe > /home/swytch/.config/paru/pkglist.txt' diff --git a/.config/paru/pkglist.txt b/.config/paru/pkglist.txt new file mode 100644 index 0000000..82fc2e4 --- /dev/null +++ b/.config/paru/pkglist.txt @@ -0,0 +1,89 @@ +abcde +adobe-source-han-sans-cn-fonts +adobe-source-han-sans-jp-fonts +alsa-plugins +alsa-utils +android-tools +android-udev +arandr +autoconf +automake +autorandr +base +beets +binutils +bison +capitaine-cursors +dash +dunst +efibootmgr +fakeroot +file +findutils +firefox +flex +gawk +gcc +gettext +git +grep +groff +grub +gzip +htop +imagemagick +iwd +libnotify +libtool +linux +linux-firmware +m4 +make +man-db +mpc +mpd +mpv +ncmpcpp +neovim +noto-fonts +pacman +pacman-contrib +paru +pass +patch +pkgconf +pulseaudio-alsa +pulsemixer +python-eyed3 +redshift +sed +shotgun +sox +sudo +sxhkd +sxiv +texinfo +texlive-core +texlive-latexextra +transmission-gtk +ttf-iosevka-fixed-slab +ttf-nerd-fonts-symbols-mono +unzip +upower +usbutils +which +xcape +xclip +xf86-video-intel +xorg-server +xorg-xinit +xorg-xinput +xorg-xsetroot +xss-lock +xwallpaper +zathura +zathura-pdf-mupdf +zip +zsh +zsh-history-substring-search +zsh-syntax-highlighting diff --git a/.local/bin/arch_setup b/.local/bin/arch_setup index e6059cf..d5b1dae 100755 --- a/.local/bin/arch_setup +++ b/.local/bin/arch_setup @@ -10,17 +10,6 @@ ###################################################################### -#Lists of apps sorted by type and criticity -base="dash xorg-server xorg-xinit xorg-xinput xorg-xsetroot xclip sxhkd" -base="xss-lock zsh neovim firefox man-db pass" -utilities="xf86-video-intel pulseaudio pulseaudio-alsa alsa-utils \ - zsh-syntax-highlighting zsh-history-substring-search pulsemixer \ - dunstify libnotify sxiv xwallpaper redshift htop ffmpeg imagemagick \ - upower pacman-contrib" -fonts="iosevka-fixed-slab adobe-source-han-sans-jp-fonts adobe-source-han-sans-cn-fonts" -media="mpd ncmpcpp mpv zathura zathura-mupdf" -other="transmission-gtk texlive-core texlive-latexextra capitaine-cursors" - repos="st dwm dmenu slock" services_list="systemd-timescyncd" @@ -78,27 +67,7 @@ cd ~ # Installing apps -printf "\nInstalling base..." - -for app in $base; do - install $app -done - -for app in $utilities; do - install $app -done - -for app in $fonts; do - install $app -done - -for app in $media; do - install $app -done - -for app in $other; do - install $app -done +paru -S --needed - < ~/.config/paru/pkglist.txt printf "\nInstalling vim-plug..."