realized i already had a script to do this

in ~/scripts/