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`
This commit is contained in:
David 2021-02-05 22:31:52 +01:00
parent 3cdc6e80eb
commit 6fc5c852ec
3 changed files with 100 additions and 32 deletions

View File

@ -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'

89
.config/paru/pkglist.txt Normal file
View File

@ -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

View File

@ -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..."