Screenshot via YouTube

Adam Kokesh, the libertarian gun activist who held a loaded shotgun in downtown D.C. on the Fourth of July, has pleaded guilty to weapon and drug charges, WJLA reports.

Online court records show that he accepted a plea deal today, was released and will be sentenced on January 17. Kokesh originally planned to defy D.C.’s gun laws by leading a loaded rifle march across the Arlington Memorial Bridge on Independence Day of this year. Instead, he uploaded a video of himself at Freedom Plaza with what appeared to be a loaded shotgun to YouTube. He has been in D.C. jail since July after a judge called him a “very dangerous person” and other requests for bond were denied.

Here are more details from today, via the Post:

A trial was set for Nov. 18, and Kokesh’s supporters had been advocating for jury nullification in his case.

But on Wednesday, standing next to his new attorney, Kokesh pleaded guilty to carrying a rifle or shotgun, possession of an unregistered firearm and unlawful possession of ammunition. In a separate case, Kokesh pleaded guilty to a charge of possession of marijuana in the District.

Kokesh is scheduled to be sentenced on Jan. 17. Broderick ordered Kokesh to stay out of the District and said he must report in with supervising authorities weekly. The judge also ordered that Kokesh not possess any firearms. Kokesh faces a maximum of more than six years in prison on the combined charges.

A call to his attorney on file was not immediately returned. Kokesh is expected to make a statement later today.

Update: From the U.S. Attorney’s Office for the District of Columbia, here’s the government’s evidence against Kokesh:

In the early morning hours of July 4, 2013, Kokesh stood in Freedom Plaza, in the 1400 block of Pennsylvania Avenue NW, while carrying a shotgun. While there, he loaded the shotgun with four rounds of ammunition and racked one of the rounds while being filmed on camera. Later that morning, a 23-second video of Kokesh carrying, loading and racking the shotgun was posted to YouTube and other social media sites run by Kokesh and others. In the bottom left corner of the video, the words, “Freedom Plaza, Between the White House and the Capitol, Washington, DC July 4, 2013” appear.

A search of Kokesh’s Virginia home on July 9, 2013 led to the recovery of the shotgun that was believed to have been shown in the video. During the search, Kokesh directed officers to a headboard in the master bedroom, where the shotgun was located

In the release, Ronald Machen, the U.S. Attorney for D.C., said “Every day, federal and local law enforcement officers put their lives on the line to protect national government facilities, national landmarks, and public servants working in our city from ongoing threats to our security. Their jobs are hard enough without irresponsible people intentionally coming into the District of Columbia to brandish a loaded shotgun in the heart of the nation’s capital. As today’s plea demonstrates, there are consequences for anyone who flagrantly abuses our city’s firearms and drug laws.”