Skip to content

Instantly share code, notes, and snippets.

@marcusscomputer
Created October 1, 2020 09:28
Show Gist options
  • Save marcusscomputer/f3dd22bdc7fe55e7416ae09f12cf3a3e to your computer and use it in GitHub Desktop.
Save marcusscomputer/f3dd22bdc7fe55e7416ae09f12cf3a3e to your computer and use it in GitHub Desktop.
Script that shows number of updates in i3blocks
#!/bin/bash
rm -rf /tmp/apt
APTU=`apt list --upgradable | wc -l`
APT=`expr $APTU - 1 > /tmp/apt`
cat /tmp/apt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment