dotfiles/cfg/eww/systray/scripts/pkgs
2022-02-19 19:47:23 +05:30

28 lines
1.2 KiB
Bash
Executable file

#!/bin/sh
if [ "$1" = "check" ]; then
echo -e "
██████╗ ██╗ ██╗ ██████╗ ███████╗
██╔══██╗██║ ██╔╝██╔════╝ ██╔════╝
██████╔╝█████╔╝ ██║ ███╗███████╗
██╔═══╝ ██╔═██╗ ██║ ██║╚════██║
██║ ██║ ██╗╚██████╔╝███████║
╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝
██╗ ██╗███████╗████████╗
██║ ██║██╔════╝╚══██╔══╝
██║ ██║███████╗ ██║
██║ ██║╚════██║ ██║
███████╗██║███████║ ██║
╚══════╝╚═╝╚══════╝ ╚═╝
"
sleep 1
echo "Listing..."
pacman -Qe && echo "Listing Successfully" || echo "Failed"
echo "press <Enter> to exit"
read -r _
else
pacman -Q | wc -l
fi