general updates

This commit is contained in:
Daylin Morgan 2022-08-13 14:40:50 -05:00
parent 39acc72c3a
commit 435e0e670e
2 changed files with 11 additions and 1 deletions

View file

@ -12,20 +12,29 @@ HELP
exit 0 exit 0
} }
header() {
echo "============="
}
updates_output() { updates_output() {
notify=$1 notify=$1
if ! [[ -z $updates_arch ]]; then if ! [[ -z $updates_arch ]]; then
header
echo "ARCH: $(echo "$updates_arch" | wc -l)" echo "ARCH: $(echo "$updates_arch" | wc -l)"
header
[[ -z $notify ]] && echo "$updates_arch" [[ -z $notify ]] && echo "$updates_arch"
fi fi
if ! [[ -z $updates_aur ]]; then if ! [[ -z $updates_aur ]]; then
header
echo "AUR: $(echo "$updates_aur" | wc -l)" echo "AUR: $(echo "$updates_aur" | wc -l)"
header
[[ -z $notify ]] && echo "$updates_aur" [[ -z $notify ]] && echo "$updates_aur"
fi fi
echo echo
} }
update_system() { update_system() {
echo
read -p "Would you like to update? (y/N): " confirm && [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]] || exit 1 read -p "Would you like to update? (y/N): " confirm && [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]] || exit 1
pikaur -Syu --noedit --nodiff pikaur -Syu --noedit --nodiff
} }
@ -48,6 +57,7 @@ for opt in "$@"; do
done done
echo "fetching updates..." echo "fetching updates..."
echo
updates_arch="$(checkupdates 2>/dev/null | awk '{print $1}')" updates_arch="$(checkupdates 2>/dev/null | awk '{print $1}')"
updates_aur="$(pikaur -Qua 2>/dev/null | awk '{print $1}')" updates_aur="$(pikaur -Qua 2>/dev/null | awk '{print $1}')"

View file

@ -18,7 +18,7 @@ return {
top = padding, top = padding,
bottom = padding, bottom = padding,
}, },
font = wezterm.font("MonoLisa NF"), font = wezterm.font("MonoLisa Nerd Font"),
adjust_window_size_when_changing_font_size = false, adjust_window_size_when_changing_font_size = false,
colors = catppuccin, colors = catppuccin,
use_fancy_tab_bar = false, use_fancy_tab_bar = false,