diff --git a/waybar/waybar-debian.sh b/waybar/waybar-debian.sh index c76ec86..2302612 100755 --- a/waybar/waybar-debian.sh +++ b/waybar/waybar-debian.sh @@ -24,7 +24,7 @@ elif [ "$1" == 'upgrade' ]; then let COUNT-- echo $COUNT > /home/jpm/.spool/apt-upgradeable if [ -e /var/run/reboot-required ]; then - cat /var/log/apt/history.log | tr "\n" "%" | sed -e 's/.*\(Start-Date\)/\1/g' | tr "%" "\n" | swaynag --config=${HOME}/.dotfiles/sway/swaynag --edge=bottom --message="New packages require restart" --button="Restart Now" "sudo systemctl reboot" --dismiss-button="Later" --detailed-message --detailed-button "Show/Hide Upgrade Details" + grep -B1 -A4 upgrade /var/log/apt/history.log | tail -n 6 | swaynag --config=${HOME}/.dotfiles/sway/swaynag --edge=bottom --message="New packages require restart" --button="Restart Now" "sudo systemctl reboot" --dismiss-button="Later" --detailed-message --detailed-button "Show/Hide Upgrade Details" fi elif [ "$1" == 'update' ]; then sudo apt update >/dev/null 2>/dev/null